@burdenoff/microfe-movethewheels 2026.1016.1 → 2026.1016.3
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/components/freight-cost/FreightCommercialEditor.js +217 -0
- package/dist/components/freight-cost/FreightCommercialFactEditor.js +217 -0
- package/dist/components/freight-cost/FreightCommercialHistory.js +115 -0
- package/dist/components/freight-cost/FreightDraftForm.js +106 -91
- package/dist/components/freight-cost/FreightHistory.js +42 -40
- package/dist/dev/main.d.ts +0 -1
- package/dist/generated/freight-cost-operations.d.ts +959 -0
- package/dist/hooks/useFreightRecoveryAction.js +20 -20
- package/dist/index.d.ts +2 -4
- package/dist/movethewheels/MoveTheWheelsRoot.d.ts +0 -1
- package/dist/movethewheels/MoveTheWheelsRoutes.d.ts +1 -1
- package/dist/movethewheels/components/AssignmentSuggestions.d.ts +1 -2
- package/dist/movethewheels/components/CarbonFootprintPanel.d.ts +1 -1
- package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +1 -2
- package/dist/movethewheels/components/CustomerPicker.d.ts +1 -2
- package/dist/movethewheels/components/DataTable.d.ts +1 -2
- package/dist/movethewheels/components/DocumentsCard.d.ts +1 -2
- package/dist/movethewheels/components/EntityCombobox.d.ts +1 -1
- package/dist/movethewheels/components/FleetAlertsPanel.d.ts +1 -2
- package/dist/movethewheels/components/FormError.d.ts +1 -1
- package/dist/movethewheels/components/FreeTimeAgreementForm.d.ts +1 -2
- package/dist/movethewheels/components/GlassPanel.d.ts +1 -2
- package/dist/movethewheels/components/MetricCard.d.ts +3 -4
- package/dist/movethewheels/components/Notice.d.ts +1 -1
- package/dist/movethewheels/components/OrderItemRow.d.ts +1 -2
- package/dist/movethewheels/components/PageLayout.d.ts +5 -6
- package/dist/movethewheels/components/ProofOfDeliveryCard.d.ts +1 -1
- package/dist/movethewheels/components/ReturnInstructionForm.d.ts +1 -2
- package/dist/movethewheels/components/ReuseControls.d.ts +4 -5
- package/dist/movethewheels/components/ReusePermissionForm.d.ts +1 -2
- package/dist/movethewheels/components/ReuseProposalForm.d.ts +1 -2
- package/dist/movethewheels/components/ReuseSourceFields.d.ts +1 -2
- package/dist/movethewheels/components/ShippingQuoteResults.d.ts +1 -2
- package/dist/movethewheels/components/StatusBadge.d.ts +5 -6
- package/dist/movethewheels/components/StockActionDialogs.d.ts +3 -3
- package/dist/movethewheels/components/UpcomingDemandPanel.d.ts +1 -2
- package/dist/movethewheels/components/VehicleServiceCard.d.ts +1 -2
- package/dist/movethewheels/components/charts/ChartShell.d.ts +2 -3
- package/dist/movethewheels/components/charts/Sparkline.d.ts +1 -1
- package/dist/movethewheels/components/charts/StatusDonut.d.ts +1 -1
- package/dist/movethewheels/components/charts/TrendChart.d.ts +1 -1
- package/dist/movethewheels/components/charts/VolumeBar.d.ts +1 -1
- package/dist/movethewheels/components/consolidation/ConsolidationHistory.d.ts +3 -4
- package/dist/movethewheels/components/consolidation/ConsolidationLotEditor.d.ts +1 -2
- package/dist/movethewheels/components/consolidation/ConsolidationManifestWorkbench.d.ts +1 -2
- package/dist/movethewheels/components/consolidation/ConsolidationPlanForm.d.ts +1 -2
- package/dist/movethewheels/components/consolidation/ConsolidationPlanWorkbench.d.ts +1 -2
- package/dist/movethewheels/components/consolidation/ConsolidationReportForm.d.ts +1 -2
- package/dist/movethewheels/components/consolidation/ConsolidationReportsWorkbench.d.ts +1 -2
- package/dist/movethewheels/components/consolidation/ConsolidationSummary.d.ts +1 -2
- package/dist/movethewheels/components/consolidation/OriginalConsolidationHistory.d.ts +1 -2
- package/dist/movethewheels/components/freight-cost/FreightCommercialEditor.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightCommercialFactEditor.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightCommercialHistory.d.ts +4 -0
- package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +5 -4
- package/dist/movethewheels/components/freight-cost/FreightFields.d.ts +3 -4
- package/dist/movethewheels/components/freight-cost/FreightFxEditor.d.ts +1 -2
- package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +3 -4
- package/dist/movethewheels/components/freight-cost/FreightLineEditor.d.ts +1 -2
- package/dist/movethewheels/components/freight-cost/FreightScopeEditor.d.ts +1 -2
- package/dist/movethewheels/components/freight-cost/FreightTotals.d.ts +1 -2
- package/dist/movethewheels/components/logistics-procedure/ProcedureDecisionForm.d.ts +2 -3
- package/dist/movethewheels/components/logistics-procedure/ProcedureFields.d.ts +3 -4
- package/dist/movethewheels/components/logistics-procedure/ProcedureHistory.d.ts +1 -2
- package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyForm.d.ts +1 -2
- package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.d.ts +1 -2
- package/dist/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.d.ts +1 -2
- package/dist/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.d.ts +1 -2
- package/dist/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.d.ts +1 -2
- package/dist/movethewheels/components/maps/LogisticsMap.d.ts +1 -2
- package/dist/movethewheels/components/maps/MapCanvas.d.ts +1 -2
- package/dist/movethewheels/components/maps/RouteMap.d.ts +1 -1
- package/dist/movethewheels/components/maps/TrackingMap.d.ts +1 -1
- package/dist/movethewheels/components/maps/leaflet-setup.d.ts +0 -1
- package/dist/movethewheels/components/pending-pick/PendingPickDraft.d.ts +1 -2
- package/dist/movethewheels/components/pending-pick/PendingPickHistory.d.ts +1 -1
- package/dist/movethewheels/components/pending-pick/PickCapture.d.ts +1 -2
- package/dist/movethewheels/components/pending-pick/PickLineSelection.d.ts +1 -2
- package/dist/movethewheels/components/pending-pick/PickReviewPanel.d.ts +1 -2
- package/dist/movethewheels/components/stock-binding/StockAssessmentDraft.d.ts +1 -2
- package/dist/movethewheels/components/stock-binding/StockAssessmentHistory.d.ts +1 -2
- package/dist/movethewheels/components/stock-binding/StockAssessmentSummary.d.ts +1 -2
- package/dist/movethewheels/components/stock-binding/StockFactForm.d.ts +1 -2
- package/dist/movethewheels/components/stock-observation/StockIssueForm.d.ts +1 -2
- package/dist/movethewheels/components/stock-observation/StockIssueHistory.d.ts +1 -2
- package/dist/movethewheels/components/stock-observation/StockIssueReadPanel.d.ts +1 -1
- package/dist/movethewheels/components/trip-utilization/TripReportForm.d.ts +1 -2
- package/dist/movethewheels/components/trip-utilization/TripReportHistory.d.ts +1 -2
- package/dist/movethewheels/components/trip-utilization/TripReportSummary.d.ts +1 -2
- package/dist/movethewheels/components/trip-utilization/TripSegmentFields.d.ts +1 -2
- package/dist/movethewheels/hooks/useAnalytics.d.ts +0 -1
- package/dist/movethewheels/hooks/useConsolidationAction.d.ts +0 -1
- package/dist/movethewheels/hooks/useContainerCondition.d.ts +0 -1
- package/dist/movethewheels/hooks/useContainerLifecycle.d.ts +0 -1
- package/dist/movethewheels/hooks/useCustomers.d.ts +0 -1
- package/dist/movethewheels/hooks/useEmptyReuseAction.d.ts +0 -1
- package/dist/movethewheels/hooks/useEpod.d.ts +0 -1
- package/dist/movethewheels/hooks/useFleet.d.ts +0 -1
- package/dist/movethewheels/hooks/useFreightRecoveryAction.d.ts +0 -1
- package/dist/movethewheels/hooks/useInventory.d.ts +0 -1
- package/dist/movethewheels/hooks/useOrders.d.ts +0 -1
- package/dist/movethewheels/hooks/useProcedureAction.d.ts +0 -1
- package/dist/movethewheels/hooks/useProcedureSelection.d.ts +0 -1
- package/dist/movethewheels/hooks/useReuseRecoveryAction.d.ts +0 -1
- package/dist/movethewheels/hooks/useRoutes.d.ts +0 -1
- package/dist/movethewheels/hooks/useShipmentStatusAuthority.d.ts +0 -1
- package/dist/movethewheels/hooks/useTracking.d.ts +0 -1
- package/dist/movethewheels/hooks/useTrackingEventQuality.d.ts +0 -1
- package/dist/movethewheels/pages/AIAssistantPage.d.ts +1 -1
- package/dist/movethewheels/pages/AnalyticsPage.d.ts +1 -1
- package/dist/movethewheels/pages/ConsolidationPage.d.ts +1 -1
- package/dist/movethewheels/pages/ContainerConditionPage.d.ts +1 -1
- package/dist/movethewheels/pages/ContainersPage.d.ts +1 -1
- package/dist/movethewheels/pages/CreateOrderPage.d.ts +1 -1
- package/dist/movethewheels/pages/CustomerDetailsPage.d.ts +1 -1
- package/dist/movethewheels/pages/CustomersPage.d.ts +1 -1
- package/dist/movethewheels/pages/DashboardPage.d.ts +1 -1
- package/dist/movethewheels/pages/DeliveryCapturePage.d.ts +1 -1
- package/dist/movethewheels/pages/DriverDetailsPage.d.ts +1 -1
- package/dist/movethewheels/pages/DriversPage.d.ts +1 -1
- package/dist/movethewheels/pages/EmptyReusePage.d.ts +1 -1
- package/dist/movethewheels/pages/FinancePage.d.ts +1 -1
- package/dist/movethewheels/pages/FleetPage.d.ts +1 -1
- package/dist/movethewheels/pages/FreeTimePage.d.ts +1 -1
- package/dist/movethewheels/pages/FreightEstimatePage.d.ts +1 -1
- package/dist/movethewheels/pages/ImportExportPage.d.ts +1 -1
- package/dist/movethewheels/pages/InventoryPage.d.ts +1 -1
- package/dist/movethewheels/pages/LiveTrackingPage.d.ts +1 -1
- package/dist/movethewheels/pages/LogisticsProceduresPage.d.ts +1 -1
- package/dist/movethewheels/pages/MarketplacePage.d.ts +1 -1
- package/dist/movethewheels/pages/MultiModalShipmentPage.d.ts +1 -1
- package/dist/movethewheels/pages/OrderDetailsPage.d.ts +1 -1
- package/dist/movethewheels/pages/OrdersListPage.d.ts +1 -1
- package/dist/movethewheels/pages/PendingPickPage.d.ts +1 -1
- package/dist/movethewheels/pages/ProductDetailsPage.d.ts +1 -1
- package/dist/movethewheels/pages/ProductsPage.d.ts +1 -1
- package/dist/movethewheels/pages/ReportsPage.d.ts +1 -1
- package/dist/movethewheels/pages/RouteDetailsPage.d.ts +1 -1
- package/dist/movethewheels/pages/RoutesPage.d.ts +1 -1
- package/dist/movethewheels/pages/SettingsPage.d.ts +1 -1
- package/dist/movethewheels/pages/ShipmentStatusAuthorityPage.d.ts +1 -1
- package/dist/movethewheels/pages/ShippingRatesPage.d.ts +1 -1
- package/dist/movethewheels/pages/StockBindingPage.d.ts +1 -1
- package/dist/movethewheels/pages/StockObservationsPage.d.ts +1 -1
- package/dist/movethewheels/pages/TrackingEventQualityPage.d.ts +1 -1
- package/dist/movethewheels/pages/TrackingPage.d.ts +1 -1
- package/dist/movethewheels/pages/TripUtilizationPage.d.ts +1 -1
- package/dist/movethewheels/pages/VehicleDetailsPage.d.ts +1 -1
- package/dist/movethewheels/pages/VehiclesPage.d.ts +1 -1
- package/dist/movethewheels/pages/WarehouseDetailsPage.d.ts +1 -1
- package/dist/movethewheels/pages/WarehousesPage.d.ts +1 -1
- package/dist/movethewheels/providers/MoveTheWheelsProvider.d.ts +0 -1
- package/dist/movethewheels/store/movethewheelsStore.d.ts +0 -1
- package/dist/movethewheels/types/index.d.ts +0 -1
- package/dist/movethewheels/utils/cn.d.ts +0 -1
- package/dist/movethewheels/utils/consolidationHistoryTarget.d.ts +0 -1
- package/dist/movethewheels/utils/consolidationInput.d.ts +0 -1
- package/dist/movethewheels/utils/consolidationLot.d.ts +0 -1
- package/dist/movethewheels/utils/consolidationPins.d.ts +0 -1
- package/dist/movethewheels/utils/consolidationRecovery.d.ts +0 -1
- package/dist/movethewheels/utils/consolidationReportHead.d.ts +0 -1
- package/dist/movethewheels/utils/formatters.d.ts +0 -1
- package/dist/movethewheels/utils/freightCommercial.d.ts +44 -0
- package/dist/movethewheels/utils/freightDraft.d.ts +0 -1
- package/dist/movethewheels/utils/freightRecovery.d.ts +0 -1
- package/dist/movethewheels/utils/mapMarkers.d.ts +0 -1
- package/dist/movethewheels/utils/orderValidation.d.ts +0 -1
- package/dist/movethewheels/utils/pendingPickDraft.d.ts +0 -1
- package/dist/movethewheels/utils/pickReviewAcknowledgement.d.ts +0 -1
- package/dist/movethewheels/utils/procedureInput.d.ts +0 -1
- package/dist/movethewheels/utils/procedureRecovery.d.ts +0 -1
- package/dist/movethewheels/utils/reuseForm.d.ts +0 -1
- package/dist/movethewheels/utils/reuseRecovery.d.ts +0 -1
- package/dist/movethewheels/utils/stockBindingForm.d.ts +0 -1
- package/dist/movethewheels/utils/stockObservationForm.d.ts +0 -1
- package/dist/movethewheels/utils/tripDraftContext.d.ts +0 -1
- package/dist/movethewheels/utils/tripUtilizationForm.d.ts +0 -1
- package/dist/pages/FreightEstimatePage.js +96 -92
- package/dist/services/createSandboxAssistantTransport.d.ts +2 -1
- package/dist/src/generated/freight-cost-operations.js +495 -6
- package/dist/stories/EntityCombobox.stories.d.ts +1 -2
- package/dist/stories/MetricCard.stories.d.ts +0 -1
- package/dist/stories/Notice.stories.d.ts +0 -1
- package/dist/stories/StatusBadge.stories.d.ts +0 -1
- package/dist/utils/freightAcknowledgement.js +6 -5
- package/dist/utils/freightCommercial.js +194 -0
- package/dist/utils/freightRecovery.js +22 -22
- package/package.json +6 -5
- package/src/generated/freight-cost-operations.ts +831 -1
- package/src/movethewheels/components/freight-cost/FreightCommercialEditor.tsx +236 -0
- package/src/movethewheels/components/freight-cost/FreightCommercialFactEditor.tsx +258 -0
- package/src/movethewheels/components/freight-cost/FreightCommercialHistory.tsx +90 -0
- package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +33 -4
- package/src/movethewheels/components/freight-cost/FreightHistory.tsx +4 -2
- package/src/movethewheels/hooks/useFreightRecoveryAction.ts +2 -1
- package/src/movethewheels/pages/FreightEstimatePage.tsx +14 -7
- package/src/movethewheels/utils/freightAcknowledgement.ts +3 -1
- package/src/movethewheels/utils/freightCommercial.ts +388 -0
- package/src/movethewheels/utils/freightRecovery.ts +6 -2
- package/src/operations/freight-cost/commercial.graphql +483 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useMoveTheWheels as e } from "../providers/MoveTheWheelsProvider.js";
|
|
2
2
|
import { useConditionApi as t } from "./useContainerCondition.js";
|
|
3
3
|
import { reuseRecoveryContextKey as n, reuseRecoveryScope as r, sameReuseRecoveryScope as i } from "../utils/reuseRecovery.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { FREIGHT_RECOVERY_STORAGE as
|
|
7
|
-
import { useRef as
|
|
8
|
-
import { print as
|
|
4
|
+
import { SaveFreightCommercialCostsDocument as a, SaveFreightCostsDocument as o } from "../src/generated/freight-cost-operations.js";
|
|
5
|
+
import { matchesFreightAcknowledgement as s } from "../utils/freightAcknowledgement.js";
|
|
6
|
+
import { FREIGHT_RECOVERY_STORAGE as c, decodeFreightRecovery as l, encodeFreightRecovery as u } from "../utils/freightRecovery.js";
|
|
7
|
+
import { useRef as d, useState as f } from "react";
|
|
8
|
+
import { print as p } from "graphql";
|
|
9
9
|
//#region src/movethewheels/hooks/useFreightRecoveryAction.ts
|
|
10
|
-
var
|
|
11
|
-
function
|
|
10
|
+
var m = [o, a];
|
|
11
|
+
function h() {
|
|
12
12
|
try {
|
|
13
|
-
let e = sessionStorage.getItem(
|
|
13
|
+
let e = sessionStorage.getItem(c), t = l(e);
|
|
14
14
|
return {
|
|
15
15
|
attempt: t,
|
|
16
16
|
blocked: e !== null && t === null
|
|
@@ -22,8 +22,8 @@ function m() {
|
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
let
|
|
25
|
+
function g() {
|
|
26
|
+
let a = t("SINGLE_ATTEMPT"), o = e(), g = r(o.currentUser?.id, o.workspaceId, o.tenantId, o.apiGatewayUrl, o.workspaceToken), [_] = f(h), [v, y] = f(_.attempt), [b, x] = f(_.blocked), S = d(v), C = d(!1), [w, T] = f(!1), E = n(g), [D, O] = f({
|
|
27
27
|
scopeKey: E,
|
|
28
28
|
error: null,
|
|
29
29
|
notice: null
|
|
@@ -35,25 +35,25 @@ function h() {
|
|
|
35
35
|
scopeKey: E,
|
|
36
36
|
error: null,
|
|
37
37
|
notice: e
|
|
38
|
-
}), [j, M] =
|
|
39
|
-
if (e) sessionStorage.setItem(
|
|
38
|
+
}), [j, M] = f(0), N = (e, t) => {
|
|
39
|
+
if (e) sessionStorage.setItem(c, u(e));
|
|
40
40
|
else {
|
|
41
|
-
let e =
|
|
42
|
-
(!t || e?.key === t.key && i(e.scope, t.scope)) && sessionStorage.removeItem(
|
|
41
|
+
let e = l(sessionStorage.getItem(c));
|
|
42
|
+
(!t || e?.key === t.key && i(e.scope, t.scope)) && sessionStorage.removeItem(c);
|
|
43
43
|
}
|
|
44
44
|
S.current = e, y(e), x(!1);
|
|
45
45
|
}, P = async (e) => {
|
|
46
46
|
if (C.current) return null;
|
|
47
47
|
if (!i(e.scope, g)) return k("Return to the original account, organization, workspace and project before retrying."), null;
|
|
48
|
-
let t =
|
|
48
|
+
let t = m.find((t) => p(t) === e.operation);
|
|
49
49
|
if (!t) return k("The saved operation changed. Check history before abandoning this attempt."), null;
|
|
50
50
|
C.current = !0, T(!0), k(null), A(null);
|
|
51
51
|
try {
|
|
52
|
-
let n = await
|
|
52
|
+
let n = await a(t, { input: {
|
|
53
53
|
...e.input,
|
|
54
54
|
idempotencyKey: e.key
|
|
55
55
|
} });
|
|
56
|
-
if (!
|
|
56
|
+
if (!s(n, e.input)) throw Error("The save reply could not be confirmed. Keep the original request and check history.");
|
|
57
57
|
return N(null, e), M((e) => e + 1), A(e.success), n;
|
|
58
58
|
} catch (e) {
|
|
59
59
|
return k(e instanceof Error ? e.message : "Unable to save. Check history before retrying."), null;
|
|
@@ -65,8 +65,8 @@ function h() {
|
|
|
65
65
|
run: async (e, t, n) => {
|
|
66
66
|
if (C.current || S.current || b) return k("Resolve the original request before starting another."), null;
|
|
67
67
|
if (!g) return k("Wait for the current account and workspace session."), null;
|
|
68
|
-
let r =
|
|
69
|
-
if (!
|
|
68
|
+
let r = p(e);
|
|
69
|
+
if (!m.some((e) => p(e) === r)) return k("Unsupported freight operation."), null;
|
|
70
70
|
try {
|
|
71
71
|
if (sessionStorage.getItem("movethewheels.freight.unresolved.v1") !== null) return k("A saved request is unresolved. Reload this page and check history before starting another."), null;
|
|
72
72
|
} catch {
|
|
@@ -114,4 +114,4 @@ function h() {
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
//#endregion
|
|
117
|
-
export {
|
|
117
|
+
export { g as useFreightRecoveryAction };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AssignmentSuggestions as Suggestions } from '../hooks/useFleetIntelligence';
|
|
2
|
-
|
|
3
2
|
interface AssignmentSuggestionsProps {
|
|
4
3
|
suggestions: Suggestions;
|
|
5
4
|
isLoading: boolean;
|
|
@@ -13,5 +12,5 @@ interface AssignmentSuggestionsProps {
|
|
|
13
12
|
}) => Promise<void>;
|
|
14
13
|
t: (key: string, fallback: string) => string;
|
|
15
14
|
}
|
|
16
|
-
export declare function AssignmentSuggestions({ suggestions, isLoading, error, onRetry, assignedVehicleId, assignedDriverId, onAssign, t, }: AssignmentSuggestionsProps): import(
|
|
15
|
+
export declare function AssignmentSuggestions({ suggestions, isLoading, error, onRetry, assignedVehicleId, assignedDriverId, onAssign, t, }: AssignmentSuggestionsProps): import('react').JSX.Element;
|
|
17
16
|
export {};
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* Surfaces workspace-level CO2e totals and per-vehicle intensity. Data comes
|
|
5
5
|
* from Query.emissionsSummary via useEmissionsSummary.
|
|
6
6
|
*/
|
|
7
|
-
export declare function CarbonFootprintPanel(): import(
|
|
7
|
+
export declare function CarbonFootprintPanel(): import('react').JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MtwContainerEvidenceInput } from '../../generated/container-condition-operations';
|
|
2
|
-
|
|
3
2
|
export interface SelectedEvidence extends MtwContainerEvidenceInput {
|
|
4
3
|
label: string;
|
|
5
4
|
}
|
|
@@ -7,4 +6,4 @@ export declare function ContainerEvidencePicker({ value, onChange, description,
|
|
|
7
6
|
value: SelectedEvidence[];
|
|
8
7
|
onChange: (value: SelectedEvidence[]) => void;
|
|
9
8
|
description?: string;
|
|
10
|
-
}): import(
|
|
9
|
+
}): import('react').JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Customer } from '../types';
|
|
2
|
-
|
|
3
2
|
interface CustomerPickerProps {
|
|
4
3
|
customers: Customer[];
|
|
5
4
|
value: string;
|
|
@@ -20,5 +19,5 @@ interface CustomerPickerProps {
|
|
|
20
19
|
onSearchQueryChange?: (query: string) => void;
|
|
21
20
|
disabled?: boolean;
|
|
22
21
|
}
|
|
23
|
-
export declare function CustomerPicker({ customers, value, onValueChange, onCreated, createCustomer, isLoading, isLoadingMore, error, onRetry, onLoadMore, hasMore, totalCount, onOpenCustomers, selectedCustomer, onSearchQueryChange, disabled, }: CustomerPickerProps): import(
|
|
22
|
+
export declare function CustomerPicker({ customers, value, onValueChange, onCreated, createCustomer, isLoading, isLoadingMore, error, onRetry, onLoadMore, hasMore, totalCount, onOpenCustomers, selectedCustomer, onSearchQueryChange, disabled, }: CustomerPickerProps): import('react').JSX.Element;
|
|
24
23
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
export interface Column<T> {
|
|
4
3
|
id: string;
|
|
5
4
|
header: string | ReactNode;
|
|
@@ -67,5 +66,5 @@ interface DataTableProps<T> {
|
|
|
67
66
|
* DataTable - A reusable data table component with sorting, search, and both
|
|
68
67
|
* client-side and controlled (server-side) pagination.
|
|
69
68
|
*/
|
|
70
|
-
export declare function DataTable<T extends object>({ columns, data, isLoading, error, onRetry, searchable, searchPlaceholder, searchFields, searchQuery: controlledSearchQuery, onSearchQueryChange, pagination, pageSize: pageSizeProp, pageSizeOptions, onRowClick, rowClassName, emptyMessage, emptyIllustration, emptyTitle, emptyDescription, emptyAction, className, getRowId, pageIndex, onPageChange, onPageSizeChange, totalItems, hasNextPage, }: DataTableProps<T>): import(
|
|
69
|
+
export declare function DataTable<T extends object>({ columns, data, isLoading, error, onRetry, searchable, searchPlaceholder, searchFields, searchQuery: controlledSearchQuery, onSearchQueryChange, pagination, pageSize: pageSizeProp, pageSizeOptions, onRowClick, rowClassName, emptyMessage, emptyIllustration, emptyTitle, emptyDescription, emptyAction, className, getRowId, pageIndex, onPageChange, onPageSizeChange, totalItems, hasNextPage, }: DataTableProps<T>): import('react').JSX.Element;
|
|
71
70
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { EntityDocumentType } from '../hooks/useEntityDocuments';
|
|
2
|
-
|
|
3
2
|
interface DocumentsCardProps {
|
|
4
3
|
entityType: EntityDocumentType;
|
|
5
4
|
entityId: string;
|
|
6
5
|
}
|
|
7
|
-
export declare function DocumentsCard({ entityType, entityId }: DocumentsCardProps): import(
|
|
6
|
+
export declare function DocumentsCard({ entityType, entityId }: DocumentsCardProps): import('react').JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -39,5 +39,5 @@ interface EntityComboboxProps<T> {
|
|
|
39
39
|
/** True while the next server page is being fetched. */
|
|
40
40
|
loadingMore?: boolean;
|
|
41
41
|
}
|
|
42
|
-
export declare function EntityCombobox<T>({ value, onChange, options, loading, getId, renderOption, getLabel, selectedOption, selectedLoading, required, placeholder, searchPlaceholder, emptyText, noneLabel, disabled, id, error, className, onSearchChange, hasMore, totalCount, onLoadMore, loadingMore, }: EntityComboboxProps<T>): import(
|
|
42
|
+
export declare function EntityCombobox<T>({ value, onChange, options, loading, getId, renderOption, getLabel, selectedOption, selectedLoading, required, placeholder, searchPlaceholder, emptyText, noneLabel, disabled, id, error, className, onSearchChange, hasMore, totalCount, onLoadMore, loadingMore, }: EntityComboboxProps<T>): import('react').JSX.Element;
|
|
43
43
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FleetAlert } from '../hooks/useFleetIntelligence';
|
|
2
|
-
|
|
3
2
|
interface FleetAlertsPanelProps {
|
|
4
3
|
alerts: FleetAlert[];
|
|
5
4
|
isLoading: boolean;
|
|
@@ -10,5 +9,5 @@ interface FleetAlertsPanelProps {
|
|
|
10
9
|
}
|
|
11
10
|
/** Human-readable "how close / how late" for an alert, from its structured due data. */
|
|
12
11
|
export declare function describeDue(alert: Pick<FleetAlert, 'daysUntilDue' | 'kmUntilDue'>): string;
|
|
13
|
-
export declare function FleetAlertsPanel({ alerts, isLoading, error, onRetry, onOpen, t, }: FleetAlertsPanelProps): import(
|
|
12
|
+
export declare function FleetAlertsPanel({ alerts, isLoading, error, onRetry, onOpen, t, }: FleetAlertsPanelProps): import('react').JSX.Element;
|
|
14
13
|
export {};
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
interface FormErrorProps {
|
|
8
8
|
message?: string | null;
|
|
9
9
|
}
|
|
10
|
-
export declare function FormError({ message }: FormErrorProps): import(
|
|
10
|
+
export declare function FormError({ message }: FormErrorProps): import('react').JSX.Element | null;
|
|
11
11
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MtwFreeTimeAgreementInput, FreeAgreementFieldsFragment } from '../../generated/free-time-operations';
|
|
2
|
-
|
|
3
2
|
export interface FreeTimeEventOption {
|
|
4
3
|
id: string;
|
|
5
4
|
eventType: string;
|
|
@@ -11,4 +10,4 @@ export declare function FreeTimeAgreementForm({ events, initial, onSubmit, busy,
|
|
|
11
10
|
initial?: FreeAgreementFieldsFragment;
|
|
12
11
|
onSubmit: (input: MtwFreeTimeAgreementInput) => Promise<void>;
|
|
13
12
|
busy: boolean;
|
|
14
|
-
}): import(
|
|
13
|
+
}): import('react').JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
interface GlassPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
4
3
|
/** Optional panel title rendered in a compact header row. */
|
|
5
4
|
title?: ReactNode;
|
|
@@ -21,5 +20,5 @@ interface GlassPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>
|
|
|
21
20
|
* dashboard sections, map/chart cards, and side rails. Token-based, theme-aware,
|
|
22
21
|
* and follows the fe-libs no-movement hover policy.
|
|
23
22
|
*/
|
|
24
|
-
export declare function GlassPanel({ title, action, description, padding, treatment, glow, className, bodyClassName, children, ...rest }: GlassPanelProps): import(
|
|
23
|
+
export declare function GlassPanel({ title, action, description, padding, treatment, glow, className, bodyClassName, children, ...rest }: GlassPanelProps): import('react').JSX.Element;
|
|
25
24
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
/** Semantic accent used to tint the sparkline, delta chip, and icon chip. */
|
|
4
3
|
export type MetricAccent = 'brand' | 'blue' | 'success' | 'warning' | 'error' | 'neutral';
|
|
5
4
|
export interface MetricDelta {
|
|
@@ -50,13 +49,13 @@ interface MetricCardProps {
|
|
|
50
49
|
* chip, an optional inline sparkline, and a token-tinted icon chip. Backward
|
|
51
50
|
* compatible with the legacy `change`/`changeType`/`trend` props.
|
|
52
51
|
*/
|
|
53
|
-
export declare function MetricCard({ value, label, icon, change, changeType, subtitle, trend, size, onClick, className, treatment, glow, sparklineData, delta, accent, }: MetricCardProps): import(
|
|
52
|
+
export declare function MetricCard({ value, label, icon, change, changeType, subtitle, trend, size, onClick, className, treatment, glow, sparklineData, delta, accent, }: MetricCardProps): import('react').JSX.Element;
|
|
54
53
|
/**
|
|
55
54
|
* MetricCardSkeleton - Loading state for MetricCard
|
|
56
55
|
*/
|
|
57
56
|
export declare function MetricCardSkeleton({ size }: {
|
|
58
57
|
size?: 'sm' | 'md' | 'lg';
|
|
59
|
-
}): import(
|
|
58
|
+
}): import('react').JSX.Element;
|
|
60
59
|
/**
|
|
61
60
|
* MetricGrid - Grid container for metric cards
|
|
62
61
|
*/
|
|
@@ -64,5 +63,5 @@ export declare function MetricGrid({ children, columns, className, }: {
|
|
|
64
63
|
children: ReactNode;
|
|
65
64
|
columns?: 2 | 3 | 4 | 5 | 6;
|
|
66
65
|
className?: string;
|
|
67
|
-
}): import(
|
|
66
|
+
}): import('react').JSX.Element;
|
|
68
67
|
export {};
|
|
@@ -12,7 +12,7 @@ interface NoticeProps {
|
|
|
12
12
|
message?: string | null;
|
|
13
13
|
variant?: NoticeVariant;
|
|
14
14
|
}
|
|
15
|
-
export declare function Notice({ message, variant }: NoticeProps): import(
|
|
15
|
+
export declare function Notice({ message, variant }: NoticeProps): import('react').JSX.Element | null;
|
|
16
16
|
/**
|
|
17
17
|
* useNotice — transient success/info message that auto-clears after a delay.
|
|
18
18
|
* Returns the current message plus a `notify` setter, mirroring a toast API.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OrderItem, Product } from '../types';
|
|
2
2
|
import { OrderItemFieldErrors } from '../utils/orderValidation';
|
|
3
|
-
|
|
4
3
|
interface OrderItemRowProps {
|
|
5
4
|
item: OrderItem;
|
|
6
5
|
index: number;
|
|
@@ -14,5 +13,5 @@ interface OrderItemRowProps {
|
|
|
14
13
|
onUpdate: (index: number, field: string, value: unknown) => void;
|
|
15
14
|
onRemove: (index: number) => void;
|
|
16
15
|
}
|
|
17
|
-
export declare function OrderItemRow({ item, index, products, productsLoading, productsLoadingMore, productsHasMore, productsTotalCount, onLoadMoreProducts, errors, onUpdate, onRemove, }: OrderItemRowProps): import(
|
|
16
|
+
export declare function OrderItemRow({ item, index, products, productsLoading, productsLoadingMore, productsHasMore, productsTotalCount, onLoadMoreProducts, errors, onUpdate, onRemove, }: OrderItemRowProps): import('react').JSX.Element;
|
|
18
17
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
interface PageLayoutProps {
|
|
4
3
|
children: ReactNode;
|
|
5
4
|
/** Page title */
|
|
@@ -40,7 +39,7 @@ interface PageLayoutProps {
|
|
|
40
39
|
* - Animated entrance
|
|
41
40
|
* - Consistent header styling
|
|
42
41
|
*/
|
|
43
|
-
export declare function PageLayout({ children, title, subtitle, icon, headerActions, headerContent, maxWidth, showHeader, className, contentClassName, hero, titleAccent, }: PageLayoutProps): import(
|
|
42
|
+
export declare function PageLayout({ children, title, subtitle, icon, headerActions, headerContent, maxWidth, showHeader, className, contentClassName, hero, titleAccent, }: PageLayoutProps): import('react').JSX.Element;
|
|
44
43
|
/**
|
|
45
44
|
* PageSection - A section within a page with consistent spacing
|
|
46
45
|
*/
|
|
@@ -50,7 +49,7 @@ export declare function PageSection({ children, title, description, actions, cla
|
|
|
50
49
|
description?: string;
|
|
51
50
|
actions?: ReactNode;
|
|
52
51
|
className?: string;
|
|
53
|
-
}): import(
|
|
52
|
+
}): import('react').JSX.Element;
|
|
54
53
|
/**
|
|
55
54
|
* EmptyState - A consistent empty/zero state component.
|
|
56
55
|
*
|
|
@@ -68,13 +67,13 @@ export declare function EmptyState({ icon, title, description, action, className
|
|
|
68
67
|
className?: string;
|
|
69
68
|
/** Standard illustration name served by the host at /illustrations/<name>.webp. */
|
|
70
69
|
illustration?: string;
|
|
71
|
-
}): import(
|
|
70
|
+
}): import('react').JSX.Element;
|
|
72
71
|
/**
|
|
73
72
|
* LoadingState - A consistent loading state component
|
|
74
73
|
*/
|
|
75
74
|
export declare function LoadingState({ message }: {
|
|
76
75
|
message?: string;
|
|
77
|
-
}): import(
|
|
76
|
+
}): import('react').JSX.Element;
|
|
78
77
|
/**
|
|
79
78
|
* ErrorState - A consistent error state component
|
|
80
79
|
*/
|
|
@@ -82,5 +81,5 @@ export declare function ErrorState({ title, message, onRetry, }: {
|
|
|
82
81
|
title?: string;
|
|
83
82
|
message?: string;
|
|
84
83
|
onRetry?: () => void;
|
|
85
|
-
}): import(
|
|
84
|
+
}): import('react').JSX.Element;
|
|
86
85
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface ProofOfDeliveryCardProps {
|
|
2
2
|
deliveryJobId: string;
|
|
3
3
|
}
|
|
4
|
-
export declare function ProofOfDeliveryCard({ deliveryJobId }: ProofOfDeliveryCardProps): import(
|
|
4
|
+
export declare function ProofOfDeliveryCard({ deliveryJobId }: ProofOfDeliveryCardProps): import('react').JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { RecordMtwEmptyReturnInstructionInput, ReturnInstructionFieldsFragment } from '../../generated/empty-reuse-operations';
|
|
2
|
-
|
|
3
2
|
export type ReturnInstructionDraft = Omit<RecordMtwEmptyReturnInstructionInput, 'idempotencyKey' | 'expectedCycleVersion' | 'cycleId' | 'currentInstructionId'>;
|
|
4
3
|
export declare function ReturnInstructionForm({ current, busy, onSubmit, }: {
|
|
5
4
|
current?: ReturnInstructionFieldsFragment;
|
|
6
5
|
busy: boolean;
|
|
7
6
|
onSubmit: (input: ReturnInstructionDraft) => Promise<unknown>;
|
|
8
|
-
}): import(
|
|
7
|
+
}): import('react').JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
export declare const reuseCard = "space-y-4 rounded-xl border bg-bg-surface p-5";
|
|
4
3
|
export declare const reuseSelect = "mt-1 w-full rounded-md border bg-bg-surface p-2 text-sm";
|
|
5
4
|
export interface ReusePageInfo {
|
|
@@ -14,12 +13,12 @@ export declare function ReusePager({ page, offset, onChange, busy, }: {
|
|
|
14
13
|
offset: number;
|
|
15
14
|
onChange: (offset: number) => void;
|
|
16
15
|
busy: boolean;
|
|
17
|
-
}): import(
|
|
16
|
+
}): import('react').JSX.Element;
|
|
18
17
|
export declare function ReuseState({ loading, error, children, }: {
|
|
19
18
|
loading: boolean;
|
|
20
19
|
error: string | null;
|
|
21
20
|
children?: ReactNode;
|
|
22
|
-
}): import(
|
|
21
|
+
}): import('react').JSX.Element;
|
|
23
22
|
export declare function ReuseField({ label, name, value, type, required, maxLength, }: {
|
|
24
23
|
label: string;
|
|
25
24
|
name: string;
|
|
@@ -27,7 +26,7 @@ export declare function ReuseField({ label, name, value, type, required, maxLeng
|
|
|
27
26
|
type?: 'text' | 'number';
|
|
28
27
|
required?: boolean;
|
|
29
28
|
maxLength?: number;
|
|
30
|
-
}): import(
|
|
29
|
+
}): import('react').JSX.Element;
|
|
31
30
|
export declare function PinnedSelect({ label, name, value, onChange, options, required, disabled, }: {
|
|
32
31
|
label: string;
|
|
33
32
|
name?: string;
|
|
@@ -39,4 +38,4 @@ export declare function PinnedSelect({ label, name, value, onChange, options, re
|
|
|
39
38
|
}[];
|
|
40
39
|
required?: boolean;
|
|
41
40
|
disabled?: boolean;
|
|
42
|
-
}): import(
|
|
41
|
+
}): import('react').JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { RecordMtwEquipmentReuseApprovalInput, ReuseApprovalFieldsFragment } from '../../generated/empty-reuse-operations';
|
|
2
|
-
|
|
3
2
|
export type ReusePermissionDraft = Omit<RecordMtwEquipmentReuseApprovalInput, 'idempotencyKey' | 'proposalId' | 'expectedCycleVersion'>;
|
|
4
3
|
export declare function ReusePermissionForm({ approvals, ownerReference, busy, onSubmit, }: {
|
|
5
4
|
approvals: ReuseApprovalFieldsFragment[];
|
|
6
5
|
ownerReference: string;
|
|
7
6
|
busy: boolean;
|
|
8
7
|
onSubmit: (input: ReusePermissionDraft) => Promise<unknown>;
|
|
9
|
-
}): import(
|
|
8
|
+
}): import('react').JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReuseProposalFieldsFragment, ReturnInstructionFieldsFragment, RecordMtwReuseProposalInput } from '../../generated/empty-reuse-operations';
|
|
2
|
-
|
|
3
2
|
export type ReuseProposalDraft = Omit<RecordMtwReuseProposalInput, 'idempotencyKey' | 'expectedCycleVersion' | 'cycleId'>;
|
|
4
3
|
export declare function ReuseProposalForm({ cycleId, containerId, instruction, initial, busy, onSubmit, }: {
|
|
5
4
|
cycleId: string;
|
|
@@ -8,4 +7,4 @@ export declare function ReuseProposalForm({ cycleId, containerId, instruction, i
|
|
|
8
7
|
initial?: ReuseProposalFieldsFragment;
|
|
9
8
|
busy: boolean;
|
|
10
9
|
onSubmit: (input: ReuseProposalDraft) => Promise<unknown>;
|
|
11
|
-
}): import(
|
|
10
|
+
}): import('react').JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ReuseSourceFieldsFragment } from '../../generated/empty-reuse-operations';
|
|
2
2
|
import { SelectedEvidence } from './ContainerEvidencePicker';
|
|
3
|
-
|
|
4
3
|
export declare function ReuseSourceFields({ name, label, evidence, initial, }: {
|
|
5
4
|
name: string;
|
|
6
5
|
label: string;
|
|
7
6
|
evidence: SelectedEvidence[];
|
|
8
7
|
initial?: ReuseSourceFieldsFragment | null;
|
|
9
|
-
}): import(
|
|
8
|
+
}): import('react').JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ShippingQuoteResult } from '../hooks/useShippingCarriers';
|
|
2
|
-
|
|
3
2
|
interface ShippingQuoteResultsProps {
|
|
4
3
|
result: ShippingQuoteResult;
|
|
5
4
|
t: (key: string, fallback: string) => string;
|
|
6
5
|
}
|
|
7
|
-
export declare function ShippingQuoteResults({ result, t }: ShippingQuoteResultsProps): import(
|
|
6
|
+
export declare function ShippingQuoteResults({ result, t }: ShippingQuoteResultsProps): import('react').JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { VehicleType } from '../types';
|
|
2
|
-
|
|
3
2
|
type StatusType = 'order' | 'vehicle' | 'driver' | 'custom';
|
|
4
3
|
interface StatusBadgeProps {
|
|
5
4
|
status: string;
|
|
@@ -17,7 +16,7 @@ interface StatusBadgeProps {
|
|
|
17
16
|
/**
|
|
18
17
|
* StatusBadge - Displays status with appropriate colors
|
|
19
18
|
*/
|
|
20
|
-
export declare function StatusBadge({ status, type, customColors, label, size, showDot, className, }: StatusBadgeProps): import(
|
|
19
|
+
export declare function StatusBadge({ status, type, customColors, label, size, showDot, className, }: StatusBadgeProps): import('react').JSX.Element;
|
|
21
20
|
/**
|
|
22
21
|
* Priority Badge - Displays priority level
|
|
23
22
|
*/
|
|
@@ -25,7 +24,7 @@ export declare function PriorityBadge({ priority, size, className, }: {
|
|
|
25
24
|
priority: 'low' | 'normal' | 'high' | 'urgent';
|
|
26
25
|
size?: 'sm' | 'md' | 'lg';
|
|
27
26
|
className?: string;
|
|
28
|
-
}): import(
|
|
27
|
+
}): import('react').JSX.Element;
|
|
29
28
|
/**
|
|
30
29
|
* TypeBadge - Displays B2B/B2C type
|
|
31
30
|
*/
|
|
@@ -33,7 +32,7 @@ export declare function TypeBadge({ type, size, className, }: {
|
|
|
33
32
|
type: 'b2b' | 'b2c';
|
|
34
33
|
size?: 'sm' | 'md' | 'lg';
|
|
35
34
|
className?: string;
|
|
36
|
-
}): import(
|
|
35
|
+
}): import('react').JSX.Element;
|
|
37
36
|
/**
|
|
38
37
|
* PaymentStatusBadge - Displays payment status
|
|
39
38
|
*/
|
|
@@ -41,7 +40,7 @@ export declare function PaymentStatusBadge({ status, size, className, }: {
|
|
|
41
40
|
status: 'pending' | 'paid' | 'failed' | 'refunded';
|
|
42
41
|
size?: 'sm' | 'md' | 'lg';
|
|
43
42
|
className?: string;
|
|
44
|
-
}): import(
|
|
43
|
+
}): import('react').JSX.Element;
|
|
45
44
|
/**
|
|
46
45
|
* VehicleTypeBadge - Displays vehicle type
|
|
47
46
|
*/
|
|
@@ -49,5 +48,5 @@ export declare function VehicleTypeBadge({ type, size, className, }: {
|
|
|
49
48
|
type: VehicleType;
|
|
50
49
|
size?: 'sm' | 'md' | 'lg';
|
|
51
50
|
className?: string;
|
|
52
|
-
}): import(
|
|
51
|
+
}): import('react').JSX.Element;
|
|
53
52
|
export {};
|
|
@@ -14,11 +14,11 @@ interface DialogBaseProps {
|
|
|
14
14
|
/** Called after a successful write with a short human-readable summary. */
|
|
15
15
|
onDone: (message: string) => void;
|
|
16
16
|
}
|
|
17
|
-
export declare function ReceiveStockDialog({ open, onOpenChange, onDone }: DialogBaseProps): import(
|
|
17
|
+
export declare function ReceiveStockDialog({ open, onOpenChange, onDone }: DialogBaseProps): import('react').JSX.Element;
|
|
18
18
|
export declare function AdjustStockDialog({ line, open, onOpenChange, onDone, }: DialogBaseProps & {
|
|
19
19
|
line: StockLineTarget | null;
|
|
20
|
-
}): import(
|
|
20
|
+
}): import('react').JSX.Element;
|
|
21
21
|
export declare function TransferStockDialog({ line, open, onOpenChange, onDone, }: DialogBaseProps & {
|
|
22
22
|
line: StockLineTarget | null;
|
|
23
|
-
}): import(
|
|
23
|
+
}): import('react').JSX.Element;
|
|
24
24
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ForecastPoint, ForecastVariance } from '../hooks/useDemandForecast';
|
|
2
|
-
|
|
3
2
|
interface UpcomingDemandPanelProps {
|
|
4
3
|
laneForecast: ForecastPoint[];
|
|
5
4
|
customerForecast: ForecastPoint[];
|
|
@@ -9,5 +8,5 @@ interface UpcomingDemandPanelProps {
|
|
|
9
8
|
error: Error | null;
|
|
10
9
|
onRetry: () => void;
|
|
11
10
|
}
|
|
12
|
-
export declare function UpcomingDemandPanel({ laneForecast, customerForecast, laneVariance, customerVariance, isLoading, error, onRetry, }: UpcomingDemandPanelProps): import(
|
|
11
|
+
export declare function UpcomingDemandPanel({ laneForecast, customerForecast, laneVariance, customerVariance, isLoading, error, onRetry, }: UpcomingDemandPanelProps): import('react').JSX.Element;
|
|
13
12
|
export {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { RecordVehicleServiceInput } from '../hooks/useFleetIntelligence';
|
|
2
2
|
import { Vehicle } from '../types';
|
|
3
|
-
|
|
4
3
|
interface VehicleServiceCardProps {
|
|
5
4
|
vehicle: Vehicle;
|
|
6
5
|
onRecord: (input: RecordVehicleServiceInput) => Promise<void>;
|
|
7
6
|
t: (key: string, fallback: string) => string;
|
|
8
7
|
}
|
|
9
|
-
export declare function VehicleServiceCard({ vehicle, onRecord, t }: VehicleServiceCardProps): import(
|
|
8
|
+
export declare function VehicleServiceCard({ vehicle, onRecord, t }: VehicleServiceCardProps): import('react').JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* Small on-brand empty state used by every chart when there is no data.
|
|
5
4
|
* Honest: we never fabricate a placeholder series.
|
|
@@ -8,7 +7,7 @@ export declare function ChartEmpty({ message, height, className, }: {
|
|
|
8
7
|
message?: string;
|
|
9
8
|
height?: number | string;
|
|
10
9
|
className?: string;
|
|
11
|
-
}): import(
|
|
10
|
+
}): import('react').JSX.Element;
|
|
12
11
|
interface ChartTooltipPayloadItem {
|
|
13
12
|
name?: string | number;
|
|
14
13
|
value?: string | number;
|
|
@@ -23,5 +22,5 @@ export declare function ChartTooltip({ active, payload, label, formatter, }: {
|
|
|
23
22
|
payload?: ChartTooltipPayloadItem[];
|
|
24
23
|
label?: ReactNode;
|
|
25
24
|
formatter?: (value: number | string, name: string) => ReactNode;
|
|
26
|
-
}): import(
|
|
25
|
+
}): import('react').JSX.Element | null;
|
|
27
26
|
export {};
|
|
@@ -18,5 +18,5 @@ interface SparklineProps {
|
|
|
18
18
|
* its container; renders nothing (an empty spacer) when there is no data so the
|
|
19
19
|
* card layout stays stable.
|
|
20
20
|
*/
|
|
21
|
-
export declare function Sparkline({ data, color, variant, height, width, className, strokeWidth, }: SparklineProps): import(
|
|
21
|
+
export declare function Sparkline({ data, color, variant, height, width, className, strokeWidth, }: SparklineProps): import('react').JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -19,5 +19,5 @@ interface StatusDonutProps {
|
|
|
19
19
|
* StatusDonut — donut chart with a centered total and a token-styled legend.
|
|
20
20
|
* Responsive; renders an honest empty state when every slice is zero/absent.
|
|
21
21
|
*/
|
|
22
|
-
export declare function StatusDonut({ data, height, className, centerLabel, centerSubLabel, showLegend, emptyMessage, valueFormatter, }: StatusDonutProps): import(
|
|
22
|
+
export declare function StatusDonut({ data, height, className, centerLabel, centerSubLabel, showLegend, emptyMessage, valueFormatter, }: StatusDonutProps): import('react').JSX.Element;
|
|
23
23
|
export {};
|
|
@@ -25,5 +25,5 @@ interface TrendChartProps {
|
|
|
25
25
|
* TrendChart — multi-series area/line chart for trends over time. Fully
|
|
26
26
|
* responsive (ResponsiveContainer), token-colored, with an honest empty state.
|
|
27
27
|
*/
|
|
28
|
-
export declare function TrendChart({ data, series, xKey, variant, height, className, showLegend, showGrid, emptyMessage, valueFormatter, }: TrendChartProps): import(
|
|
28
|
+
export declare function TrendChart({ data, series, xKey, variant, height, className, showLegend, showGrid, emptyMessage, valueFormatter, }: TrendChartProps): import('react').JSX.Element;
|
|
29
29
|
export {};
|
|
@@ -18,5 +18,5 @@ interface VolumeBarProps {
|
|
|
18
18
|
* VolumeBar — grouped/stacked bar chart (e.g. weekly order volume, revenue by
|
|
19
19
|
* month). Responsive, token-colored, rounded bars, honest empty state.
|
|
20
20
|
*/
|
|
21
|
-
export declare function VolumeBar({ data, series, xKey, height, className, showLegend, stacked, emptyMessage, valueFormatter, }: VolumeBarProps): import(
|
|
21
|
+
export declare function VolumeBar({ data, series, xKey, height, className, showLegend, stacked, emptyMessage, valueFormatter, }: VolumeBarProps): import('react').JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ConsolidationObservationsQuery, ConsolidationManifestQuery, ConsolidationPlanQuery } from '../../../generated/consolidation-operations';
|
|
2
|
-
|
|
3
2
|
export declare function ConsolidationPlanHistory({ plan, }: {
|
|
4
3
|
plan: ConsolidationPlanQuery['mtwConsolidationPlan'];
|
|
5
|
-
}): import(
|
|
4
|
+
}): import('react').JSX.Element;
|
|
6
5
|
export declare function ConsolidationReportHistory({ rows, labels, }: {
|
|
7
6
|
rows: ConsolidationObservationsQuery['mtwConsolidationObservationPage']['items'];
|
|
8
7
|
labels: Record<string, string>;
|
|
9
|
-
}): import(
|
|
8
|
+
}): import('react').JSX.Element;
|
|
10
9
|
export declare function ConsolidationManifestHistory({ manifest, labels, }: {
|
|
11
10
|
manifest: ConsolidationManifestQuery['mtwConsolidationManifest'];
|
|
12
11
|
labels: Record<string, string>;
|
|
13
|
-
}): import(
|
|
12
|
+
}): import('react').JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MtwConsolidationLotInput } from '../../../generated/consolidation-operations';
|
|
2
|
-
|
|
3
2
|
export declare function ConsolidationLotEditor({ lot, onChange, }: {
|
|
4
3
|
lot: MtwConsolidationLotInput;
|
|
5
4
|
onChange: (lot: MtwConsolidationLotInput) => void;
|
|
6
|
-
}): import(
|
|
5
|
+
}): import('react').JSX.Element;
|