@burdenoff/microfe-movethewheels 2026.930.5 → 2026.1010.2
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 +177 -102
- package/dist/MoveTheWheelsRoutes.js +55 -11
- package/dist/_virtual/_rolldown/runtime.js +1 -1
- package/dist/components/ContainerEvidencePicker.js +143 -0
- package/dist/components/FreeTimeAgreementForm.js +496 -0
- package/dist/components/ReturnInstructionForm.js +108 -0
- package/dist/components/ReuseControls.js +91 -0
- package/dist/components/ReusePermissionForm.js +114 -0
- package/dist/components/ReuseProposalForm.js +455 -0
- package/dist/components/ReuseSourceFields.js +78 -0
- package/dist/components/consolidation/ConsolidationHistory.js +244 -0
- package/dist/components/consolidation/ConsolidationLotEditor.js +133 -0
- package/dist/components/consolidation/ConsolidationManifestWorkbench.js +143 -0
- package/dist/components/consolidation/ConsolidationPlanForm.js +172 -0
- package/dist/components/consolidation/ConsolidationPlanWorkbench.js +321 -0
- package/dist/components/consolidation/ConsolidationReportForm.js +94 -0
- package/dist/components/consolidation/ConsolidationReportsWorkbench.js +195 -0
- package/dist/components/consolidation/ConsolidationSummary.js +76 -0
- package/dist/components/consolidation/OriginalConsolidationHistory.js +112 -0
- package/dist/components/freight-cost/FreightDraftForm.js +213 -0
- package/dist/components/freight-cost/FreightFields.js +70 -0
- package/dist/components/freight-cost/FreightFxEditor.js +90 -0
- package/dist/components/freight-cost/FreightHistory.js +164 -0
- package/dist/components/freight-cost/FreightLineEditor.js +191 -0
- package/dist/components/freight-cost/FreightScopeEditor.js +72 -0
- package/dist/components/freight-cost/FreightTotals.js +66 -0
- package/dist/components/logistics-procedure/ProcedureDecisionForm.js +197 -0
- package/dist/components/logistics-procedure/ProcedureFields.js +31 -0
- package/dist/components/logistics-procedure/ProcedureHistory.js +177 -0
- package/dist/components/logistics-procedure/ProcedurePolicyForm.js +227 -0
- package/dist/components/logistics-procedure/ProcedurePolicyWorkbench.js +155 -0
- package/dist/components/logistics-procedure/ProcedureReviewWorkbench.js +221 -0
- package/dist/components/logistics-procedure/ProcedureRunWorkbench.js +190 -0
- package/dist/components/logistics-procedure/ProcedureSubjectPicker.js +130 -0
- package/dist/components/pending-pick/PendingPickDraft.js +84 -0
- package/dist/components/pending-pick/PendingPickHistory.js +113 -0
- package/dist/components/pending-pick/PickCapture.js +166 -0
- package/dist/components/pending-pick/PickLineSelection.js +111 -0
- package/dist/components/stock-binding/StockAssessmentDraft.js +48 -0
- package/dist/components/stock-binding/StockAssessmentHistory.js +61 -0
- package/dist/components/stock-binding/StockAssessmentSummary.js +199 -0
- package/dist/components/stock-binding/StockFactForm.js +232 -0
- package/dist/components/stock-observation/StockIssueForm.js +148 -0
- package/dist/components/stock-observation/StockIssueHistory.js +116 -0
- package/dist/components/stock-observation/StockIssueReadPanel.js +70 -0
- package/dist/components/trip-utilization/TripReportForm.js +118 -0
- package/dist/components/trip-utilization/TripReportHistory.js +54 -0
- package/dist/components/trip-utilization/TripReportSummary.js +216 -0
- package/dist/components/trip-utilization/TripSegmentFields.js +166 -0
- package/dist/generated/consolidation-operations.d.ts +1060 -0
- package/dist/generated/container-condition-operations.d.ts +868 -0
- package/dist/generated/container-operations.d.ts +356 -0
- package/dist/generated/empty-reuse-operations.d.ts +1578 -0
- package/dist/generated/free-time-operations.d.ts +938 -0
- package/dist/generated/freight-cost-operations.d.ts +716 -0
- package/dist/generated/logistics-procedure-operations.d.ts +938 -0
- package/dist/generated/pending-pick-operations.d.ts +1969 -0
- package/dist/generated/stock-binding-operations.d.ts +930 -0
- package/dist/generated/stock-observation-operations.d.ts +476 -0
- package/dist/generated/trip-utilization-operations.d.ts +651 -0
- package/dist/generated/wspace-operations.d.ts +143 -50
- package/dist/hooks/useConsolidationAction.js +119 -0
- package/dist/hooks/useContainerCondition.js +105 -0
- package/dist/hooks/useContainerLifecycle.js +192 -0
- package/dist/hooks/useEmptyReuseAction.js +45 -0
- package/dist/hooks/useFreightRecoveryAction.js +117 -0
- package/dist/hooks/useMultiModalShipments.js +1 -1
- package/dist/hooks/useProcedureAction.js +119 -0
- package/dist/hooks/useProcedureSelection.js +53 -0
- package/dist/hooks/useReuseRecoveryAction.js +116 -0
- package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +10 -0
- package/dist/movethewheels/components/FreeTimeAgreementForm.d.ts +14 -0
- package/dist/movethewheels/components/ReturnInstructionForm.d.ts +8 -0
- package/dist/movethewheels/components/ReuseControls.d.ts +42 -0
- package/dist/movethewheels/components/ReusePermissionForm.d.ts +9 -0
- package/dist/movethewheels/components/ReuseProposalForm.d.ts +11 -0
- package/dist/movethewheels/components/ReuseSourceFields.d.ts +9 -0
- package/dist/movethewheels/components/consolidation/ConsolidationHistory.d.ts +13 -0
- package/dist/movethewheels/components/consolidation/ConsolidationLotEditor.d.ts +6 -0
- package/dist/movethewheels/components/consolidation/ConsolidationManifestWorkbench.d.ts +8 -0
- package/dist/movethewheels/components/consolidation/ConsolidationPlanForm.d.ts +8 -0
- package/dist/movethewheels/components/consolidation/ConsolidationPlanWorkbench.d.ts +5 -0
- package/dist/movethewheels/components/consolidation/ConsolidationReportForm.d.ts +9 -0
- package/dist/movethewheels/components/consolidation/ConsolidationReportsWorkbench.d.ts +7 -0
- package/dist/movethewheels/components/consolidation/ConsolidationSummary.d.ts +6 -0
- package/dist/movethewheels/components/consolidation/OriginalConsolidationHistory.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightFields.d.ts +23 -0
- package/dist/movethewheels/components/freight-cost/FreightFxEditor.d.ts +6 -0
- package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +5 -0
- package/dist/movethewheels/components/freight-cost/FreightLineEditor.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightScopeEditor.d.ts +6 -0
- package/dist/movethewheels/components/freight-cost/FreightTotals.d.ts +6 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureDecisionForm.d.ts +20 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureFields.d.ts +17 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureHistory.d.ts +7 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyForm.d.ts +10 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.d.ts +5 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.d.ts +5 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.d.ts +6 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.d.ts +7 -0
- package/dist/movethewheels/components/pending-pick/PendingPickDraft.d.ts +16 -0
- package/dist/movethewheels/components/pending-pick/PendingPickHistory.d.ts +5 -0
- package/dist/movethewheels/components/pending-pick/PickCapture.d.ts +6 -0
- package/dist/movethewheels/components/pending-pick/PickLineSelection.d.ts +17 -0
- package/dist/movethewheels/components/stock-binding/StockAssessmentDraft.d.ts +13 -0
- package/dist/movethewheels/components/stock-binding/StockAssessmentHistory.d.ts +18 -0
- package/dist/movethewheels/components/stock-binding/StockAssessmentSummary.d.ts +9 -0
- package/dist/movethewheels/components/stock-binding/StockFactForm.d.ts +6 -0
- package/dist/movethewheels/components/stock-observation/StockIssueForm.d.ts +7 -0
- package/dist/movethewheels/components/stock-observation/StockIssueHistory.d.ts +7 -0
- package/dist/movethewheels/components/stock-observation/StockIssueReadPanel.d.ts +5 -0
- package/dist/movethewheels/components/trip-utilization/TripReportForm.d.ts +6 -0
- package/dist/movethewheels/components/trip-utilization/TripReportHistory.d.ts +14 -0
- package/dist/movethewheels/components/trip-utilization/TripReportSummary.d.ts +5 -0
- package/dist/movethewheels/components/trip-utilization/TripSegmentFields.d.ts +9 -0
- package/dist/movethewheels/hooks/useConsolidationAction.d.ts +19 -0
- package/dist/movethewheels/hooks/useContainerCondition.d.ts +21 -0
- package/dist/movethewheels/hooks/useContainerLifecycle.d.ts +40 -0
- package/dist/movethewheels/hooks/useEmptyReuseAction.d.ts +14 -0
- package/dist/movethewheels/hooks/useFreightRecoveryAction.d.ts +23 -0
- package/dist/movethewheels/hooks/useProcedureAction.d.ts +18 -0
- package/dist/movethewheels/hooks/useProcedureSelection.d.ts +51 -0
- package/dist/movethewheels/hooks/useReuseRecoveryAction.d.ts +18 -0
- package/dist/movethewheels/pages/ConsolidationPage.d.ts +1 -0
- package/dist/movethewheels/pages/ContainerConditionPage.d.ts +1 -0
- package/dist/movethewheels/pages/ContainersPage.d.ts +2 -0
- package/dist/movethewheels/pages/EmptyReusePage.d.ts +1 -0
- package/dist/movethewheels/pages/FreeTimePage.d.ts +1 -0
- package/dist/movethewheels/pages/FreightEstimatePage.d.ts +1 -0
- package/dist/movethewheels/pages/LogisticsProceduresPage.d.ts +1 -0
- package/dist/movethewheels/pages/PendingPickPage.d.ts +1 -0
- package/dist/movethewheels/pages/StockBindingPage.d.ts +1 -0
- package/dist/movethewheels/pages/StockObservationsPage.d.ts +1 -0
- package/dist/movethewheels/pages/TripUtilizationPage.d.ts +1 -0
- package/dist/movethewheels/utils/consolidationHistoryTarget.d.ts +12 -0
- package/dist/movethewheels/utils/consolidationInput.d.ts +15 -0
- package/dist/movethewheels/utils/consolidationLot.d.ts +3 -0
- package/dist/movethewheels/utils/consolidationPins.d.ts +20 -0
- package/dist/movethewheels/utils/consolidationRecovery.d.ts +5 -0
- package/dist/movethewheels/utils/consolidationReportHead.d.ts +5 -0
- package/dist/movethewheels/utils/freeTimeDate.d.ts +1 -0
- package/dist/movethewheels/utils/freightAcknowledgement.d.ts +2 -0
- package/dist/movethewheels/utils/freightDraft.d.ts +36 -0
- package/dist/movethewheels/utils/freightRecovery.d.ts +5 -0
- package/dist/movethewheels/utils/graphqlClient.d.ts +2 -1
- package/dist/movethewheels/utils/pendingPickDraft.d.ts +8 -0
- package/dist/movethewheels/utils/procedureInput.d.ts +18 -0
- package/dist/movethewheels/utils/procedureRecovery.d.ts +5 -0
- package/dist/movethewheels/utils/reuseAttempt.d.ts +7 -0
- package/dist/movethewheels/utils/reuseForm.d.ts +6 -0
- package/dist/movethewheels/utils/reuseRecovery.d.ts +26 -0
- package/dist/movethewheels/utils/stockBindingForm.d.ts +23 -0
- package/dist/movethewheels/utils/stockBindingLabels.d.ts +10 -0
- package/dist/movethewheels/utils/stockObservationForm.d.ts +5 -0
- package/dist/movethewheels/utils/tripDraftContext.d.ts +25 -0
- package/dist/movethewheels/utils/tripUtilizationForm.d.ts +6 -0
- package/dist/node_modules/@react-leaflet/core/lib/component.js +5 -5
- package/dist/node_modules/fast-equals/dist/es/index.js +87 -74
- package/dist/node_modules/leaflet/dist/leaflet-src.js +8 -5
- package/dist/node_modules/lodash/_Stack.js +2 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/clipboard-list.js +35 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/repeat-2.js +22 -0
- package/dist/node_modules/react-leaflet/lib/MapContainer.js +3 -3
- package/dist/node_modules/react-smooth/es6/Animate.js +2 -2
- package/dist/node_modules/recharts/es6/cartesian/Area.js +13 -13
- package/dist/node_modules/recharts/es6/cartesian/Bar.js +9 -9
- package/dist/node_modules/recharts/es6/cartesian/Brush.js +12 -12
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +7 -7
- package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +13 -13
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +4 -4
- package/dist/node_modules/recharts/es6/cartesian/Line.js +10 -10
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +3 -3
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +3 -3
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +4 -4
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js +3 -3
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js +3 -3
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +1 -1
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +22 -22
- package/dist/node_modules/recharts/es6/component/Cursor.js +1 -1
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +11 -11
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +6 -6
- package/dist/node_modules/recharts/es6/component/Label.js +14 -14
- package/dist/node_modules/recharts/es6/component/LabelList.js +6 -6
- package/dist/node_modules/recharts/es6/component/Legend.js +5 -5
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +3 -3
- package/dist/node_modules/recharts/es6/component/Text.js +2 -2
- package/dist/node_modules/recharts/es6/component/Tooltip.js +3 -3
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +2 -2
- package/dist/node_modules/recharts/es6/container/Layer.js +2 -2
- package/dist/node_modules/recharts/es6/container/Surface.js +2 -2
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +2 -2
- package/dist/node_modules/recharts/es6/polar/Pie.js +13 -13
- package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +8 -8
- package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +6 -6
- package/dist/node_modules/recharts/es6/shape/Cross.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Curve.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Dot.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Polygon.js +4 -4
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +4 -4
- package/dist/node_modules/recharts/es6/shape/Sector.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Symbols.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js +4 -4
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +9 -9
- package/dist/node_modules/recharts/es6/util/BarUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +2 -2
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +1 -1
- package/dist/node_modules/recharts/es6/util/types.js +1 -1
- package/dist/node_modules/{react-is → recharts/node_modules/react-is}/cjs/react-is.development.js +2 -2
- package/dist/node_modules/{react-is → recharts/node_modules/react-is}/cjs/react-is.production.min.js +2 -2
- package/dist/node_modules/{react-is → recharts/node_modules/react-is}/index.js +2 -2
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +97 -18
- package/dist/node_modules/zustand/esm/middleware.js +2 -2
- package/dist/pages/ConsolidationPage.js +76 -0
- package/dist/pages/ContainerConditionPage.js +972 -0
- package/dist/pages/ContainersPage.js +522 -0
- package/dist/pages/EmptyReusePage.js +777 -0
- package/dist/pages/FreeTimePage.js +657 -0
- package/dist/pages/FreightEstimatePage.js +284 -0
- package/dist/pages/LogisticsProceduresPage.js +100 -0
- package/dist/pages/PendingPickPage.js +155 -0
- package/dist/pages/StockBindingPage.js +236 -0
- package/dist/pages/StockObservationsPage.js +168 -0
- package/dist/pages/TripUtilizationPage.js +227 -0
- package/dist/src/generated/consolidation-operations.js +505 -0
- package/dist/src/generated/container-condition-operations.js +208 -0
- package/dist/src/generated/container-operations.js +101 -0
- package/dist/src/generated/empty-reuse-operations.js +749 -0
- package/dist/src/generated/free-time-operations.js +235 -0
- package/dist/src/generated/freight-cost-operations.js +325 -0
- package/dist/src/generated/logistics-procedure-operations.js +362 -0
- package/dist/src/generated/pending-pick-operations.js +1128 -0
- package/dist/src/generated/stock-binding-operations.js +175 -0
- package/dist/src/generated/stock-observation-operations.js +93 -0
- package/dist/src/generated/trip-utilization-operations.js +140 -0
- package/dist/src/generated/wspace-operations.js +708 -0
- package/dist/utils/consolidationHistoryTarget.js +27 -0
- package/dist/utils/consolidationInput.js +21 -0
- package/dist/utils/consolidationLot.js +29 -0
- package/dist/utils/consolidationPins.js +13 -0
- package/dist/utils/consolidationRecovery.js +40 -0
- package/dist/utils/consolidationReportHead.js +18 -0
- package/dist/utils/freeTimeDate.js +26 -0
- package/dist/utils/freightAcknowledgement.js +8 -0
- package/dist/utils/freightDraft.js +125 -0
- package/dist/utils/freightRecovery.js +36 -0
- package/dist/utils/graphqlClient.js +28 -28
- package/dist/utils/pendingPickDraft.js +46 -0
- package/dist/utils/procedureInput.js +43 -0
- package/dist/utils/procedureRecovery.js +42 -0
- package/dist/utils/reuseAttempt.js +20 -0
- package/dist/utils/reuseForm.js +25 -0
- package/dist/utils/reuseRecovery.js +71 -0
- package/dist/utils/stockBindingForm.js +142 -0
- package/dist/utils/stockBindingLabels.js +23 -0
- package/dist/utils/stockObservationForm.js +55 -0
- package/dist/utils/tripDraftContext.js +19 -0
- package/dist/utils/tripUtilizationForm.js +60 -0
- package/package.json +20 -5
- package/src/generated/consolidation-operations.ts +1138 -0
- package/src/generated/container-condition-operations.ts +771 -0
- package/src/generated/container-operations.ts +376 -0
- package/src/generated/empty-reuse-operations.ts +1648 -0
- package/src/generated/free-time-operations.ts +814 -0
- package/src/generated/freight-cost-operations.ts +753 -0
- package/src/generated/logistics-procedure-operations.ts +1047 -0
- package/src/generated/pending-pick-operations.ts +1508 -0
- package/src/generated/stock-binding-operations.ts +631 -0
- package/src/generated/stock-observation-operations.ts +373 -0
- package/src/generated/trip-utilization-operations.ts +500 -0
- package/src/generated/wspace-operations.ts +116 -0
- package/src/movethewheels/MoveTheWheelsRoot.tsx +79 -0
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +22 -0
- package/src/movethewheels/components/ContainerEvidencePicker.tsx +146 -0
- package/src/movethewheels/components/FreeTimeAgreementForm.tsx +483 -0
- package/src/movethewheels/components/ReturnInstructionForm.tsx +102 -0
- package/src/movethewheels/components/ReuseControls.tsx +138 -0
- package/src/movethewheels/components/ReusePermissionForm.tsx +123 -0
- package/src/movethewheels/components/ReuseProposalForm.tsx +484 -0
- package/src/movethewheels/components/ReuseSourceFields.tsx +80 -0
- package/src/movethewheels/components/consolidation/ConsolidationHistory.tsx +159 -0
- package/src/movethewheels/components/consolidation/ConsolidationLotEditor.tsx +144 -0
- package/src/movethewheels/components/consolidation/ConsolidationManifestWorkbench.tsx +168 -0
- package/src/movethewheels/components/consolidation/ConsolidationPlanForm.tsx +185 -0
- package/src/movethewheels/components/consolidation/ConsolidationPlanWorkbench.tsx +395 -0
- package/src/movethewheels/components/consolidation/ConsolidationReportForm.tsx +124 -0
- package/src/movethewheels/components/consolidation/ConsolidationReportsWorkbench.tsx +233 -0
- package/src/movethewheels/components/consolidation/ConsolidationSummary.tsx +84 -0
- package/src/movethewheels/components/consolidation/OriginalConsolidationHistory.tsx +133 -0
- package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +224 -0
- package/src/movethewheels/components/freight-cost/FreightFields.tsx +91 -0
- package/src/movethewheels/components/freight-cost/FreightFxEditor.tsx +98 -0
- package/src/movethewheels/components/freight-cost/FreightHistory.tsx +91 -0
- package/src/movethewheels/components/freight-cost/FreightLineEditor.tsx +192 -0
- package/src/movethewheels/components/freight-cost/FreightScopeEditor.tsx +64 -0
- package/src/movethewheels/components/freight-cost/FreightTotals.tsx +68 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureDecisionForm.tsx +204 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureFields.tsx +43 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureHistory.tsx +102 -0
- package/src/movethewheels/components/logistics-procedure/ProcedurePolicyForm.tsx +226 -0
- package/src/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.tsx +174 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.tsx +278 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.tsx +292 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.tsx +111 -0
- package/src/movethewheels/components/pending-pick/PendingPickDraft.tsx +82 -0
- package/src/movethewheels/components/pending-pick/PendingPickHistory.tsx +93 -0
- package/src/movethewheels/components/pending-pick/PickCapture.tsx +70 -0
- package/src/movethewheels/components/pending-pick/PickLineSelection.tsx +130 -0
- package/src/movethewheels/components/stock-binding/StockAssessmentDraft.tsx +52 -0
- package/src/movethewheels/components/stock-binding/StockAssessmentHistory.tsx +56 -0
- package/src/movethewheels/components/stock-binding/StockAssessmentSummary.tsx +108 -0
- package/src/movethewheels/components/stock-binding/StockFactForm.tsx +186 -0
- package/src/movethewheels/components/stock-observation/StockIssueForm.tsx +103 -0
- package/src/movethewheels/components/stock-observation/StockIssueHistory.tsx +96 -0
- package/src/movethewheels/components/stock-observation/StockIssueReadPanel.tsx +72 -0
- package/src/movethewheels/components/trip-utilization/TripReportForm.tsx +116 -0
- package/src/movethewheels/components/trip-utilization/TripReportHistory.tsx +51 -0
- package/src/movethewheels/components/trip-utilization/TripReportSummary.tsx +127 -0
- package/src/movethewheels/components/trip-utilization/TripSegmentFields.tsx +118 -0
- package/src/movethewheels/hooks/useConsolidationAction.ts +196 -0
- package/src/movethewheels/hooks/useContainerCondition.ts +129 -0
- package/src/movethewheels/hooks/useContainerLifecycle.ts +291 -0
- package/src/movethewheels/hooks/useEmptyReuseAction.ts +72 -0
- package/src/movethewheels/hooks/useFreightRecoveryAction.ts +201 -0
- package/src/movethewheels/hooks/useMultiModalShipments.ts +2 -1
- package/src/movethewheels/hooks/useProcedureAction.ts +196 -0
- package/src/movethewheels/hooks/useProcedureSelection.ts +75 -0
- package/src/movethewheels/hooks/useReuseRecoveryAction.ts +192 -0
- package/src/movethewheels/pages/ConsolidationPage.tsx +70 -0
- package/src/movethewheels/pages/ContainerConditionPage.tsx +959 -0
- package/src/movethewheels/pages/ContainersPage.tsx +490 -0
- package/src/movethewheels/pages/EmptyReusePage.tsx +823 -0
- package/src/movethewheels/pages/FreeTimePage.tsx +720 -0
- package/src/movethewheels/pages/FreightEstimatePage.tsx +353 -0
- package/src/movethewheels/pages/LogisticsProceduresPage.tsx +86 -0
- package/src/movethewheels/pages/PendingPickPage.tsx +226 -0
- package/src/movethewheels/pages/StockBindingPage.tsx +299 -0
- package/src/movethewheels/pages/StockObservationsPage.tsx +181 -0
- package/src/movethewheels/pages/TripUtilizationPage.tsx +315 -0
- package/src/movethewheels/utils/consolidationHistoryTarget.ts +39 -0
- package/src/movethewheels/utils/consolidationInput.ts +70 -0
- package/src/movethewheels/utils/consolidationLot.ts +24 -0
- package/src/movethewheels/utils/consolidationPins.ts +52 -0
- package/src/movethewheels/utils/consolidationRecovery.ts +88 -0
- package/src/movethewheels/utils/consolidationReportHead.ts +29 -0
- package/src/movethewheels/utils/freeTimeDate.ts +31 -0
- package/src/movethewheels/utils/freightAcknowledgement.ts +31 -0
- package/src/movethewheels/utils/freightDraft.ts +170 -0
- package/src/movethewheels/utils/freightRecovery.ts +79 -0
- package/src/movethewheels/utils/graphqlClient.ts +14 -5
- package/src/movethewheels/utils/pendingPickDraft.ts +61 -0
- package/src/movethewheels/utils/procedureInput.ts +98 -0
- package/src/movethewheels/utils/procedureRecovery.ts +92 -0
- package/src/movethewheels/utils/reuseAttempt.ts +29 -0
- package/src/movethewheels/utils/reuseForm.ts +30 -0
- package/src/movethewheels/utils/reuseRecovery.ts +151 -0
- package/src/movethewheels/utils/stockBindingForm.ts +209 -0
- package/src/movethewheels/utils/stockBindingLabels.ts +41 -0
- package/src/movethewheels/utils/stockObservationForm.ts +73 -0
- package/src/movethewheels/utils/tripDraftContext.ts +61 -0
- package/src/movethewheels/utils/tripUtilizationForm.ts +105 -0
- package/src/operations/condition/container-condition.graphql +41 -0
- package/src/operations/consolidation/consolidation.graphql +490 -0
- package/src/operations/container/container-lifecycle.graphql +80 -0
- package/src/operations/empty-reuse/empty-reuse.graphql +737 -0
- package/src/operations/free-time/free-time.graphql +47 -0
- package/src/operations/freight-cost/freight.graphql +6 -0
- package/src/operations/logistics-procedure/procedure.graphql +15 -0
- package/src/operations/pending-pick/pending-pick.graphql +1122 -0
- package/src/operations/stock-binding/stock-binding.graphql +160 -0
- package/src/operations/stock-observation/stock-observation.graphql +20 -0
- package/src/operations/trip-utilization/trip-utilization.graphql +126 -0
- package/src/operations/wspace/container-evidence.graphql +6 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Button as e, Input as t } from "../ui.js";
|
|
2
|
+
import { useConditionQuery as n } from "../../hooks/useContainerCondition.js";
|
|
3
|
+
import { ReusePager as r, ReuseState as i, reuseCard as a } from "../ReuseControls.js";
|
|
4
|
+
import { ExactPendingPickDocument as o, PendingPickHistoryDocument as s } from "../../src/generated/pending-pick-operations.js";
|
|
5
|
+
import { PickCapture as c } from "./PickCapture.js";
|
|
6
|
+
import { useState as l } from "react";
|
|
7
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
|
+
//#region src/movethewheels/components/pending-pick/PendingPickHistory.tsx
|
|
9
|
+
function f({ task: e }) {
|
|
10
|
+
return /* @__PURE__ */ d("article", {
|
|
11
|
+
className: `${a} min-w-0 break-words`,
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ u("h3", {
|
|
14
|
+
className: "font-semibold",
|
|
15
|
+
children: "Pending plan · needs review"
|
|
16
|
+
}),
|
|
17
|
+
/* @__PURE__ */ d("p", {
|
|
18
|
+
className: "break-all",
|
|
19
|
+
children: ["Task ", e.id]
|
|
20
|
+
}),
|
|
21
|
+
/* @__PURE__ */ d("p", { children: [
|
|
22
|
+
e.requestedQuantity,
|
|
23
|
+
" reported count · ",
|
|
24
|
+
e.note
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ d("p", { children: [
|
|
27
|
+
"Reserved ",
|
|
28
|
+
e.reservedQuantity,
|
|
29
|
+
"; staged ",
|
|
30
|
+
e.stagedQuantity,
|
|
31
|
+
". No movement is recorded."
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ d("p", {
|
|
34
|
+
className: "break-all",
|
|
35
|
+
children: [
|
|
36
|
+
"Recorded ",
|
|
37
|
+
e.recordedAt,
|
|
38
|
+
"; creator and proposed executor ",
|
|
39
|
+
e.executorActorId,
|
|
40
|
+
"."
|
|
41
|
+
]
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ d("details", { children: [/* @__PURE__ */ u("summary", { children: "Captured source and staging context" }), /* @__PURE__ */ d("div", {
|
|
44
|
+
className: "mt-3 grid gap-3 lg:grid-cols-2",
|
|
45
|
+
children: [/* @__PURE__ */ u(c, {
|
|
46
|
+
title: "Source",
|
|
47
|
+
line: e.source
|
|
48
|
+
}), /* @__PURE__ */ u(c, {
|
|
49
|
+
title: "Staging",
|
|
50
|
+
line: e.destination
|
|
51
|
+
})]
|
|
52
|
+
})] })
|
|
53
|
+
]
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function p({ revision: a, sourceId: c, destinationId: p }) {
|
|
57
|
+
let [m, h] = l(0), [g, _] = l(""), [v, y] = l(""), b = n(s, {
|
|
58
|
+
pagination: {
|
|
59
|
+
limit: 10,
|
|
60
|
+
offset: m
|
|
61
|
+
},
|
|
62
|
+
sourceInventoryItemId: c || null,
|
|
63
|
+
destinationInventoryItemId: p || null
|
|
64
|
+
}, a), x = n(o, v ? { id: v } : null, a), S = b.data?.mtwPickTaskPage;
|
|
65
|
+
return /* @__PURE__ */ d("section", {
|
|
66
|
+
className: "space-y-3",
|
|
67
|
+
"aria-label": "Pending plan history",
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ u("h2", {
|
|
70
|
+
className: "font-semibold",
|
|
71
|
+
children: "Recorded pending plans"
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ u("p", {
|
|
74
|
+
className: "text-sm",
|
|
75
|
+
children: "History retains captured references after a line is retired. Use a known task ID; this is not an archived stock-line browser."
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ d("label", {
|
|
78
|
+
className: "block",
|
|
79
|
+
children: ["Known task ID", /* @__PURE__ */ u(t, {
|
|
80
|
+
value: g,
|
|
81
|
+
maxLength: 255,
|
|
82
|
+
onChange: (e) => _(e.target.value)
|
|
83
|
+
})]
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ u(e, {
|
|
86
|
+
type: "button",
|
|
87
|
+
variant: "outline",
|
|
88
|
+
disabled: !g.trim(),
|
|
89
|
+
onClick: () => y(g.trim()),
|
|
90
|
+
children: "Read exact task"
|
|
91
|
+
}),
|
|
92
|
+
/* @__PURE__ */ u(i, {
|
|
93
|
+
loading: x.loading,
|
|
94
|
+
error: x.error
|
|
95
|
+
}),
|
|
96
|
+
x.data && /* @__PURE__ */ u(f, { task: x.data.mtwPickTask }),
|
|
97
|
+
/* @__PURE__ */ u(i, {
|
|
98
|
+
loading: b.loading,
|
|
99
|
+
error: b.error
|
|
100
|
+
}),
|
|
101
|
+
S?.items.map((e) => /* @__PURE__ */ u(f, { task: e }, e.id)),
|
|
102
|
+
S?.total === 0 && /* @__PURE__ */ u("p", { children: "No recorded pending plans in this filter." }),
|
|
103
|
+
/* @__PURE__ */ u(r, {
|
|
104
|
+
page: S,
|
|
105
|
+
offset: m,
|
|
106
|
+
onChange: h,
|
|
107
|
+
busy: b.loading
|
|
108
|
+
})
|
|
109
|
+
]
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
//#endregion
|
|
113
|
+
export { p as PendingPickHistory };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { reuseCard as e } from "../ReuseControls.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/movethewheels/components/pending-pick/PickCapture.tsx
|
|
4
|
+
function r({ line: r, title: i }) {
|
|
5
|
+
let a = r.applicableProfile;
|
|
6
|
+
return /* @__PURE__ */ n("section", {
|
|
7
|
+
className: `${e} min-w-0 break-words`,
|
|
8
|
+
children: [
|
|
9
|
+
/* @__PURE__ */ n("h3", {
|
|
10
|
+
className: "font-semibold",
|
|
11
|
+
children: [
|
|
12
|
+
i,
|
|
13
|
+
": ",
|
|
14
|
+
r.cargoLabel
|
|
15
|
+
]
|
|
16
|
+
}),
|
|
17
|
+
/* @__PURE__ */ n("p", { children: [
|
|
18
|
+
r.warehouseLabel,
|
|
19
|
+
" · ",
|
|
20
|
+
r.binLabel
|
|
21
|
+
] }),
|
|
22
|
+
/* @__PURE__ */ n("p", {
|
|
23
|
+
className: "break-all text-sm",
|
|
24
|
+
children: ["Line ", r.inventoryItemId]
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ n("p", {
|
|
27
|
+
className: "text-sm",
|
|
28
|
+
children: [
|
|
29
|
+
"Reported counters: on hand ",
|
|
30
|
+
r.stock.onHand,
|
|
31
|
+
", available ",
|
|
32
|
+
r.stock.available,
|
|
33
|
+
", allocated",
|
|
34
|
+
" ",
|
|
35
|
+
r.stock.allocated,
|
|
36
|
+
", damaged ",
|
|
37
|
+
r.stock.damaged,
|
|
38
|
+
"."
|
|
39
|
+
]
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ n("p", {
|
|
42
|
+
className: "text-sm",
|
|
43
|
+
children: [
|
|
44
|
+
"Composition revision ",
|
|
45
|
+
r.compositionEpoch,
|
|
46
|
+
"; reported issues ",
|
|
47
|
+
r.observationSequence,
|
|
48
|
+
"."
|
|
49
|
+
]
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ n("p", {
|
|
52
|
+
className: "text-sm",
|
|
53
|
+
children: [
|
|
54
|
+
"Needs review:",
|
|
55
|
+
" ",
|
|
56
|
+
r.reviewGaps.map((e) => e.toLowerCase().replaceAll("_", " ")).join("; ")
|
|
57
|
+
]
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ n("details", {
|
|
60
|
+
className: "space-y-2 text-sm",
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ t("summary", { children: "Source facts and exact review references" }),
|
|
63
|
+
/* @__PURE__ */ n("p", {
|
|
64
|
+
className: "break-all",
|
|
65
|
+
children: [
|
|
66
|
+
"Recorded profile ",
|
|
67
|
+
r.recordedProfile?.id ?? "Missing",
|
|
68
|
+
"; applicable profile",
|
|
69
|
+
" ",
|
|
70
|
+
a?.id ?? "Missing",
|
|
71
|
+
"."
|
|
72
|
+
]
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ n("p", { children: [
|
|
75
|
+
"Recorded effective time ",
|
|
76
|
+
r.recordedProfile?.effectiveAt ?? "Unknown",
|
|
77
|
+
"; applicable effective time ",
|
|
78
|
+
a?.effectiveAt ?? "Unknown",
|
|
79
|
+
"."
|
|
80
|
+
] }),
|
|
81
|
+
/* @__PURE__ */ n("p", {
|
|
82
|
+
className: "break-all",
|
|
83
|
+
children: [
|
|
84
|
+
"Count unit reference ",
|
|
85
|
+
a?.facts.countUnit?.reference ?? "Unknown",
|
|
86
|
+
"; revision",
|
|
87
|
+
" ",
|
|
88
|
+
a?.facts.countUnit?.revision ?? "Unknown",
|
|
89
|
+
"."
|
|
90
|
+
]
|
|
91
|
+
}),
|
|
92
|
+
/* @__PURE__ */ n("p", {
|
|
93
|
+
className: "break-all",
|
|
94
|
+
children: [
|
|
95
|
+
"Source ",
|
|
96
|
+
a?.facts.source.reference ?? "Unknown",
|
|
97
|
+
"; revision",
|
|
98
|
+
" ",
|
|
99
|
+
a?.facts.source.revision ?? "Unknown",
|
|
100
|
+
"."
|
|
101
|
+
]
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ n("p", { children: [
|
|
104
|
+
"Source validity ",
|
|
105
|
+
a?.facts.sourceValidity.from ?? "Unknown",
|
|
106
|
+
" until",
|
|
107
|
+
" ",
|
|
108
|
+
a?.facts.sourceValidity.until ?? "Unknown",
|
|
109
|
+
" (exclusive)."
|
|
110
|
+
] }),
|
|
111
|
+
/* @__PURE__ */ n("p", {
|
|
112
|
+
className: "break-all",
|
|
113
|
+
children: [
|
|
114
|
+
"Lot ",
|
|
115
|
+
a?.facts.lot?.reference ?? "Unknown",
|
|
116
|
+
"; disposition",
|
|
117
|
+
" ",
|
|
118
|
+
a?.facts.lot?.declaredDisposition ?? "Unknown",
|
|
119
|
+
"."
|
|
120
|
+
]
|
|
121
|
+
}),
|
|
122
|
+
/* @__PURE__ */ n("p", {
|
|
123
|
+
className: "break-all",
|
|
124
|
+
children: [
|
|
125
|
+
"Reported item scan ",
|
|
126
|
+
a?.facts.scanMapping?.reportedItemLabel ?? "Unknown",
|
|
127
|
+
"; bin scan ",
|
|
128
|
+
a?.facts.scanMapping?.reportedBinLabel ?? "Unknown",
|
|
129
|
+
"."
|
|
130
|
+
]
|
|
131
|
+
}),
|
|
132
|
+
/* @__PURE__ */ n("p", { children: [
|
|
133
|
+
"Line revision ",
|
|
134
|
+
r.inventoryUpdatedAt,
|
|
135
|
+
"; cargo ",
|
|
136
|
+
r.cargoUpdatedAt,
|
|
137
|
+
"; warehouse",
|
|
138
|
+
" ",
|
|
139
|
+
r.warehouseUpdatedAt,
|
|
140
|
+
"; bin ",
|
|
141
|
+
r.locationUpdatedAt,
|
|
142
|
+
"."
|
|
143
|
+
] }),
|
|
144
|
+
/* @__PURE__ */ n("p", {
|
|
145
|
+
className: "break-all",
|
|
146
|
+
children: [
|
|
147
|
+
"Cargo ",
|
|
148
|
+
r.cargoItemId,
|
|
149
|
+
"; warehouse ",
|
|
150
|
+
r.warehouseId,
|
|
151
|
+
"; bin ",
|
|
152
|
+
r.locationId,
|
|
153
|
+
"."
|
|
154
|
+
]
|
|
155
|
+
}),
|
|
156
|
+
r.unresolvedObservationIds.map((e) => /* @__PURE__ */ n("p", {
|
|
157
|
+
className: "break-all",
|
|
158
|
+
children: ["Unresolved issue ", e]
|
|
159
|
+
}, e))
|
|
160
|
+
]
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
166
|
+
export { r as PickCapture };
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Button as e, Input as t } from "../ui.js";
|
|
2
|
+
import { PinnedSelect as n, ReusePager as r, ReuseState as i, reuseCard as a } from "../ReuseControls.js";
|
|
3
|
+
import { useState as o } from "react";
|
|
4
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
|
+
//#region src/movethewheels/components/pending-pick/PickLineSelection.tsx
|
|
6
|
+
function l({ inventory: l, sourceId: u, destinationId: d, locked: f, offset: p, onOffset: m, onSelect: h, onRefresh: g, refreshBusy: _ }) {
|
|
7
|
+
let [v, y] = o(""), [b, x] = o(""), S = l.data?.inventoryItems ?? [], C = S.find((e) => e.id === u), w = (e) => `${e.cargoItem?.name ?? "Unknown cargo"} · ${e.cargoItem?.sku ?? "Unknown SKU"} · ${e.warehouse?.name ?? "Unknown warehouse"} · ${e.location?.locationCode ?? "No bin"} · line ${e.id}`, T = S.filter((e) => e.locationId != null).map((e) => ({
|
|
8
|
+
id: e.id,
|
|
9
|
+
label: w(e)
|
|
10
|
+
})), E = S.filter((e) => e.id !== u && e.locationId != null && (!C || e.cargoItemId === C.cargoItemId && e.warehouseId === C.warehouseId && e.locationId !== C.locationId)).map((e) => ({
|
|
11
|
+
id: e.id,
|
|
12
|
+
label: w(e)
|
|
13
|
+
}));
|
|
14
|
+
u && !T.some((e) => e.id === u) && T.unshift({
|
|
15
|
+
id: u,
|
|
16
|
+
label: `Known source line ${u}`
|
|
17
|
+
}), d && !E.some((e) => e.id === d) && E.unshift({
|
|
18
|
+
id: d,
|
|
19
|
+
label: `Known staging line ${d}`
|
|
20
|
+
});
|
|
21
|
+
let D = l.data ? {
|
|
22
|
+
total: l.data.inventoryItemsCount,
|
|
23
|
+
limit: 25,
|
|
24
|
+
offset: p,
|
|
25
|
+
hasMore: p + S.length < l.data.inventoryItemsCount,
|
|
26
|
+
nextOffset: p + 25
|
|
27
|
+
} : void 0;
|
|
28
|
+
return /* @__PURE__ */ c("section", {
|
|
29
|
+
className: a,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ s("p", { children: "This records a plan needing review. It does not reserve stock, authorize handling, or record movement." }),
|
|
32
|
+
/* @__PURE__ */ s(i, {
|
|
33
|
+
loading: l.loading,
|
|
34
|
+
error: l.error
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ s(n, {
|
|
37
|
+
label: "Source inventory line",
|
|
38
|
+
value: u,
|
|
39
|
+
options: T,
|
|
40
|
+
disabled: f,
|
|
41
|
+
onChange: (e) => h("source", e)
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ s(n, {
|
|
44
|
+
label: "Staging inventory line",
|
|
45
|
+
value: d,
|
|
46
|
+
options: E,
|
|
47
|
+
disabled: f || !u,
|
|
48
|
+
onChange: (e) => h("destination", e)
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ c("div", {
|
|
51
|
+
className: "grid gap-3 sm:grid-cols-2",
|
|
52
|
+
children: [/* @__PURE__ */ c("label", { children: [
|
|
53
|
+
"Known source line ID",
|
|
54
|
+
/* @__PURE__ */ s(t, {
|
|
55
|
+
value: v,
|
|
56
|
+
maxLength: 255,
|
|
57
|
+
disabled: f,
|
|
58
|
+
onChange: (e) => y(e.target.value)
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ s(e, {
|
|
61
|
+
type: "button",
|
|
62
|
+
variant: "outline",
|
|
63
|
+
disabled: f || !v.trim(),
|
|
64
|
+
onClick: () => h("source", v.trim()),
|
|
65
|
+
children: "Choose exact source"
|
|
66
|
+
})
|
|
67
|
+
] }), /* @__PURE__ */ c("label", { children: [
|
|
68
|
+
"Known staging line ID",
|
|
69
|
+
/* @__PURE__ */ s(t, {
|
|
70
|
+
value: b,
|
|
71
|
+
maxLength: 255,
|
|
72
|
+
disabled: f || !u,
|
|
73
|
+
onChange: (e) => x(e.target.value)
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ s(e, {
|
|
76
|
+
type: "button",
|
|
77
|
+
variant: "outline",
|
|
78
|
+
disabled: f || !u || !b.trim(),
|
|
79
|
+
onClick: () => h("destination", b.trim()),
|
|
80
|
+
children: "Choose exact staging line"
|
|
81
|
+
})
|
|
82
|
+
] })]
|
|
83
|
+
}),
|
|
84
|
+
/* @__PURE__ */ c("p", {
|
|
85
|
+
className: "break-all text-sm",
|
|
86
|
+
children: [
|
|
87
|
+
"Selected source ",
|
|
88
|
+
u || "None",
|
|
89
|
+
"; staging ",
|
|
90
|
+
d || "None",
|
|
91
|
+
"."
|
|
92
|
+
]
|
|
93
|
+
}),
|
|
94
|
+
/* @__PURE__ */ s(r, {
|
|
95
|
+
page: D,
|
|
96
|
+
offset: p,
|
|
97
|
+
onChange: m,
|
|
98
|
+
busy: f || l.loading
|
|
99
|
+
}),
|
|
100
|
+
/* @__PURE__ */ s(e, {
|
|
101
|
+
type: "button",
|
|
102
|
+
variant: "outline",
|
|
103
|
+
disabled: _,
|
|
104
|
+
onClick: g,
|
|
105
|
+
children: "Refresh current context and history"
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
//#endregion
|
|
111
|
+
export { l as PickLineSelection };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Button as e } from "../ui.js";
|
|
2
|
+
import { reuseCard as t } from "../ReuseControls.js";
|
|
3
|
+
import { StockFactForm as n } from "./StockFactForm.js";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/movethewheels/components/stock-binding/StockAssessmentDraft.tsx
|
|
6
|
+
function a({ pin: a, mismatch: o, uncertain: s, startDisabled: c, formDisabled: l, onStart: u, onSubmit: d }) {
|
|
7
|
+
return /* @__PURE__ */ i("section", {
|
|
8
|
+
className: t,
|
|
9
|
+
"aria-label": "Record declared source facts",
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ r("h2", {
|
|
12
|
+
className: "text-lg font-semibold",
|
|
13
|
+
children: "Review and record reported facts"
|
|
14
|
+
}),
|
|
15
|
+
/* @__PURE__ */ r("p", {
|
|
16
|
+
className: "text-sm",
|
|
17
|
+
children: "Review this stock line before entering facts. If it or its recorded history changes, start a new draft."
|
|
18
|
+
}),
|
|
19
|
+
a && /* @__PURE__ */ i("p", { children: [
|
|
20
|
+
"Reviewed stock line: ",
|
|
21
|
+
a.label,
|
|
22
|
+
"; after recorded version ",
|
|
23
|
+
a.expectedVersion,
|
|
24
|
+
". Continuity revision: ",
|
|
25
|
+
a.expectedCompositionEpoch,
|
|
26
|
+
"."
|
|
27
|
+
] }),
|
|
28
|
+
o && /* @__PURE__ */ r("p", {
|
|
29
|
+
role: "alert",
|
|
30
|
+
children: "This stock line or its recorded history changed. Refresh and review a new draft. Unsaved fields are cleared; the original uncertain request is kept for retry."
|
|
31
|
+
}),
|
|
32
|
+
s && /* @__PURE__ */ r("p", { children: "Check history and retry or discard the uncertain request before starting a new draft." }),
|
|
33
|
+
/* @__PURE__ */ r(e, {
|
|
34
|
+
type: "button",
|
|
35
|
+
variant: "outline",
|
|
36
|
+
disabled: c,
|
|
37
|
+
onClick: u,
|
|
38
|
+
children: "Review stock line and start a draft"
|
|
39
|
+
}),
|
|
40
|
+
a && !o && /* @__PURE__ */ r(n, {
|
|
41
|
+
busy: l,
|
|
42
|
+
onSubmit: d
|
|
43
|
+
}, a.generation)
|
|
44
|
+
]
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { a as StockAssessmentDraft };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Button as e } from "../ui.js";
|
|
2
|
+
import { ReusePager as t, ReuseState as n, reuseCard as r } from "../ReuseControls.js";
|
|
3
|
+
import { stockCompletenessLabel as i } from "../../utils/stockBindingLabels.js";
|
|
4
|
+
import { StockAssessmentSummary as a } from "./StockAssessmentSummary.js";
|
|
5
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
//#region src/movethewheels/components/stock-binding/StockAssessmentHistory.tsx
|
|
7
|
+
function l({ query: l, current: u, selected: d, onSelect: f, offset: p, onPage: m, busy: h }) {
|
|
8
|
+
let g = l.data?.mtwStockBindingAssessmentPage;
|
|
9
|
+
return /* @__PURE__ */ c("section", {
|
|
10
|
+
className: r,
|
|
11
|
+
"aria-label": "Immutable source assessment history",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ s("h2", {
|
|
14
|
+
className: "text-lg font-semibold",
|
|
15
|
+
children: "Recorded assessment history"
|
|
16
|
+
}),
|
|
17
|
+
/* @__PURE__ */ s("p", { children: "History follows recorded order, including future effective dates." }),
|
|
18
|
+
/* @__PURE__ */ s(n, { ...l }),
|
|
19
|
+
g?.items.length === 0 && /* @__PURE__ */ s("p", { children: "No assessments recorded for this inventory line." }),
|
|
20
|
+
g?.items.map((t) => /* @__PURE__ */ c("div", {
|
|
21
|
+
className: "flex flex-wrap items-center gap-3 rounded border p-3",
|
|
22
|
+
children: [/* @__PURE__ */ c("p", { children: [
|
|
23
|
+
"Version ",
|
|
24
|
+
t.version,
|
|
25
|
+
"; effective ",
|
|
26
|
+
t.effectiveAt,
|
|
27
|
+
"; recorded ",
|
|
28
|
+
t.recordedAt,
|
|
29
|
+
";",
|
|
30
|
+
" ",
|
|
31
|
+
i(t.completeness.status),
|
|
32
|
+
". Continuity revision",
|
|
33
|
+
" ",
|
|
34
|
+
t.capturedCompositionEpoch ?? "not recorded",
|
|
35
|
+
"."
|
|
36
|
+
] }), /* @__PURE__ */ s(e, {
|
|
37
|
+
type: "button",
|
|
38
|
+
variant: "outline",
|
|
39
|
+
disabled: h,
|
|
40
|
+
onClick: () => f(t),
|
|
41
|
+
children: "Inspect recorded version"
|
|
42
|
+
})]
|
|
43
|
+
}, t.id)),
|
|
44
|
+
/* @__PURE__ */ s(t, {
|
|
45
|
+
page: g,
|
|
46
|
+
offset: p,
|
|
47
|
+
onChange: m,
|
|
48
|
+
busy: h || l.loading
|
|
49
|
+
}),
|
|
50
|
+
d && /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("p", {
|
|
51
|
+
className: "text-sm",
|
|
52
|
+
children: "The selected recorded version stays available as you browse history."
|
|
53
|
+
}), /* @__PURE__ */ s(a, {
|
|
54
|
+
assessment: d,
|
|
55
|
+
current: u
|
|
56
|
+
})] })
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { l as StockAssessmentHistory };
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { stockCompletenessLabel as e, stockContinuityLabel as t, stockFactLabel as n, stockMissingFactLabel as r } from "../../utils/stockBindingLabels.js";
|
|
2
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
3
|
+
//#region src/movethewheels/components/stock-binding/StockAssessmentSummary.tsx
|
|
4
|
+
function o({ assessment: o, current: s }) {
|
|
5
|
+
let { facts: c, criticalOwnerSnapshot: l, capturedStockQuantityAudit: u } = o, d = (e) => e ?? "Unknown";
|
|
6
|
+
return /* @__PURE__ */ a("article", {
|
|
7
|
+
className: "space-y-3 rounded border p-4",
|
|
8
|
+
children: [
|
|
9
|
+
/* @__PURE__ */ a("h3", {
|
|
10
|
+
className: "font-semibold",
|
|
11
|
+
children: [
|
|
12
|
+
"Recorded version ",
|
|
13
|
+
o.version,
|
|
14
|
+
" — ",
|
|
15
|
+
l.warehouseCode,
|
|
16
|
+
" / ",
|
|
17
|
+
l.cargoSku,
|
|
18
|
+
" /",
|
|
19
|
+
" ",
|
|
20
|
+
l.locationId === null ? "Unbinned" : d(l.locationCode)
|
|
21
|
+
]
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ i("p", { children: t(o, s) }),
|
|
24
|
+
/* @__PURE__ */ a("p", { children: [
|
|
25
|
+
"Effective ",
|
|
26
|
+
o.effectiveAt,
|
|
27
|
+
"; recorded ",
|
|
28
|
+
o.recordedAt,
|
|
29
|
+
"."
|
|
30
|
+
] }),
|
|
31
|
+
/* @__PURE__ */ a("p", { children: [e(o.completeness.status), ". These are recorded declarations; they do not verify scans or authorize picking."] }),
|
|
32
|
+
o.completeness.reasons.length > 0 && /* @__PURE__ */ i("ul", {
|
|
33
|
+
className: "list-disc pl-5",
|
|
34
|
+
children: o.completeness.reasons.map((e) => /* @__PURE__ */ i("li", { children: r(e) }, e))
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ a("p", { children: [
|
|
37
|
+
"Scope ",
|
|
38
|
+
n(c.scope),
|
|
39
|
+
"; source ",
|
|
40
|
+
d(c.source.reference),
|
|
41
|
+
" / revision",
|
|
42
|
+
" ",
|
|
43
|
+
d(c.source.revision),
|
|
44
|
+
"."
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ a("p", { children: [
|
|
47
|
+
"Count unit ",
|
|
48
|
+
n(c.countUnit?.kind),
|
|
49
|
+
"; source",
|
|
50
|
+
" ",
|
|
51
|
+
d(c.countUnit?.reference),
|
|
52
|
+
" / ",
|
|
53
|
+
d(c.countUnit?.revision),
|
|
54
|
+
"."
|
|
55
|
+
] }),
|
|
56
|
+
/* @__PURE__ */ a("p", { children: [
|
|
57
|
+
"Reported item ",
|
|
58
|
+
d(c.scanMapping?.reportedItemLabel),
|
|
59
|
+
"; bin",
|
|
60
|
+
" ",
|
|
61
|
+
d(c.scanMapping?.reportedBinLabel),
|
|
62
|
+
"; mapping",
|
|
63
|
+
" ",
|
|
64
|
+
d(c.scanMapping?.mappingReference),
|
|
65
|
+
" / ",
|
|
66
|
+
d(c.scanMapping?.mappingRevision),
|
|
67
|
+
"."
|
|
68
|
+
] }),
|
|
69
|
+
/* @__PURE__ */ a("p", { children: [
|
|
70
|
+
"Declared lot requirement ",
|
|
71
|
+
n(c.declaredLotPolicy),
|
|
72
|
+
"; lot",
|
|
73
|
+
" ",
|
|
74
|
+
d(c.lot?.reference),
|
|
75
|
+
" / ",
|
|
76
|
+
d(c.lot?.revision),
|
|
77
|
+
"; disposition",
|
|
78
|
+
" ",
|
|
79
|
+
n(c.lot?.declaredDisposition),
|
|
80
|
+
"."
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ a("p", { children: [
|
|
83
|
+
"Lot expiry policy ",
|
|
84
|
+
n(c.lot?.expiry.policy),
|
|
85
|
+
"; cutoff",
|
|
86
|
+
" ",
|
|
87
|
+
d(c.lot?.expiry.expiresAt),
|
|
88
|
+
"; source ",
|
|
89
|
+
d(c.lot?.expiry.sourceReference),
|
|
90
|
+
" /",
|
|
91
|
+
" ",
|
|
92
|
+
d(c.lot?.expiry.sourceRevision),
|
|
93
|
+
"."
|
|
94
|
+
] }),
|
|
95
|
+
/* @__PURE__ */ a("p", { children: [
|
|
96
|
+
"Physical source validity ",
|
|
97
|
+
n(c.sourceValidity.policy),
|
|
98
|
+
";",
|
|
99
|
+
" ",
|
|
100
|
+
d(c.sourceValidity.from),
|
|
101
|
+
"–",
|
|
102
|
+
d(c.sourceValidity.until),
|
|
103
|
+
"; source",
|
|
104
|
+
" ",
|
|
105
|
+
d(c.sourceValidity.sourceReference),
|
|
106
|
+
" / ",
|
|
107
|
+
d(c.sourceValidity.sourceRevision),
|
|
108
|
+
"."
|
|
109
|
+
] }),
|
|
110
|
+
/* @__PURE__ */ a("details", {
|
|
111
|
+
className: "space-y-2",
|
|
112
|
+
children: [
|
|
113
|
+
/* @__PURE__ */ i("summary", { children: "Captured owner and evidence audit" }),
|
|
114
|
+
/* @__PURE__ */ a("p", { children: [
|
|
115
|
+
"Recorded by ",
|
|
116
|
+
o.createdBy,
|
|
117
|
+
"; actor provenance ",
|
|
118
|
+
o.actorProvenance,
|
|
119
|
+
"."
|
|
120
|
+
] }),
|
|
121
|
+
/* @__PURE__ */ i("p", { children: "These fixed captured labels and revisions are historical; they are not substituted from the current inventory record." }),
|
|
122
|
+
/* @__PURE__ */ a("p", { children: [
|
|
123
|
+
"Warehouse status ",
|
|
124
|
+
l.warehouseStatus,
|
|
125
|
+
"; location status ",
|
|
126
|
+
d(l.locationStatus),
|
|
127
|
+
"; cargo hazardous ",
|
|
128
|
+
String(l.cargoHazardous),
|
|
129
|
+
", fragile ",
|
|
130
|
+
String(l.cargoFragile),
|
|
131
|
+
", temperature controlled ",
|
|
132
|
+
String(l.cargoTemperatureControlled),
|
|
133
|
+
"."
|
|
134
|
+
] }),
|
|
135
|
+
/* @__PURE__ */ a("p", { children: [
|
|
136
|
+
"At capture: on hand ",
|
|
137
|
+
u.onHand,
|
|
138
|
+
", available ",
|
|
139
|
+
u.available,
|
|
140
|
+
", allocated",
|
|
141
|
+
" ",
|
|
142
|
+
u.allocated,
|
|
143
|
+
", damaged ",
|
|
144
|
+
u.damaged,
|
|
145
|
+
". This assessment does not change balances."
|
|
146
|
+
] }),
|
|
147
|
+
/* @__PURE__ */ a("p", { children: [
|
|
148
|
+
"Inventory ",
|
|
149
|
+
o.inventoryItemId,
|
|
150
|
+
"; cargo ",
|
|
151
|
+
o.capturedCargoItemId,
|
|
152
|
+
"; warehouse",
|
|
153
|
+
" ",
|
|
154
|
+
o.capturedWarehouseId,
|
|
155
|
+
"; location ",
|
|
156
|
+
d(o.capturedLocationId),
|
|
157
|
+
"."
|
|
158
|
+
] }),
|
|
159
|
+
/* @__PURE__ */ a("p", { children: [
|
|
160
|
+
"Revisions: inventory ",
|
|
161
|
+
o.capturedInventoryUpdatedAt,
|
|
162
|
+
"; cargo",
|
|
163
|
+
" ",
|
|
164
|
+
o.capturedCargoUpdatedAt,
|
|
165
|
+
"; warehouse ",
|
|
166
|
+
o.capturedWarehouseUpdatedAt,
|
|
167
|
+
"; location ",
|
|
168
|
+
d(o.capturedLocationUpdatedAt),
|
|
169
|
+
"."
|
|
170
|
+
] }),
|
|
171
|
+
/* @__PURE__ */ a("p", { children: [
|
|
172
|
+
"Assessment ",
|
|
173
|
+
o.id,
|
|
174
|
+
"; predecessor ",
|
|
175
|
+
d(o.previousAssessmentId),
|
|
176
|
+
"; critical fingerprint ",
|
|
177
|
+
o.criticalFingerprint,
|
|
178
|
+
"; on behalf of ",
|
|
179
|
+
d(o.onBehalfOf),
|
|
180
|
+
"."
|
|
181
|
+
] }),
|
|
182
|
+
o.evidence.map((e) => /* @__PURE__ */ a("p", { children: [
|
|
183
|
+
"File ",
|
|
184
|
+
e.fileId,
|
|
185
|
+
"; exact version ",
|
|
186
|
+
e.versionId,
|
|
187
|
+
"; SHA-256 ",
|
|
188
|
+
e.sha256Hash,
|
|
189
|
+
"; point-in-time Files receipt ",
|
|
190
|
+
e.checkedAt,
|
|
191
|
+
"."
|
|
192
|
+
] }, e.versionId))
|
|
193
|
+
]
|
|
194
|
+
})
|
|
195
|
+
]
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
//#endregion
|
|
199
|
+
export { o as StockAssessmentSummary };
|