@flowselections/floriday-afhandeling-module 1.0.99 → 1.0.102

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.
Files changed (113) hide show
  1. package/dist-lib/components/afhandeling/AutoProcessStatus.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/AutoProcessStatus.js +3 -2
  3. package/dist-lib/components/afhandeling/AutoSendStatus.d.ts.map +1 -1
  4. package/dist-lib/components/afhandeling/AutoSendStatus.js +4 -5
  5. package/dist-lib/components/afhandeling/CapacityWarning.js +1 -1
  6. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  7. package/dist-lib/components/afhandeling/ControlePage.js +66 -45
  8. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  9. package/dist-lib/components/afhandeling/DagDetailDialog.js +33 -17
  10. package/dist-lib/components/afhandeling/LeveringenPage.d.ts.map +1 -1
  11. package/dist-lib/components/afhandeling/LeveringenPage.js +115 -5
  12. package/dist-lib/components/afhandeling/NuVersturenButton.d.ts +1 -0
  13. package/dist-lib/components/afhandeling/NuVersturenButton.d.ts.map +1 -1
  14. package/dist-lib/components/afhandeling/NuVersturenButton.js +3 -7
  15. package/dist-lib/components/afhandeling/PickAgendaView.d.ts +7 -1
  16. package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -1
  17. package/dist-lib/components/afhandeling/PickAgendaView.js +39 -22
  18. package/dist-lib/components/afhandeling/PickingPage.d.ts.map +1 -1
  19. package/dist-lib/components/afhandeling/PickingPage.js +4 -2
  20. package/dist-lib/components/afhandeling/PlanningAgendaPage.d.ts +2 -0
  21. package/dist-lib/components/afhandeling/PlanningAgendaPage.d.ts.map +1 -1
  22. package/dist-lib/components/afhandeling/PlanningAgendaPage.js +16 -2
  23. package/dist-lib/components/afhandeling/ScanControleView.d.ts.map +1 -1
  24. package/dist-lib/components/afhandeling/ScanControleView.js +2 -1
  25. package/dist-lib/components/afhandeling/ServiceAreaSelect.js +2 -2
  26. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
  27. package/dist-lib/components/afhandeling/VervoerdersPage.js +116 -9
  28. package/dist-lib/components/afhandeling/VerzetOrderDialog.d.ts.map +1 -1
  29. package/dist-lib/components/afhandeling/VerzetOrderDialog.js +2 -1
  30. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +21 -1
  31. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  32. package/dist-lib/components/afhandeling/WeekAgendaView.js +39 -30
  33. package/dist-lib/components/fs-ui/DataTable.d.ts +45 -0
  34. package/dist-lib/components/fs-ui/DataTable.d.ts.map +1 -0
  35. package/dist-lib/components/fs-ui/DataTable.js +39 -0
  36. package/dist-lib/components/fs-ui/EmptyState.d.ts +9 -0
  37. package/dist-lib/components/fs-ui/EmptyState.d.ts.map +1 -0
  38. package/dist-lib/components/fs-ui/EmptyState.js +5 -0
  39. package/dist-lib/components/fs-ui/FilterChips.d.ts +19 -0
  40. package/dist-lib/components/fs-ui/FilterChips.d.ts.map +1 -0
  41. package/dist-lib/components/fs-ui/FilterChips.js +12 -0
  42. package/dist-lib/components/fs-ui/FilterPanel.d.ts +19 -0
  43. package/dist-lib/components/fs-ui/FilterPanel.d.ts.map +1 -0
  44. package/dist-lib/components/fs-ui/FilterPanel.js +14 -0
  45. package/dist-lib/components/fs-ui/HoverTip.d.ts +15 -0
  46. package/dist-lib/components/fs-ui/HoverTip.d.ts.map +1 -0
  47. package/dist-lib/components/fs-ui/HoverTip.js +24 -0
  48. package/dist-lib/components/fs-ui/InlineAlert.d.ts +17 -0
  49. package/dist-lib/components/fs-ui/InlineAlert.d.ts.map +1 -0
  50. package/dist-lib/components/fs-ui/InlineAlert.js +27 -0
  51. package/dist-lib/components/fs-ui/KpiRow.d.ts +6 -0
  52. package/dist-lib/components/fs-ui/KpiRow.d.ts.map +1 -0
  53. package/dist-lib/components/fs-ui/KpiRow.js +5 -0
  54. package/dist-lib/components/fs-ui/KpiTile.d.ts +21 -0
  55. package/dist-lib/components/fs-ui/KpiTile.d.ts.map +1 -0
  56. package/dist-lib/components/fs-ui/KpiTile.js +40 -0
  57. package/dist-lib/components/fs-ui/MobilePrimaryAction.d.ts +7 -0
  58. package/dist-lib/components/fs-ui/MobilePrimaryAction.d.ts.map +1 -0
  59. package/dist-lib/components/fs-ui/MobilePrimaryAction.js +7 -0
  60. package/dist-lib/components/fs-ui/PageHeader.d.ts +15 -0
  61. package/dist-lib/components/fs-ui/PageHeader.d.ts.map +1 -0
  62. package/dist-lib/components/fs-ui/PageHeader.js +9 -0
  63. package/dist-lib/components/fs-ui/PeriodPicker.d.ts +10 -0
  64. package/dist-lib/components/fs-ui/PeriodPicker.d.ts.map +1 -0
  65. package/dist-lib/components/fs-ui/PeriodPicker.js +7 -0
  66. package/dist-lib/components/fs-ui/PillTabs.d.ts +17 -0
  67. package/dist-lib/components/fs-ui/PillTabs.d.ts.map +1 -0
  68. package/dist-lib/components/fs-ui/PillTabs.js +28 -0
  69. package/dist-lib/components/fs-ui/SearchInput.d.ts +8 -0
  70. package/dist-lib/components/fs-ui/SearchInput.d.ts.map +1 -0
  71. package/dist-lib/components/fs-ui/SearchInput.js +28 -0
  72. package/dist-lib/components/fs-ui/ShortcutHelp.d.ts +10 -0
  73. package/dist-lib/components/fs-ui/ShortcutHelp.d.ts.map +1 -0
  74. package/dist-lib/components/fs-ui/ShortcutHelp.js +17 -0
  75. package/dist-lib/components/fs-ui/StatusIcon.d.ts +7 -0
  76. package/dist-lib/components/fs-ui/StatusIcon.d.ts.map +1 -0
  77. package/dist-lib/components/fs-ui/StatusIcon.js +9 -0
  78. package/dist-lib/components/fs-ui/TableSkeleton.d.ts +6 -0
  79. package/dist-lib/components/fs-ui/TableSkeleton.d.ts.map +1 -0
  80. package/dist-lib/components/fs-ui/TableSkeleton.js +6 -0
  81. package/dist-lib/components/fs-ui/Toolbar.d.ts +12 -0
  82. package/dist-lib/components/fs-ui/Toolbar.d.ts.map +1 -0
  83. package/dist-lib/components/fs-ui/Toolbar.js +11 -0
  84. package/dist-lib/components/fs-ui/UpdatedAt.d.ts +11 -0
  85. package/dist-lib/components/fs-ui/UpdatedAt.d.ts.map +1 -0
  86. package/dist-lib/components/fs-ui/UpdatedAt.js +14 -0
  87. package/dist-lib/components/fs-ui/useShortcuts.d.ts +12 -0
  88. package/dist-lib/components/fs-ui/useShortcuts.d.ts.map +1 -0
  89. package/dist-lib/components/fs-ui/useShortcuts.js +36 -0
  90. package/dist-lib/components/settings/AutomatischVersturenCard.d.ts +6 -0
  91. package/dist-lib/components/settings/AutomatischVersturenCard.d.ts.map +1 -0
  92. package/dist-lib/components/settings/AutomatischVersturenCard.js +54 -0
  93. package/dist-lib/hooks/useOrderPlanning.d.ts +1 -0
  94. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  95. package/dist-lib/hooks/useOrderPlanning.js +2 -0
  96. package/dist-lib/integrations/supabase/types.d.ts +833 -1
  97. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  98. package/dist-lib/lib/cartControl.functions.js +1 -1
  99. package/dist-lib/lib/dateLabels.d.ts +9 -0
  100. package/dist-lib/lib/dateLabels.d.ts.map +1 -0
  101. package/dist-lib/lib/dateLabels.js +45 -0
  102. package/dist-lib/lib/floridayAutoProcess.js +2 -2
  103. package/dist-lib/lib/floridayLoading.functions.js +5 -5
  104. package/dist-lib/lib/labels.d.ts +80 -0
  105. package/dist-lib/lib/labels.d.ts.map +1 -0
  106. package/dist-lib/lib/labels.js +87 -0
  107. package/dist-lib/lib/labels.test.d.ts +2 -0
  108. package/dist-lib/lib/labels.test.d.ts.map +1 -0
  109. package/dist-lib/lib/labels.test.js +21 -0
  110. package/dist-lib/lib/signupMailText.js +1 -1
  111. package/dist-lib/moduleDefinition.d.ts.map +1 -1
  112. package/dist-lib/moduleDefinition.js +2 -0
  113. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/FilterPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,kGAAkG;AAClG,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAmBA;AAED,+EAA+E;AAC/E,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAAE,EAC9C,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAChB,OAAO,EAAE;QAAE,KAAK,EAAE,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACvC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;CACjC,+BAyBA"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Button, Dialog, DialogContent, DialogDescription, DialogTitle } from "@flowselections/core";
3
+ /** Zijpaneel met alle extra filters (desktop rechts, mobiel volledig scherm). Alleen weergave. */
4
+ export function FilterPanel({ open, onOpenChange, onClear, children, }) {
5
+ return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { className: "!left-auto !right-0 !top-0 !translate-x-0 !translate-y-0 flex h-[100dvh] !max-h-[100dvh] flex-col gap-0 rounded-none border-y-0 border-r-0 p-0 sm:rounded-l-xl", style: { width: "min(24rem, 100vw)", maxWidth: "100vw" }, children: [_jsxs("div", { className: "border-b border-border px-5 py-4", children: [_jsx(DialogTitle, { className: "text-base font-semibold", children: "Filters" }), _jsx(DialogDescription, { className: "text-xs text-muted-foreground", children: "Kies wat je in de lijst wilt zien." })] }), _jsx("div", { className: "flex-1 space-y-5 overflow-y-auto px-5 py-4", children: children }), _jsxs("div", { className: "flex items-center justify-between gap-2 border-t border-border px-5 py-3", children: [onClear ? _jsx(Button, { variant: "ghost", size: "sm", onClick: onClear, children: "Alles wissen" }) : _jsx("span", {}), _jsx(Button, { size: "sm", onClick: () => onOpenChange(false), children: "Klaar" })] })] }) }));
6
+ }
7
+ /** Eén filtergroep met keuzeknoppen (één keuze, nogmaals klikken = wissen). */
8
+ export function FilterOptions({ title, value, options, onChange, }) {
9
+ return (_jsxs("fieldset", { children: [_jsx("legend", { className: "mb-2 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground", children: title }), _jsx("div", { className: "flex flex-wrap gap-2", children: options.map((o) => {
10
+ const on = value === o.value;
11
+ return (_jsx("button", { type: "button", "aria-pressed": on, onClick: () => onChange(on ? null : o.value), className: "inline-flex h-9 items-center rounded-full border px-3 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring " +
12
+ (on ? "border-primary bg-primary/10 text-foreground" : "border-border bg-card text-muted-foreground hover:text-foreground"), children: o.label }, o.value));
13
+ }) })] }));
14
+ }
@@ -0,0 +1,15 @@
1
+ import { type ReactNode } from "react";
2
+ /**
3
+ * Tooltip op basis van Popover (core heeft geen Tooltip-export): opent bij
4
+ * aanwijzen én bij toetsenbordfocus, sluit met Esc of bij verlaten. De
5
+ * trigger is een knop met een toegankelijke naam.
6
+ */
7
+ export declare function HoverTip({ content, label, children, side, align, className, }: {
8
+ align?: "start" | "center" | "end";
9
+ content: ReactNode;
10
+ label: string;
11
+ children: ReactNode;
12
+ side?: "top" | "bottom" | "left" | "right";
13
+ className?: string;
14
+ }): import("react").JSX.Element;
15
+ //# sourceMappingURL=HoverTip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HoverTip.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/HoverTip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,KAAK,EACL,QAAQ,EACR,IAAY,EACZ,KAAgB,EAChB,SAAc,GACf,EAAE;IACD,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BA4CA"}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useRef, useState } from "react";
3
+ import { Popover, PopoverContent, PopoverTrigger } from "@flowselections/core";
4
+ /**
5
+ * Tooltip op basis van Popover (core heeft geen Tooltip-export): opent bij
6
+ * aanwijzen én bij toetsenbordfocus, sluit met Esc of bij verlaten. De
7
+ * trigger is een knop met een toegankelijke naam.
8
+ */
9
+ export function HoverTip({ content, label, children, side = "top", align = "center", className = "", }) {
10
+ const [open, setOpen] = useState(false);
11
+ const timer = useRef(null);
12
+ const show = () => {
13
+ if (timer.current)
14
+ clearTimeout(timer.current);
15
+ setOpen(true);
16
+ };
17
+ const hide = () => {
18
+ if (timer.current)
19
+ clearTimeout(timer.current);
20
+ timer.current = setTimeout(() => setOpen(false), 80);
21
+ };
22
+ return (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { type: "button", "aria-label": label, onPointerEnter: show, onPointerLeave: hide, onFocus: show, onBlur: hide, onClick: (e) => e.stopPropagation(), className: "inline-flex shrink-0 items-center justify-center rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring " +
23
+ className, children: children }), _jsx(PopoverContent, { side: side, align: align, avoidCollisions: true, collisionPadding: 8, onOpenAutoFocus: (e) => e.preventDefault(), onCloseAutoFocus: (e) => e.preventDefault(), onPointerEnter: show, onPointerLeave: hide, onClick: (e) => e.stopPropagation(), className: "w-auto min-w-[14rem] max-w-[20rem] rounded-lg p-3 text-xs leading-snug shadow-lg motion-reduce:animate-none", children: content })] }));
24
+ }
@@ -0,0 +1,17 @@
1
+ import { type ReactNode } from "react";
2
+ /**
3
+ * Eén melding op één regel (NoticeBar-stijl); details klappen uit.
4
+ * Nooit lijsten van items in de regel zelf: die horen in `details`.
5
+ */
6
+ export declare function InlineAlert({ tone, title, children, action, details, }: {
7
+ tone?: "warning" | "error" | "info";
8
+ title?: string;
9
+ children?: ReactNode;
10
+ action?: ReactNode;
11
+ details?: ReactNode;
12
+ }): import("react").JSX.Element;
13
+ /** Meldingen direct onder de kop: hooguit 2 zichtbaar, de rest als "+ n meldingen". */
14
+ export declare function NoticeStack({ children }: {
15
+ children: ReactNode[];
16
+ }): import("react").JSX.Element | null;
17
+ //# sourceMappingURL=InlineAlert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineAlert.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/InlineAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGjD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAgB,EAChB,KAAK,EACL,QAAQ,EACR,MAAM,EACN,OAAO,GACR,EAAE;IACD,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,+BAiCA;AAED,uFAAuF;AACvF,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,EAAE,CAAA;CAAE,sCAmBlE"}
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from "react";
3
+ import { AlertTriangle, ChevronDown, Info, XCircle } from "lucide-react";
4
+ /**
5
+ * Eén melding op één regel (NoticeBar-stijl); details klappen uit.
6
+ * Nooit lijsten van items in de regel zelf: die horen in `details`.
7
+ */
8
+ export function InlineAlert({ tone = "warning", title, children, action, details, }) {
9
+ const [open, setOpen] = useState(false);
10
+ const Icon = tone === "error" ? XCircle : tone === "info" ? Info : AlertTriangle;
11
+ const box = tone === "error"
12
+ ? "border-destructive/30 bg-destructive/5 text-foreground"
13
+ : tone === "info"
14
+ ? "border-border bg-muted/50 text-foreground"
15
+ : "border-border bg-warning-soft text-warning-soft-foreground";
16
+ const ic = tone === "error" ? "text-destructive" : "";
17
+ return (_jsxs("div", { role: tone === "error" ? "alert" : "status", className: "shrink-0 rounded-lg border text-sm " + box, children: [_jsxs("div", { className: "flex min-h-9 items-center gap-2 px-3 py-2", children: [_jsx(Icon, { className: "h-4 w-4 shrink-0 " + ic, "aria-hidden": true }), title && _jsx("span", { className: "shrink-0 font-medium", children: title }), children && _jsx("span", { className: "min-w-0 flex-1 truncate opacity-80", children: children }), !children && _jsx("span", { className: "flex-1" }), action && _jsx("span", { className: "shrink-0", children: action }), details && (_jsx("button", { type: "button", "aria-expanded": open, "aria-label": open ? "Details verbergen" : "Details tonen", onClick: () => setOpen((o) => !o), className: "inline-flex h-6 w-6 shrink-0 items-center justify-center rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: _jsx(ChevronDown, { className: "h-4 w-4 transition-transform " + (open ? "rotate-180" : ""), "aria-hidden": true }) }))] }), details && open && _jsx("div", { className: "break-words border-t border-border/60 px-3 py-2 pl-9 text-xs", children: details })] }));
18
+ }
19
+ /** Meldingen direct onder de kop: hooguit 2 zichtbaar, de rest als "+ n meldingen". */
20
+ export function NoticeStack({ children }) {
21
+ const [all, setAll] = useState(false);
22
+ const items = children.filter(Boolean);
23
+ if (items.length === 0)
24
+ return null;
25
+ const shown = all ? items : items.slice(0, 2);
26
+ return (_jsxs("div", { className: "flex shrink-0 flex-col gap-2", children: [shown, items.length > 2 && (_jsx("button", { type: "button", onClick: () => setAll((a) => !a), className: "self-start rounded px-1 text-xs font-medium text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: all ? "Minder meldingen" : `+ ${items.length - 2} ${items.length - 2 === 1 ? "melding" : "meldingen"}` }))] }));
27
+ }
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from "react";
2
+ /** 4 tegels naast elkaar; mobiel een veegbare rij (snap per tegel, ~78% breed). */
3
+ export declare function KpiRow({ children }: {
4
+ children: ReactNode;
5
+ }): import("react").JSX.Element;
6
+ //# sourceMappingURL=KpiRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KpiRow.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/KpiRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,mFAAmF;AACnF,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAM3D"}
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /** 4 tegels naast elkaar; mobiel een veegbare rij (snap per tegel, ~78% breed). */
3
+ export function KpiRow({ children }) {
4
+ return (_jsx("div", { className: "-mx-4 flex snap-x snap-mandatory scroll-px-4 gap-3 overflow-x-auto px-4 pb-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden sm:mx-0 sm:grid sm:grid-cols-2 sm:overflow-visible sm:px-0 lg:grid-cols-4 [&>*]:w-[78%] [&>*]:shrink-0 [&>*]:snap-start sm:[&>*]:w-auto", children: children }));
5
+ }
@@ -0,0 +1,21 @@
1
+ import type { ReactNode } from "react";
2
+ export interface KpiTrend {
3
+ /** Procentuele wijziging t.o.v. de vorige periode (null = geen vergelijking). */
4
+ pct: number | null;
5
+ label: string;
6
+ /** Hoger is beter (omzet) of slechter (actie nodig). */
7
+ goodWhenUp?: boolean;
8
+ }
9
+ /** KPI-tegel: icoon, label, groot getal, subregel en optionele trend. Alleen weergave. */
10
+ export declare function KpiTile({ title, value, sub, icon, tone, loading, onClick, active, trend, }: {
11
+ title: string;
12
+ value: ReactNode;
13
+ sub?: ReactNode;
14
+ icon?: ReactNode;
15
+ tone?: "default" | "warning";
16
+ loading?: boolean;
17
+ onClick?: () => void;
18
+ active?: boolean;
19
+ trend?: KpiTrend | null;
20
+ }): import("react").JSX.Element;
21
+ //# sourceMappingURL=KpiTile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KpiTile.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/KpiTile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,WAAW,QAAQ;IACvB,iFAAiF;IACjF,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAoCD,0FAA0F;AAC1F,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,KAAK,EACL,GAAG,EACH,IAAI,EACJ,IAAgB,EAChB,OAAO,EACP,OAAO,EACP,MAAM,EACN,KAAK,GACN,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;CACzB,+BA4DA"}
@@ -0,0 +1,40 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Card, Skeleton } from "@flowselections/core";
3
+ import { ChevronRight, Minus, TrendingDown, TrendingUp } from "lucide-react";
4
+ function Trend({ trend }) {
5
+ if (trend.pct == null)
6
+ return null;
7
+ const flat = Math.abs(trend.pct) < 0.5;
8
+ const up = trend.pct > 0;
9
+ const good = flat ? null : up === (trend.goodWhenUp ?? true);
10
+ const Icon = flat ? Minus : up ? TrendingUp : TrendingDown;
11
+ const tone = good == null ? "text-muted-foreground" : good ? "text-primary" : "text-destructive";
12
+ return (_jsxs("span", { className: "inline-flex min-w-0 items-center gap-1 whitespace-nowrap text-xs font-medium tabular-nums " + tone, title: trend.label, children: [_jsx(Icon, { className: "h-3.5 w-3.5", "aria-hidden": true }), flat ? "0%" : `${up ? "+" : ""}${Math.round(trend.pct)}%`, _jsx("span", { className: "truncate font-normal text-muted-foreground", children: trend.label })] }));
13
+ }
14
+ /** Klein trendlijntje van vorige naar huidige periode (alleen weergave). */
15
+ function Spark({ trend }) {
16
+ if (trend.pct == null)
17
+ return null;
18
+ const up = trend.pct > 0.5;
19
+ const down = trend.pct < -0.5;
20
+ const good = up || down ? up === (trend.goodWhenUp ?? true) : null;
21
+ const tone = good == null ? "text-muted-foreground" : good ? "text-primary" : "text-destructive";
22
+ const y0 = up ? 26 : down ? 6 : 16;
23
+ const y1 = up ? 6 : down ? 26 : 16;
24
+ const mid = (y0 + y1) / 2;
25
+ const d = `M2 ${y0} C 14 ${y0}, 18 ${mid + (up ? 4 : down ? -4 : 0)}, 28 ${mid} S 44 ${mid - (up ? 6 : down ? -6 : 0)}, 50 ${(mid + y1) / 2} S 58 ${y1}, 62 ${y1}`;
26
+ return (_jsx("svg", { viewBox: "0 0 64 32", className: "hidden h-8 w-16 shrink-0 self-end sm:block " + tone, "aria-hidden": true, children: _jsx("path", { d: d, fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) }));
27
+ }
28
+ /** KPI-tegel: icoon, label, groot getal, subregel en optionele trend. Alleen weergave. */
29
+ export function KpiTile({ title, value, sub, icon, tone = "default", loading, onClick, active, trend, }) {
30
+ const body = (_jsxs("div", { className: "flex items-center gap-3 sm:gap-4", children: [icon && (_jsx("span", { className: "inline-flex h-10 w-10 sm:h-12 sm:w-12 shrink-0 items-center justify-center rounded-xl [&_svg]:h-5 [&_svg]:w-5 sm:[&_svg]:h-6 sm:[&_svg]:w-6 " +
31
+ (tone === "warning" ? "bg-warning-soft text-warning-soft-foreground" : "bg-primary/10 text-primary"), "aria-hidden": true, children: icon })), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "truncate text-[11px] font-semibold uppercase tracking-wider text-muted-foreground", children: title }), _jsx("div", { className: "mt-0.5 text-2xl font-semibold leading-tight tabular-nums text-foreground", children: loading ? _jsx(Skeleton, { className: "h-7 w-24" }) : value }), _jsx("div", { className: "mt-1 flex min-h-4 flex-col gap-0.5 text-xs text-muted-foreground", children: loading ? _jsx(Skeleton, { className: "h-3 w-32" }) : (_jsxs(_Fragment, { children: [_jsx("div", { className: "truncate", children: sub }), trend && _jsx(Trend, { trend: trend })] })) })] }), !loading && trend && _jsx(Spark, { trend: trend }), onClick && tone === "warning" && _jsx(ChevronRight, { className: "h-5 w-5 shrink-0 text-muted-foreground", "aria-hidden": true })] }));
32
+ return (_jsx(Card, { className: "h-full p-4 sm:p-5 transition-shadow " +
33
+ (onClick ? "hover:border-ring/50 hover:shadow-md " : "") +
34
+ (active ? "ring-2 ring-ring" : ""), children: onClick ? (_jsx("div", { role: "button", tabIndex: 0, onClick: onClick, onKeyDown: (e) => {
35
+ if (e.key === "Enter" || e.key === " ") {
36
+ e.preventDefault();
37
+ onClick();
38
+ }
39
+ }, className: "block w-full cursor-pointer rounded-sm text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: body })) : (body) }));
40
+ }
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from "react";
2
+ /** Vaste schermbrede hoofdactie onderin op mobiel (48 px, veilige rand). */
3
+ export declare function MobilePrimaryAction({ children, hidden }: {
4
+ children: ReactNode;
5
+ hidden?: boolean;
6
+ }): import("react").JSX.Element | null;
7
+ //# sourceMappingURL=MobilePrimaryAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MobilePrimaryAction.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/MobilePrimaryAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,4EAA4E;AAC5E,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,sCAOlG"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /** Vaste schermbrede hoofdactie onderin op mobiel (48 px, veilige rand). */
3
+ export function MobilePrimaryAction({ children, hidden }) {
4
+ if (hidden)
5
+ return null;
6
+ return (_jsx("div", { className: "fixed inset-x-0 bottom-0 z-30 border-t border-border bg-background/95 p-3 pb-[calc(0.75rem+env(safe-area-inset-bottom))] shadow-lg md:hidden [&>*]:h-12 [&>*]:w-full", children: children }));
7
+ }
@@ -0,0 +1,15 @@
1
+ import type { ReactNode } from "react";
2
+ /**
3
+ * Paginakop exact naar Verkooporders: h1 + daaronder alleen "Bijgewerkt".
4
+ * Rechts: periodekiezer, secundaire knoppen, één primaire knop. Alleen weergave.
5
+ * `description` wordt bewust niet meer getoond (vaste regel: geen beschrijvingsregel).
6
+ */
7
+ export declare function PageHeader({ title, updatedAt, period, actions, }: {
8
+ title: string;
9
+ /** Genegeerd; blijft alleen voor bestaande aanroepen. */
10
+ description?: ReactNode;
11
+ updatedAt?: ReactNode;
12
+ period?: ReactNode;
13
+ actions?: ReactNode;
14
+ }): import("react").JSX.Element;
15
+ //# sourceMappingURL=PageHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,SAAS,EACT,MAAM,EACN,OAAO,GACR,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,+BAmBA"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Paginakop exact naar Verkooporders: h1 + daaronder alleen "Bijgewerkt".
4
+ * Rechts: periodekiezer, secundaire knoppen, één primaire knop. Alleen weergave.
5
+ * `description` wordt bewust niet meer getoond (vaste regel: geen beschrijvingsregel).
6
+ */
7
+ export function PageHeader({ title, updatedAt, period, actions, }) {
8
+ 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("p", { className: "flex flex-wrap items-center gap-x-2 text-xs text-muted-foreground", "aria-live": "polite", children: updatedAt })] }) }), (period || actions) && (_jsxs("div", { className: "contents sm:flex sm:flex-wrap sm:items-center sm:gap-2", children: [period && _jsx("div", { className: "order-last col-span-2 sm:order-none sm:col-span-1", children: period }), actions && _jsx("div", { className: "flex items-center gap-2", children: actions })] }))] }));
9
+ }
@@ -0,0 +1,10 @@
1
+ /** Periodekiezer in de kop: pijl links, label ("Week 45 - 2026" of "wo 4 nov"), pijl rechts. */
2
+ export declare function PeriodPicker({ label, onPrev, onNext, onToday, todayLabel, isCurrent, }: {
3
+ label: string;
4
+ onPrev: () => void;
5
+ onNext: () => void;
6
+ onToday?: () => void;
7
+ todayLabel?: string;
8
+ isCurrent?: boolean;
9
+ }): import("react").JSX.Element;
10
+ //# sourceMappingURL=PeriodPicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PeriodPicker.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/PeriodPicker.tsx"],"names":[],"mappings":"AAGA,gGAAgG;AAChG,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,MAAM,EACN,OAAO,EACP,UAAsB,EACtB,SAAS,GACV,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,+BAmBA"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ChevronLeft, ChevronRight } from "lucide-react";
3
+ import { Button } from "@flowselections/core";
4
+ /** Periodekiezer in de kop: pijl links, label ("Week 45 - 2026" of "wo 4 nov"), pijl rechts. */
5
+ export function PeriodPicker({ label, onPrev, onNext, onToday, todayLabel = "Vandaag", isCurrent, }) {
6
+ return (_jsxs("div", { className: "flex items-center gap-1", children: [_jsx(Button, { variant: "outline", size: "icon", className: "h-10 w-10 sm:h-9 sm:w-9", onClick: onPrev, "aria-label": "Vorige periode", children: _jsx(ChevronLeft, { className: "h-4 w-4" }) }), _jsx("span", { className: "min-w-[8.5rem] px-2 text-center text-sm font-medium tabular-nums text-foreground", "aria-live": "polite", children: label }), _jsx(Button, { variant: "outline", size: "icon", className: "h-10 w-10 sm:h-9 sm:w-9", onClick: onNext, "aria-label": "Volgende periode", children: _jsx(ChevronRight, { className: "h-4 w-4" }) }), onToday && !isCurrent && (_jsx(Button, { variant: "ghost", size: "sm", onClick: onToday, children: todayLabel }))] }));
7
+ }
@@ -0,0 +1,17 @@
1
+ import { type ReactNode } from "react";
2
+ export interface PillTab<T extends string> {
3
+ value: T;
4
+ /** Hooguit twee woorden. */
5
+ label: string;
6
+ icon?: ReactNode;
7
+ count?: number | null;
8
+ hint?: string;
9
+ }
10
+ /** Tabbladen exact als StatusTabs in Verkooporders: altijd één regel, scrollen met vervaging. */
11
+ export declare function PillTabs<T extends string>({ tabs, value, onChange, ariaLabel, }: {
12
+ tabs: PillTab<T>[];
13
+ value: T;
14
+ onChange: (v: T) => void;
15
+ ariaLabel?: string;
16
+ }): import("react").JSX.Element;
17
+ //# 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":"AAAA,OAAO,EAA2B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEhE,MAAM,WAAW,OAAO,CAAC,CAAC,SAAS,MAAM;IACvC,KAAK,EAAE,CAAC,CAAC;IACT,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,iGAAiG;AACjG,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,EAAE,EACzC,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,SAAS,GACV,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,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BA6DA"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useLayoutEffect, useRef } from "react";
3
+ /** Tabbladen exact als StatusTabs in Verkooporders: altijd één regel, scrollen met vervaging. */
4
+ export function PillTabs({ tabs, value, onChange, ariaLabel, }) {
5
+ const listRef = useRef(null);
6
+ useLayoutEffect(() => {
7
+ const measure = () => {
8
+ const list = listRef.current;
9
+ const el = list?.querySelector(`[data-tab="${value}"]`);
10
+ if (el && list && (el.offsetLeft < list.scrollLeft || el.offsetLeft + el.offsetWidth > list.scrollLeft + list.clientWidth)) {
11
+ list.scrollLeft = el.offsetLeft - 8;
12
+ }
13
+ };
14
+ measure();
15
+ window.addEventListener("resize", measure);
16
+ return () => window.removeEventListener("resize", measure);
17
+ }, [value, tabs]);
18
+ return (_jsx("div", { className: "shrink-0", children: _jsx("div", { ref: listRef, role: "tablist", "aria-label": ariaLabel, 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) => {
19
+ const active = t.value === value;
20
+ return (_jsxs("button", { "data-tab": t.value, type: "button", role: "tab", "aria-selected": active, onClick: () => onChange(t.value), title: t.hint, style: { transition: "color 150ms, background-color 150ms, border-color 150ms" }, className: "relative flex h-9 items-center gap-2 whitespace-nowrap rounded-lg border px-3 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0 " +
21
+ (active
22
+ ? "border-primary/30 bg-primary/10 font-semibold text-foreground"
23
+ : t.count === 0
24
+ ? "border-border bg-card text-muted-foreground/70 hover:text-foreground"
25
+ : "border-border bg-card text-foreground/80 hover:bg-muted hover:text-foreground"), children: [t.icon, _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 " +
26
+ (active ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground"), children: t.count }))] }, t.value));
27
+ }) }) }));
28
+ }
@@ -0,0 +1,8 @@
1
+ /** Zoekveld exact als Verkooporders: h-9 (mobiel h-10), sm:w-80, breder bij focus, kbd "/". */
2
+ export declare const SearchInput: import("react").ForwardRefExoticComponent<{
3
+ value: string;
4
+ onChange: (v: string) => void;
5
+ placeholder?: string;
6
+ debounceMs?: number;
7
+ } & import("react").RefAttributes<HTMLInputElement>>;
8
+ //# 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,+FAA+F;AAC/F,eAAO,MAAM,WAAW;WAEb,MAAM;cAAY,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBAAgB,MAAM;iBAAe,MAAM;oDAmEzF,CAAC"}
@@ -0,0 +1,28 @@
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 exact als Verkooporders: h-9 (mobiel h-10), sm:w-80, breder bij focus, kbd "/". */
5
+ export const SearchInput = forwardRef(function SearchInput({ value, onChange, placeholder = "Zoeken", debounceMs = 250 }, ref) {
6
+ const [local, setLocal] = useState(value);
7
+ useEffect(() => setLocal(value), [value]);
8
+ useEffect(() => {
9
+ if (local === value)
10
+ return;
11
+ const t = setTimeout(() => onChange(local), debounceMs);
12
+ return () => clearTimeout(t);
13
+ }, [local, value, onChange, debounceMs]);
14
+ const clear = () => {
15
+ setLocal("");
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 " +
19
+ "transition-[box-shadow,border-color,width] duration-[180ms] ease-out motion-reduce:transition-none " +
20
+ "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", value: local, placeholder: placeholder, "aria-label": "Zoeken", maxLength: 100, autoComplete: "off", spellCheck: false, onChange: (e) => setLocal(e.target.value), onKeyDown: (e) => {
21
+ if (e.key === "Escape" && local) {
22
+ e.preventDefault();
23
+ clear();
24
+ }
25
+ }, 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 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-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 rounded border border-border px-1.5 font-mono text-[11px] leading-5 text-muted-foreground transition-opacity duration-[120ms] " +
26
+ (local ? "opacity-0" : "opacity-100 group-focus-within:opacity-0"), "aria-hidden": true, children: "/" }), _jsx("button", { type: "button", onClick: clear, tabIndex: local ? 0 : -1, "aria-label": "Zoekopdracht 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 " +
27
+ (local ? "scale-100 opacity-100" : "pointer-events-none scale-90 opacity-0"), children: _jsx(X, { className: "h-4 w-4" }) })] })] }) }));
28
+ });
@@ -0,0 +1,10 @@
1
+ /** Overzicht van de sneltoetsen (toets ?). */
2
+ export declare function ShortcutHelp({ open, onOpenChange, hasNew }: {
3
+ open: boolean;
4
+ onOpenChange: (o: boolean) => void;
5
+ hasNew?: boolean;
6
+ }): import("react").JSX.Element;
7
+ export declare function Kbd({ children }: {
8
+ children: string;
9
+ }): import("react").JSX.Element;
10
+ //# 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":"AAWA,8CAA8C;AAC9C,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,MAAa,EAAE,EAAE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,+BAkB1I;AAED,wBAAgB,GAAG,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,+BAErD"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@flowselections/core";
3
+ const ROWS = [
4
+ ["N", "Nieuw"],
5
+ ["/", "Zoeken"],
6
+ ["J / K", "Volgende / vorige rij"],
7
+ ["Enter", "Openen"],
8
+ ["Esc", "Sluiten of wissen"],
9
+ ["?", "Dit overzicht"],
10
+ ];
11
+ /** Overzicht van de sneltoetsen (toets ?). */
12
+ export function ShortcutHelp({ open, onOpenChange, hasNew = true }) {
13
+ return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { className: "max-w-sm rounded-lg", children: [_jsx(DialogHeader, { children: _jsx(DialogTitle, { children: "Sneltoetsen" }) }), _jsx("ul", { className: "space-y-2 text-sm", children: ROWS.filter(([k]) => hasNew || k !== "N").map(([k, l]) => (_jsxs("li", { className: "flex items-center justify-between gap-4", children: [_jsx("span", { className: "text-muted-foreground", children: l }), _jsx("kbd", { className: "rounded-sm border border-border bg-muted px-1.5 text-xs", children: k })] }, k))) })] }) }));
14
+ }
15
+ export function Kbd({ children }) {
16
+ return _jsx("kbd", { className: "ml-1 hidden rounded-sm border border-current/30 px-1 text-[11px] opacity-80 sm:inline-block", children: children });
17
+ }
@@ -0,0 +1,7 @@
1
+ export type StatusTone = "done" | "open" | "busy" | "error";
2
+ /** Klein rond statusicoon met tooltip: groen klaar, grijs open, oker bezig, rood fout. */
3
+ export declare function StatusIcon({ tone, label }: {
4
+ tone: StatusTone;
5
+ label: string;
6
+ }): import("react").JSX.Element;
7
+ //# 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,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE5D,0FAA0F;AAC1F,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,+BAS9E"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { AlertCircle, Check, Circle, Loader2 } from "lucide-react";
3
+ import { HoverTip } from "./HoverTip.js";
4
+ /** Klein rond statusicoon met tooltip: groen klaar, grijs open, oker bezig, rood fout. */
5
+ export function StatusIcon({ tone, label }) {
6
+ const Icon = tone === "done" ? Check : tone === "busy" ? Loader2 : tone === "error" ? AlertCircle : Circle;
7
+ const color = tone === "done" ? "text-primary" : tone === "busy" ? "text-warning" : tone === "error" ? "text-destructive" : "text-muted-foreground";
8
+ return (_jsx(HoverTip, { label: label, content: label, children: _jsx(Icon, { className: "h-4 w-4 " + color, "aria-hidden": true }) }));
9
+ }
@@ -0,0 +1,6 @@
1
+ /** Skelet in de vorm van de tabel: koprij 40 px, rijen 60 px. */
2
+ export declare function TableSkeleton({ rows, columns }: {
3
+ rows?: number;
4
+ columns?: number;
5
+ }): import("react").JSX.Element;
6
+ //# sourceMappingURL=TableSkeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableSkeleton.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/TableSkeleton.tsx"],"names":[],"mappings":"AAEA,iEAAiE;AACjE,wBAAgB,aAAa,CAAC,EAAE,IAAQ,EAAE,OAAW,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,+BAiB3F"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Skeleton } from "@flowselections/core";
3
+ /** Skelet in de vorm van de tabel: koprij 40 px, rijen 60 px. */
4
+ export function TableSkeleton({ rows = 6, columns = 5 }) {
5
+ return (_jsxs("div", { className: "overflow-hidden rounded-xl border border-border bg-card shadow-sm", "aria-busy": "true", "aria-label": "Laden", children: [_jsx("div", { className: "flex h-10 items-center gap-4 border-b border-border px-4", children: Array.from({ length: columns }).map((_, i) => (_jsx(Skeleton, { className: "h-3 flex-1" }, i))) }), Array.from({ length: rows }).map((_, r) => (_jsx("div", { className: "flex h-[60px] items-center gap-4 border-b border-border px-4 last:border-0", children: Array.from({ length: columns }).map((_, c) => (_jsx(Skeleton, { className: "h-4 flex-1 " + (c === 0 ? "max-w-40" : "") }, c))) }, r)))] }));
6
+ }
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from "react";
2
+ /** Werkbalk: zoeken, Filters, chips op één regel; uiterst rechts alleen "Kolommen". */
3
+ export declare function Toolbar({ children, right }: {
4
+ children: ReactNode;
5
+ right?: ReactNode;
6
+ }): import("react").JSX.Element;
7
+ /** Knop "Filters" exact als Verkooporders (mobiel alleen icoon). */
8
+ export declare function FiltersButton({ count, onClick }: {
9
+ count: number;
10
+ onClick: () => void;
11
+ }): import("react").JSX.Element;
12
+ //# 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;AAIvC,uFAAuF;AACvF,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,+BAOtF;AAED,oEAAoE;AACpE,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,+BAYvF"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { SlidersHorizontal } from "lucide-react";
3
+ import { Button } from "@flowselections/core";
4
+ /** Werkbalk: zoeken, Filters, chips op één regel; uiterst rechts alleen "Kolommen". */
5
+ export function Toolbar({ children, right }) {
6
+ return (_jsxs("div", { className: "shrink-0 flex flex-wrap items-center gap-2", children: [children, right && _jsx("div", { className: "ml-auto flex items-center gap-2", children: right })] }));
7
+ }
8
+ /** Knop "Filters" exact als Verkooporders (mobiel alleen icoon). */
9
+ export function FiltersButton({ count, onClick }) {
10
+ return (_jsxs(Button, { variant: "outline", size: "sm", onClick: onClick, "aria-label": "Filters", className: "relative h-10 px-3 sm:h-9", children: [_jsx(SlidersHorizontal, { className: "h-4 w-4 sm:mr-2" }), _jsx("span", { className: "hidden sm:inline", children: "Filters" }), count > 0 && (_jsx("span", { className: "ml-2 inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1.5 text-[11px] font-semibold text-primary-foreground", children: count }))] }));
11
+ }
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from "react";
2
+ /** "Bijgewerkt hh:mm" met klok (12 px), exact als Verkooporders. Verversen gebeurt stil. */
3
+ export declare function UpdatedAt({ at, stale, info, }: {
4
+ at?: Date | number | null;
5
+ /** Genegeerd: verversen gebeurt stil. */
6
+ refreshing?: boolean;
7
+ stale?: boolean;
8
+ /** Extra uitleg in de infoballon. */
9
+ info?: ReactNode;
10
+ }): import("react").JSX.Element | null;
11
+ //# sourceMappingURL=UpdatedAt.d.ts.map
@@ -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,4FAA4F;AAC5F,wBAAgB,SAAS,CAAC,EACxB,EAAE,EACF,KAAK,EACL,IAAI,GACL,EAAE;IACD,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IAC1B,yCAAyC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,qCAAqC;IACrC,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,sCAgBA"}
@@ -0,0 +1,14 @@
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
+ /** "Bijgewerkt hh:mm" met klok (12 px), exact als Verkooporders. Verversen gebeurt stil. */
5
+ export function UpdatedAt({ at, stale, info, }) {
6
+ if (!at)
7
+ return null;
8
+ const d = typeof at === "number" ? new Date(at) : at;
9
+ const t = d.toLocaleTimeString("nl-NL", { hour: "2-digit", minute: "2-digit" });
10
+ const body = (_jsxs("span", { className: "inline-flex items-center gap-1 tabular-nums " + (stale ? "text-warning" : ""), children: [_jsx(Clock, { className: "h-3.5 w-3.5", "aria-hidden": true }), stale ? `Niet bijgewerkt sinds ${t}` : `Bijgewerkt ${t}`] }));
11
+ if (!info)
12
+ return body;
13
+ return (_jsx(HoverTip, { label: "Meer informatie", content: info, children: body }));
14
+ }
@@ -0,0 +1,12 @@
1
+ export interface ShortcutHandlers {
2
+ onNew?: () => void;
3
+ onSearch?: () => void;
4
+ onNext?: () => void;
5
+ onPrev?: () => void;
6
+ onOpen?: () => void;
7
+ onEscape?: () => void;
8
+ onHelp?: () => void;
9
+ }
10
+ /** N, /, J/K, Enter, Esc, ?; nooit tijdens typen in een invoerveld of met een open dialoog. */
11
+ export declare function useShortcuts(handlers: ShortcutHandlers, enabled?: boolean): void;
12
+ //# sourceMappingURL=useShortcuts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useShortcuts.d.ts","sourceRoot":"","sources":["../../../src/components/fs-ui/useShortcuts.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAQD,+FAA+F;AAC/F,wBAAgB,YAAY,CAAC,QAAQ,EAAE,gBAAgB,EAAE,OAAO,UAAO,QAoBtE"}
@@ -0,0 +1,36 @@
1
+ import { useEffect, useRef } from "react";
2
+ function isTyping(el) {
3
+ if (!(el instanceof HTMLElement))
4
+ return false;
5
+ const tag = el.tagName;
6
+ return el.isContentEditable || tag === "INPUT" || tag === "TEXTAREA" || tag === "SELECT";
7
+ }
8
+ /** N, /, J/K, Enter, Esc, ?; nooit tijdens typen in een invoerveld of met een open dialoog. */
9
+ export function useShortcuts(handlers, enabled = true) {
10
+ const ref = useRef(handlers);
11
+ ref.current = handlers;
12
+ useEffect(() => {
13
+ if (!enabled)
14
+ return;
15
+ const onKey = (e) => {
16
+ if (e.metaKey || e.ctrlKey || e.altKey)
17
+ return;
18
+ if (isTyping(e.target))
19
+ return;
20
+ if (e.key !== "Escape" && document.querySelector('[role="dialog"],[role="alertdialog"]'))
21
+ return;
22
+ const h = ref.current;
23
+ const map = {
24
+ n: h.onNew, N: h.onNew, "/": h.onSearch, j: h.onNext, J: h.onNext, k: h.onPrev, K: h.onPrev,
25
+ Enter: h.onOpen, Escape: h.onEscape, "?": h.onHelp,
26
+ };
27
+ const fn = map[e.key];
28
+ if (fn) {
29
+ e.preventDefault();
30
+ fn();
31
+ }
32
+ };
33
+ window.addEventListener("keydown", onKey);
34
+ return () => window.removeEventListener("keydown", onKey);
35
+ }, [enabled]);
36
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Stand van automatisch verwerken en versturen naar Floriday. Alleen weergave,
3
+ * alleen zichtbaar voor admin en superadmin (de gegevens zelf blijven via RLS beschermd).
4
+ */
5
+ export declare function AutomatischVersturenCard(): import("react").JSX.Element | null;
6
+ //# sourceMappingURL=AutomatischVersturenCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomatischVersturenCard.d.ts","sourceRoot":"","sources":["../../../src/components/settings/AutomatischVersturenCard.tsx"],"names":[],"mappings":"AAOA;;;GAGG;AACH,wBAAgB,wBAAwB,uCA+DvC"}