@burdenoff/microfe-movethewheels 2026.930.5 → 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.
- 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/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 +19 -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/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,191 @@
|
|
|
1
|
+
import { Button as e } from "../ui.js";
|
|
2
|
+
import { FreightCurrency as t, FreightSelect as n, FreightText as r } from "./FreightFields.js";
|
|
3
|
+
import { fixedFreightMinor as i, freightCategories as a, freightLabel as o, freightMoney as s, freightNullable as c, isFreightDecimalZero as l } from "../../utils/freightDraft.js";
|
|
4
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
|
+
//#region src/movethewheels/components/freight-cost/FreightLineEditor.tsx
|
|
6
|
+
function f({ line: f, others: p, onChange: m, onRemove: h }) {
|
|
7
|
+
let g = (e) => m({
|
|
8
|
+
...f,
|
|
9
|
+
...e
|
|
10
|
+
});
|
|
11
|
+
return /* @__PURE__ */ d("fieldset", {
|
|
12
|
+
className: "min-w-0 space-y-4 rounded border p-4",
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ u("legend", {
|
|
15
|
+
className: "px-1 font-medium",
|
|
16
|
+
children: f.description || "Cost item"
|
|
17
|
+
}),
|
|
18
|
+
/* @__PURE__ */ d("div", {
|
|
19
|
+
className: "grid gap-3 md:grid-cols-2",
|
|
20
|
+
children: [/* @__PURE__ */ u(r, {
|
|
21
|
+
label: "Cost description",
|
|
22
|
+
value: f.description,
|
|
23
|
+
required: !0,
|
|
24
|
+
onChange: (e) => g({ description: e })
|
|
25
|
+
}), /* @__PURE__ */ u(n, {
|
|
26
|
+
label: "Cost category",
|
|
27
|
+
value: f.category,
|
|
28
|
+
onChange: (e) => {
|
|
29
|
+
let t = a.find((t) => t === e);
|
|
30
|
+
t && g({ category: t });
|
|
31
|
+
},
|
|
32
|
+
children: a.map((e) => /* @__PURE__ */ u("option", {
|
|
33
|
+
value: e,
|
|
34
|
+
children: o(e)
|
|
35
|
+
}, e))
|
|
36
|
+
})]
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ d(n, {
|
|
39
|
+
label: "How is this cost included?",
|
|
40
|
+
value: f.disposition,
|
|
41
|
+
onChange: (e) => {
|
|
42
|
+
(e === "ADDITIONAL" || e === "UNKNOWN" || e === "EXCLUDED" || e === "INCLUDED_IN_LINE") && g({
|
|
43
|
+
disposition: e,
|
|
44
|
+
inclusionParentLineId: null
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ u("option", {
|
|
49
|
+
value: "UNKNOWN",
|
|
50
|
+
children: "Unknown"
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ u("option", {
|
|
53
|
+
value: "ADDITIONAL",
|
|
54
|
+
children: "Added to the total"
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ u("option", {
|
|
57
|
+
value: "INCLUDED_IN_LINE",
|
|
58
|
+
children: "Included in another cost item"
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ u("option", {
|
|
61
|
+
value: "EXCLUDED",
|
|
62
|
+
children: "Excluded from this estimate"
|
|
63
|
+
})
|
|
64
|
+
]
|
|
65
|
+
}),
|
|
66
|
+
f.disposition === "INCLUDED_IN_LINE" && /* @__PURE__ */ d(n, {
|
|
67
|
+
label: "Included in cost item",
|
|
68
|
+
value: f.inclusionParentLineId ?? "",
|
|
69
|
+
onChange: (e) => g({ inclusionParentLineId: c(e) }),
|
|
70
|
+
children: [/* @__PURE__ */ u("option", {
|
|
71
|
+
value: "",
|
|
72
|
+
children: "Choose the sourced parent cost"
|
|
73
|
+
}), p.filter((e) => e.id !== f.id && e.disposition === "ADDITIONAL").map((e) => /* @__PURE__ */ u("option", {
|
|
74
|
+
value: e.id,
|
|
75
|
+
children: e.description
|
|
76
|
+
}, e.id))]
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ u(t, {
|
|
79
|
+
label: "Cost currency convention",
|
|
80
|
+
value: f.currency,
|
|
81
|
+
onChange: (e) => g({
|
|
82
|
+
currency: e,
|
|
83
|
+
amountMinor: null
|
|
84
|
+
})
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ d(n, {
|
|
87
|
+
label: "Amount source",
|
|
88
|
+
value: f.amountBasis,
|
|
89
|
+
onChange: (e) => {
|
|
90
|
+
(e === "UNKNOWN" || e === "CALCULATED" || e === "SOURCED_FIXED") && g({
|
|
91
|
+
amountBasis: e,
|
|
92
|
+
amountMinor: null,
|
|
93
|
+
quantity: null,
|
|
94
|
+
unit: null,
|
|
95
|
+
unitRateMajor: null
|
|
96
|
+
});
|
|
97
|
+
},
|
|
98
|
+
children: [
|
|
99
|
+
/* @__PURE__ */ u("option", {
|
|
100
|
+
value: "UNKNOWN",
|
|
101
|
+
children: "Amount unknown"
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ u("option", {
|
|
104
|
+
value: "SOURCED_FIXED",
|
|
105
|
+
children: "Amount stated by the source"
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ u("option", {
|
|
108
|
+
value: "CALCULATED",
|
|
109
|
+
children: "Quantity × sourced rate"
|
|
110
|
+
})
|
|
111
|
+
]
|
|
112
|
+
}),
|
|
113
|
+
f.amountBasis === "SOURCED_FIXED" && /* @__PURE__ */ d("label", {
|
|
114
|
+
className: "block text-sm",
|
|
115
|
+
children: ["Sourced amount", /* @__PURE__ */ u("input", {
|
|
116
|
+
className: "mt-1 min-h-11 w-full rounded border p-2",
|
|
117
|
+
"aria-label": "Sourced amount",
|
|
118
|
+
defaultValue: f.amountMinor === null || f.amountMinor === void 0 ? "" : s(f.amountMinor, f.currency.minorUnitDigits),
|
|
119
|
+
onChange: (e) => {
|
|
120
|
+
try {
|
|
121
|
+
g({ amountMinor: i(e.target.value, f.currency.minorUnitDigits) }), e.target.setCustomValidity("");
|
|
122
|
+
} catch (t) {
|
|
123
|
+
g({ amountMinor: null }), e.target.setCustomValidity(t instanceof Error ? t.message : "Invalid amount");
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}, `${f.currency.code}:${f.currency.minorUnitDigits}:${f.amountBasis}`)]
|
|
127
|
+
}),
|
|
128
|
+
f.amountBasis === "CALCULATED" && /* @__PURE__ */ d("div", {
|
|
129
|
+
className: "grid gap-3 md:grid-cols-3",
|
|
130
|
+
children: [
|
|
131
|
+
/* @__PURE__ */ u(r, {
|
|
132
|
+
label: "Quantity (blank means unknown)",
|
|
133
|
+
value: f.quantity ?? "",
|
|
134
|
+
onChange: (e) => g({
|
|
135
|
+
quantity: c(e),
|
|
136
|
+
amountMinor: l(e) ? "0" : null
|
|
137
|
+
})
|
|
138
|
+
}),
|
|
139
|
+
/* @__PURE__ */ u(r, {
|
|
140
|
+
label: "Quantity unit",
|
|
141
|
+
value: f.unit ?? "",
|
|
142
|
+
onChange: (e) => g({ unit: c(e) })
|
|
143
|
+
}),
|
|
144
|
+
/* @__PURE__ */ u(r, {
|
|
145
|
+
label: "Rate per quantity unit",
|
|
146
|
+
value: f.unitRateMajor ?? "",
|
|
147
|
+
onChange: (e) => g({ unitRateMajor: c(e) })
|
|
148
|
+
})
|
|
149
|
+
]
|
|
150
|
+
}),
|
|
151
|
+
(l(f.quantity) || f.amountMinor === "0") && /* @__PURE__ */ u(r, {
|
|
152
|
+
label: "Reason for the sourced zero",
|
|
153
|
+
value: f.zeroReason ?? "",
|
|
154
|
+
onChange: (e) => g({ zeroReason: c(e) })
|
|
155
|
+
}),
|
|
156
|
+
/* @__PURE__ */ d("div", {
|
|
157
|
+
className: "grid gap-3 md:grid-cols-2",
|
|
158
|
+
children: [
|
|
159
|
+
/* @__PURE__ */ u(r, {
|
|
160
|
+
label: "Payer reference",
|
|
161
|
+
value: f.payerReference ?? "",
|
|
162
|
+
onChange: (e) => g({ payerReference: c(e) })
|
|
163
|
+
}),
|
|
164
|
+
/* @__PURE__ */ u(r, {
|
|
165
|
+
label: "Payer name",
|
|
166
|
+
value: f.payerLabel ?? "",
|
|
167
|
+
onChange: (e) => g({ payerLabel: c(e) })
|
|
168
|
+
}),
|
|
169
|
+
/* @__PURE__ */ u(r, {
|
|
170
|
+
label: "Cost inclusion source",
|
|
171
|
+
value: f.sourceReference ?? "",
|
|
172
|
+
onChange: (e) => g({ sourceReference: c(e) })
|
|
173
|
+
}),
|
|
174
|
+
/* @__PURE__ */ u(r, {
|
|
175
|
+
label: "Cost source version",
|
|
176
|
+
value: f.sourceRevision ?? "",
|
|
177
|
+
onChange: (e) => g({ sourceRevision: c(e) })
|
|
178
|
+
})
|
|
179
|
+
]
|
|
180
|
+
}),
|
|
181
|
+
/* @__PURE__ */ u(e, {
|
|
182
|
+
type: "button",
|
|
183
|
+
variant: "outline",
|
|
184
|
+
onClick: h,
|
|
185
|
+
children: "Remove cost item"
|
|
186
|
+
})
|
|
187
|
+
]
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
//#endregion
|
|
191
|
+
export { f as FreightLineEditor };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { FreightSelect as e, FreightText as t } from "./FreightFields.js";
|
|
2
|
+
import { freightLabel as n, freightNullable as r } from "../../utils/freightDraft.js";
|
|
3
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
+
//#region src/movethewheels/components/freight-cost/FreightScopeEditor.tsx
|
|
5
|
+
function o({ value: o, onChange: s }) {
|
|
6
|
+
let c = (e, t) => s(o.map((n) => n.category === e ? {
|
|
7
|
+
...n,
|
|
8
|
+
...t
|
|
9
|
+
} : n));
|
|
10
|
+
return /* @__PURE__ */ a("section", {
|
|
11
|
+
className: "space-y-4",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ i("h3", {
|
|
14
|
+
className: "font-semibold",
|
|
15
|
+
children: "Costs in scope"
|
|
16
|
+
}),
|
|
17
|
+
/* @__PURE__ */ i("p", {
|
|
18
|
+
className: "text-sm",
|
|
19
|
+
children: "Declare what the source requires or excludes. Missing scope remains unknown."
|
|
20
|
+
}),
|
|
21
|
+
o.map((o) => /* @__PURE__ */ a("fieldset", {
|
|
22
|
+
className: "space-y-3 rounded border p-3",
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ i("legend", { children: n(o.category) }),
|
|
25
|
+
/* @__PURE__ */ a(e, {
|
|
26
|
+
label: `${n(o.category)} scope`,
|
|
27
|
+
value: o.status,
|
|
28
|
+
onChange: (e) => {
|
|
29
|
+
(e === "REQUIRED" || e === "NOT_APPLICABLE" || e === "UNKNOWN") && c(o.category, { status: e });
|
|
30
|
+
},
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ i("option", {
|
|
33
|
+
value: "UNKNOWN",
|
|
34
|
+
children: "Unknown"
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ i("option", {
|
|
37
|
+
value: "REQUIRED",
|
|
38
|
+
children: "Required cost"
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ i("option", {
|
|
41
|
+
value: "NOT_APPLICABLE",
|
|
42
|
+
children: "Source says not applicable"
|
|
43
|
+
})
|
|
44
|
+
]
|
|
45
|
+
}),
|
|
46
|
+
o.status !== "UNKNOWN" && /* @__PURE__ */ a("div", {
|
|
47
|
+
className: "grid gap-3 md:grid-cols-2",
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ i(t, {
|
|
50
|
+
label: `${n(o.category)} source`,
|
|
51
|
+
value: o.sourceReference ?? "",
|
|
52
|
+
onChange: (e) => c(o.category, { sourceReference: r(e) })
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ i(t, {
|
|
55
|
+
label: `${n(o.category)} source version`,
|
|
56
|
+
value: o.sourceRevision ?? "",
|
|
57
|
+
onChange: (e) => c(o.category, { sourceRevision: r(e) })
|
|
58
|
+
}),
|
|
59
|
+
o.status === "NOT_APPLICABLE" && /* @__PURE__ */ i(t, {
|
|
60
|
+
label: `${n(o.category)} exclusion reason`,
|
|
61
|
+
value: o.reason ?? "",
|
|
62
|
+
onChange: (e) => c(o.category, { reason: r(e) })
|
|
63
|
+
})
|
|
64
|
+
]
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
}, o.category))
|
|
68
|
+
]
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
export { o as FreightScopeEditor };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { freightMoney as e } from "../../utils/freightDraft.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/movethewheels/components/freight-cost/FreightTotals.tsx
|
|
4
|
+
function r({ value: r, currency: i }) {
|
|
5
|
+
return /* @__PURE__ */ n("section", {
|
|
6
|
+
className: "space-y-3 rounded border p-4",
|
|
7
|
+
"aria-label": "Freight cost preview",
|
|
8
|
+
children: [
|
|
9
|
+
/* @__PURE__ */ t("h3", {
|
|
10
|
+
className: "text-lg font-semibold",
|
|
11
|
+
children: "Cost preview"
|
|
12
|
+
}),
|
|
13
|
+
/* @__PURE__ */ n("p", { children: [r.completeRelativeToDeclarations ? "Complete against the recorded cost scope" : "Missing cost facts remain", "."] }),
|
|
14
|
+
/* @__PURE__ */ n("p", {
|
|
15
|
+
className: "font-medium",
|
|
16
|
+
children: [
|
|
17
|
+
"Reporting total:",
|
|
18
|
+
" ",
|
|
19
|
+
i ? `${e(r.reportingTotalMinor, i.minorUnitDigits)} ${i.code}` : "No reporting currency recorded"
|
|
20
|
+
]
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ t("p", {
|
|
23
|
+
className: "text-sm",
|
|
24
|
+
children: "A complete recorded scope does not establish an all-in price, capacity or quote acceptance."
|
|
25
|
+
}),
|
|
26
|
+
r.subtotals.map((t) => /* @__PURE__ */ n("div", {
|
|
27
|
+
className: "rounded border p-3",
|
|
28
|
+
children: [/* @__PURE__ */ n("p", { children: [
|
|
29
|
+
t.payerLabel ?? "Unknown payer",
|
|
30
|
+
" — ",
|
|
31
|
+
t.currency.code
|
|
32
|
+
] }), /* @__PURE__ */ n("p", { children: [
|
|
33
|
+
"Known subtotal: ",
|
|
34
|
+
e(t.knownAmountMinor, t.currency.minorUnitDigits),
|
|
35
|
+
"; complete subtotal:",
|
|
36
|
+
" ",
|
|
37
|
+
e(t.totalAmountMinor, t.currency.minorUnitDigits)
|
|
38
|
+
] })]
|
|
39
|
+
}, JSON.stringify([t.currency, t.payerReference]))),
|
|
40
|
+
r.reasons.length > 0 && /* @__PURE__ */ n("div", { children: [/* @__PURE__ */ t("h4", {
|
|
41
|
+
className: "font-semibold",
|
|
42
|
+
children: "Missing facts"
|
|
43
|
+
}), /* @__PURE__ */ t("ul", {
|
|
44
|
+
className: "list-disc pl-5",
|
|
45
|
+
children: r.reasons.map((e) => /* @__PURE__ */ t("li", { children: e.detail }, JSON.stringify([
|
|
46
|
+
e.code,
|
|
47
|
+
e.lineId,
|
|
48
|
+
e.detail
|
|
49
|
+
])))
|
|
50
|
+
})] }),
|
|
51
|
+
r.warnings.length > 0 && /* @__PURE__ */ n("div", { children: [/* @__PURE__ */ t("h4", {
|
|
52
|
+
className: "font-semibold",
|
|
53
|
+
children: "Rounding notes"
|
|
54
|
+
}), /* @__PURE__ */ t("ul", {
|
|
55
|
+
className: "list-disc pl-5",
|
|
56
|
+
children: r.warnings.map((e) => /* @__PURE__ */ t("li", { children: e.detail }, JSON.stringify([
|
|
57
|
+
e.code,
|
|
58
|
+
e.lineId,
|
|
59
|
+
e.detail
|
|
60
|
+
])))
|
|
61
|
+
})] })
|
|
62
|
+
]
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
export { r as FreightTotals };
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { Button as e } from "../ui.js";
|
|
2
|
+
import { localProcedureInstant as t, stepLabel as n } from "../../utils/procedureInput.js";
|
|
3
|
+
import { reuseSelect as r } from "../ReuseControls.js";
|
|
4
|
+
import { ProcedureField as i } from "./ProcedureFields.js";
|
|
5
|
+
import { ContainerEvidencePicker as a } from "../ContainerEvidencePicker.js";
|
|
6
|
+
import { useState as o } from "react";
|
|
7
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
|
+
//#region src/movethewheels/components/logistics-procedure/ProcedureDecisionForm.tsx
|
|
9
|
+
function u({ executionId: t, step: s, previous: u, busy: d, onSave: f }) {
|
|
10
|
+
let [p, m] = o("ISSUE"), [h, g] = o(""), [_, v] = o([]), [y, b] = o(null);
|
|
11
|
+
return /* @__PURE__ */ l("form", {
|
|
12
|
+
className: "space-y-3",
|
|
13
|
+
onSubmit: (e) => {
|
|
14
|
+
e.preventDefault(), b(null), f({
|
|
15
|
+
executionId: t,
|
|
16
|
+
step: s,
|
|
17
|
+
expectedVersion: u?.version ?? 0,
|
|
18
|
+
expectedPreviousId: u?.id ?? null,
|
|
19
|
+
kind: p,
|
|
20
|
+
note: h,
|
|
21
|
+
evidence: p === "DONE" ? _.map(({ fileId: e, versionId: t }) => ({
|
|
22
|
+
fileId: e,
|
|
23
|
+
versionId: t
|
|
24
|
+
})) : []
|
|
25
|
+
}).catch((e) => b(e instanceof Error ? e.message : "Unable to record this check."));
|
|
26
|
+
},
|
|
27
|
+
children: [/* @__PURE__ */ l("fieldset", {
|
|
28
|
+
disabled: d,
|
|
29
|
+
className: "space-y-3",
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ c("h3", {
|
|
32
|
+
className: "font-medium",
|
|
33
|
+
children: n[s]
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ l("p", { children: [
|
|
36
|
+
"Reviewed predecessor:",
|
|
37
|
+
" ",
|
|
38
|
+
u ? `v${u.version}: ${u.kind}` : "No decision",
|
|
39
|
+
"."
|
|
40
|
+
] }),
|
|
41
|
+
/* @__PURE__ */ l("label", {
|
|
42
|
+
className: "block",
|
|
43
|
+
children: ["Reported result", /* @__PURE__ */ l("select", {
|
|
44
|
+
className: r,
|
|
45
|
+
value: p,
|
|
46
|
+
onChange: (e) => m(e.target.value === "DONE" ? "DONE" : "ISSUE"),
|
|
47
|
+
children: [/* @__PURE__ */ c("option", {
|
|
48
|
+
value: "ISSUE",
|
|
49
|
+
children: "Issue / incomplete review"
|
|
50
|
+
}), /* @__PURE__ */ c("option", {
|
|
51
|
+
value: "DONE",
|
|
52
|
+
children: "Sourced review recorded"
|
|
53
|
+
})]
|
|
54
|
+
})]
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ c(i, {
|
|
57
|
+
label: "Review note",
|
|
58
|
+
value: h,
|
|
59
|
+
onChange: g,
|
|
60
|
+
maxLength: 2e3
|
|
61
|
+
}),
|
|
62
|
+
p === "DONE" ? /* @__PURE__ */ c(a, {
|
|
63
|
+
value: _,
|
|
64
|
+
onChange: v,
|
|
65
|
+
description: "Exact source versions for this reported check; integrity alone does not certify condition or legal compliance."
|
|
66
|
+
}) : /* @__PURE__ */ c("p", {
|
|
67
|
+
className: "text-sm",
|
|
68
|
+
children: "An issue can be reported without Files. It does not satisfy a required check."
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ c(e, {
|
|
71
|
+
type: "submit",
|
|
72
|
+
disabled: p === "DONE" && !_.length,
|
|
73
|
+
children: "Record check"
|
|
74
|
+
})
|
|
75
|
+
]
|
|
76
|
+
}), y && /* @__PURE__ */ c("p", {
|
|
77
|
+
role: "alert",
|
|
78
|
+
children: y
|
|
79
|
+
})]
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function d({ executionId: n, issue: u, previous: d, busy: f, onSave: p, onRevoke: m }) {
|
|
83
|
+
let [h, g] = o("REJECTED"), [_, v] = o(""), [y, b] = o(""), [x, S] = o(""), [C, w] = o([]), [T, E] = o(null), D = {
|
|
84
|
+
executionId: n,
|
|
85
|
+
stepDecisionId: u.id,
|
|
86
|
+
expectedVersion: d?.version ?? 0,
|
|
87
|
+
expectedPreviousId: d?.id ?? null
|
|
88
|
+
}, O = async (e) => {
|
|
89
|
+
E(null);
|
|
90
|
+
try {
|
|
91
|
+
e ? await m({
|
|
92
|
+
...D,
|
|
93
|
+
reason: x
|
|
94
|
+
}) : await p({
|
|
95
|
+
...D,
|
|
96
|
+
kind: h,
|
|
97
|
+
validFrom: h === "APPROVED" ? t(_) : null,
|
|
98
|
+
validUntil: h === "APPROVED" ? t(y) : null,
|
|
99
|
+
reason: x,
|
|
100
|
+
evidence: h === "APPROVED" ? C.map(({ fileId: e, versionId: t }) => ({
|
|
101
|
+
fileId: e,
|
|
102
|
+
versionId: t
|
|
103
|
+
})) : []
|
|
104
|
+
});
|
|
105
|
+
} catch (e) {
|
|
106
|
+
E(e instanceof Error ? e.message : "Unable to record this review.");
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
return /* @__PURE__ */ l("form", {
|
|
110
|
+
className: "space-y-3",
|
|
111
|
+
onSubmit: (e) => {
|
|
112
|
+
e.preventDefault(), O(!1);
|
|
113
|
+
},
|
|
114
|
+
children: [/* @__PURE__ */ l("fieldset", {
|
|
115
|
+
disabled: f,
|
|
116
|
+
className: "space-y-3",
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ c("h3", {
|
|
119
|
+
className: "font-medium",
|
|
120
|
+
children: "Independent internal deviation review"
|
|
121
|
+
}),
|
|
122
|
+
/* @__PURE__ */ l("p", {
|
|
123
|
+
className: "text-sm",
|
|
124
|
+
children: [
|
|
125
|
+
"A different authorized human reviews issue ",
|
|
126
|
+
u.id,
|
|
127
|
+
". A note cannot waive container condition or lane-specific legal obligations."
|
|
128
|
+
]
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ l("label", {
|
|
131
|
+
className: "block",
|
|
132
|
+
children: ["Review result", /* @__PURE__ */ l("select", {
|
|
133
|
+
className: r,
|
|
134
|
+
value: h,
|
|
135
|
+
onChange: (e) => g(e.target.value === "APPROVED" ? "APPROVED" : "REJECTED"),
|
|
136
|
+
children: [/* @__PURE__ */ c("option", {
|
|
137
|
+
value: "REJECTED",
|
|
138
|
+
children: "Reject deviation"
|
|
139
|
+
}), /* @__PURE__ */ c("option", {
|
|
140
|
+
value: "APPROVED",
|
|
141
|
+
children: "Finite internal approval note"
|
|
142
|
+
})]
|
|
143
|
+
})]
|
|
144
|
+
}),
|
|
145
|
+
/* @__PURE__ */ c(i, {
|
|
146
|
+
label: "Reason",
|
|
147
|
+
value: x,
|
|
148
|
+
onChange: S,
|
|
149
|
+
maxLength: 2e3
|
|
150
|
+
}),
|
|
151
|
+
h === "APPROVED" && /* @__PURE__ */ l(s, { children: [
|
|
152
|
+
/* @__PURE__ */ l("p", { children: [
|
|
153
|
+
"Local zone: ",
|
|
154
|
+
Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
155
|
+
"; exclusive deadline."
|
|
156
|
+
] }),
|
|
157
|
+
/* @__PURE__ */ c(i, {
|
|
158
|
+
label: "Valid from",
|
|
159
|
+
type: "datetime-local",
|
|
160
|
+
value: _,
|
|
161
|
+
onChange: v
|
|
162
|
+
}),
|
|
163
|
+
/* @__PURE__ */ c(i, {
|
|
164
|
+
label: "Valid until",
|
|
165
|
+
type: "datetime-local",
|
|
166
|
+
value: y,
|
|
167
|
+
onChange: b
|
|
168
|
+
}),
|
|
169
|
+
/* @__PURE__ */ c(a, {
|
|
170
|
+
value: C,
|
|
171
|
+
onChange: w,
|
|
172
|
+
description: "Exact evidence for this internal review note; no physical or regulatory waiver."
|
|
173
|
+
})
|
|
174
|
+
] }),
|
|
175
|
+
/* @__PURE__ */ l("div", {
|
|
176
|
+
className: "flex flex-wrap gap-2",
|
|
177
|
+
children: [/* @__PURE__ */ c(e, {
|
|
178
|
+
type: "submit",
|
|
179
|
+
disabled: h === "APPROVED" && !C.length,
|
|
180
|
+
children: "Record independent review"
|
|
181
|
+
}), d?.kind === "APPROVED" && /* @__PURE__ */ c(e, {
|
|
182
|
+
type: "button",
|
|
183
|
+
variant: "outline",
|
|
184
|
+
disabled: !x.trim(),
|
|
185
|
+
onClick: () => void O(!0),
|
|
186
|
+
children: "Revoke latest approval"
|
|
187
|
+
})]
|
|
188
|
+
})
|
|
189
|
+
]
|
|
190
|
+
}), T && /* @__PURE__ */ c("p", {
|
|
191
|
+
role: "alert",
|
|
192
|
+
children: T
|
|
193
|
+
})]
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
//#endregion
|
|
197
|
+
export { d as ProcedureDeviationForm, u as ProcedureStepForm };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { reuseSelect as e } from "../ReuseControls.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/movethewheels/components/logistics-procedure/ProcedureFields.tsx
|
|
4
|
+
function r({ label: r, value: i, onChange: a, type: o = "text", maxLength: s = 255, required: c = !0 }) {
|
|
5
|
+
return /* @__PURE__ */ n("label", {
|
|
6
|
+
className: "block text-sm",
|
|
7
|
+
children: [r, /* @__PURE__ */ t("input", {
|
|
8
|
+
className: e,
|
|
9
|
+
value: i,
|
|
10
|
+
onChange: (e) => a(e.target.value),
|
|
11
|
+
type: o,
|
|
12
|
+
maxLength: s,
|
|
13
|
+
required: c,
|
|
14
|
+
step: o === "datetime-local" ? "0.001" : void 0
|
|
15
|
+
})]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function i({ title: e, children: r }) {
|
|
19
|
+
return /* @__PURE__ */ n("fieldset", {
|
|
20
|
+
className: "space-y-3 rounded-lg border p-4",
|
|
21
|
+
children: [/* @__PURE__ */ t("legend", {
|
|
22
|
+
className: "px-1 font-medium",
|
|
23
|
+
children: e
|
|
24
|
+
}), r]
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function a({ value: e }) {
|
|
28
|
+
return /* @__PURE__ */ t("span", { children: e ? new Date(e).toLocaleString() : "Unknown / not supplied" });
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { r as ProcedureField, i as ProcedureGroup, a as ProcedureTime };
|