@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
|
@@ -13,8 +13,8 @@ import { SlidersHorizontal as ie } from "../node_modules/lucide-react/dist/esm/i
|
|
|
13
13
|
import { TriangleAlert as s } from "../node_modules/lucide-react/dist/esm/icons/triangle-alert.js";
|
|
14
14
|
import { Warehouse as ae } from "../node_modules/lucide-react/dist/esm/icons/warehouse.js";
|
|
15
15
|
import { joinPath as c } from "../utils/navigation.js";
|
|
16
|
-
import { useMoveTheWheels as
|
|
17
|
-
import { useInventory as
|
|
16
|
+
import { useMoveTheWheels as l } from "../providers/MoveTheWheelsProvider.js";
|
|
17
|
+
import { useInventory as oe, useInventoryStats as se, useInventoryTransactions as ce } from "../hooks/useInventory.js";
|
|
18
18
|
import { Badge as u, Button as d, Card as f, CardContent as p, CardHeader as le, CardTitle as ue, Progress as de } from "../components/ui.js";
|
|
19
19
|
import { PageLayout as fe, PageSection as m } from "../components/PageLayout.js";
|
|
20
20
|
import { MetricCard as h, MetricCardSkeleton as g, MetricGrid as _ } from "../components/MetricCard.js";
|
|
@@ -55,15 +55,19 @@ var w = {
|
|
|
55
55
|
TRANSFER: "Transfer",
|
|
56
56
|
ADJUSTMENT: "Adjustment"
|
|
57
57
|
};
|
|
58
|
-
function D() {
|
|
59
|
-
let
|
|
60
|
-
|
|
58
|
+
function D(e, t) {
|
|
59
|
+
let n = Math.abs(t).toLocaleString();
|
|
60
|
+
return e === "in" ? `+${n}` : e === "out" ? `−${n}` : t > 0 ? `+${n}` : t < 0 ? `−${n}` : n;
|
|
61
|
+
}
|
|
62
|
+
function O() {
|
|
63
|
+
let { t: O } = we(), k = (e, t) => {
|
|
64
|
+
let n = O(e);
|
|
61
65
|
return n === e ? t : n;
|
|
62
|
-
}, { basePath:
|
|
66
|
+
}, { basePath: Te, navigate: Ee } = l(), [A, De] = v(""), [j, M] = v(0), [N, Oe] = v(10), { inventory: P, lowStockItems: F, products: I, warehouses: ke, totalItems: Ae, hasMore: je, isLoading: L, error: R, refetch: z } = oe({
|
|
63
67
|
search: ye(A),
|
|
64
68
|
limit: N,
|
|
65
69
|
offset: j * N
|
|
66
|
-
}), { stats: B, refetch:
|
|
70
|
+
}), { stats: B, refetch: Me } = se(), { transactions: V, isLoading: Ne, error: H, refetch: Pe } = ce({ limit: 8 }), { message: U, notify: Fe } = ge(6e3), [Ie, W] = v(!1), [G, K] = v(null), [q, J] = v(null), Y = (e) => ({
|
|
67
71
|
id: e.id,
|
|
68
72
|
productName: e.productName,
|
|
69
73
|
sku: e.sku,
|
|
@@ -72,10 +76,10 @@ function D() {
|
|
|
72
76
|
onHand: e.onHand,
|
|
73
77
|
available: e.available
|
|
74
78
|
}), X = (e) => {
|
|
75
|
-
|
|
76
|
-
}, Z = (e) =>
|
|
79
|
+
Fe(e), z(), Me(), Pe();
|
|
80
|
+
}, Z = (e) => Ee?.(c(Te, e)), Q = (e, t) => {
|
|
77
81
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), t());
|
|
78
|
-
}, $ =
|
|
82
|
+
}, $ = k("movethewheels.inventory.lowStock.unknownProduct", "Unknown Product"), Le = Ce(() => P.map((e) => ({
|
|
79
83
|
id: e.id,
|
|
80
84
|
productId: e.productId,
|
|
81
85
|
productName: e.productName ?? $,
|
|
@@ -87,10 +91,10 @@ function D() {
|
|
|
87
91
|
available: e.availableQuantity,
|
|
88
92
|
reorderLevel: e.reorderLevel,
|
|
89
93
|
stockState: e.quantity === 0 ? "out_of_stock" : e.reorderLevel !== void 0 && e.availableQuantity <= e.reorderLevel ? "low" : "in_stock"
|
|
90
|
-
})), [P, $]),
|
|
94
|
+
})), [P, $]), Re = [
|
|
91
95
|
{
|
|
92
96
|
id: "product",
|
|
93
|
-
header:
|
|
97
|
+
header: k("movethewheels.inventory.stock.product", "Product"),
|
|
94
98
|
accessorKey: "productName",
|
|
95
99
|
sortable: !0,
|
|
96
100
|
cell: (e) => /* @__PURE__ */ y("span", {
|
|
@@ -100,7 +104,7 @@ function D() {
|
|
|
100
104
|
},
|
|
101
105
|
{
|
|
102
106
|
id: "sku",
|
|
103
|
-
header:
|
|
107
|
+
header: k("movethewheels.inventory.stock.sku", "SKU"),
|
|
104
108
|
accessorKey: "sku",
|
|
105
109
|
sortable: !0,
|
|
106
110
|
cell: (e) => /* @__PURE__ */ y("span", {
|
|
@@ -110,13 +114,13 @@ function D() {
|
|
|
110
114
|
},
|
|
111
115
|
{
|
|
112
116
|
id: "warehouse",
|
|
113
|
-
header:
|
|
117
|
+
header: k("movethewheels.inventory.stock.warehouse", "Warehouse"),
|
|
114
118
|
accessorKey: "warehouseName",
|
|
115
119
|
sortable: !0
|
|
116
120
|
},
|
|
117
121
|
{
|
|
118
122
|
id: "onHand",
|
|
119
|
-
header:
|
|
123
|
+
header: k("movethewheels.inventory.stock.onHand", "On hand"),
|
|
120
124
|
accessorKey: "onHand",
|
|
121
125
|
sortable: !0,
|
|
122
126
|
cell: (e) => /* @__PURE__ */ y("span", {
|
|
@@ -126,14 +130,14 @@ function D() {
|
|
|
126
130
|
},
|
|
127
131
|
{
|
|
128
132
|
id: "allocated",
|
|
129
|
-
header:
|
|
133
|
+
header: k("movethewheels.inventory.stock.allocated", "Allocated"),
|
|
130
134
|
accessorKey: "allocated",
|
|
131
135
|
sortable: !0,
|
|
132
136
|
cell: (e) => e.allocated.toLocaleString()
|
|
133
137
|
},
|
|
134
138
|
{
|
|
135
139
|
id: "available",
|
|
136
|
-
header:
|
|
140
|
+
header: k("movethewheels.inventory.stock.available", "Available"),
|
|
137
141
|
accessorKey: "available",
|
|
138
142
|
sortable: !0,
|
|
139
143
|
cell: (e) => /* @__PURE__ */ y("span", {
|
|
@@ -143,23 +147,23 @@ function D() {
|
|
|
143
147
|
},
|
|
144
148
|
{
|
|
145
149
|
id: "reorderPoint",
|
|
146
|
-
header:
|
|
150
|
+
header: k("movethewheels.inventory.stock.reorderPoint", "Reorder point"),
|
|
147
151
|
accessorKey: "reorderLevel",
|
|
148
152
|
sortable: !0,
|
|
149
153
|
cell: (e) => e.reorderLevel === void 0 ? "—" : e.reorderLevel.toLocaleString()
|
|
150
154
|
},
|
|
151
155
|
{
|
|
152
156
|
id: "state",
|
|
153
|
-
header:
|
|
157
|
+
header: k("movethewheels.inventory.stock.status", "Status"),
|
|
154
158
|
cell: (e) => /* @__PURE__ */ y(pe, {
|
|
155
|
-
status: e.stockState === "out_of_stock" ?
|
|
159
|
+
status: e.stockState === "out_of_stock" ? k("movethewheels.inventory.stock.outOfStock", "Out of stock") : e.stockState === "low" ? k("movethewheels.inventory.stock.low", "Low") : k("movethewheels.inventory.stock.inStock", "In stock"),
|
|
156
160
|
customColors: w[e.stockState],
|
|
157
161
|
size: "sm"
|
|
158
162
|
})
|
|
159
163
|
},
|
|
160
164
|
{
|
|
161
165
|
id: "actions",
|
|
162
|
-
header:
|
|
166
|
+
header: k("movethewheels.inventory.stock.actions", "Actions"),
|
|
163
167
|
cell: (e) => /* @__PURE__ */ b("div", {
|
|
164
168
|
className: "flex flex-wrap gap-2",
|
|
165
169
|
onClick: (e) => e.stopPropagation(),
|
|
@@ -172,7 +176,7 @@ function D() {
|
|
|
172
176
|
children: [
|
|
173
177
|
/* @__PURE__ */ y(ie, { size: 14 }),
|
|
174
178
|
" ",
|
|
175
|
-
|
|
179
|
+
k("movethewheels.inventory.stock.adjust", "Adjust")
|
|
176
180
|
]
|
|
177
181
|
}), /* @__PURE__ */ b(d, {
|
|
178
182
|
type: "button",
|
|
@@ -183,34 +187,34 @@ function D() {
|
|
|
183
187
|
children: [
|
|
184
188
|
/* @__PURE__ */ y(t, { size: 14 }),
|
|
185
189
|
" ",
|
|
186
|
-
|
|
190
|
+
k("movethewheels.inventory.stock.transfer", "Transfer")
|
|
187
191
|
]
|
|
188
192
|
})]
|
|
189
193
|
})
|
|
190
194
|
}
|
|
191
195
|
];
|
|
192
196
|
return /* @__PURE__ */ b(fe, {
|
|
193
|
-
title:
|
|
194
|
-
subtitle:
|
|
197
|
+
title: k("movethewheels.inventory.title", "Inventory"),
|
|
198
|
+
subtitle: k("movethewheels.inventory.subtitle", "Manage your products and warehouses"),
|
|
195
199
|
icon: /* @__PURE__ */ y(o, { size: 24 }),
|
|
196
200
|
headerActions: /* @__PURE__ */ y(x, {
|
|
197
201
|
primary: {
|
|
198
|
-
label:
|
|
202
|
+
label: k("movethewheels.inventory.actions.addProduct", "Add Product"),
|
|
199
203
|
icon: /* @__PURE__ */ y(re, { size: 16 }),
|
|
200
204
|
onSelect: () => Z("inventory/products/new")
|
|
201
205
|
},
|
|
202
206
|
actions: [
|
|
203
207
|
{
|
|
204
|
-
label:
|
|
208
|
+
label: k("movethewheels.inventory.actions.receiveStock", "Receive stock"),
|
|
205
209
|
icon: /* @__PURE__ */ y(ne, { size: 16 }),
|
|
206
210
|
onSelect: () => W(!0)
|
|
207
211
|
},
|
|
208
212
|
{
|
|
209
|
-
label:
|
|
213
|
+
label: k("movethewheels.inventory.actions.products", "Products"),
|
|
210
214
|
onSelect: () => Z("inventory/products")
|
|
211
215
|
},
|
|
212
216
|
{
|
|
213
|
-
label:
|
|
217
|
+
label: k("movethewheels.inventory.actions.warehouses", "Warehouses"),
|
|
214
218
|
onSelect: () => Z("inventory/warehouses")
|
|
215
219
|
}
|
|
216
220
|
]
|
|
@@ -218,7 +222,7 @@ function D() {
|
|
|
218
222
|
children: [
|
|
219
223
|
/* @__PURE__ */ y(C, {
|
|
220
224
|
icon: /* @__PURE__ */ y(o, { size: 18 }),
|
|
221
|
-
children:
|
|
225
|
+
children: k("movethewheels.inventory.purpose", "A real-time view of what you have and where. Track on-hand, allocated and free-to-promise quantities across warehouses, follow every stock movement, catch low-stock items before they run out, and drill into products or warehouses to manage what you can promise on an order.")
|
|
222
226
|
}),
|
|
223
227
|
U && /* @__PURE__ */ y("div", {
|
|
224
228
|
className: "mb-2",
|
|
@@ -231,7 +235,7 @@ function D() {
|
|
|
231
235
|
children: [
|
|
232
236
|
/* @__PURE__ */ y("p", {
|
|
233
237
|
className: "text-status-error-text font-medium",
|
|
234
|
-
children:
|
|
238
|
+
children: k("movethewheels.inventory.error.title", "Couldn't load inventory")
|
|
235
239
|
}),
|
|
236
240
|
/* @__PURE__ */ y("p", {
|
|
237
241
|
className: "text-sm text-text-secondary",
|
|
@@ -240,7 +244,7 @@ function D() {
|
|
|
240
244
|
/* @__PURE__ */ y(d, {
|
|
241
245
|
variant: "outline",
|
|
242
246
|
onClick: z,
|
|
243
|
-
children:
|
|
247
|
+
children: k("movethewheels.inventory.error.retry", "Retry")
|
|
244
248
|
})
|
|
245
249
|
]
|
|
246
250
|
})
|
|
@@ -251,42 +255,42 @@ function D() {
|
|
|
251
255
|
columns: 6,
|
|
252
256
|
children: [
|
|
253
257
|
/* @__PURE__ */ y(h, {
|
|
254
|
-
label:
|
|
258
|
+
label: k("movethewheels.inventory.metrics.totalOnHand", "Total on-hand"),
|
|
255
259
|
value: B.totalOnHand.toLocaleString(),
|
|
256
260
|
icon: /* @__PURE__ */ y(r, { size: 20 }),
|
|
257
261
|
accent: "brand",
|
|
258
|
-
subtitle:
|
|
262
|
+
subtitle: k("movethewheels.inventory.metrics.onHandHint", "Units in the network")
|
|
259
263
|
}),
|
|
260
264
|
/* @__PURE__ */ y(h, {
|
|
261
|
-
label:
|
|
265
|
+
label: k("movethewheels.inventory.metrics.available", "Available"),
|
|
262
266
|
value: B.totalAvailable.toLocaleString(),
|
|
263
267
|
icon: /* @__PURE__ */ y(a, { size: 20 }),
|
|
264
268
|
accent: "success",
|
|
265
|
-
subtitle:
|
|
269
|
+
subtitle: k("movethewheels.inventory.metrics.availableHint", "Free to promise")
|
|
266
270
|
}),
|
|
267
271
|
/* @__PURE__ */ y(h, {
|
|
268
|
-
label:
|
|
272
|
+
label: k("movethewheels.inventory.metrics.allocated", "Allocated"),
|
|
269
273
|
value: B.totalAllocated.toLocaleString(),
|
|
270
274
|
icon: /* @__PURE__ */ y(te, { size: 20 }),
|
|
271
275
|
accent: "blue",
|
|
272
|
-
subtitle:
|
|
276
|
+
subtitle: k("movethewheels.inventory.metrics.allocatedHint", "Committed to orders")
|
|
273
277
|
}),
|
|
274
278
|
/* @__PURE__ */ y(h, {
|
|
275
|
-
label:
|
|
279
|
+
label: k("movethewheels.inventory.metrics.lowStock", "Low-stock items"),
|
|
276
280
|
value: B.lowStockCount.toLocaleString(),
|
|
277
281
|
icon: /* @__PURE__ */ y(s, { size: 20 }),
|
|
278
282
|
accent: "warning",
|
|
279
|
-
subtitle:
|
|
283
|
+
subtitle: k("movethewheels.inventory.metrics.lowStockHint", "At or under reorder point")
|
|
280
284
|
}),
|
|
281
285
|
/* @__PURE__ */ y(h, {
|
|
282
|
-
label:
|
|
286
|
+
label: k("movethewheels.inventory.metrics.totalProducts", "Catalog items"),
|
|
283
287
|
value: B.totalProducts.toLocaleString(),
|
|
284
288
|
icon: /* @__PURE__ */ y(o, { size: 20 }),
|
|
285
289
|
accent: "neutral",
|
|
286
290
|
onClick: () => Z("inventory/products")
|
|
287
291
|
}),
|
|
288
292
|
/* @__PURE__ */ y(h, {
|
|
289
|
-
label:
|
|
293
|
+
label: k("movethewheels.inventory.metrics.warehouses", "Warehouses"),
|
|
290
294
|
value: B.totalWarehouses.toLocaleString(),
|
|
291
295
|
icon: /* @__PURE__ */ y(ae, { size: 20 }),
|
|
292
296
|
accent: "neutral",
|
|
@@ -300,11 +304,11 @@ function D() {
|
|
|
300
304
|
className: "flex items-center gap-2 text-base font-semibold text-status-warning-text",
|
|
301
305
|
children: [
|
|
302
306
|
/* @__PURE__ */ y(s, { size: 18 }),
|
|
303
|
-
|
|
307
|
+
k("movethewheels.inventory.lowStock.title", "Low Stock Alert"),
|
|
304
308
|
" (",
|
|
305
309
|
B.lowStockCount,
|
|
306
310
|
" ",
|
|
307
|
-
|
|
311
|
+
k("movethewheels.inventory.lowStock.items", "items"),
|
|
308
312
|
")"
|
|
309
313
|
]
|
|
310
314
|
}), /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y("div", {
|
|
@@ -313,11 +317,11 @@ function D() {
|
|
|
313
317
|
className: "flex items-center justify-between p-3 bg-status-warning-bg/10 rounded-lg",
|
|
314
318
|
children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
315
319
|
className: "font-medium",
|
|
316
|
-
children: e.productName ??
|
|
320
|
+
children: e.productName ?? k("movethewheels.inventory.lowStock.unknownProduct", "Unknown Product")
|
|
317
321
|
}), /* @__PURE__ */ b("p", {
|
|
318
322
|
className: "text-sm text-text-secondary",
|
|
319
323
|
children: [
|
|
320
|
-
|
|
324
|
+
k("movethewheels.inventory.lowStock.sku", "SKU:"),
|
|
321
325
|
" ",
|
|
322
326
|
e.productSku ?? "—"
|
|
323
327
|
]
|
|
@@ -328,12 +332,12 @@ function D() {
|
|
|
328
332
|
children: [
|
|
329
333
|
e.availableQuantity,
|
|
330
334
|
" ",
|
|
331
|
-
|
|
335
|
+
k("movethewheels.inventory.lowStock.left", "left")
|
|
332
336
|
]
|
|
333
337
|
}), /* @__PURE__ */ b("p", {
|
|
334
338
|
className: "text-sm text-text-secondary",
|
|
335
339
|
children: [
|
|
336
|
-
|
|
340
|
+
k("movethewheels.inventory.lowStock.reorderAt", "Reorder at:"),
|
|
337
341
|
" ",
|
|
338
342
|
e.reorderLevel
|
|
339
343
|
]
|
|
@@ -347,15 +351,15 @@ function D() {
|
|
|
347
351
|
children: [/* @__PURE__ */ y("div", {
|
|
348
352
|
className: "xl:col-span-2",
|
|
349
353
|
children: /* @__PURE__ */ y(m, {
|
|
350
|
-
title:
|
|
354
|
+
title: k("movethewheels.inventory.stock.title", "Stock position"),
|
|
351
355
|
children: /* @__PURE__ */ y(me, {
|
|
352
|
-
columns:
|
|
353
|
-
data:
|
|
356
|
+
columns: Re,
|
|
357
|
+
data: Le,
|
|
354
358
|
isLoading: L,
|
|
355
359
|
error: R,
|
|
356
360
|
onRetry: z,
|
|
357
361
|
searchable: !0,
|
|
358
|
-
searchPlaceholder:
|
|
362
|
+
searchPlaceholder: k("movethewheels.inventory.stock.search", "Search product, SKU or warehouse..."),
|
|
359
363
|
searchFields: [
|
|
360
364
|
"productName",
|
|
361
365
|
"sku",
|
|
@@ -363,39 +367,39 @@ function D() {
|
|
|
363
367
|
],
|
|
364
368
|
searchQuery: A,
|
|
365
369
|
onSearchQueryChange: (e) => {
|
|
366
|
-
|
|
370
|
+
De(e), M(0);
|
|
367
371
|
},
|
|
368
372
|
pageIndex: j,
|
|
369
373
|
pageSize: N,
|
|
370
374
|
onPageChange: M,
|
|
371
375
|
onPageSizeChange: (e) => {
|
|
372
|
-
|
|
376
|
+
Oe(e), M(0);
|
|
373
377
|
},
|
|
374
|
-
totalItems:
|
|
375
|
-
hasNextPage:
|
|
378
|
+
totalItems: Ae,
|
|
379
|
+
hasNextPage: je,
|
|
376
380
|
onRowClick: (e) => Z(`inventory/products/${e.productId}`),
|
|
377
381
|
getRowId: (e) => e.id,
|
|
378
382
|
emptyIllustration: "empty-data",
|
|
379
|
-
emptyTitle:
|
|
380
|
-
emptyDescription:
|
|
383
|
+
emptyTitle: k("movethewheels.inventory.stock.emptyTitle", "No stock recorded yet"),
|
|
384
|
+
emptyDescription: k("movethewheels.inventory.stock.emptyDescription", "Stock lines appear here once a product is received into a warehouse.")
|
|
381
385
|
})
|
|
382
386
|
})
|
|
383
387
|
}), /* @__PURE__ */ b(f, {
|
|
384
388
|
className: "h-fit",
|
|
385
389
|
children: [/* @__PURE__ */ y(le, { children: /* @__PURE__ */ b(ue, {
|
|
386
390
|
className: "flex items-center gap-2",
|
|
387
|
-
children: [/* @__PURE__ */ y(ee, { size: 18 }),
|
|
391
|
+
children: [/* @__PURE__ */ y(ee, { size: 18 }), k("movethewheels.inventory.transactions.title", "Recent transactions")]
|
|
388
392
|
}) }), /* @__PURE__ */ y(p, {
|
|
389
393
|
className: "p-0",
|
|
390
394
|
children: H ? /* @__PURE__ */ y("p", {
|
|
391
395
|
className: "p-6 text-sm text-status-error-text",
|
|
392
396
|
children: H.message
|
|
393
|
-
}) :
|
|
397
|
+
}) : Ne ? /* @__PURE__ */ y("p", {
|
|
394
398
|
className: "p-6 text-sm text-text-secondary",
|
|
395
|
-
children:
|
|
399
|
+
children: k("movethewheels.inventory.transactions.loading", "Loading movements…")
|
|
396
400
|
}) : V.length === 0 ? /* @__PURE__ */ y("p", {
|
|
397
401
|
className: "p-6 text-sm text-text-secondary",
|
|
398
|
-
children:
|
|
402
|
+
children: k("movethewheels.inventory.transactions.empty", "No stock movements recorded yet. Receipts, issues and adjustments show up here as they happen.")
|
|
399
403
|
}) : /* @__PURE__ */ y("ul", {
|
|
400
404
|
className: "divide-y",
|
|
401
405
|
children: V.map((r) => {
|
|
@@ -427,9 +431,9 @@ function D() {
|
|
|
427
431
|
children: ve(r.createdAt, "short")
|
|
428
432
|
})
|
|
429
433
|
]
|
|
430
|
-
}), /* @__PURE__ */
|
|
434
|
+
}), /* @__PURE__ */ y("span", {
|
|
431
435
|
className: i === "in" ? "font-medium text-status-success-text" : i === "out" ? "font-medium text-status-warning-text" : "font-medium text-text-primary",
|
|
432
|
-
children:
|
|
436
|
+
children: D(i, r.quantity)
|
|
433
437
|
})]
|
|
434
438
|
}, r.id);
|
|
435
439
|
})
|
|
@@ -440,13 +444,13 @@ function D() {
|
|
|
440
444
|
/* @__PURE__ */ b("div", {
|
|
441
445
|
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
442
446
|
children: [/* @__PURE__ */ y(m, {
|
|
443
|
-
title:
|
|
447
|
+
title: k("movethewheels.inventory.warehouses.title", "Warehouses"),
|
|
444
448
|
actions: /* @__PURE__ */ b(d, {
|
|
445
449
|
variant: "ghost",
|
|
446
450
|
size: "sm",
|
|
447
451
|
onClick: () => Z("inventory/warehouses"),
|
|
448
452
|
children: [
|
|
449
|
-
|
|
453
|
+
k("movethewheels.inventory.common.viewAll", "View all"),
|
|
450
454
|
" ",
|
|
451
455
|
/* @__PURE__ */ y(i, { size: 16 })
|
|
452
456
|
]
|
|
@@ -455,7 +459,7 @@ function D() {
|
|
|
455
459
|
className: "p-0",
|
|
456
460
|
children: /* @__PURE__ */ y("div", {
|
|
457
461
|
className: "divide-y",
|
|
458
|
-
children:
|
|
462
|
+
children: ke.map((e) => /* @__PURE__ */ y("div", {
|
|
459
463
|
role: "button",
|
|
460
464
|
tabIndex: 0,
|
|
461
465
|
"aria-label": `View warehouse ${e.name}`,
|
|
@@ -474,12 +478,12 @@ function D() {
|
|
|
474
478
|
className: "text-right",
|
|
475
479
|
children: [/* @__PURE__ */ y(u, {
|
|
476
480
|
variant: e.status?.toUpperCase() === "ACTIVE" ? "default" : "secondary",
|
|
477
|
-
children: e.status ? e.status.toUpperCase() === "ACTIVE" ?
|
|
481
|
+
children: e.status ? e.status.toUpperCase() === "ACTIVE" ? k("movethewheels.inventory.warehouses.active", "Active") : k("movethewheels.inventory.warehouses.inactive", "Inactive") : "Not provided"
|
|
478
482
|
}), /* @__PURE__ */ b("div", {
|
|
479
483
|
className: "mt-2",
|
|
480
484
|
children: [/* @__PURE__ */ y("p", {
|
|
481
485
|
className: "text-xs text-text-secondary",
|
|
482
|
-
children:
|
|
486
|
+
children: k("movethewheels.inventory.warehouses.utilization", "Utilization")
|
|
483
487
|
}), e.utilization === void 0 ? /* @__PURE__ */ y("p", {
|
|
484
488
|
className: "text-xs text-text-tertiary",
|
|
485
489
|
children: "Not provided"
|
|
@@ -494,13 +498,13 @@ function D() {
|
|
|
494
498
|
})
|
|
495
499
|
}) })
|
|
496
500
|
}), /* @__PURE__ */ y(m, {
|
|
497
|
-
title:
|
|
501
|
+
title: k("movethewheels.inventory.products.title", "Recent Products"),
|
|
498
502
|
actions: /* @__PURE__ */ b(d, {
|
|
499
503
|
variant: "ghost",
|
|
500
504
|
size: "sm",
|
|
501
505
|
onClick: () => Z("inventory/products"),
|
|
502
506
|
children: [
|
|
503
|
-
|
|
507
|
+
k("movethewheels.inventory.common.viewAll", "View all"),
|
|
504
508
|
" ",
|
|
505
509
|
/* @__PURE__ */ y(i, { size: 16 })
|
|
506
510
|
]
|
|
@@ -541,7 +545,7 @@ function D() {
|
|
|
541
545
|
})]
|
|
542
546
|
}),
|
|
543
547
|
/* @__PURE__ */ y(xe, {
|
|
544
|
-
open:
|
|
548
|
+
open: Ie,
|
|
545
549
|
onOpenChange: W,
|
|
546
550
|
onDone: X
|
|
547
551
|
}),
|
|
@@ -565,4 +569,4 @@ function D() {
|
|
|
565
569
|
});
|
|
566
570
|
}
|
|
567
571
|
//#endregion
|
|
568
|
-
export {
|
|
572
|
+
export { O as default };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ClipboardList as e } from "../node_modules/lucide-react/dist/esm/icons/clipboard-list.js";
|
|
2
|
+
import { Button as t } from "../components/ui.js";
|
|
3
|
+
import { PageLayout as n } from "../components/PageLayout.js";
|
|
4
|
+
import { useProcedureAction as r } from "../hooks/useProcedureAction.js";
|
|
5
|
+
import { ProcedureReviewWorkbench as i } from "../components/logistics-procedure/ProcedureReviewWorkbench.js";
|
|
6
|
+
import { ProcedurePolicyWorkbench as a } from "../components/logistics-procedure/ProcedurePolicyWorkbench.js";
|
|
7
|
+
import { useState as o } from "react";
|
|
8
|
+
import { Link as s } from "react-router";
|
|
9
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
|
+
//#region src/movethewheels/pages/LogisticsProceduresPage.tsx
|
|
11
|
+
function u() {
|
|
12
|
+
let u = r(), [d, f] = o("review");
|
|
13
|
+
return /* @__PURE__ */ c(n, {
|
|
14
|
+
title: "Logistics procedures",
|
|
15
|
+
subtitle: "Sourced checklist records and internal review history.",
|
|
16
|
+
icon: /* @__PURE__ */ c(e, { "aria-hidden": "true" }),
|
|
17
|
+
children: /* @__PURE__ */ l("div", {
|
|
18
|
+
className: "space-y-5",
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ c("p", {
|
|
21
|
+
className: "rounded-lg border p-4",
|
|
22
|
+
children: "Recording only: these checklists do not enforce reuse reservations, authorize movement or certify condition or lane-specific compliance."
|
|
23
|
+
}),
|
|
24
|
+
/* @__PURE__ */ l("p", { children: [
|
|
25
|
+
"Shared",
|
|
26
|
+
" ",
|
|
27
|
+
/* @__PURE__ */ c(s, {
|
|
28
|
+
to: "/workflows",
|
|
29
|
+
className: "underline",
|
|
30
|
+
children: "Workflows"
|
|
31
|
+
}),
|
|
32
|
+
" ",
|
|
33
|
+
"remain advisory. Published procedures and independent deviation notes require canonical reviewer permissions."
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ l("div", {
|
|
36
|
+
className: "flex flex-wrap gap-2",
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ c(t, {
|
|
39
|
+
variant: d === "review" ? "default" : "outline",
|
|
40
|
+
disabled: u.busy || u.uncertain,
|
|
41
|
+
onClick: () => f("review"),
|
|
42
|
+
children: "Checklist and history"
|
|
43
|
+
}),
|
|
44
|
+
/* @__PURE__ */ c(t, {
|
|
45
|
+
variant: d === "policy" ? "default" : "outline",
|
|
46
|
+
disabled: u.busy || u.uncertain,
|
|
47
|
+
onClick: () => f("policy"),
|
|
48
|
+
children: "Procedure versions"
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ c(t, {
|
|
51
|
+
variant: "outline",
|
|
52
|
+
disabled: u.busy,
|
|
53
|
+
onClick: u.refresh,
|
|
54
|
+
children: "Refresh history"
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
}),
|
|
58
|
+
u.error && /* @__PURE__ */ c("p", {
|
|
59
|
+
role: "alert",
|
|
60
|
+
children: u.error
|
|
61
|
+
}),
|
|
62
|
+
u.notice && /* @__PURE__ */ c("p", {
|
|
63
|
+
role: "status",
|
|
64
|
+
children: u.notice
|
|
65
|
+
}),
|
|
66
|
+
u.uncertain && /* @__PURE__ */ l("section", {
|
|
67
|
+
className: "space-y-3 rounded-lg border p-4",
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ c("h2", {
|
|
70
|
+
className: "font-semibold",
|
|
71
|
+
children: "Original request remains unresolved"
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ c("p", { children: "Check history first. A manual retry sends the exact original body, revisions and key; refresh does not retag it. New records and selection changes are blocked." }),
|
|
74
|
+
u.originalContext && /* @__PURE__ */ l("p", {
|
|
75
|
+
className: "break-all",
|
|
76
|
+
children: ["Original workspace: ", u.originalContext.workspaceId]
|
|
77
|
+
}),
|
|
78
|
+
u.recoveryInvalid && /* @__PURE__ */ c("p", { children: "The retained request cannot be read safely. Nothing will be sent automatically." }),
|
|
79
|
+
/* @__PURE__ */ l("div", {
|
|
80
|
+
className: "flex flex-wrap gap-2",
|
|
81
|
+
children: [/* @__PURE__ */ c(t, {
|
|
82
|
+
disabled: !u.canRetry || u.busy,
|
|
83
|
+
onClick: () => void u.retryOriginal(),
|
|
84
|
+
children: "Retry original request"
|
|
85
|
+
}), /* @__PURE__ */ c(t, {
|
|
86
|
+
variant: "outline",
|
|
87
|
+
disabled: u.busy,
|
|
88
|
+
onClick: u.discardAttempt,
|
|
89
|
+
children: "Abandon after checking history"
|
|
90
|
+
})]
|
|
91
|
+
})
|
|
92
|
+
]
|
|
93
|
+
}),
|
|
94
|
+
c(d === "review" ? i : a, { actions: u }, u.contextKey)
|
|
95
|
+
]
|
|
96
|
+
})
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
export { u as default };
|