@flowselections/logistiek-engine 1.0.155 → 1.0.159
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-lib/components/AfrondWachtrijCard.js +1 -1
- package/dist-lib/components/BeheerPage.js +5 -5
- package/dist-lib/components/BeladingIndelingCard.js +3 -3
- package/dist-lib/components/BeladingsafwijkingenCard.js +1 -1
- package/dist-lib/components/BufferDebugCard.d.ts +1 -1
- package/dist-lib/components/BufferDebugCard.js +1 -1
- package/dist-lib/components/CapaciteitMeldingenCard.js +1 -1
- package/dist-lib/components/FloridayPoortCard.js +1 -1
- package/dist-lib/components/FloridayPushCard.js +1 -1
- package/dist-lib/components/FlowCanvas.d.ts +5 -5
- package/dist-lib/components/FlowCanvas.js +4 -4
- package/dist-lib/components/FlowOrders.d.ts +1 -1
- package/dist-lib/components/FlowOrders.js +3 -3
- package/dist-lib/components/FlowPage.js +21 -21
- package/dist-lib/components/GearchiveerdeOrdersCard.js +1 -1
- package/dist-lib/components/GeblokkeerdeOrdersCard.js +1 -1
- package/dist-lib/components/KardekkingCard.js +1 -1
- package/dist-lib/components/LadingdragersPage.js +2 -2
- package/dist-lib/components/LogistiekEnginePage.js +5 -5
- package/dist-lib/components/LogistiekEngineQueuePage.js +3 -3
- package/dist-lib/components/MinuutrondeCard.js +3 -3
- package/dist-lib/components/ModulePromptsPage.js +3 -3
- package/dist-lib/components/NodeTracePanel.d.ts +2 -2
- package/dist-lib/components/NodeTracePanel.js +4 -4
- package/dist-lib/components/OpruimlijstKarrenCard.d.ts.map +1 -1
- package/dist-lib/components/OpruimlijstKarrenCard.js +80 -17
- package/dist-lib/components/OrderJourneyBar.d.ts +1 -1
- package/dist-lib/components/OrderJourneyBar.js +2 -2
- package/dist-lib/components/OrderLogboek.d.ts +1 -1
- package/dist-lib/components/OrderLogboek.js +1 -1
- package/dist-lib/components/OrderStopBanner.d.ts +1 -1
- package/dist-lib/components/OrderStopBanner.js +4 -4
- package/dist-lib/components/OrderTraceDetails.d.ts +1 -1
- package/dist-lib/components/OrderTraceDetails.js +2 -2
- package/dist-lib/components/PlanWachtrijPage.js +3 -3
- package/dist-lib/components/PlannerDiffCard.js +1 -1
- package/dist-lib/components/PrintjobsCard.js +1 -1
- package/dist-lib/components/RegiePage.js +11 -11
- package/dist-lib/components/RolPoort.d.ts +1 -1
- package/dist-lib/components/RolPoort.js +1 -1
- package/dist-lib/components/RuleEnginePage.js +11 -11
- package/dist-lib/components/StrategieDialog.d.ts +1 -1
- package/dist-lib/components/TaakGezondheidCard.js +1 -1
- package/dist-lib/components/VertragingMeldingenCard.js +1 -1
- package/dist-lib/components/VoorraadMeldingenCard.js +1 -1
- package/dist-lib/components/WerktijdenCard.js +1 -1
- package/dist-lib/components/WerkwijzeHerindelingCard.js +1 -1
- package/dist-lib/components/rule-engine/CollapsibleGroup.js +1 -1
- package/dist-lib/components/rule-engine/ConditionsEditor.d.ts +1 -1
- package/dist-lib/components/rule-engine/ConditionsEditor.js +1 -1
- package/dist-lib/components/rule-engine/ImpactPanel.d.ts +1 -1
- package/dist-lib/components/rule-engine/ImpactPanel.js +1 -1
- package/dist-lib/components/rule-engine/RuleFieldInput.d.ts +1 -1
- package/dist-lib/components/rule-engine/RuleFieldInput.js +5 -5
- package/dist-lib/components/rule-engine/VersionsPanel.d.ts +2 -2
- package/dist-lib/components/rule-engine/VersionsPanel.js +1 -1
- package/dist-lib/hooks/useFloridayPushes.js +1 -1
- package/dist-lib/hooks/useLadingdragers.d.ts +1 -1
- package/dist-lib/hooks/useLogistiekTaken.d.ts +1 -1
- package/dist-lib/hooks/useLogistiekTaken.js +1 -1
- package/dist-lib/hooks/useOrderNodeTrace.d.ts +3 -3
- package/dist-lib/hooks/useOrderNodeTrace.js +3 -3
- package/dist-lib/hooks/useOrderVersies.d.ts +2 -2
- package/dist-lib/hooks/useOrderVersies.js +1 -1
- package/dist-lib/hooks/useRecalcJob.js +1 -1
- package/dist-lib/hooks/useRuleEngine.d.ts +1 -1
- package/dist-lib/hooks/useRuleEngine.js +1 -1
- package/dist-lib/hooks/useShellAdres.d.ts +1 -1
- package/dist-lib/hooks/useShellAdres.js +2 -2
- package/dist-lib/hooks/useWerkwijzeStatus.js +1 -1
- package/dist-lib/index.d.ts +74 -74
- package/dist-lib/index.js +75 -75
- package/dist-lib/integrations/supabase/auth-attacher.js +1 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1 -1
- package/dist-lib/integrations/supabase/moduleClient.d.ts +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +93 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/dimensionData.server.d.ts +3 -3
- package/dist-lib/lib/floridayDocuments.functions.d.ts +1 -1
- package/dist-lib/lib/floridayDocuments.functions.js +3 -3
- package/dist-lib/lib/floridayPush.functions.js +1 -1
- package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
- package/dist-lib/lib/floridayPush.server.js +2 -1
- package/dist-lib/lib/flowGraph.d.ts +2 -2
- package/dist-lib/lib/flowGraph.js +2 -2
- package/dist-lib/lib/flowJourney.d.ts +2 -2
- package/dist-lib/lib/flowJourney.js +1 -1
- package/dist-lib/lib/flowRoute.d.ts +4 -4
- package/dist-lib/lib/flowRoute.js +4 -4
- package/dist-lib/lib/flowTree.d.ts +1 -1
- package/dist-lib/lib/flowTree.js +2 -2
- package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +4 -4
- package/dist-lib/lib/loadCarrierPlanning.functions.js +7 -7
- package/dist-lib/lib/loadCarrierPlanning.server.d.ts +3 -3
- package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
- package/dist-lib/lib/loadCarrierPlanning.server.js +12 -6
- package/dist-lib/lib/loadCarrierTaskSync.server.d.ts +1 -1
- package/dist-lib/lib/loadCarrierTypes.d.ts +1 -1
- package/dist-lib/lib/logisticsPlanner.d.ts +2 -2
- package/dist-lib/lib/logisticsPlanner.js +2 -2
- package/dist-lib/lib/logisticsRecalcJob.functions.js +2 -2
- package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
- package/dist-lib/lib/modulePrompts.js +136 -1
- package/dist-lib/lib/moduleVersion.d.ts +1 -1
- package/dist-lib/lib/moduleVersion.js +1 -1
- package/dist-lib/lib/nodeTrace.d.ts +1 -1
- package/dist-lib/lib/nodeTrace.js +1 -1
- package/dist-lib/lib/plannerDiff.functions.js +1 -1
- package/dist-lib/lib/ruleEngineImpact.d.ts +1 -1
- package/dist-lib/lib/ruleEngineImpact.js +1 -1
- package/dist-lib/lib/ruleEngineWizard.d.ts +1 -1
- package/dist-lib/lib/ruleEngineWizard.js +1 -1
- package/dist-lib/lib/stopReden.d.ts +3 -3
- package/dist-lib/lib/stopReden.js +3 -3
- package/dist-lib/lib/vakUitleg.d.ts +1 -1
- package/dist-lib/lib/vakUitleg.js +3 -3
- package/package.json +2 -2
|
@@ -10,17 +10,17 @@ import { useCallback, useEffect, useState } from "react";
|
|
|
10
10
|
import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, supabase, } from "@flowselections/core";
|
|
11
11
|
import { RefreshCw, Workflow } from "lucide-react";
|
|
12
12
|
import { Link } from "@tanstack/react-router";
|
|
13
|
-
import { ConsistentieCard } from "./ConsistentieCard";
|
|
14
|
-
import { KarplanStatusCard } from "./KarplanStatusCard";
|
|
15
|
-
import { KardekkingCard } from "./KardekkingCard";
|
|
16
|
-
import { MisluktVerzendbrievenCard } from "./MisluktVerzendbrievenCard";
|
|
17
|
-
import { PlannerDiffCard } from "./PlannerDiffCard";
|
|
18
|
-
import { BeladingsafwijkingenCard } from "./BeladingsafwijkingenCard";
|
|
19
|
-
import { OrderLogboek } from "./OrderLogboek";
|
|
20
|
-
import { MinuutrondeCard } from "./MinuutrondeCard";
|
|
21
|
-
import { InklapbaarVenster } from "./InklapbaarVenster";
|
|
22
|
-
import { tellOpenTaken } from "../lib/taskCounts";
|
|
23
|
-
import { LOGISTICS_MODULES } from "../lib/logisticsTasks";
|
|
13
|
+
import { ConsistentieCard } from "./ConsistentieCard.js";
|
|
14
|
+
import { KarplanStatusCard } from "./KarplanStatusCard.js";
|
|
15
|
+
import { KardekkingCard } from "./KardekkingCard.js";
|
|
16
|
+
import { MisluktVerzendbrievenCard } from "./MisluktVerzendbrievenCard.js";
|
|
17
|
+
import { PlannerDiffCard } from "./PlannerDiffCard.js";
|
|
18
|
+
import { BeladingsafwijkingenCard } from "./BeladingsafwijkingenCard.js";
|
|
19
|
+
import { OrderLogboek } from "./OrderLogboek.js";
|
|
20
|
+
import { MinuutrondeCard } from "./MinuutrondeCard.js";
|
|
21
|
+
import { InklapbaarVenster } from "./InklapbaarVenster.js";
|
|
22
|
+
import { tellOpenTaken } from "../lib/taskCounts.js";
|
|
23
|
+
import { LOGISTICS_MODULES } from "../lib/logisticsTasks.js";
|
|
24
24
|
export function RegiePage() {
|
|
25
25
|
// Alleen open en geplande taken, geteld in de database (geen 500-grens, geen geannuleerde).
|
|
26
26
|
const [perModule, setPerModule] = useState({});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
import { type EngineRol } from "../hooks/useEngineRollen";
|
|
2
|
+
import { type EngineRol } from "../hooks/useEngineRollen.js";
|
|
3
3
|
export declare function RolPoort({ rollen, children }: {
|
|
4
4
|
rollen: readonly EngineRol[];
|
|
5
5
|
children: ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Card, CardContent, Skeleton } from "@flowselections/core";
|
|
3
|
-
import { heeftToegang, useEngineRollen } from "../hooks/useEngineRollen";
|
|
3
|
+
import { heeftToegang, useEngineRollen } from "../hooks/useEngineRollen.js";
|
|
4
4
|
export function RolPoort({ rollen, children }) {
|
|
5
5
|
const { rollen: mijn, geladen } = useEngineRollen();
|
|
6
6
|
if (!geladen)
|
|
@@ -8,17 +8,17 @@ import { useSearch } from "@tanstack/react-router";
|
|
|
8
8
|
import { Badge, Button, Card, CardContent, CardDescription, CardHeader, CardTitle, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, Input, Label, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Skeleton, } from "@flowselections/core";
|
|
9
9
|
import { AlertTriangle, CheckCircle2, ChevronLeft, ChevronRight, MoreVertical, Plus, RefreshCw, Save, Trash2, } from "lucide-react";
|
|
10
10
|
import { toast } from "@flowselections/core";
|
|
11
|
-
import { useRecalcJob, phaseLabel } from "../hooks/useRecalcJob";
|
|
12
|
-
import { fieldVisible, } from "../lib/ruleEngineSchema";
|
|
13
|
-
import { WIZARD_STEPS, groupSummary, isAdvancedField, } from "../lib/ruleEngineWizard";
|
|
14
|
-
import { useRuleEngine } from "../hooks/useRuleEngine";
|
|
15
|
-
import { RuleFieldInput } from "./rule-engine/RuleFieldInput";
|
|
16
|
-
import { CollapsibleGroup } from "./rule-engine/CollapsibleGroup";
|
|
17
|
-
import { ConditionsEditor } from "./rule-engine/ConditionsEditor";
|
|
18
|
-
import { ImpactPanel } from "./rule-engine/ImpactPanel";
|
|
19
|
-
import { VersionsPanel } from "./rule-engine/VersionsPanel";
|
|
20
|
-
import { RolPoort } from "./RolPoort";
|
|
21
|
-
import { ENGINE_TOEGANG } from "../hooks/useEngineRollen";
|
|
11
|
+
import { useRecalcJob, phaseLabel } from "../hooks/useRecalcJob.js";
|
|
12
|
+
import { fieldVisible, } from "../lib/ruleEngineSchema.js";
|
|
13
|
+
import { WIZARD_STEPS, groupSummary, isAdvancedField, } from "../lib/ruleEngineWizard.js";
|
|
14
|
+
import { useRuleEngine } from "../hooks/useRuleEngine.js";
|
|
15
|
+
import { RuleFieldInput } from "./rule-engine/RuleFieldInput.js";
|
|
16
|
+
import { CollapsibleGroup } from "./rule-engine/CollapsibleGroup.js";
|
|
17
|
+
import { ConditionsEditor } from "./rule-engine/ConditionsEditor.js";
|
|
18
|
+
import { ImpactPanel } from "./rule-engine/ImpactPanel.js";
|
|
19
|
+
import { VersionsPanel } from "./rule-engine/VersionsPanel.js";
|
|
20
|
+
import { RolPoort } from "./RolPoort.js";
|
|
21
|
+
import { ENGINE_TOEGANG } from "../hooks/useEngineRollen.js";
|
|
22
22
|
const WIDE_TYPES = ["priority", "toggle", "days", "radio", "textarea", "guidance"];
|
|
23
23
|
function fieldClass(field) {
|
|
24
24
|
return WIDE_TYPES.includes(field.type) ? "md:col-span-2" : "";
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
// en of hij mislukt. Alleen lezen.
|
|
7
7
|
// ============================================================================
|
|
8
8
|
import { AlertTriangle, CheckCircle2, RefreshCw } from "lucide-react";
|
|
9
|
-
import { useTaakGezondheid } from "../hooks/useTaakGezondheid";
|
|
9
|
+
import { useTaakGezondheid } from "../hooks/useTaakGezondheid.js";
|
|
10
10
|
function geleden(tijd) {
|
|
11
11
|
if (!tijd)
|
|
12
12
|
return "nooit gedraaid";
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
// ============================================================================
|
|
5
5
|
import { Badge, Button, Card, CardContent, CardDescription, CardHeader, CardTitle, Skeleton, } from "@flowselections/core";
|
|
6
6
|
import { CheckCircle2, Clock, RefreshCw, ThumbsUp } from "lucide-react";
|
|
7
|
-
import { VERTRAGING_PRIORITEIT, useVertragingMeldingen } from "../hooks/useVertragingMeldingen";
|
|
7
|
+
import { VERTRAGING_PRIORITEIT, useVertragingMeldingen } from "../hooks/useVertragingMeldingen.js";
|
|
8
8
|
function tijd(value) {
|
|
9
9
|
if (!value)
|
|
10
10
|
return "onbekend";
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
// ============================================================================
|
|
5
5
|
import { Badge, Button, Card, CardContent, CardDescription, CardHeader, CardTitle, Skeleton, } from "@flowselections/core";
|
|
6
6
|
import { AlertTriangle, CheckCircle2, Mail, RefreshCw } from "lucide-react";
|
|
7
|
-
import { PRIORITEIT_LABELS, useVoorraadMeldingen } from "../hooks/useVoorraadMeldingen";
|
|
7
|
+
import { PRIORITEIT_LABELS, useVoorraadMeldingen } from "../hooks/useVoorraadMeldingen.js";
|
|
8
8
|
function tijd(value) {
|
|
9
9
|
try {
|
|
10
10
|
return new Date(value).toLocaleString("nl-NL", { dateStyle: "short", timeStyle: "short" });
|
|
@@ -10,7 +10,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
10
10
|
import { useState } from "react";
|
|
11
11
|
import { Badge, Button, Card, CardContent, CardDescription, CardHeader, CardTitle, Input, Skeleton, } from "@flowselections/core";
|
|
12
12
|
import { Clock, Plus, RefreshCw, Trash2 } from "lucide-react";
|
|
13
|
-
import { useWerktijden } from "../hooks/useWerktijden";
|
|
13
|
+
import { useWerktijden } from "../hooks/useWerktijden.js";
|
|
14
14
|
const DAGEN = ["Zondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag"];
|
|
15
15
|
export function WerktijdenCard() {
|
|
16
16
|
const { status, loading, error, refresh, zetTijdzone, voegVensterToe, verwijderVenster, voegUitzonderingToe, verwijderUitzondering, } = useWerktijden();
|
|
@@ -10,7 +10,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
10
10
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
11
11
|
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, Badge, Button, Card, CardContent, CardDescription, CardHeader, CardTitle, Skeleton, } from "@flowselections/core";
|
|
12
12
|
import { RefreshCw, Ruler, Boxes } from "lucide-react";
|
|
13
|
-
import { useWerkwijzeStatus } from "../hooks/useWerkwijzeStatus";
|
|
13
|
+
import { useWerkwijzeStatus } from "../hooks/useWerkwijzeStatus.js";
|
|
14
14
|
const METHODE_LABEL = {
|
|
15
15
|
belading: "Indelen op basis van belading",
|
|
16
16
|
afmetingen: "Indelen op basis van afmetingen",
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
// ============================================================================
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
import { ChevronDown } from "lucide-react";
|
|
7
|
-
import { FieldHelp } from "./FieldHelp";
|
|
7
|
+
import { FieldHelp } from "./FieldHelp.js";
|
|
8
8
|
export function CollapsibleGroup({ title, summary, help, defaultOpen = false, children }) {
|
|
9
9
|
const [open, setOpen] = useState(defaultOpen);
|
|
10
10
|
return (_jsxs("section", { className: "rounded-lg border border-border", children: [_jsxs("button", { type: "button", onClick: () => setOpen((v) => !v), "aria-expanded": open, className: "flex w-full items-center justify-between gap-3 rounded-lg px-3 py-2.5 text-left transition-colors hover:bg-muted/60", children: [_jsxs("span", { className: "min-w-0", children: [_jsxs("span", { className: "flex items-center gap-1.5 text-sm font-semibold", children: [title, _jsx(FieldHelp, { text: help })] }), !open && summary && (_jsx("span", { className: "mt-0.5 block truncate text-xs text-muted-foreground", children: summary }))] }), _jsx(ChevronDown, { className: `h-4 w-4 shrink-0 text-muted-foreground transition-transform ${open ? "rotate-180" : ""}` })] }), open && _jsx("div", { className: "space-y-4 border-t border-border px-3 py-4", children: children })] }));
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
// ============================================================================
|
|
5
5
|
import { Button, Input, Label, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@flowselections/core";
|
|
6
6
|
import { Plus, Trash2 } from "lucide-react";
|
|
7
|
-
import { CONDITION_FIELDS, CONDITION_OPERATORS, } from "../../lib/ruleEngineSchema";
|
|
7
|
+
import { CONDITION_FIELDS, CONDITION_OPERATORS, } from "../../lib/ruleEngineSchema.js";
|
|
8
8
|
export function ConditionsEditor({ conditions, onChange }) {
|
|
9
9
|
const safe = Array.isArray(conditions) ? conditions : [];
|
|
10
10
|
const add = () => {
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
// ============================================================================
|
|
5
5
|
import { Badge, Card, CardContent, CardHeader, CardTitle } from "@flowselections/core";
|
|
6
6
|
import { AlertTriangle, Info, ShieldAlert } from "lucide-react";
|
|
7
|
-
import { analyseImpact, summarize } from "../../lib/ruleEngineImpact";
|
|
7
|
+
import { analyseImpact, summarize } from "../../lib/ruleEngineImpact.js";
|
|
8
8
|
const ICONS = {
|
|
9
9
|
info: Info,
|
|
10
10
|
warning: AlertTriangle,
|
|
@@ -6,11 +6,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
// het label, zodat het scherm rustig blijft.
|
|
7
7
|
// ============================================================================
|
|
8
8
|
import { Input, Label, Switch, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Textarea, } from "@flowselections/core";
|
|
9
|
-
import { fieldHelp } from "../../lib/ruleEngineWizard";
|
|
10
|
-
import { FieldHelp, FieldLabel } from "./FieldHelp";
|
|
11
|
-
import { usePickstations } from "../../hooks/usePickstations";
|
|
12
|
-
import { useScannersPrinters } from "../../hooks/useScannersPrinters";
|
|
13
|
-
import { useDocumentLayouts } from "../../hooks/useDocumentLayouts";
|
|
9
|
+
import { fieldHelp } from "../../lib/ruleEngineWizard.js";
|
|
10
|
+
import { FieldHelp, FieldLabel } from "./FieldHelp.js";
|
|
11
|
+
import { usePickstations } from "../../hooks/usePickstations.js";
|
|
12
|
+
import { useScannersPrinters } from "../../hooks/useScannersPrinters.js";
|
|
13
|
+
import { useDocumentLayouts } from "../../hooks/useDocumentLayouts.js";
|
|
14
14
|
export function RuleFieldInput({ field, value, onChange, stepValues }) {
|
|
15
15
|
const { stations, types, loading } = usePickstations();
|
|
16
16
|
const { scanners, printers, loading: devicesLoading } = useScannersPrinters();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RuleEngineSettings } from "../../lib/ruleEngineSchema";
|
|
2
|
-
import type { RuleVersion } from "../../hooks/useRuleEngine";
|
|
1
|
+
import type { RuleEngineSettings } from "../../lib/ruleEngineSchema.js";
|
|
2
|
+
import type { RuleVersion } from "../../hooks/useRuleEngine.js";
|
|
3
3
|
interface Props {
|
|
4
4
|
versions: RuleVersion[];
|
|
5
5
|
currentSettings: RuleEngineSettings;
|
|
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
import { Badge, Button, Card, CardContent, CardHeader, CardTitle, Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "@flowselections/core";
|
|
7
7
|
import { GitCompare, History, RotateCcw } from "lucide-react";
|
|
8
|
-
import { diffSettings } from "../../lib/ruleEngineImpact";
|
|
8
|
+
import { diffSettings } from "../../lib/ruleEngineImpact.js";
|
|
9
9
|
export function VersionsPanel({ versions, currentSettings, onRestore }) {
|
|
10
10
|
const [compare, setCompare] = useState(null);
|
|
11
11
|
const safeVersions = Array.isArray(versions) ? versions : [];
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useCallback, useEffect, useState } from "react";
|
|
5
5
|
import { supabase, toast } from "@flowselections/core";
|
|
6
6
|
import { useServerFn } from "@tanstack/react-start";
|
|
7
|
-
import { retryFloridayPush } from "../lib/floridayPush.functions";
|
|
7
|
+
import { retryFloridayPush } from "../lib/floridayPush.functions.js";
|
|
8
8
|
const db = () => supabase;
|
|
9
9
|
export const PUSH_STATUS_LABELS = {
|
|
10
10
|
pending: "In de wachtrij",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// ============================================================================
|
|
4
4
|
import { useCallback, useEffect, useState } from "react";
|
|
5
5
|
import { supabase, toast } from "@flowselections/core";
|
|
6
|
-
import { ensureLogisticsTasks, planAllLoadCarriers } from "../lib/loadCarrierPlanning.functions";
|
|
6
|
+
import { ensureLogisticsTasks, planAllLoadCarriers } from "../lib/loadCarrierPlanning.functions.js";
|
|
7
7
|
const db = () => supabase;
|
|
8
8
|
export function useLogistiekTaken() {
|
|
9
9
|
const [taken, setTaken] = useState([]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type NodeTraceGroep } from "../lib/nodeTrace";
|
|
2
|
-
import type { OrderVersie } from "../lib/flowRoute";
|
|
1
|
+
import { type NodeTraceGroep } from "../lib/nodeTrace.js";
|
|
2
|
+
import type { OrderVersie } from "../lib/flowRoute.js";
|
|
3
3
|
export declare function useOrderNodeTrace(orderRef: string | null, versie: OrderVersie | null): {
|
|
4
|
-
events: import("./useLogisticsTrace").TraceEventRow[];
|
|
4
|
+
events: import("./useLogisticsTrace.js").TraceEventRow[];
|
|
5
5
|
groepen: Map<string, NodeTraceGroep>;
|
|
6
6
|
reis: NodeTraceGroep[];
|
|
7
7
|
loading: boolean;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
// groepeert ze per vakje van de flowkaart. Leest alleen.
|
|
6
6
|
// ============================================================================
|
|
7
7
|
import { useMemo } from "react";
|
|
8
|
-
import { useLogisticsTraceTimeline } from "./useLogisticsTrace";
|
|
9
|
-
import { useVersieEvents } from "./useOrderVersies";
|
|
10
|
-
import { groepeerPerNode, reisVolgorde } from "../lib/nodeTrace";
|
|
8
|
+
import { useLogisticsTraceTimeline } from "./useLogisticsTrace.js";
|
|
9
|
+
import { useVersieEvents } from "./useOrderVersies.js";
|
|
10
|
+
import { groepeerPerNode, reisVolgorde } from "../lib/nodeTrace.js";
|
|
11
11
|
export function useOrderNodeTrace(orderRef, versie) {
|
|
12
12
|
const alles = useLogisticsTraceTimeline(versie ? null : orderRef);
|
|
13
13
|
const perVersie = useVersieEvents(versie ? orderRef : null, versie);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type TraceEventRow } from "./useLogisticsTrace";
|
|
2
|
-
import type { KarStand, OrderKop, OrderVersie } from "../lib/flowRoute";
|
|
1
|
+
import { type TraceEventRow } from "./useLogisticsTrace.js";
|
|
2
|
+
import type { KarStand, OrderKop, OrderVersie } from "../lib/flowRoute.js";
|
|
3
3
|
export interface OrderOverzichtRij {
|
|
4
4
|
orderNumber: string;
|
|
5
5
|
orderSource: string | null;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// ============================================================================
|
|
6
6
|
import { useCallback, useEffect, useState } from "react";
|
|
7
7
|
import { supabase } from "../integrations/supabase/moduleClient.js";
|
|
8
|
-
import { mapEvent } from "./useLogisticsTrace";
|
|
8
|
+
import { mapEvent } from "./useLogisticsTrace.js";
|
|
9
9
|
const n = (v) => (typeof v === "number" ? v : Number(v) || 0);
|
|
10
10
|
const s = (v) => (v == null ? null : String(v));
|
|
11
11
|
function leesOrderFout(error) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
5
5
|
import { useServerFn } from "@tanstack/react-start";
|
|
6
6
|
import { supabase } from "../integrations/supabase/moduleClient.js";
|
|
7
|
-
import { startRecalcJob, tickRecalcJob } from "../lib/logisticsRecalcJob.functions";
|
|
7
|
+
import { startRecalcJob, tickRecalcJob } from "../lib/logisticsRecalcJob.functions.js";
|
|
8
8
|
const PHASE_LABEL = {
|
|
9
9
|
buffers: "Orderbuffers indelen",
|
|
10
10
|
orders: "Losse orders indelen",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// ============================================================================
|
|
4
4
|
import { useState, useEffect, useCallback } from "react";
|
|
5
5
|
import { supabase, toast } from "@flowselections/core";
|
|
6
|
-
import { normalizeSettings, defaultSettings } from "../lib/ruleEngineSchema";
|
|
6
|
+
import { normalizeSettings, defaultSettings } from "../lib/ruleEngineSchema.js";
|
|
7
7
|
const db = () => supabase;
|
|
8
8
|
function toConfig(row) {
|
|
9
9
|
return {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// ============================================================================
|
|
4
4
|
import { useCallback, useEffect, useState } from "react";
|
|
5
5
|
import { useServerFn } from "@tanstack/react-start";
|
|
6
|
-
import { getShellAdresStand, startShellAdresControle } from "../lib/shellAdres.functions";
|
|
7
|
-
import { isShellAdresStatus } from "../lib/shellAdres";
|
|
6
|
+
import { getShellAdresStand, startShellAdresControle } from "../lib/shellAdres.functions.js";
|
|
7
|
+
import { isShellAdresStatus } from "../lib/shellAdres.js";
|
|
8
8
|
export function leesShellAdresStand(data) {
|
|
9
9
|
const d = (data ?? {});
|
|
10
10
|
const l = (d["laatste"] ?? null);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// ============================================================================
|
|
7
7
|
import { useCallback, useEffect, useState } from "react";
|
|
8
8
|
import { supabase } from "../integrations/supabase/moduleClient.js";
|
|
9
|
-
import { kickShippingNoteQueue } from "./useShippingNoteStatus";
|
|
9
|
+
import { kickShippingNoteQueue } from "./useShippingNoteStatus.js";
|
|
10
10
|
export function useWerkwijzeStatus() {
|
|
11
11
|
const [status, setStatus] = useState(null);
|
|
12
12
|
const [loading, setLoading] = useState(true);
|
package/dist-lib/index.d.ts
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
import type { FlowModule } from "@flowselections/core";
|
|
2
|
-
export * from './_core-safelist';
|
|
3
|
-
export * from './components/LogistiekEnginePage';
|
|
4
|
-
export * from './components/RuleEnginePage';
|
|
5
|
-
export * from './components/RegiePage';
|
|
6
|
-
export * from './components/ModulePromptsPage';
|
|
7
|
-
export * from './components/LadingdragersPage';
|
|
8
|
-
export * from './components/BeladingIndelingCard';
|
|
9
|
-
export * from './components/VoorraadMeldingenCard';
|
|
10
|
-
export { FloridayPushCard } from './components/FloridayPushCard';
|
|
11
|
-
export { PrintjobsCard } from './components/PrintjobsCard';
|
|
12
|
-
export { ConsistentieCard } from './components/ConsistentieCard';
|
|
13
|
-
export { BeladingsafwijkingenCard } from './components/BeladingsafwijkingenCard';
|
|
14
|
-
export * from './hooks/useBeladingsafwijkingen';
|
|
15
|
-
export { KarplanStatusCard } from './components/KarplanStatusCard';
|
|
16
|
-
export { GeblokkeerdeOrdersCard } from './components/GeblokkeerdeOrdersCard';
|
|
17
|
-
export { GearchiveerdeOrdersCard } from './components/GearchiveerdeOrdersCard';
|
|
18
|
-
export { AfmetingenBronnenCard } from './components/AfmetingenBronnenCard';
|
|
19
|
-
export { WerkwijzeHerindelingCard } from './components/WerkwijzeHerindelingCard';
|
|
20
|
-
export { WerktijdenCard } from './components/WerktijdenCard';
|
|
21
|
-
export { useWerktijden } from './hooks/useWerktijden';
|
|
22
|
-
export { FloridayPoortCard } from './components/FloridayPoortCard';
|
|
23
|
-
export * from './hooks/useFloridayGate';
|
|
24
|
-
export * from './hooks/useWerkwijzeStatus';
|
|
25
|
-
export * from './hooks/usePrintjobs';
|
|
26
|
-
export * from './hooks/useShippingNoteStatus';
|
|
27
|
-
export * from './components/VertragingMeldingenCard';
|
|
28
|
-
export * from './components/CapaciteitMeldingenCard';
|
|
29
|
-
export * from './hooks/useCapaciteitMeldingen';
|
|
30
|
-
export * from './components/BufferDebugCard';
|
|
31
|
-
export * from './lib/modulePrompts';
|
|
32
|
-
export * from './lib/bufferMatching';
|
|
33
|
-
export { LogistiekEnginePage } from './components/LogistiekEnginePage';
|
|
34
|
-
export { RuleEnginePage } from './components/RuleEnginePage';
|
|
35
|
-
export { RegiePage } from './components/RegiePage';
|
|
36
|
-
export { ModulePromptsPage } from './components/ModulePromptsPage';
|
|
37
|
-
export { BeheerPage } from './components/BeheerPage';
|
|
38
|
-
export { RolPoort } from './components/RolPoort';
|
|
39
|
-
export * from './hooks/useEngineRollen';
|
|
40
|
-
export { LadingdragersPage } from './components/LadingdragersPage';
|
|
41
|
-
export { LogistiekEngineQueuePage } from './components/LogistiekEngineQueuePage';
|
|
42
|
-
export { FlowPage } from './components/FlowPage';
|
|
43
|
-
export { PlanWachtrijPage } from './components/PlanWachtrijPage';
|
|
44
|
-
export * from './hooks/usePlanWachtrij';
|
|
45
|
-
export * from './lib/foutTekst';
|
|
46
|
-
export * from './hooks/useLogisticsTrace';
|
|
47
|
-
export * from './hooks/useOrderTrace';
|
|
48
|
-
export * from './hooks/useOrderNodeTrace';
|
|
49
|
-
export * from './lib/flowNodes';
|
|
50
|
-
export * from './lib/nodeTrace';
|
|
51
|
-
export * from './lib/vakUitleg';
|
|
52
|
-
export * from './lib/stopReden';
|
|
53
|
-
export * from './lib/flowJourney';
|
|
54
|
-
export { LogistiekEngineLogo } from './components/LogistiekEngineLogo';
|
|
55
|
-
export { LogistiekEngineSettingsCard } from './components/settings/LogistiekEngineSettingsCard';
|
|
56
|
-
export * from './hooks/useLogistiekStrategieen';
|
|
57
|
-
export * from './hooks/useRuleEngine';
|
|
58
|
-
export * from './hooks/useLogistiekTaken';
|
|
59
|
-
export * from './hooks/useLadingdragers';
|
|
60
|
-
export * from './hooks/useVoorraadMeldingen';
|
|
61
|
-
export * from './lib/ruleEngineSchema';
|
|
62
|
-
export * from './lib/ruleEngineImpact';
|
|
63
|
-
export * from './lib/logisticsTasks';
|
|
64
|
-
export * from './lib/logisticsPlanner';
|
|
65
|
-
export * from './lib/loadCarrierPlanner';
|
|
66
|
-
export * from './lib/loadCarrierTypes';
|
|
67
|
-
export * from './lib/loadCarrierPlanning.functions';
|
|
2
|
+
export * from './_core-safelist.js';
|
|
3
|
+
export * from './components/LogistiekEnginePage.js';
|
|
4
|
+
export * from './components/RuleEnginePage.js';
|
|
5
|
+
export * from './components/RegiePage.js';
|
|
6
|
+
export * from './components/ModulePromptsPage.js';
|
|
7
|
+
export * from './components/LadingdragersPage.js';
|
|
8
|
+
export * from './components/BeladingIndelingCard.js';
|
|
9
|
+
export * from './components/VoorraadMeldingenCard.js';
|
|
10
|
+
export { FloridayPushCard } from './components/FloridayPushCard.js';
|
|
11
|
+
export { PrintjobsCard } from './components/PrintjobsCard.js';
|
|
12
|
+
export { ConsistentieCard } from './components/ConsistentieCard.js';
|
|
13
|
+
export { BeladingsafwijkingenCard } from './components/BeladingsafwijkingenCard.js';
|
|
14
|
+
export * from './hooks/useBeladingsafwijkingen.js';
|
|
15
|
+
export { KarplanStatusCard } from './components/KarplanStatusCard.js';
|
|
16
|
+
export { GeblokkeerdeOrdersCard } from './components/GeblokkeerdeOrdersCard.js';
|
|
17
|
+
export { GearchiveerdeOrdersCard } from './components/GearchiveerdeOrdersCard.js';
|
|
18
|
+
export { AfmetingenBronnenCard } from './components/AfmetingenBronnenCard.js';
|
|
19
|
+
export { WerkwijzeHerindelingCard } from './components/WerkwijzeHerindelingCard.js';
|
|
20
|
+
export { WerktijdenCard } from './components/WerktijdenCard.js';
|
|
21
|
+
export { useWerktijden } from './hooks/useWerktijden.js';
|
|
22
|
+
export { FloridayPoortCard } from './components/FloridayPoortCard.js';
|
|
23
|
+
export * from './hooks/useFloridayGate.js';
|
|
24
|
+
export * from './hooks/useWerkwijzeStatus.js';
|
|
25
|
+
export * from './hooks/usePrintjobs.js';
|
|
26
|
+
export * from './hooks/useShippingNoteStatus.js';
|
|
27
|
+
export * from './components/VertragingMeldingenCard.js';
|
|
28
|
+
export * from './components/CapaciteitMeldingenCard.js';
|
|
29
|
+
export * from './hooks/useCapaciteitMeldingen.js';
|
|
30
|
+
export * from './components/BufferDebugCard.js';
|
|
31
|
+
export * from './lib/modulePrompts.js';
|
|
32
|
+
export * from './lib/bufferMatching.js';
|
|
33
|
+
export { LogistiekEnginePage } from './components/LogistiekEnginePage.js';
|
|
34
|
+
export { RuleEnginePage } from './components/RuleEnginePage.js';
|
|
35
|
+
export { RegiePage } from './components/RegiePage.js';
|
|
36
|
+
export { ModulePromptsPage } from './components/ModulePromptsPage.js';
|
|
37
|
+
export { BeheerPage } from './components/BeheerPage.js';
|
|
38
|
+
export { RolPoort } from './components/RolPoort.js';
|
|
39
|
+
export * from './hooks/useEngineRollen.js';
|
|
40
|
+
export { LadingdragersPage } from './components/LadingdragersPage.js';
|
|
41
|
+
export { LogistiekEngineQueuePage } from './components/LogistiekEngineQueuePage.js';
|
|
42
|
+
export { FlowPage } from './components/FlowPage.js';
|
|
43
|
+
export { PlanWachtrijPage } from './components/PlanWachtrijPage.js';
|
|
44
|
+
export * from './hooks/usePlanWachtrij.js';
|
|
45
|
+
export * from './lib/foutTekst.js';
|
|
46
|
+
export * from './hooks/useLogisticsTrace.js';
|
|
47
|
+
export * from './hooks/useOrderTrace.js';
|
|
48
|
+
export * from './hooks/useOrderNodeTrace.js';
|
|
49
|
+
export * from './lib/flowNodes.js';
|
|
50
|
+
export * from './lib/nodeTrace.js';
|
|
51
|
+
export * from './lib/vakUitleg.js';
|
|
52
|
+
export * from './lib/stopReden.js';
|
|
53
|
+
export * from './lib/flowJourney.js';
|
|
54
|
+
export { LogistiekEngineLogo } from './components/LogistiekEngineLogo.js';
|
|
55
|
+
export { LogistiekEngineSettingsCard } from './components/settings/LogistiekEngineSettingsCard.js';
|
|
56
|
+
export * from './hooks/useLogistiekStrategieen.js';
|
|
57
|
+
export * from './hooks/useRuleEngine.js';
|
|
58
|
+
export * from './hooks/useLogistiekTaken.js';
|
|
59
|
+
export * from './hooks/useLadingdragers.js';
|
|
60
|
+
export * from './hooks/useVoorraadMeldingen.js';
|
|
61
|
+
export * from './lib/ruleEngineSchema.js';
|
|
62
|
+
export * from './lib/ruleEngineImpact.js';
|
|
63
|
+
export * from './lib/logisticsTasks.js';
|
|
64
|
+
export * from './lib/logisticsPlanner.js';
|
|
65
|
+
export * from './lib/loadCarrierPlanner.js';
|
|
66
|
+
export * from './lib/loadCarrierTypes.js';
|
|
67
|
+
export * from './lib/loadCarrierPlanning.functions.js';
|
|
68
68
|
export declare const logistiekEngineModule: FlowModule;
|
|
69
|
-
export { OrderLogboek } from './components/OrderLogboek';
|
|
70
|
-
export { InklapbaarVenster } from './components/InklapbaarVenster';
|
|
71
|
-
export { AfrondWachtrijCard } from './components/AfrondWachtrijCard';
|
|
72
|
-
export { TaakGezondheidCard } from './components/TaakGezondheidCard';
|
|
73
|
-
export { MinuutrondeCard } from './components/MinuutrondeCard';
|
|
74
|
-
export * from './hooks/useAfrondWachtrij';
|
|
75
|
-
export * from './lib/shellAdres';
|
|
76
|
-
export * from './hooks/useShellAdres';
|
|
69
|
+
export { OrderLogboek } from './components/OrderLogboek.js';
|
|
70
|
+
export { InklapbaarVenster } from './components/InklapbaarVenster.js';
|
|
71
|
+
export { AfrondWachtrijCard } from './components/AfrondWachtrijCard.js';
|
|
72
|
+
export { TaakGezondheidCard } from './components/TaakGezondheidCard.js';
|
|
73
|
+
export { MinuutrondeCard } from './components/MinuutrondeCard.js';
|
|
74
|
+
export * from './hooks/useAfrondWachtrij.js';
|
|
75
|
+
export * from './lib/shellAdres.js';
|
|
76
|
+
export * from './hooks/useShellAdres.js';
|
|
77
77
|
//# sourceMappingURL=index.d.ts.map
|