@flowselections/scan-module 1.0.41 → 1.0.44
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/ScanModulePage.d.ts.map +1 -1
- package/dist-lib/components/ScanModulePage.js +128 -14
- package/dist-lib/components/fs-ui/DataTable.d.ts +24 -0
- package/dist-lib/components/fs-ui/DataTable.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/DataTable.js +26 -0
- package/dist-lib/components/fs-ui/EmptyState.d.ts +9 -0
- package/dist-lib/components/fs-ui/EmptyState.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/EmptyState.js +5 -0
- package/dist-lib/components/fs-ui/FilterChips.d.ts +15 -0
- package/dist-lib/components/fs-ui/FilterChips.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/FilterChips.js +10 -0
- package/dist-lib/components/fs-ui/FiltersSheet.d.ts +21 -0
- package/dist-lib/components/fs-ui/FiltersSheet.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/FiltersSheet.js +14 -0
- package/dist-lib/components/fs-ui/HoverTip.d.ts +15 -0
- package/dist-lib/components/fs-ui/HoverTip.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/HoverTip.js +24 -0
- package/dist-lib/components/fs-ui/KpiRow.d.ts +6 -0
- package/dist-lib/components/fs-ui/KpiRow.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/KpiRow.js +5 -0
- package/dist-lib/components/fs-ui/KpiTile.d.ts +21 -0
- package/dist-lib/components/fs-ui/KpiTile.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/KpiTile.js +40 -0
- package/dist-lib/components/fs-ui/MobilePrimaryAction.d.ts +7 -0
- package/dist-lib/components/fs-ui/MobilePrimaryAction.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/MobilePrimaryAction.js +6 -0
- package/dist-lib/components/fs-ui/NoticeBar.d.ts +6 -0
- package/dist-lib/components/fs-ui/NoticeBar.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/NoticeBar.js +12 -0
- package/dist-lib/components/fs-ui/PageHeader.d.ts +9 -0
- package/dist-lib/components/fs-ui/PageHeader.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/PageHeader.js +6 -0
- package/dist-lib/components/fs-ui/Pagination.d.ts +8 -0
- package/dist-lib/components/fs-ui/Pagination.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/Pagination.js +7 -0
- package/dist-lib/components/fs-ui/PillTabs.d.ts +15 -0
- package/dist-lib/components/fs-ui/PillTabs.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/PillTabs.js +24 -0
- package/dist-lib/components/fs-ui/RowMenu.d.ts +13 -0
- package/dist-lib/components/fs-ui/RowMenu.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/RowMenu.js +8 -0
- package/dist-lib/components/fs-ui/SearchInput.d.ts +7 -0
- package/dist-lib/components/fs-ui/SearchInput.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/SearchInput.js +26 -0
- package/dist-lib/components/fs-ui/ShortcutHelp.d.ts +8 -0
- package/dist-lib/components/fs-ui/ShortcutHelp.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/ShortcutHelp.js +30 -0
- package/dist-lib/components/fs-ui/StatusIcon.d.ts +9 -0
- package/dist-lib/components/fs-ui/StatusIcon.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/StatusIcon.js +10 -0
- package/dist-lib/components/fs-ui/TableSkeleton.d.ts +6 -0
- package/dist-lib/components/fs-ui/TableSkeleton.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/TableSkeleton.js +6 -0
- package/dist-lib/components/fs-ui/Toolbar.d.ts +7 -0
- package/dist-lib/components/fs-ui/Toolbar.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/Toolbar.js +5 -0
- package/dist-lib/components/fs-ui/UpdatedAt.d.ts +6 -0
- package/dist-lib/components/fs-ui/UpdatedAt.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/UpdatedAt.js +8 -0
- package/dist-lib/components/scanners/ApparaatPoort.js +2 -2
- package/dist-lib/components/scanners/ApparatenBeheer.d.ts.map +1 -1
- package/dist-lib/components/scanners/ApparatenBeheer.js +5 -3
- package/dist-lib/components/scanners/EindcontroleScanner.js +1 -1
- package/dist-lib/components/scanners/KarHistorie.d.ts +3 -1
- package/dist-lib/components/scanners/KarHistorie.d.ts.map +1 -1
- package/dist-lib/components/scanners/KarHistorie.js +122 -44
- package/dist-lib/components/scanners/KarIndelingScanner.js +2 -2
- package/dist-lib/components/scanners/KarScannerPage.js +1 -1
- package/dist-lib/components/scanners/ScanMonitoring.d.ts +4 -1
- package/dist-lib/components/scanners/ScanMonitoring.d.ts.map +1 -1
- package/dist-lib/components/scanners/ScanMonitoring.js +8 -11
- package/dist-lib/components/settings/ScanToestellenSettingsCard.d.ts +2 -0
- package/dist-lib/components/settings/ScanToestellenSettingsCard.d.ts.map +1 -0
- package/dist-lib/components/settings/ScanToestellenSettingsCard.js +12 -0
- package/dist-lib/index.js +2 -2
- package/dist-lib/integrations/supabase/types.d.ts +2007 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/labels.d.ts +11 -0
- package/dist-lib/lib/labels.d.ts.map +1 -0
- package/dist-lib/lib/labels.js +58 -0
- package/package.json +2 -2
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { UpdatedAt } from "./UpdatedAt.js";
|
|
3
|
+
/** Paginakop zoals Verkooporders: h1 + "Bijgewerkt hh:mm", rechts knoppen. */
|
|
4
|
+
export function PageHeader({ title, updatedAt, updatedInfo, actions, }) {
|
|
5
|
+
return (_jsxs("header", { className: "shrink-0 grid grid-cols-[minmax(0,1fr)_auto] items-center gap-3 sm:flex sm:flex-wrap sm:justify-between", children: [_jsx("div", { className: "flex min-w-0 items-center gap-3", children: _jsxs("div", { className: "min-w-0", children: [_jsx("h1", { className: "truncate text-xl font-bold leading-tight sm:text-2xl tracking-tight text-foreground", children: title }), _jsx(UpdatedAt, { at: updatedAt ?? null, info: updatedInfo })] }) }), _jsx("div", { className: "flex items-center gap-2 sm:flex-wrap", children: actions })] }));
|
|
6
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function Pagination({ page, pageSize, total, onPage, onPageSize, }: {
|
|
2
|
+
page: number;
|
|
3
|
+
pageSize: number;
|
|
4
|
+
total: number;
|
|
5
|
+
onPage: (p: number) => void;
|
|
6
|
+
onPageSize: (n: number) => void;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/Pagination.tsx"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,MAAM,EACN,UAAU,GACX,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5B,UAAU,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,+BAiCA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@flowselections/core";
|
|
3
|
+
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
4
|
+
export function Pagination({ page, pageSize, total, onPage, onPageSize, }) {
|
|
5
|
+
const totalPages = Math.max(1, Math.ceil(total / pageSize));
|
|
6
|
+
return (_jsxs("nav", { "aria-label": "Paginering", className: "shrink-0 flex flex-wrap items-center justify-between gap-3 text-sm text-muted-foreground", children: [_jsx("div", { className: "tabular-nums", children: total === 0 ? "Geen resultaten" : `${(page - 1) * pageSize + 1}–${Math.min(page * pageSize, total)} van ${total}` }), _jsxs("div", { className: "flex items-center gap-3", children: [_jsxs("div", { className: "hidden items-center gap-2 sm:flex", children: [_jsx("span", { children: "Per pagina" }), _jsxs(Select, { value: String(pageSize), onValueChange: (v) => onPageSize(Number(v)), children: [_jsx(SelectTrigger, { className: "h-8 w-20", "aria-label": "Resultaten per pagina", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: [10, 25, 50, 100].map((n) => (_jsx(SelectItem, { value: String(n), children: n }, n))) })] })] }), _jsxs("div", { className: "flex items-center gap-1", children: [_jsx(Button, { variant: "outline", size: "icon", className: "h-10 w-10 sm:h-8 sm:w-8", onClick: () => onPage(Math.max(1, page - 1)), disabled: page <= 1, "aria-label": "Vorige pagina", children: _jsx(ChevronLeft, { className: "h-4 w-4" }) }), _jsxs("div", { className: "px-2 text-foreground tabular-nums", "aria-current": "page", children: [page, " / ", totalPages] }), _jsx(Button, { variant: "outline", size: "icon", className: "h-10 w-10 sm:h-8 sm:w-8", onClick: () => onPage(Math.min(totalPages, page + 1)), disabled: page >= totalPages, "aria-label": "Volgende pagina", children: _jsx(ChevronRight, { className: "h-4 w-4" }) })] })] })] }));
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
|
2
|
+
export interface PillTab<T extends string> {
|
|
3
|
+
id: T;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: LucideIcon;
|
|
6
|
+
count?: number | null;
|
|
7
|
+
}
|
|
8
|
+
/** StatusTabs uit Verkooporders: één regel, horizontaal scrollen met vervaging. */
|
|
9
|
+
export declare function PillTabs<T extends string>({ tabs, value, onChange, label, }: {
|
|
10
|
+
tabs: PillTab<T>[];
|
|
11
|
+
value: T;
|
|
12
|
+
onChange: (t: T) => void;
|
|
13
|
+
label: string;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=PillTabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PillTabs.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/PillTabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,OAAO,CAAC,CAAC,SAAS,MAAM;IACvC,EAAE,EAAE,CAAC,CAAC;IACN,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,mFAAmF;AACnF,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,EAAE,EACzC,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,KAAK,GACN,EAAE;IACD,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACnB,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;CACf,+BAkDA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useLayoutEffect, useRef } from "react";
|
|
3
|
+
/** StatusTabs uit Verkooporders: één regel, horizontaal scrollen met vervaging. */
|
|
4
|
+
export function PillTabs({ tabs, value, onChange, label, }) {
|
|
5
|
+
const listRef = useRef(null);
|
|
6
|
+
useLayoutEffect(() => {
|
|
7
|
+
const el = listRef.current?.querySelector(`[data-tab="${value}"]`);
|
|
8
|
+
const list = listRef.current;
|
|
9
|
+
if (el && list && (el.offsetLeft < list.scrollLeft || el.offsetLeft + el.offsetWidth > list.scrollLeft + list.clientWidth)) {
|
|
10
|
+
list.scrollLeft = el.offsetLeft - 8;
|
|
11
|
+
}
|
|
12
|
+
}, [value]);
|
|
13
|
+
return (_jsx("div", { className: "shrink-0", children: _jsx("div", { ref: listRef, role: "tablist", "aria-label": label, className: "relative -mx-4 flex items-center gap-2 overflow-x-auto px-4 pb-1 [scrollbar-width:none] [mask-image:linear-gradient(to_right,black_85%,transparent)] [&::-webkit-scrollbar]:hidden sm:mx-0 sm:px-0 sm:[mask-image:none]", children: tabs.map((t) => {
|
|
14
|
+
const active = t.id === value;
|
|
15
|
+
const Icon = t.icon;
|
|
16
|
+
return (_jsxs("button", { "data-tab": t.id, type: "button", role: "tab", "aria-selected": active, onClick: () => onChange(t.id), className: "relative flex h-9 items-center gap-2 whitespace-nowrap rounded-lg border px-3 text-sm transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring " +
|
|
17
|
+
(active
|
|
18
|
+
? "border-primary/30 bg-primary/10 font-semibold text-foreground"
|
|
19
|
+
: t.count === 0
|
|
20
|
+
? "border-border bg-card text-muted-foreground/70 hover:text-foreground"
|
|
21
|
+
: "border-border bg-card text-foreground/80 hover:bg-muted hover:text-foreground"), children: [Icon ? _jsx(Icon, { className: "h-4 w-4 shrink-0", "aria-hidden": true }) : null, _jsx("span", { children: t.label }), t.count != null && (_jsx("span", { className: "inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1.5 text-[11px] font-semibold tabular-nums " +
|
|
22
|
+
(active ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground"), children: t.count }))] }, t.id));
|
|
23
|
+
}) }) }));
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface RowMenuItem {
|
|
2
|
+
label: string;
|
|
3
|
+
onSelect: () => void;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
destructive?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/** Rijmenu uit Verkooporders (drie puntjes). */
|
|
8
|
+
export declare function RowMenu({ label, items, large }: {
|
|
9
|
+
label: string;
|
|
10
|
+
items: RowMenuItem[];
|
|
11
|
+
large?: boolean;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=RowMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RowMenu.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/RowMenu.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,gDAAgD;AAChD,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,WAAW,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,+BA2BxG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { MoreVertical } from "lucide-react";
|
|
3
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@flowselections/core";
|
|
4
|
+
/** Rijmenu uit Verkooporders (drie puntjes). */
|
|
5
|
+
export function RowMenu({ label, items, large }) {
|
|
6
|
+
return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { "aria-label": `Acties voor ${label}`, onClick: (e) => e.stopPropagation(), className: "inline-flex items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring " +
|
|
7
|
+
(large ? "h-14 w-14" : "h-8 w-8"), children: _jsx(MoreVertical, { className: "h-4 w-4" }) }), _jsx(DropdownMenuContent, { align: "end", onClick: (e) => e.stopPropagation(), children: items.map((it) => (_jsx(DropdownMenuItem, { disabled: it.disabled, onClick: () => !it.disabled && it.onSelect(), className: (it.destructive ? "text-destructive focus:text-destructive " : "") + (large ? "min-h-14 text-lg" : ""), children: it.label }, it.label))) })] }));
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Zoekveld uit Verkooporders: h-9, sm:w-80, breder bij focus; 250 ms vertraging. */
|
|
2
|
+
export declare const SearchInput: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (v: string) => void;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
7
|
+
//# sourceMappingURL=SearchInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/SearchInput.tsx"],"names":[],"mappings":"AAGA,qFAAqF;AACrF,eAAO,MAAM,WAAW;WAEb,MAAM;cAAY,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;iBAAe,MAAM;oDA6DnE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useEffect, useState } from "react";
|
|
3
|
+
import { Search, X } from "lucide-react";
|
|
4
|
+
/** Zoekveld uit Verkooporders: h-9, sm:w-80, breder bij focus; 250 ms vertraging. */
|
|
5
|
+
export const SearchInput = forwardRef(function SearchInput({ value, onChange, placeholder }, ref) {
|
|
6
|
+
const [text, setText] = useState(value);
|
|
7
|
+
useEffect(() => setText(value), [value]);
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
if (text === value)
|
|
10
|
+
return;
|
|
11
|
+
const t = setTimeout(() => onChange(text), 250);
|
|
12
|
+
return () => clearTimeout(t);
|
|
13
|
+
}, [text, value, onChange]);
|
|
14
|
+
const clear = () => {
|
|
15
|
+
setText("");
|
|
16
|
+
onChange("");
|
|
17
|
+
};
|
|
18
|
+
return (_jsx("div", { className: "min-w-0 flex-1 sm:flex-none", children: _jsxs("div", { className: "group relative flex h-10 sm:h-9 w-full items-center overflow-hidden rounded-md border border-border bg-card transition-[box-shadow,border-color,width] duration-[180ms] ease-out motion-reduce:transition-none focus-within:border-primary focus-within:ring-[3px] focus-within:ring-ring/20 sm:w-80 sm:focus-within:w-[400px]", children: [_jsx(Search, { className: "ml-3 h-4 w-4 shrink-0 text-muted-foreground transition-colors duration-[120ms] group-focus-within:text-primary", "aria-hidden": true }), _jsx("input", { ref: ref, type: "search", placeholder: placeholder, "aria-label": "Zoeken", value: text, maxLength: 100, autoComplete: "off", spellCheck: false, onChange: (e) => setText(e.target.value), onKeyDown: (e) => {
|
|
19
|
+
if (e.key === "Escape" && text) {
|
|
20
|
+
e.preventDefault();
|
|
21
|
+
clear();
|
|
22
|
+
}
|
|
23
|
+
}, className: "h-full min-w-0 flex-1 appearance-none border-0 bg-transparent px-2 text-base sm:text-sm text-foreground outline-none ring-0 shadow-none focus:outline-none focus:ring-0 placeholder:text-muted-foreground [&::-webkit-search-cancel-button]:hidden" }), _jsxs("span", { className: "relative mr-1.5 flex h-7 w-7 shrink-0 items-center justify-center", children: [_jsx("kbd", { className: "pointer-events-none absolute hidden rounded border border-border px-1.5 font-mono text-[11px] leading-5 text-muted-foreground transition-opacity duration-[120ms] sm:inline-block " +
|
|
24
|
+
(text ? "opacity-0" : "opacity-100 group-focus-within:opacity-0"), "aria-hidden": true, children: "/" }), _jsx("button", { type: "button", onClick: clear, tabIndex: text ? 0 : -1, "aria-label": "Zoeken wissen", className: "absolute inline-flex h-7 w-7 items-center justify-center rounded text-muted-foreground transition-[opacity,transform,background-color] duration-[120ms] ease-out hover:bg-muted hover:text-foreground " +
|
|
25
|
+
(text ? "scale-100 opacity-100" : "pointer-events-none scale-90 opacity-0"), children: _jsx(X, { className: "h-4 w-4" }) })] })] }) }));
|
|
26
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function ShortcutHelp({ open, onOpenChange, shortcuts }: {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onOpenChange: (o: boolean) => void;
|
|
4
|
+
shortcuts: [string[], string][];
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
/** Sneltoetsen; nooit tijdens typen in een invoerveld. */
|
|
7
|
+
export declare function useShortcuts(map: Record<string, (() => void) | undefined>, enabled?: boolean): void;
|
|
8
|
+
//# sourceMappingURL=ShortcutHelp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShortcutHelp.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/ShortcutHelp.tsx"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAAC,SAAS,EAAE,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE,CAAA;CAAE,+BAwBrJ;AAED,0DAA0D;AAC1D,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC,EAAE,OAAO,UAAO,QAkBzF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@flowselections/core";
|
|
4
|
+
export function ShortcutHelp({ open, onOpenChange, shortcuts }) {
|
|
5
|
+
return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { className: "max-w-sm", children: [_jsx(DialogHeader, { children: _jsx(DialogTitle, { children: "Sneltoetsen" }) }), _jsx("ul", { className: "divide-y divide-border text-sm", children: shortcuts.map(([keys, label]) => (_jsxs("li", { className: "flex items-center justify-between py-2", children: [_jsx("span", { className: "text-foreground", children: label }), _jsx("span", { className: "flex gap-1", children: keys.map((k) => (_jsx("kbd", { className: "inline-flex h-6 min-w-6 items-center justify-center rounded border border-border bg-muted px-1.5 font-mono text-[11px] text-muted-foreground", children: k }, k))) })] }, label))) })] }) }));
|
|
6
|
+
}
|
|
7
|
+
/** Sneltoetsen; nooit tijdens typen in een invoerveld. */
|
|
8
|
+
export function useShortcuts(map, enabled = true) {
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
if (!enabled)
|
|
11
|
+
return;
|
|
12
|
+
const onKey = (e) => {
|
|
13
|
+
if (e.metaKey || e.ctrlKey || e.altKey)
|
|
14
|
+
return;
|
|
15
|
+
const t = e.target;
|
|
16
|
+
if (t && (t.isContentEditable || ["INPUT", "TEXTAREA", "SELECT"].includes(t.tagName)))
|
|
17
|
+
return;
|
|
18
|
+
if (document.querySelector("[role=dialog]") && e.key !== "Escape")
|
|
19
|
+
return;
|
|
20
|
+
const key = e.key.length === 1 ? e.key.toLowerCase() : e.key;
|
|
21
|
+
const fn = map[key] ?? map[e.key];
|
|
22
|
+
if (fn) {
|
|
23
|
+
e.preventDefault();
|
|
24
|
+
fn();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
window.addEventListener("keydown", onKey);
|
|
28
|
+
return () => window.removeEventListener("keydown", onKey);
|
|
29
|
+
}, [map, enabled]);
|
|
30
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type StatusTone = "klaar" | "open" | "bezig" | "fout";
|
|
2
|
+
/** Klein statusicoon met infoballon; woord erbij alleen als showLabel. */
|
|
3
|
+
export declare function StatusIcon({ tone, label, showLabel, size }: {
|
|
4
|
+
tone: StatusTone;
|
|
5
|
+
label: string;
|
|
6
|
+
showLabel?: boolean;
|
|
7
|
+
size?: number;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=StatusIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/StatusIcon.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAK7D,0EAA0E;AAC1E,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,IAAS,EAAE,EAAE;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,+BAUxI"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AlertCircle, CheckCircle2, Circle, Clock } from "lucide-react";
|
|
3
|
+
import { HoverTip } from "./HoverTip.js";
|
|
4
|
+
const ICON = { klaar: CheckCircle2, open: Circle, bezig: Clock, fout: AlertCircle };
|
|
5
|
+
const KLEUR = { klaar: "text-primary", open: "text-muted-foreground", bezig: "text-warning", fout: "text-destructive" };
|
|
6
|
+
/** Klein statusicoon met infoballon; woord erbij alleen als showLabel. */
|
|
7
|
+
export function StatusIcon({ tone, label, showLabel, size = 16 }) {
|
|
8
|
+
const Icon = ICON[tone];
|
|
9
|
+
return (_jsxs("span", { className: "inline-flex items-center gap-1.5", children: [_jsx(HoverTip, { label: label, content: label, children: _jsx(Icon, { className: KLEUR[tone], style: { width: size, height: size }, "aria-hidden": true }) }), showLabel ? _jsx("span", { className: "truncate", children: label }) : null] }));
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSkeleton.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/TableSkeleton.tsx"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,IAAQ,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,+BAmCtF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Skeleton } from "@flowselections/core";
|
|
3
|
+
/** Skeletten in de echte vorm: kop 40 px, rijen 60 px; mobiel kaarten. */
|
|
4
|
+
export function TableSkeleton({ widths, rows = 6 }) {
|
|
5
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "hidden md:block", children: _jsxs("table", { className: "w-full min-w-[900px] table-fixed", children: [_jsx("colgroup", { children: widths.map((w, i) => (_jsx("col", { style: { width: `${w}px` } }, i))) }), _jsx("thead", { className: "border-b border-border", children: _jsx("tr", { style: { height: 40 }, children: widths.map((_, i) => (_jsx("th", { className: "px-4", children: _jsx(Skeleton, { className: "h-3 w-16" }) }, i))) }) }), _jsx("tbody", { children: Array.from({ length: rows }).map((_, r) => (_jsx("tr", { style: { height: 60 }, className: "border-b border-border last:border-0", children: widths.map((_, i) => (_jsxs("td", { className: "px-4", children: [_jsx(Skeleton, { className: "h-4 w-3/4" }), _jsx(Skeleton, { className: "mt-1.5 h-3 w-1/2" })] }, i))) }, r))) })] }) }), _jsx("div", { className: "space-y-2 p-3 md:hidden", children: Array.from({ length: 4 }).map((_, i) => (_jsx(Skeleton, { className: "h-24 w-full rounded-xl" }, i))) })] }));
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/** Werkbalk: zoeken, Filters, chips; uiterst rechts alleen "Kolommen". */
|
|
3
|
+
export declare function Toolbar({ children, right }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
right?: ReactNode;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=Toolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/Toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,0EAA0E;AAC1E,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,+BAOtF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/** Werkbalk: zoeken, Filters, chips; uiterst rechts alleen "Kolommen". */
|
|
3
|
+
export function Toolbar({ children, right }) {
|
|
4
|
+
return (_jsxs("div", { className: "shrink-0 flex flex-wrap items-center gap-2", children: [children, right ? _jsx("div", { className: "ml-auto", children: right }) : null] }));
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdatedAt.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/UpdatedAt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,wBAAgB,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;IAAE,EAAE,EAAE,IAAI,GAAG,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,CAAA;CAAE,+BAmB5E"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Clock } from "lucide-react";
|
|
3
|
+
import { HoverTip } from "./HoverTip.js";
|
|
4
|
+
export function UpdatedAt({ at, info }) {
|
|
5
|
+
const label = at ? at.toLocaleTimeString("nl-NL", { hour: "2-digit", minute: "2-digit" }) : null;
|
|
6
|
+
const text = (_jsxs("span", { className: "inline-flex items-center gap-1", children: [_jsx(Clock, { className: "h-3 w-3", "aria-hidden": true }), label ? `Bijgewerkt ${label}` : "Laden…"] }));
|
|
7
|
+
return (_jsx("p", { className: "flex flex-wrap items-center gap-x-2 text-xs text-muted-foreground", "aria-live": "polite", children: info ? (_jsx(HoverTip, { label: "Meer informatie", content: info, align: "start", children: text })) : (text) }));
|
|
8
|
+
}
|
|
@@ -167,13 +167,13 @@ export function ApparaatPoort({ scannerId, scannerNaam, heeftPincode, children,
|
|
|
167
167
|
return (_jsx("div", { className: "grid min-h-screen place-items-center bg-background p-6 text-center", children: _jsxs("div", { className: "max-w-sm space-y-3", children: [_jsx("h1", { className: "text-xl font-black", children: "Scanner kan niet geladen worden" }), _jsx("p", { className: "text-sm text-muted-foreground", children: "Controleer de verbinding en probeer het opnieuw." }), _jsx(Button, { className: "h-12 w-full", onClick: () => void controleer(), children: "Opnieuw proberen" })] }) }));
|
|
168
168
|
}
|
|
169
169
|
if (staat.soort === "koppelen") {
|
|
170
|
-
return (_jsxs("main", { className: "mx-auto grid min-h-screen w-full max-w-md content-center gap-4 bg-background p-4 sm:p-6", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx(Smartphone, { className: "h-8 w-8 text-primary" }), _jsxs("div", { className: "min-w-0", children: [_jsx("h1", { className: "text-2xl font-black", children: "Toestel koppelen" }), _jsx("p", { className: "truncate text-sm text-muted-foreground", children: scannerNaam })] })] }), staat.verplicht ? (_jsx("p", { className: "rounded-xl border border-destructive/40 bg-destructive/10 p-3 text-sm", children: "Dit toestel is niet gekoppeld. Scannen is geblokkeerd tot je het koppelt." })) : null, _jsx("p", { className: "text-sm text-muted-foreground", children: "Vraag je beheerder om een koppelcode voor deze scanner. Je hoeft dit maar \u00E9\u00E9n keer per toestel te doen." }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "koppelcode", children: "Koppelcode (6 cijfers)" }), _jsx(Input, { id: "koppelcode", inputMode: "numeric", autoComplete: "one-time-code", maxLength: 6, value: code, onChange: (e) => setCode(e.target.value.replace(/\D/g, "").slice(0, 6)), onKeyDown: (e) => {
|
|
170
|
+
return (_jsxs("main", { className: "mx-auto grid min-h-screen w-full max-w-md content-center gap-4 bg-background p-4 sm:p-6 text-lg [&_button]:min-h-14 [&_input]:min-h-14 [&_.text-xs]:text-base [&_.text-sm]:text-lg", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx(Smartphone, { className: "h-8 w-8 text-primary" }), _jsxs("div", { className: "min-w-0", children: [_jsx("h1", { className: "text-2xl font-black", children: "Toestel koppelen" }), _jsx("p", { className: "truncate text-sm text-muted-foreground", children: scannerNaam })] })] }), staat.verplicht ? (_jsx("p", { className: "rounded-xl border border-destructive/40 bg-destructive/10 p-3 text-sm", children: "Dit toestel is niet gekoppeld. Scannen is geblokkeerd tot je het koppelt." })) : null, _jsx("p", { className: "text-sm text-muted-foreground", children: "Vraag je beheerder om een koppelcode voor deze scanner. Je hoeft dit maar \u00E9\u00E9n keer per toestel te doen." }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "koppelcode", children: "Koppelcode (6 cijfers)" }), _jsx(Input, { id: "koppelcode", inputMode: "numeric", autoComplete: "one-time-code", maxLength: 6, value: code, onChange: (e) => setCode(e.target.value.replace(/\D/g, "").slice(0, 6)), onKeyDown: (e) => {
|
|
171
171
|
if (e.key === "Enter")
|
|
172
172
|
void koppel();
|
|
173
173
|
}, className: "h-14 rounded-2xl text-center font-mono text-2xl tracking-[0.4em]" })] }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "toestelnaam", children: "Naam van dit toestel (optioneel)" }), _jsx(Input, { id: "toestelnaam", value: toestelNaam, onChange: (e) => setToestelNaam(e.target.value), placeholder: "Bijvoorbeeld: telefoon controlepost", className: "h-12 rounded-2xl" })] }), melding ? _jsx("p", { className: "text-sm font-medium text-destructive", children: melding }) : null, _jsxs(Button, { className: "h-16 w-full rounded-2xl text-lg font-bold", disabled: bezig, onClick: () => void koppel(), children: [bezig ? _jsx(Loader2, { className: "mr-2 h-5 w-5 animate-spin" }) : null, "Koppelen"] }), !staat.verplicht ? (_jsx(Button, { variant: "ghost", className: "h-12", onClick: () => setStaat({ soort: "klaar", gekoppeld: false }), children: "Later koppelen" })) : null] }));
|
|
174
174
|
}
|
|
175
175
|
if (staat.soort === "pincode") {
|
|
176
|
-
return (_jsxs("main", { className: "mx-auto grid min-h-screen w-full max-w-md content-center gap-4 bg-background p-4 sm:p-6", children: [_jsx("h1", { className: "text-2xl font-black", children: "Pincode" }), _jsx("p", { className: "text-sm text-muted-foreground", children: scannerNaam }), _jsx(Input, { type: "password", inputMode: "numeric", "aria-label": "Pincode", value: pin, onChange: (e) => setPin(e.target.value), onKeyDown: (e) => {
|
|
176
|
+
return (_jsxs("main", { className: "mx-auto grid min-h-screen w-full max-w-md content-center gap-4 bg-background p-4 sm:p-6 text-lg [&_button]:min-h-14 [&_input]:min-h-14 [&_.text-xs]:text-base [&_.text-sm]:text-lg", children: [_jsx("h1", { className: "text-2xl font-black", children: "Pincode" }), _jsx("p", { className: "text-sm text-muted-foreground", children: scannerNaam }), _jsx(Input, { type: "password", inputMode: "numeric", "aria-label": "Pincode", value: pin, onChange: (e) => setPin(e.target.value), onKeyDown: (e) => {
|
|
177
177
|
if (e.key === "Enter")
|
|
178
178
|
void controleerPin();
|
|
179
179
|
}, className: "h-14 rounded-2xl text-base" }), melding ? _jsx("p", { className: "text-sm font-medium text-destructive", children: melding }) : null, _jsx(Button, { className: "h-16 w-full rounded-2xl text-lg font-bold", disabled: bezig, onClick: () => void controleerPin(), children: "Verder" })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApparatenBeheer.d.ts","sourceRoot":"","sources":["../../../src/components/scanners/ApparatenBeheer.tsx"],"names":[],"mappings":"AAwCA,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,+BAgI1G;AAQD,wBAAgB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ApparatenBeheer.d.ts","sourceRoot":"","sources":["../../../src/components/scanners/ApparatenBeheer.tsx"],"names":[],"mappings":"AAwCA,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,+BAgI1G;AAQD,wBAAgB,mBAAmB,gCA+ElC"}
|
|
@@ -119,7 +119,9 @@ export function ToestelInstellingen() {
|
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
const problemen = controles.filter((c) => !c.ok && c.niveau !== "info");
|
|
122
|
-
return (_jsx(Card, { children: _jsxs(CardContent, { className: "space-y-3 p-4", children: [_jsxs("div", { className: "flex items-center justify-between gap-3", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-3", children: [_jsx(ShieldCheck, { className: "h-6 w-6 shrink-0 text-primary" }), _jsxs("div", { className: "min-w-0", children: [_jsx("p", { className: "font-semibold", children: "Alleen gekoppelde toestellen" }), _jsx("p", { className: "text-xs text-muted-foreground", children: "Zet dit pas aan als alle telefoons en scanners op de vloer gekoppeld zijn." })] })] }), _jsx(Switch, { checked: aan === true, disabled: aan === null || bezig, onCheckedChange: (v) => void zet(v), "aria-label": "Alleen gekoppelde toestellen" })] }),
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
return (_jsx(Card, { children: _jsxs(CardContent, { className: "space-y-3 p-4", children: [_jsxs("div", { className: "flex items-center justify-between gap-3", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-3", children: [_jsx(ShieldCheck, { className: "h-6 w-6 shrink-0 text-primary" }), _jsxs("div", { className: "min-w-0", children: [_jsx("p", { className: "font-semibold", children: "Alleen gekoppelde toestellen" }), _jsx("p", { className: "text-xs text-muted-foreground", children: "Zet dit pas aan als alle telefoons en scanners op de vloer gekoppeld zijn." })] })] }), _jsx(Switch, { checked: aan === true, disabled: aan === null || bezig, onCheckedChange: (v) => void zet(v), "aria-label": "Alleen gekoppelde toestellen" })] }), _jsx("p", { className: "text-xs text-muted-foreground", children: controles.length === 0
|
|
123
|
+
? "Controle wordt geladen…"
|
|
124
|
+
: problemen.length === 0
|
|
125
|
+
? "Installatie in orde."
|
|
126
|
+
: `${problemen.length} ${problemen.length === 1 ? "punt vraagt" : "punten vragen"} aandacht. Neem contact op met Flow Selections.` }), controles.length > 0 ? (_jsxs("details", { className: "text-xs", children: [_jsx("summary", { className: "cursor-pointer text-muted-foreground", children: "Details" }), _jsx("ul", { className: "mt-2 space-y-1", children: controles.map((c) => (_jsxs("li", { className: c.niveau === "fout" && !c.ok ? "text-destructive" : "text-muted-foreground", children: [c.ok || c.niveau === "info" ? "In orde: " : c.niveau === "fout" ? "Fout: " : "Let op: ", c.onderdeel] }, c.onderdeel))) })] })) : null] }) }));
|
|
125
127
|
}
|
|
@@ -337,7 +337,7 @@ export function EindcontroleScanner({ naam, scannerId, }) {
|
|
|
337
337
|
const actueel = openstaand.filter((p) => !p.ouder);
|
|
338
338
|
const ouder = openstaand.filter((p) => p.ouder);
|
|
339
339
|
const pakbonKnop = (p) => (_jsxs("button", { type: "button", disabled: bezig, onClick: () => void scan(p.barcode), className: "w-full rounded-xl border p-3 text-left transition hover:border-primary disabled:opacity-50", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "truncate font-bold", children: p.order_number ?? "Order onbekend" }), _jsx(Badge, { variant: p.soort === "hele_kar" ? "default" : "secondary", children: p.soort === "hele_kar" ? "Hele kar" : "Deelkar" })] }), _jsxs("p", { className: "mt-1 truncate text-sm text-muted-foreground", children: [p.klant_naam ?? "Klant onbekend", formatDag(p.leverdag) ? ` · Leverdag ${formatDag(p.leverdag)}` : ""] }), p.klant_bedrijf ? (_jsx("p", { className: "truncate text-xs text-muted-foreground", children: p.klant_bedrijf })) : null, _jsxs("p", { className: "mt-1 truncate font-mono text-xs text-muted-foreground", children: [p.barcode, p.cart_index != null ? ` · Kar ${p.cart_index} van ${p.cart_total ?? "?"}` : ""] })] }, p.cart_id ?? p.barcode));
|
|
340
|
-
return (_jsxs("main", { className: "mx-auto max-w-2xl space-y-4 p-4", children: [_jsxs("header", { className: "flex items-center gap-3", children: [_jsx("span", { className: "grid h-11 w-11 shrink-0 place-items-center rounded-xl bg-primary/10 text-primary", children: _jsx(ClipboardCheck, { className: "h-6 w-6" }) }), _jsxs("div", { className: "min-w-0", children: [_jsx("h1", { className: "truncate text-lg font-black", children: naam ?? "Eindcontrole scanner" }), _jsx("p", { className: "text-xs text-muted-foreground", children: "Scan de pakbon van de kar" })] })] }), _jsx(StationNaamVeld, {}), _jsx(ScanInput, { onScan: (code) => void scan(code), variant: "zone", disabled: bezig, label: "Scan de pakbon", placeholder: "Barcode pakbon" }), bezig ? (_jsx("div", { className: "grid place-items-center py-6", children: _jsx(Loader2, { className: "h-6 w-6 animate-spin text-muted-foreground" }) })) : null, nietGeprint ? (_jsx(Card, { className: "border-warning bg-warning-soft", children: _jsxs(CardContent, { className: "space-y-3 py-6", children: [_jsxs("div", { className: "flex items-start gap-2 text-warning-soft-foreground", children: [_jsx(AlertTriangle, { className: "mt-0.5 h-5 w-5 shrink-0" }), _jsx("p", { className: "text-sm font-semibold", children: "Let op: de pakbon van deze kar is nog niet geprint. Toch afmelden?" })] }), _jsxs("div", { className: "rounded-xl border p-3 text-sm", children: [_jsx("p", { className: "truncate font-bold", children: nietGeprint.karLabel ?? "Kar" }), _jsxs("p", { className: "truncate text-muted-foreground", children: [nietGeprint.orderNumber ? `Order ${nietGeprint.orderNumber}` : "", nietGeprint.klant ? ` · ${nietGeprint.klant}` : ""] }), _jsx("p", { className: "break-all font-mono text-xs text-muted-foreground", children: nietGeprint.rauw })] }), _jsx(Button, { className: "h-14 w-full text-base font-bold", disabled: bezig, onClick: tochAfmelden, children: "Afmelden" }), _jsx(Button, { variant: "outline", className: "h-12 w-full", disabled: bezig, onClick: annuleerNietGeprint, children: "Annuleren" })] }) })) : null, techFout ? (_jsx(Card, { children: _jsxs(CardContent, { className: "space-y-3 py-6", children: [_jsxs("div", { className: "flex items-start gap-2", children: [_jsx(AlertTriangle, { className: "mt-0.5 h-5 w-5 shrink-0 text-muted-foreground" }), _jsx("p", { className: "text-sm font-semibold", children: techFout.melding })] }), _jsxs(Button, { className: "h-14 w-full text-base font-bold", disabled: bezig, onClick: () => void scan(techFout.code), children: [_jsx(RefreshCw, { className: "mr-2 h-5 w-5" }), "Opnieuw proberen"] }), _jsx(Button, { variant: "ghost", className: "h-11 w-full", onClick: () => setTechFout(null), children: "Sluiten" })] }) })) : null, verouderdMelding ? (_jsx(Card, { className: "border-destructive", children: _jsxs(CardContent, { className: "space-y-3 py-6", children: [_jsxs("div", { className: "flex items-start gap-2 text-destructive", children: [_jsx(AlertTriangle, { className: "mt-0.5 h-5 w-5 shrink-0" }), _jsx("p", { className: "text-sm font-semibold", children: verouderdMelding })] }), verouderdeOrders.length > 0 ? (_jsx("div", { className: "space-y-1 rounded-xl border p-3 text-sm", children: verouderdeOrders.map((o, i) => (_jsxs("p", { className: "truncate", children: [_jsx("span", { className: "font-bold", children: o.orderNumber ?? "Order onbekend" }), o.customerName ? ` · ${o.customerName}` : ""] }, `${o.orderNumber ?? i}`))) })) : null, _jsx("p", { className: "text-xs text-muted-foreground", children: "Deze pakbon hoort bij een kar die opnieuw is ingedeeld. Print de pakbonnen opnieuw en scan daarna de nieuwe pakbon." }), _jsxs(Button, { className: "h-14 w-full text-base font-bold", disabled: bezig, onClick: () => void pakbonOpnieuw(), children: [bezig ? (_jsx(Loader2, { className: "mr-2 h-5 w-5 animate-spin" })) : (_jsx(RefreshCw, { className: "mr-2 h-5 w-5" })), "Oude pakbonnen verwijderen en nieuwe printen"] }), _jsx(Button, { variant: "ghost", className: "h-11 w-full", onClick: sluitVerouderd, children: "Sluiten" })] }) })) : null, resultaat ? (_jsx(Card, { className: resultaat.ok
|
|
340
|
+
return (_jsxs("main", { className: "mx-auto max-w-2xl space-y-4 p-4 text-lg [&_button]:min-h-14 [&_input]:min-h-14 [&_.text-xs]:text-base [&_.text-sm]:text-lg", children: [_jsxs("header", { className: "flex items-center gap-3", children: [_jsx("span", { className: "grid h-11 w-11 shrink-0 place-items-center rounded-xl bg-primary/10 text-primary", children: _jsx(ClipboardCheck, { className: "h-6 w-6" }) }), _jsxs("div", { className: "min-w-0", children: [_jsx("h1", { className: "truncate text-lg font-black", children: naam ?? "Eindcontrole scanner" }), _jsx("p", { className: "text-xs text-muted-foreground", children: "Scan de pakbon van de kar" })] })] }), _jsx(StationNaamVeld, {}), _jsx(ScanInput, { onScan: (code) => void scan(code), variant: "zone", disabled: bezig, label: "Scan de pakbon", placeholder: "Barcode pakbon" }), bezig ? (_jsx("div", { className: "grid place-items-center py-6", children: _jsx(Loader2, { className: "h-6 w-6 animate-spin text-muted-foreground" }) })) : null, nietGeprint ? (_jsx(Card, { className: "border-warning bg-warning-soft", children: _jsxs(CardContent, { className: "space-y-3 py-6", children: [_jsxs("div", { className: "flex items-start gap-2 text-warning-soft-foreground", children: [_jsx(AlertTriangle, { className: "mt-0.5 h-5 w-5 shrink-0" }), _jsx("p", { className: "text-sm font-semibold", children: "Let op: de pakbon van deze kar is nog niet geprint. Toch afmelden?" })] }), _jsxs("div", { className: "rounded-xl border p-3 text-sm", children: [_jsx("p", { className: "truncate font-bold", children: nietGeprint.karLabel ?? "Kar" }), _jsxs("p", { className: "truncate text-muted-foreground", children: [nietGeprint.orderNumber ? `Order ${nietGeprint.orderNumber}` : "", nietGeprint.klant ? ` · ${nietGeprint.klant}` : ""] }), _jsx("p", { className: "break-all font-mono text-xs text-muted-foreground", children: nietGeprint.rauw })] }), _jsx(Button, { className: "h-14 w-full text-base font-bold", disabled: bezig, onClick: tochAfmelden, children: "Afmelden" }), _jsx(Button, { variant: "outline", className: "h-12 w-full", disabled: bezig, onClick: annuleerNietGeprint, children: "Annuleren" })] }) })) : null, techFout ? (_jsx(Card, { children: _jsxs(CardContent, { className: "space-y-3 py-6", children: [_jsxs("div", { className: "flex items-start gap-2", children: [_jsx(AlertTriangle, { className: "mt-0.5 h-5 w-5 shrink-0 text-muted-foreground" }), _jsx("p", { className: "text-sm font-semibold", children: techFout.melding })] }), _jsxs(Button, { className: "h-14 w-full text-base font-bold", disabled: bezig, onClick: () => void scan(techFout.code), children: [_jsx(RefreshCw, { className: "mr-2 h-5 w-5" }), "Opnieuw proberen"] }), _jsx(Button, { variant: "ghost", className: "h-11 w-full", onClick: () => setTechFout(null), children: "Sluiten" })] }) })) : null, verouderdMelding ? (_jsx(Card, { className: "border-destructive", children: _jsxs(CardContent, { className: "space-y-3 py-6", children: [_jsxs("div", { className: "flex items-start gap-2 text-destructive", children: [_jsx(AlertTriangle, { className: "mt-0.5 h-5 w-5 shrink-0" }), _jsx("p", { className: "text-sm font-semibold", children: verouderdMelding })] }), verouderdeOrders.length > 0 ? (_jsx("div", { className: "space-y-1 rounded-xl border p-3 text-sm", children: verouderdeOrders.map((o, i) => (_jsxs("p", { className: "truncate", children: [_jsx("span", { className: "font-bold", children: o.orderNumber ?? "Order onbekend" }), o.customerName ? ` · ${o.customerName}` : ""] }, `${o.orderNumber ?? i}`))) })) : null, _jsx("p", { className: "text-xs text-muted-foreground", children: "Deze pakbon hoort bij een kar die opnieuw is ingedeeld. Print de pakbonnen opnieuw en scan daarna de nieuwe pakbon." }), _jsxs(Button, { className: "h-14 w-full text-base font-bold", disabled: bezig, onClick: () => void pakbonOpnieuw(), children: [bezig ? (_jsx(Loader2, { className: "mr-2 h-5 w-5 animate-spin" })) : (_jsx(RefreshCw, { className: "mr-2 h-5 w-5" })), "Oude pakbonnen verwijderen en nieuwe printen"] }), _jsx(Button, { variant: "ghost", className: "h-11 w-full", onClick: sluitVerouderd, children: "Sluiten" })] }) })) : null, resultaat ? (_jsx(Card, { className: resultaat.ok
|
|
341
341
|
? "border-primary"
|
|
342
342
|
: resultaat.alAfgehandeld
|
|
343
343
|
? "border-warning bg-warning-soft"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KarHistorie.d.ts","sourceRoot":"","sources":["../../../src/components/scanners/KarHistorie.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KarHistorie.d.ts","sourceRoot":"","sources":["../../../src/components/scanners/KarHistorie.tsx"],"names":[],"mappings":"AAmEA,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,GAAE;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,KAAK,IAAI,CAAA;CAAO,+BA2M9F"}
|