@burdenoff/microfe-movethewheels 2026.930.4 → 2026.1010.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/useInventory.js +12 -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/InventoryPage.js +77 -73
- 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/useInventory.ts +2 -20
- 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/InventoryPage.tsx +16 -2
- 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,116 @@
|
|
|
1
|
+
import { useMoveTheWheels as e } from "../providers/MoveTheWheelsProvider.js";
|
|
2
|
+
import { useConditionApi as t } from "./useContainerCondition.js";
|
|
3
|
+
import { REUSE_RECOVERY_STORAGE as n, decodeReuseRecovery as r, encodeReuseRecovery as i, reuseRecoveryContextKey as a, reuseRecoveryScope as o, sameReuseRecoveryScope as s } from "../utils/reuseRecovery.js";
|
|
4
|
+
import { AcceptReuseReservationDocument as c, RecordReturnInstructionDocument as l, RecordReuseApprovalDocument as u, RecordReuseProposalDocument as d, TerminateReuseReservationDocument as f } from "../src/generated/empty-reuse-operations.js";
|
|
5
|
+
import { useRef as p, useState as m } from "react";
|
|
6
|
+
import { print as h } from "graphql";
|
|
7
|
+
//#region src/movethewheels/hooks/useReuseRecoveryAction.ts
|
|
8
|
+
var g = [
|
|
9
|
+
l,
|
|
10
|
+
d,
|
|
11
|
+
u,
|
|
12
|
+
c,
|
|
13
|
+
f
|
|
14
|
+
];
|
|
15
|
+
function _() {
|
|
16
|
+
try {
|
|
17
|
+
let e = sessionStorage.getItem(n), t = r(e, g);
|
|
18
|
+
return {
|
|
19
|
+
attempt: t,
|
|
20
|
+
blocked: e !== null && t === null
|
|
21
|
+
};
|
|
22
|
+
} catch {
|
|
23
|
+
return {
|
|
24
|
+
attempt: null,
|
|
25
|
+
blocked: !0
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function v() {
|
|
30
|
+
let c = t(), l = e(), u = o(l.currentUser?.id, l.workspaceId, l.tenantId, l.apiGatewayUrl, l.workspaceToken), [d] = m(_), [f, v] = m(d.attempt), [y, b] = m(d.blocked), x = p(f), S = p(!1), [C, w] = m(!1), T = a(u), [E, D] = m({
|
|
31
|
+
scopeKey: T,
|
|
32
|
+
error: null,
|
|
33
|
+
notice: null
|
|
34
|
+
}), O = (e) => D({
|
|
35
|
+
scopeKey: T,
|
|
36
|
+
error: e,
|
|
37
|
+
notice: null
|
|
38
|
+
}), k = (e) => D({
|
|
39
|
+
scopeKey: T,
|
|
40
|
+
error: null,
|
|
41
|
+
notice: e
|
|
42
|
+
}), [A, j] = m(0), M = (e, t) => {
|
|
43
|
+
if (e) sessionStorage.setItem(n, i(e));
|
|
44
|
+
else {
|
|
45
|
+
let e = r(sessionStorage.getItem(n), g);
|
|
46
|
+
(!t || e?.key === t.key && s(e.scope, t.scope)) && sessionStorage.removeItem(n);
|
|
47
|
+
}
|
|
48
|
+
x.current = e, v(e), b(!1);
|
|
49
|
+
}, N = async (e) => {
|
|
50
|
+
if (S.current) return null;
|
|
51
|
+
if (!s(e.scope, u)) return O("Return to the original account, organization, workspace and project before retrying."), null;
|
|
52
|
+
let t = g.find((t) => h(t) === e.operation);
|
|
53
|
+
if (!t) return O("The saved operation changed. Check history before abandoning this attempt."), null;
|
|
54
|
+
S.current = !0, w(!0), O(null), k(null);
|
|
55
|
+
try {
|
|
56
|
+
let n = await c(t, { input: {
|
|
57
|
+
...e.input,
|
|
58
|
+
idempotencyKey: e.key
|
|
59
|
+
} });
|
|
60
|
+
return M(null, e), j((e) => e + 1), k(e.success), n;
|
|
61
|
+
} catch (e) {
|
|
62
|
+
return O(e instanceof Error ? e.message : "Unable to save. Check history before retrying."), null;
|
|
63
|
+
} finally {
|
|
64
|
+
S.current = !1, w(!1);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
return {
|
|
68
|
+
run: async (e, t, n) => {
|
|
69
|
+
if (S.current || x.current || y) return O("Resolve the original request before starting another."), null;
|
|
70
|
+
if (!u) return O("Wait for the current account and workspace session."), null;
|
|
71
|
+
let r = h(e);
|
|
72
|
+
if (!g.some((e) => h(e) === r)) return O("Unsupported reuse operation."), null;
|
|
73
|
+
try {
|
|
74
|
+
if (sessionStorage.getItem("movethewheels.empty-reuse.unresolved.v1") !== null) return O("A saved request is unresolved. Reload this page and check history before starting another."), null;
|
|
75
|
+
} catch {
|
|
76
|
+
return O("This browser cannot retain the request safely. Nothing was sent."), null;
|
|
77
|
+
}
|
|
78
|
+
let i = {
|
|
79
|
+
version: 1,
|
|
80
|
+
scope: u,
|
|
81
|
+
operation: r,
|
|
82
|
+
input: structuredClone(t),
|
|
83
|
+
key: crypto.randomUUID(),
|
|
84
|
+
success: n
|
|
85
|
+
};
|
|
86
|
+
try {
|
|
87
|
+
M(i);
|
|
88
|
+
} catch {
|
|
89
|
+
return O("This browser cannot retain the request safely. Nothing was sent."), null;
|
|
90
|
+
}
|
|
91
|
+
return N(i);
|
|
92
|
+
},
|
|
93
|
+
retryOriginal: async () => {
|
|
94
|
+
x.current && await N(x.current);
|
|
95
|
+
},
|
|
96
|
+
discardAttempt: () => {
|
|
97
|
+
if (!S.current) try {
|
|
98
|
+
M(null), O(null), k(null);
|
|
99
|
+
} catch {
|
|
100
|
+
O("Unable to clear the saved attempt. Nothing was sent.");
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
refresh: () => j((e) => e + 1),
|
|
104
|
+
busy: C,
|
|
105
|
+
error: E.scopeKey === T ? E.error : null,
|
|
106
|
+
notice: E.scopeKey === T ? E.notice : null,
|
|
107
|
+
revision: A,
|
|
108
|
+
uncertain: f !== null || y,
|
|
109
|
+
recoveryInvalid: y,
|
|
110
|
+
canRetry: f !== null && s(f.scope, u),
|
|
111
|
+
originalContext: f?.scope ?? null,
|
|
112
|
+
contextKey: T
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
export { v as useReuseRecoveryAction };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MtwContainerEvidenceInput } from '../../generated/container-condition-operations';
|
|
2
|
+
|
|
3
|
+
export interface SelectedEvidence extends MtwContainerEvidenceInput {
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function ContainerEvidencePicker({ value, onChange, description, }: {
|
|
7
|
+
value: SelectedEvidence[];
|
|
8
|
+
onChange: (value: SelectedEvidence[]) => void;
|
|
9
|
+
description?: string;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MtwFreeTimeAgreementInput, FreeAgreementFieldsFragment } from '../../generated/free-time-operations';
|
|
2
|
+
|
|
3
|
+
export interface FreeTimeEventOption {
|
|
4
|
+
id: string;
|
|
5
|
+
eventType: string;
|
|
6
|
+
kind: string;
|
|
7
|
+
occurredAt: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function FreeTimeAgreementForm({ events, initial, onSubmit, busy, }: {
|
|
10
|
+
events: FreeTimeEventOption[];
|
|
11
|
+
initial?: FreeAgreementFieldsFragment;
|
|
12
|
+
onSubmit: (input: MtwFreeTimeAgreementInput) => Promise<void>;
|
|
13
|
+
busy: boolean;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RecordMtwEmptyReturnInstructionInput, ReturnInstructionFieldsFragment } from '../../generated/empty-reuse-operations';
|
|
2
|
+
|
|
3
|
+
export type ReturnInstructionDraft = Omit<RecordMtwEmptyReturnInstructionInput, 'idempotencyKey' | 'expectedCycleVersion' | 'cycleId' | 'currentInstructionId'>;
|
|
4
|
+
export declare function ReturnInstructionForm({ current, busy, onSubmit, }: {
|
|
5
|
+
current?: ReturnInstructionFieldsFragment;
|
|
6
|
+
busy: boolean;
|
|
7
|
+
onSubmit: (input: ReturnInstructionDraft) => Promise<unknown>;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const reuseCard = "space-y-4 rounded-xl border bg-bg-surface p-5";
|
|
4
|
+
export declare const reuseSelect = "mt-1 w-full rounded-md border bg-bg-surface p-2 text-sm";
|
|
5
|
+
export interface ReusePageInfo {
|
|
6
|
+
total: number;
|
|
7
|
+
limit: number;
|
|
8
|
+
offset: number;
|
|
9
|
+
hasMore: boolean;
|
|
10
|
+
nextOffset?: number | null;
|
|
11
|
+
}
|
|
12
|
+
export declare function ReusePager({ page, offset, onChange, busy, }: {
|
|
13
|
+
page?: ReusePageInfo;
|
|
14
|
+
offset: number;
|
|
15
|
+
onChange: (offset: number) => void;
|
|
16
|
+
busy: boolean;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
18
|
+
export declare function ReuseState({ loading, error, children, }: {
|
|
19
|
+
loading: boolean;
|
|
20
|
+
error: string | null;
|
|
21
|
+
children?: ReactNode;
|
|
22
|
+
}): import("react").JSX.Element;
|
|
23
|
+
export declare function ReuseField({ label, name, value, type, required, maxLength, }: {
|
|
24
|
+
label: string;
|
|
25
|
+
name: string;
|
|
26
|
+
value?: string;
|
|
27
|
+
type?: 'text' | 'number';
|
|
28
|
+
required?: boolean;
|
|
29
|
+
maxLength?: number;
|
|
30
|
+
}): import("react").JSX.Element;
|
|
31
|
+
export declare function PinnedSelect({ label, name, value, onChange, options, required, disabled, }: {
|
|
32
|
+
label: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
value: string;
|
|
35
|
+
onChange: (value: string) => void;
|
|
36
|
+
options: {
|
|
37
|
+
id: string;
|
|
38
|
+
label: string;
|
|
39
|
+
}[];
|
|
40
|
+
required?: boolean;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RecordMtwEquipmentReuseApprovalInput, ReuseApprovalFieldsFragment } from '../../generated/empty-reuse-operations';
|
|
2
|
+
|
|
3
|
+
export type ReusePermissionDraft = Omit<RecordMtwEquipmentReuseApprovalInput, 'idempotencyKey' | 'proposalId' | 'expectedCycleVersion'>;
|
|
4
|
+
export declare function ReusePermissionForm({ approvals, ownerReference, busy, onSubmit, }: {
|
|
5
|
+
approvals: ReuseApprovalFieldsFragment[];
|
|
6
|
+
ownerReference: string;
|
|
7
|
+
busy: boolean;
|
|
8
|
+
onSubmit: (input: ReusePermissionDraft) => Promise<unknown>;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReuseProposalFieldsFragment, ReturnInstructionFieldsFragment, RecordMtwReuseProposalInput } from '../../generated/empty-reuse-operations';
|
|
2
|
+
|
|
3
|
+
export type ReuseProposalDraft = Omit<RecordMtwReuseProposalInput, 'idempotencyKey' | 'expectedCycleVersion' | 'cycleId'>;
|
|
4
|
+
export declare function ReuseProposalForm({ cycleId, containerId, instruction, initial, busy, onSubmit, }: {
|
|
5
|
+
cycleId: string;
|
|
6
|
+
containerId: string;
|
|
7
|
+
instruction: ReturnInstructionFieldsFragment;
|
|
8
|
+
initial?: ReuseProposalFieldsFragment;
|
|
9
|
+
busy: boolean;
|
|
10
|
+
onSubmit: (input: ReuseProposalDraft) => Promise<unknown>;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReuseSourceFieldsFragment } from '../../generated/empty-reuse-operations';
|
|
2
|
+
import { SelectedEvidence } from './ContainerEvidencePicker';
|
|
3
|
+
|
|
4
|
+
export declare function ReuseSourceFields({ name, label, evidence, initial, }: {
|
|
5
|
+
name: string;
|
|
6
|
+
label: string;
|
|
7
|
+
evidence: SelectedEvidence[];
|
|
8
|
+
initial?: ReuseSourceFieldsFragment | null;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ConsolidationObservationsQuery, ConsolidationManifestQuery, ConsolidationPlanQuery } from '../../../generated/consolidation-operations';
|
|
2
|
+
|
|
3
|
+
export declare function ConsolidationPlanHistory({ plan, }: {
|
|
4
|
+
plan: ConsolidationPlanQuery['mtwConsolidationPlan'];
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
export declare function ConsolidationReportHistory({ rows, labels, }: {
|
|
7
|
+
rows: ConsolidationObservationsQuery['mtwConsolidationObservationPage']['items'];
|
|
8
|
+
labels: Record<string, string>;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
export declare function ConsolidationManifestHistory({ manifest, labels, }: {
|
|
11
|
+
manifest: ConsolidationManifestQuery['mtwConsolidationManifest'];
|
|
12
|
+
labels: Record<string, string>;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MtwConsolidationLotInput } from '../../../generated/consolidation-operations';
|
|
2
|
+
|
|
3
|
+
export declare function ConsolidationLotEditor({ lot, onChange, }: {
|
|
4
|
+
lot: MtwConsolidationLotInput;
|
|
5
|
+
onChange: (lot: MtwConsolidationLotInput) => void;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ConsolidationPlanQuery } from '../../../generated/consolidation-operations';
|
|
2
|
+
import { useConsolidationAction } from '../../hooks/useConsolidationAction';
|
|
3
|
+
|
|
4
|
+
export declare function ConsolidationManifestWorkbench({ plan, actions, labels, }: {
|
|
5
|
+
plan: ConsolidationPlanQuery['mtwConsolidationPlan'];
|
|
6
|
+
actions: ReturnType<typeof useConsolidationAction>;
|
|
7
|
+
labels: Record<string, string>;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SaveMtwConsolidationPlanInput } from '../../../generated/consolidation-operations';
|
|
2
|
+
|
|
3
|
+
export type ConsolidationPlanPin = Omit<SaveMtwConsolidationPlanInput, 'facts' | 'evidence' | 'idempotencyKey'>;
|
|
4
|
+
export declare function ConsolidationPlanForm({ pin, busy, onSave, }: {
|
|
5
|
+
pin: ConsolidationPlanPin;
|
|
6
|
+
busy: boolean;
|
|
7
|
+
onSave: (input: Omit<SaveMtwConsolidationPlanInput, 'idempotencyKey'>) => Promise<void>;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ConsolidationPlanQuery, RecordMtwConsolidationObservationInput } from '../../../generated/consolidation-operations';
|
|
2
|
+
|
|
3
|
+
export type ConsolidationReportPin = Omit<RecordMtwConsolidationObservationInput, 'reportedQuantity' | 'reportedObservedAt' | 'reason' | 'source' | 'evidence' | 'idempotencyKey'>;
|
|
4
|
+
export declare function ConsolidationReportForm({ pin, lot, busy, onSave, }: {
|
|
5
|
+
pin: ConsolidationReportPin;
|
|
6
|
+
lot: ConsolidationPlanQuery['mtwConsolidationPlan']['facts']['lots'][number];
|
|
7
|
+
busy: boolean;
|
|
8
|
+
onSave: (input: Omit<RecordMtwConsolidationObservationInput, 'idempotencyKey'>) => Promise<void>;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConsolidationPlanQuery } from '../../../generated/consolidation-operations';
|
|
2
|
+
import { useConsolidationAction } from '../../hooks/useConsolidationAction';
|
|
3
|
+
|
|
4
|
+
export declare function ConsolidationReportsWorkbench({ plan, actions, }: {
|
|
5
|
+
plan: ConsolidationPlanQuery['mtwConsolidationPlan'];
|
|
6
|
+
actions: ReturnType<typeof useConsolidationAction>;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ConsolidationPreviewQuery } from '../../../generated/consolidation-operations';
|
|
2
|
+
|
|
3
|
+
export declare function ConsolidationSummary({ snapshot, labels, }: {
|
|
4
|
+
snapshot: ConsolidationPreviewQuery['previewMtwConsolidationManifest'];
|
|
5
|
+
labels: Record<string, string>;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OriginalConsolidationHistoryTarget } from '../../utils/consolidationHistoryTarget';
|
|
2
|
+
|
|
3
|
+
/** Read the retained request's history without changing its input, key or draft selections. */
|
|
4
|
+
export declare function OriginalConsolidationHistory({ target, revision, refresh, }: {
|
|
5
|
+
target: OriginalConsolidationHistoryTarget;
|
|
6
|
+
revision: number;
|
|
7
|
+
refresh: () => void;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MtwFreightFactsInput, PreviewFreightCostsQuery } from '../../../generated/freight-cost-operations';
|
|
2
|
+
import { SelectedEvidence } from '../ContainerEvidencePicker';
|
|
3
|
+
|
|
4
|
+
export declare function FreightDraftForm({ disabled, onPreview, onSave, }: {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
onPreview: (facts: MtwFreightFactsInput) => Promise<PreviewFreightCostsQuery['previewMtwFreightTotal']>;
|
|
7
|
+
onSave: (facts: MtwFreightFactsInput, evidence: SelectedEvidence[]) => Promise<void>;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { MtwFreightCurrencyInput } from '../../../generated/freight-cost-operations';
|
|
3
|
+
|
|
4
|
+
export declare const freightInput = "mt-1 min-h-11 w-full rounded border p-2";
|
|
5
|
+
export declare function FreightText({ label, value, onChange, required, type, disabled, }: {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
onChange: (value: string) => void;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
type?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
export declare function FreightSelect({ label, value, onChange, children, }: {
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
onChange: (value: string) => void;
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
export declare function FreightCurrency({ label, value, onChange, }: {
|
|
20
|
+
label: string;
|
|
21
|
+
value: MtwFreightCurrencyInput;
|
|
22
|
+
onChange: (value: MtwFreightCurrencyInput) => void;
|
|
23
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MtwFreightFactsInput } from '../../../generated/freight-cost-operations';
|
|
2
|
+
|
|
3
|
+
export declare function FreightFxEditor({ value, onChange, }: {
|
|
4
|
+
value: MtwFreightFactsInput['fx'];
|
|
5
|
+
onChange: (value: MtwFreightFactsInput['fx']) => void;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MtwFreightLineInput } from '../../../generated/freight-cost-operations';
|
|
2
|
+
|
|
3
|
+
export declare function FreightLineEditor({ line, others, onChange, onRemove, }: {
|
|
4
|
+
line: MtwFreightLineInput;
|
|
5
|
+
others: MtwFreightLineInput[];
|
|
6
|
+
onChange: (line: MtwFreightLineInput) => void;
|
|
7
|
+
onRemove: () => void;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MtwFreightFactsInput } from '../../../generated/freight-cost-operations';
|
|
2
|
+
|
|
3
|
+
export declare function FreightScopeEditor({ value, onChange, }: {
|
|
4
|
+
value: MtwFreightFactsInput['requirements'];
|
|
5
|
+
onChange: (value: MtwFreightFactsInput['requirements']) => void;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PreviewFreightCostsQuery, MtwFreightCurrencyInput } from '../../../generated/freight-cost-operations';
|
|
2
|
+
|
|
3
|
+
export declare function FreightTotals({ value, currency, }: {
|
|
4
|
+
value: PreviewFreightCostsQuery['previewMtwFreightTotal'];
|
|
5
|
+
currency: MtwFreightCurrencyInput | null | undefined;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MtwProcedureStep, ProcedureStepsQuery, ProcedureDeviationsQuery } from '../../../generated/logistics-procedure-operations';
|
|
2
|
+
|
|
3
|
+
type Decision = ProcedureStepsQuery['mtwProcedureStepPage']['items'][number];
|
|
4
|
+
type Deviation = ProcedureDeviationsQuery['mtwProcedureDeviationPage']['items'][number];
|
|
5
|
+
export declare function ProcedureStepForm({ executionId, step, previous, busy, onSave, }: {
|
|
6
|
+
executionId: string;
|
|
7
|
+
step: MtwProcedureStep;
|
|
8
|
+
previous: Decision | null;
|
|
9
|
+
busy: boolean;
|
|
10
|
+
onSave: (input: Record<string, unknown>) => Promise<void>;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
|
+
export declare function ProcedureDeviationForm({ executionId, issue, previous, busy, onSave, onRevoke, }: {
|
|
13
|
+
executionId: string;
|
|
14
|
+
issue: Decision;
|
|
15
|
+
previous: Deviation | null;
|
|
16
|
+
busy: boolean;
|
|
17
|
+
onSave: (input: Record<string, unknown>) => Promise<void>;
|
|
18
|
+
onRevoke: (input: Record<string, unknown>) => Promise<void>;
|
|
19
|
+
}): import("react").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare function ProcedureField({ label, value, onChange, type, maxLength, required, }: {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
type?: string;
|
|
8
|
+
maxLength?: number;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
|
+
export declare function ProcedureGroup({ title, children }: {
|
|
12
|
+
title: string;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
15
|
+
export declare function ProcedureTime({ value }: {
|
|
16
|
+
value: string | null | undefined;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ProcedureRunQuery, ProcedureStepsQuery, ProcedureDeviationsQuery } from '../../../generated/logistics-procedure-operations';
|
|
2
|
+
|
|
3
|
+
export declare function ProcedureHistory({ run, steps, deviations, }: {
|
|
4
|
+
run: ProcedureRunQuery['mtwProcedureExecution'];
|
|
5
|
+
steps: ProcedureStepsQuery['mtwProcedureStepPage']['items'];
|
|
6
|
+
deviations: ProcedureDeviationsQuery['mtwProcedureDeviationPage']['items'];
|
|
7
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProcedurePolicyQuery } from '../../../generated/logistics-procedure-operations';
|
|
2
|
+
|
|
3
|
+
type Policy = ProcedurePolicyQuery['mtwProcedureVersion'];
|
|
4
|
+
export declare function ProcedurePolicyForm({ reference, previous, busy, onSave, }: {
|
|
5
|
+
reference: string;
|
|
6
|
+
previous: Policy | null;
|
|
7
|
+
busy: boolean;
|
|
8
|
+
onSave: (input: Record<string, unknown>) => Promise<void>;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { useProcedureSelection } from '../../hooks/useProcedureSelection';
|
|
2
|
+
|
|
3
|
+
export declare function ProcedureSubjectPicker({ selection: s, busy, onChange, }: {
|
|
4
|
+
selection: ReturnType<typeof useProcedureSelection>;
|
|
5
|
+
busy: boolean;
|
|
6
|
+
onChange: () => void;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PickPreparationQuery } from '../../../generated/pending-pick-operations';
|
|
2
|
+
import { PendingPickInput } from '../../utils/pendingPickDraft';
|
|
3
|
+
|
|
4
|
+
export declare function PendingPickDraft({ context, locked, loading, count, reason, draft, stale, onCount, onReason, onReview, onSave, }: {
|
|
5
|
+
context: PickPreparationQuery['mtwPickPreparation'] | undefined;
|
|
6
|
+
locked: boolean;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
count: string;
|
|
9
|
+
reason: string;
|
|
10
|
+
draft: PendingPickInput | null;
|
|
11
|
+
stale: boolean;
|
|
12
|
+
onCount: (value: string) => void;
|
|
13
|
+
onReason: (value: string) => void;
|
|
14
|
+
onReview: () => void;
|
|
15
|
+
onSave: () => void;
|
|
16
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PickInventoryQuery } from '../../../generated/pending-pick-operations';
|
|
2
|
+
|
|
3
|
+
export declare function PickLineSelection({ inventory, sourceId, destinationId, locked, offset, onOffset, onSelect, onRefresh, refreshBusy, }: {
|
|
4
|
+
inventory: {
|
|
5
|
+
data: PickInventoryQuery | null;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
error: string | null;
|
|
8
|
+
};
|
|
9
|
+
sourceId: string;
|
|
10
|
+
destinationId: string;
|
|
11
|
+
locked: boolean;
|
|
12
|
+
offset: number;
|
|
13
|
+
onOffset: (value: number) => void;
|
|
14
|
+
onSelect: (side: 'source' | 'destination', id: string) => void;
|
|
15
|
+
onRefresh: () => void;
|
|
16
|
+
refreshBusy: boolean;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StockDraftPin, StockFactDraft } from '../../utils/stockBindingForm';
|
|
2
|
+
|
|
3
|
+
export declare function StockAssessmentDraft({ pin, mismatch, uncertain, startDisabled, formDisabled, onStart, onSubmit, }: {
|
|
4
|
+
pin: (StockDraftPin & {
|
|
5
|
+
generation: string;
|
|
6
|
+
}) | null;
|
|
7
|
+
mismatch: boolean;
|
|
8
|
+
uncertain: boolean;
|
|
9
|
+
startDisabled: boolean;
|
|
10
|
+
formDisabled: boolean;
|
|
11
|
+
onStart: () => void;
|
|
12
|
+
onSubmit: (draft: StockFactDraft) => Promise<void>;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StockAssessmentFragment, StockBindingHistoryQuery } from '../../../generated/stock-binding-operations';
|
|
2
|
+
|
|
3
|
+
export declare function StockAssessmentHistory({ query, current, selected, onSelect, offset, onPage, busy, }: {
|
|
4
|
+
query: {
|
|
5
|
+
data: StockBindingHistoryQuery | null;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
error: string | null;
|
|
8
|
+
};
|
|
9
|
+
current?: {
|
|
10
|
+
id: string;
|
|
11
|
+
compositionEpoch: number;
|
|
12
|
+
} | null;
|
|
13
|
+
selected: StockAssessmentFragment | null;
|
|
14
|
+
onSelect: (value: StockAssessmentFragment) => void;
|
|
15
|
+
offset: number;
|
|
16
|
+
onPage: (offset: number) => void;
|
|
17
|
+
busy: boolean;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StockAssessmentFragment } from '../../../generated/stock-binding-operations';
|
|
2
|
+
|
|
3
|
+
export declare function StockAssessmentSummary({ assessment, current, }: {
|
|
4
|
+
assessment: StockAssessmentFragment;
|
|
5
|
+
current?: {
|
|
6
|
+
id: string;
|
|
7
|
+
compositionEpoch: number;
|
|
8
|
+
} | null;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RecordMtwStockObservationInput } from '../../../generated/stock-observation-operations';
|
|
2
|
+
|
|
3
|
+
export declare function StockIssueForm({ inventoryItemId, disabled, onSubmit, }: {
|
|
4
|
+
inventoryItemId: string;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
onSubmit: (input: Omit<RecordMtwStockObservationInput, 'idempotencyKey'>) => Promise<void>;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReportedStockIssueFragment } from '../../../generated/stock-observation-operations';
|
|
2
|
+
|
|
3
|
+
export declare function StockIssueHistory({ items, onSelect, disabled, }: {
|
|
4
|
+
items: ReportedStockIssueFragment[];
|
|
5
|
+
onSelect: (id: string) => void;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UtilizationReportFragment, UtilizationReportsQuery } from '../../../generated/trip-utilization-operations';
|
|
2
|
+
|
|
3
|
+
export declare function TripReportHistory({ query, offset, onPage, selected, onSelect, busy, }: {
|
|
4
|
+
query: {
|
|
5
|
+
data: UtilizationReportsQuery | null;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
error: string | null;
|
|
8
|
+
};
|
|
9
|
+
offset: number;
|
|
10
|
+
onPage: (value: number) => void;
|
|
11
|
+
selected: UtilizationReportFragment | null;
|
|
12
|
+
onSelect: (report: UtilizationReportFragment) => void;
|
|
13
|
+
busy: boolean;
|
|
14
|
+
}): import("react").JSX.Element;
|