@j3m-quantum/ui 1.7.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -38,6 +38,7 @@ import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
38
38
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
39
39
  import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
40
40
  import * as ResizablePrimitive from 'react-resizable-panels';
41
+ import { MapContainerProps, TileLayerProps, MarkerProps, PopupProps, TooltipProps, ZoomControlProps } from 'react-leaflet';
41
42
  import { Column, Table as Table$1, ColumnDef } from '@tanstack/react-table';
42
43
  export { Column, ColumnDef, ColumnFiltersState, Table as DataTable, Row, SortingState, VisibilityState, flexRender, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from '@tanstack/react-table';
43
44
  export { areIntervalsOverlapping, format, getDay, isSameDay, isSameMonth, isToday, parseISO } from 'date-fns';
@@ -735,6 +736,133 @@ declare const SectionDescription: React$1.ForwardRefExoticComponent<React$1.HTML
735
736
  declare const SectionContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
736
737
  declare const SectionFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
737
738
 
739
+ interface MapProps extends Omit<MapContainerProps, "center" | "zoom"> {
740
+ /** Map center coordinates [latitude, longitude] */
741
+ center: [number, number];
742
+ /** Initial zoom level (0-18) */
743
+ zoom?: number;
744
+ /** Additional class names for the map container */
745
+ className?: string;
746
+ /** Map content (TileLayer, Markers, etc.) */
747
+ children?: React$1.ReactNode;
748
+ }
749
+ /**
750
+ * Map - Leaflet-based map component for Quantum UI
751
+ *
752
+ * A wrapper around react-leaflet's MapContainer with Quantum styling.
753
+ * Requires explicit height on the container (via className or style).
754
+ *
755
+ * IMPORTANT: Consumer must import "leaflet/dist/leaflet.css" and handle
756
+ * browser-only rendering (e.g., via React.lazy or dynamic import).
757
+ *
758
+ * @example
759
+ * ```tsx
760
+ * import "leaflet/dist/leaflet.css"
761
+ *
762
+ * <Map center={[57.7089, 11.9746]} zoom={12} className="h-[400px]">
763
+ * <MapTileLayer />
764
+ * <MapMarker position={[57.7089, 11.9746]}>
765
+ * <MapPopup>Hello!</MapPopup>
766
+ * </MapMarker>
767
+ * </Map>
768
+ * ```
769
+ */
770
+ declare function Map$1({ center, zoom, className, children, ...props }: MapProps): react_jsx_runtime.JSX.Element;
771
+
772
+ interface MapTileLayerProps extends Partial<TileLayerProps> {
773
+ /** Tile layer variant */
774
+ variant?: "default" | "dark" | "satellite";
775
+ }
776
+ /**
777
+ * MapTileLayer - Tile layer for the Map component
778
+ *
779
+ * Provides different tile variants:
780
+ * - default: OpenStreetMap standard tiles
781
+ * - dark: Carto dark basemap (good for dark mode)
782
+ * - satellite: Esri satellite imagery
783
+ *
784
+ * @example
785
+ * ```tsx
786
+ * <Map center={[57.7089, 11.9746]} zoom={12}>
787
+ * <MapTileLayer variant="default" />
788
+ * </Map>
789
+ * ```
790
+ */
791
+ declare function MapTileLayer({ variant, ...props }: MapTileLayerProps): react_jsx_runtime.JSX.Element;
792
+
793
+ interface MapMarkerProps extends Omit<MarkerProps, "position"> {
794
+ /** Marker position [latitude, longitude] */
795
+ position: [number, number];
796
+ /** Marker content (Popup, Tooltip, etc.) */
797
+ children?: React$1.ReactNode;
798
+ }
799
+ /**
800
+ * MapMarker - Marker component for the Map
801
+ *
802
+ * Renders a marker at the specified position. Can contain Popup or Tooltip children.
803
+ *
804
+ * @example
805
+ * ```tsx
806
+ * <MapMarker position={[57.7089, 11.9746]}>
807
+ * <MapPopup>Hello from Gothenburg!</MapPopup>
808
+ * </MapMarker>
809
+ * ```
810
+ */
811
+ declare function MapMarker({ position, children, ...props }: MapMarkerProps): react_jsx_runtime.JSX.Element;
812
+ interface MapPopupProps extends PopupProps {
813
+ /** Popup content */
814
+ children?: React$1.ReactNode;
815
+ }
816
+ /**
817
+ * MapPopup - Popup component for MapMarker
818
+ *
819
+ * Displays a popup when the marker is clicked.
820
+ *
821
+ * @example
822
+ * ```tsx
823
+ * <MapMarker position={[57.7089, 11.9746]}>
824
+ * <MapPopup>
825
+ * <h3>Gothenburg</h3>
826
+ * <p>Sweden's second largest city</p>
827
+ * </MapPopup>
828
+ * </MapMarker>
829
+ * ```
830
+ */
831
+ declare function MapPopup({ children, ...props }: MapPopupProps): react_jsx_runtime.JSX.Element;
832
+ interface MapTooltipProps extends TooltipProps {
833
+ /** Tooltip content */
834
+ children?: React$1.ReactNode;
835
+ }
836
+ /**
837
+ * MapTooltip - Tooltip component for MapMarker
838
+ *
839
+ * Displays a tooltip on hover.
840
+ *
841
+ * @example
842
+ * ```tsx
843
+ * <MapMarker position={[57.7089, 11.9746]}>
844
+ * <MapTooltip>Gothenburg</MapTooltip>
845
+ * </MapMarker>
846
+ * ```
847
+ */
848
+ declare function MapTooltip({ children, ...props }: MapTooltipProps): react_jsx_runtime.JSX.Element;
849
+ interface MapZoomControlProps extends ZoomControlProps {
850
+ }
851
+ /**
852
+ * MapZoomControl - Zoom control component for the Map
853
+ *
854
+ * Renders zoom in/out buttons. By default positioned top-right.
855
+ * Note: MapContainer has built-in zoom controls, use this only if you need custom positioning.
856
+ *
857
+ * @example
858
+ * ```tsx
859
+ * <Map center={[57.7089, 11.9746]} zoom={12} zoomControl={false}>
860
+ * <MapZoomControl position="bottomright" />
861
+ * </Map>
862
+ * ```
863
+ */
864
+ declare function MapZoomControl(props: MapZoomControlProps): react_jsx_runtime.JSX.Element;
865
+
738
866
  interface DataTableColumnHeaderProps<TData, TValue> extends React.HTMLAttributes<HTMLDivElement> {
739
867
  column: Column<TData, TValue>;
740
868
  title: string;
@@ -1630,6 +1758,380 @@ interface SubmitCalibrationBarProps extends React$1.HTMLAttributes<HTMLDivElemen
1630
1758
  */
1631
1759
  declare function SubmitCalibrationBar({ className, status, lastSaved, canSubmit, shortfallCount, pendingCount, message, onSubmit, onSaveDraft, ...props }: SubmitCalibrationBarProps): react_jsx_runtime.JSX.Element;
1632
1760
 
1761
+ /**
1762
+ * Types for the Supplier Weekly Loading (iPad) block
1763
+ *
1764
+ * A touch-first weekly view for suppliers to view deliveries
1765
+ * and add pre-unloading comments.
1766
+ */
1767
+ /**
1768
+ * User role for role-based access control
1769
+ */
1770
+ type LoadingUserRole = "supplier" | "j3m";
1771
+ /**
1772
+ * Delivery status for loading
1773
+ */
1774
+ type LoadingDeliveryStatus = "planned" | "in_progress" | "loaded" | "shipped" | "delivered" | "cancelled";
1775
+ /**
1776
+ * Element shipment status for loading (neutral tone, non-critical)
1777
+ */
1778
+ type LoadingElementStatus = "loaded" | "missing" | "moved" | "addon";
1779
+ /**
1780
+ * Get label for element shipment status (neutral tone)
1781
+ */
1782
+ declare function getLoadingElementStatusLabel(status: LoadingElementStatus): string;
1783
+ /**
1784
+ * Get status label for delivery
1785
+ */
1786
+ declare function getLoadingDeliveryStatusLabel(status: LoadingDeliveryStatus): string;
1787
+ /**
1788
+ * Visual state for delivery cards (3-state model)
1789
+ * - sent: Greyed out with checkmark (shipped/delivered)
1790
+ * - ready: Highlighted as ready to unload
1791
+ * - normal: Default neutral state
1792
+ */
1793
+ type DeliveryVisualState = "sent" | "ready" | "normal";
1794
+ /**
1795
+ * Determine the visual state for a delivery card
1796
+ */
1797
+ declare function getDeliveryVisualState(delivery: LoadingDelivery): DeliveryVisualState;
1798
+ /**
1799
+ * An element to be loaded/unloaded
1800
+ */
1801
+ interface LoadingElement {
1802
+ /** Unique identifier */
1803
+ id: string;
1804
+ /** Prefix code (e.g., "VP", "YV") */
1805
+ prefix: string;
1806
+ /** Element type (e.g., "Wall panel", "Column") */
1807
+ type: string;
1808
+ /** Weight in kg or tons */
1809
+ weight?: number;
1810
+ /** Weight unit */
1811
+ weightUnit?: "kg" | "ton";
1812
+ /** Size in square meters */
1813
+ sizeSqm?: number;
1814
+ /** Delivery reference (the delivery this element belongs to) */
1815
+ deliveryId: string;
1816
+ /** Shipment status */
1817
+ status: LoadingElementStatus;
1818
+ /** If moved, reference to actual delivery */
1819
+ actualDeliveryId?: string;
1820
+ /** If moved, label of actual delivery */
1821
+ actualDeliveryLabel?: string;
1822
+ /** If addon, reference to original delivery */
1823
+ originalDeliveryId?: string;
1824
+ /** If addon, label of original delivery */
1825
+ originalDeliveryLabel?: string;
1826
+ }
1827
+ /**
1828
+ * Comment context for pre-unloading notes
1829
+ */
1830
+ type CommentContext = "pre_unloading" | "general";
1831
+ /**
1832
+ * A comment attached to a delivery (pre-unloading)
1833
+ */
1834
+ interface LoadingComment {
1835
+ /** Unique identifier */
1836
+ id: string;
1837
+ /** Author name */
1838
+ author: string;
1839
+ /** Comment text */
1840
+ text: string;
1841
+ /** Timestamp */
1842
+ createdAt: Date;
1843
+ /** Context type */
1844
+ context: CommentContext;
1845
+ /** Week ID (YYYY-WXX format) */
1846
+ weekId: string;
1847
+ /** Delivery ID */
1848
+ deliveryId: string;
1849
+ /** Supplier ID */
1850
+ supplierId?: string;
1851
+ /** Supplier name for display */
1852
+ supplierName?: string;
1853
+ /** Prefix ID (optional) */
1854
+ prefixId?: string;
1855
+ /** Prefix name for display */
1856
+ prefixName?: string;
1857
+ }
1858
+ /**
1859
+ * A delivery to be loaded
1860
+ */
1861
+ interface LoadingDelivery {
1862
+ /** Unique identifier */
1863
+ id: string;
1864
+ /** Display label (e.g., "Delivery #1") */
1865
+ label: string;
1866
+ /** Delivery date */
1867
+ date: Date;
1868
+ /** Supplier ID */
1869
+ supplierId: string;
1870
+ /** Supplier name */
1871
+ supplierName: string;
1872
+ /** Prefix scope (if available) */
1873
+ prefixScope?: string;
1874
+ /** Delivery status */
1875
+ status: LoadingDeliveryStatus;
1876
+ /** Destination */
1877
+ destination?: string;
1878
+ /** Elements to load */
1879
+ elements: LoadingElement[];
1880
+ /** Pre-unloading comments */
1881
+ comments: LoadingComment[];
1882
+ /** Number loaded (if loading has started) */
1883
+ loadedCount?: number;
1884
+ /** Total elements count */
1885
+ totalCount?: number;
1886
+ /** Number of elements produced (for "Produced: X / Y" display) */
1887
+ producedCount?: number;
1888
+ /** Total weight in tons produced */
1889
+ producedTons?: number;
1890
+ /** Total weight in tons planned */
1891
+ totalTons?: number;
1892
+ /** Whether all elements are produced and ready to load */
1893
+ isReadyToUnload?: boolean;
1894
+ /** Whether there's a production delay risk (shows red styling) */
1895
+ hasProductionRisk?: boolean;
1896
+ /** Risk reason if hasProductionRisk is true */
1897
+ riskReason?: string;
1898
+ }
1899
+ /**
1900
+ * A supplier with deliveries
1901
+ */
1902
+ interface LoadingSupplier {
1903
+ /** Unique identifier */
1904
+ id: string;
1905
+ /** Supplier name */
1906
+ name: string;
1907
+ /** Prefixes this supplier handles */
1908
+ prefixes?: string[];
1909
+ }
1910
+ /**
1911
+ * A prefix/delivery type for the Y-axis legend (like Calibration table)
1912
+ */
1913
+ interface LoadingPrefix {
1914
+ /** Unique identifier (prefix code) */
1915
+ id: string;
1916
+ /** Display name (e.g., "Wall Panels") */
1917
+ name: string;
1918
+ /** Short type code (e.g., "VP") */
1919
+ typeCode: string;
1920
+ /** Supplier this prefix belongs to */
1921
+ supplierId: string;
1922
+ /** Supplier name */
1923
+ supplierName: string;
1924
+ /** Total deliveries for this prefix in the week */
1925
+ totalDeliveries: number;
1926
+ /** Sent/completed deliveries */
1927
+ sentDeliveries: number;
1928
+ /** Whether any delivery in this prefix has a risk */
1929
+ hasRisk?: boolean;
1930
+ }
1931
+ /**
1932
+ * Week data for the loading view
1933
+ */
1934
+ interface LoadingWeek {
1935
+ /** Week key (YYYY-WXX format) */
1936
+ weekKey: string;
1937
+ /** Week label (e.g., "W02") */
1938
+ label: string;
1939
+ /** Start date (Monday) */
1940
+ startDate: Date;
1941
+ /** End date (Friday) */
1942
+ endDate: Date;
1943
+ /** Date range string (e.g., "Jan 6 - Jan 10") */
1944
+ dateRange: string;
1945
+ /** Whether this is the current week */
1946
+ isCurrentWeek: boolean;
1947
+ }
1948
+ /**
1949
+ * Props for the SupplierWeeklyLoading component
1950
+ */
1951
+ interface SupplierWeeklyLoadingProps {
1952
+ /** Current week data */
1953
+ week: LoadingWeek;
1954
+ /** Deliveries for the week (grouped by day) */
1955
+ deliveries: LoadingDelivery[];
1956
+ /** Available suppliers (for comment selector) */
1957
+ suppliers: LoadingSupplier[];
1958
+ /** User role for access control */
1959
+ userRole?: LoadingUserRole;
1960
+ /** Current supplier ID (required when userRole is "supplier") */
1961
+ currentSupplierId?: string;
1962
+ /** Callback when a delivery card is tapped */
1963
+ onDeliveryClick?: (delivery: LoadingDelivery) => void;
1964
+ /** Callback when navigating back from detail */
1965
+ onBack?: () => void;
1966
+ /** Callback when a comment is added */
1967
+ onAddComment?: (comment: Omit<LoadingComment, "id" | "createdAt">) => void;
1968
+ /** Callback when confirming a load */
1969
+ onConfirmLoad?: (deliveryId: string) => void;
1970
+ /** Additional class names */
1971
+ className?: string;
1972
+ }
1973
+ /**
1974
+ * Props for the DeliveryDetailPage component
1975
+ */
1976
+ interface DeliveryDetailPageProps {
1977
+ /** Delivery data */
1978
+ delivery: LoadingDelivery;
1979
+ /** Week data */
1980
+ week: LoadingWeek;
1981
+ /** Available suppliers for comment selector */
1982
+ suppliers: LoadingSupplier[];
1983
+ /** User role */
1984
+ userRole?: LoadingUserRole;
1985
+ /** Current supplier ID */
1986
+ currentSupplierId?: string;
1987
+ /** Callback to navigate back */
1988
+ onBack: () => void;
1989
+ /** Callback when a comment is added */
1990
+ onAddComment?: (comment: Omit<LoadingComment, "id" | "createdAt">) => void;
1991
+ /** Callback when confirming a load */
1992
+ onConfirmLoad?: (deliveryId: string) => void;
1993
+ }
1994
+ /**
1995
+ * Helper: Get ISO week number from a date
1996
+ */
1997
+ declare function getLoadingISOWeek(date: Date): number;
1998
+ /**
1999
+ * Helper: Get week key from a date (YYYY-WXX format)
2000
+ */
2001
+ declare function getLoadingWeekKey(date: Date): string;
2002
+ /**
2003
+ * Helper: Generate week data from a date
2004
+ */
2005
+ declare function generateLoadingWeek(date: Date): LoadingWeek;
2006
+ /**
2007
+ * Helper: Group deliveries by day of week (Mon-Fri)
2008
+ */
2009
+ declare function groupDeliveriesByDay(deliveries: LoadingDelivery[]): Map<number, LoadingDelivery[]>;
2010
+ /**
2011
+ * Helper: Get day label
2012
+ */
2013
+ declare function getDayLabel(dayOfWeek: number): string;
2014
+ /**
2015
+ * Helper: Get short day label
2016
+ */
2017
+ declare function getShortDayLabel(dayOfWeek: number): string;
2018
+ /**
2019
+ * Helper: Extract unique prefixes from deliveries
2020
+ */
2021
+ declare function extractPrefixes(deliveries: LoadingDelivery[]): LoadingPrefix[];
2022
+ /**
2023
+ * Helper: Group deliveries by prefix AND day (for grid view)
2024
+ * Returns Map<prefixId, Map<dayOfWeek, LoadingDelivery[]>>
2025
+ */
2026
+ declare function groupDeliveriesByPrefixAndDay(deliveries: LoadingDelivery[]): Map<string, Map<number, LoadingDelivery[]>>;
2027
+
2028
+ /**
2029
+ * SupplierWeeklyLoading - Weekly loading view matching Big Calendar patterns
2030
+ *
2031
+ * Features:
2032
+ * - Clean weekly grid (Mon-Fri) with compact delivery badges
2033
+ * - Sheet-based drilldown for delivery details
2034
+ * - Responsive layout (desktop centered, mobile full-width)
2035
+ * - Role-based supplier/prefix filtering
2036
+ *
2037
+ * Layout matches Big Calendar:
2038
+ * - Bordered card container
2039
+ * - Internal header with week navigation
2040
+ * - Scrollable content area
2041
+ * - Sheet overlay for details (not page replacement)
2042
+ */
2043
+ declare function SupplierWeeklyLoading({ week, deliveries, suppliers, userRole, currentSupplierId, onDeliveryClick, onBack, onAddComment, onConfirmLoad, onWeekChange, showNavigation, bordered, className, }: SupplierWeeklyLoadingProps & {
2044
+ onWeekChange?: (direction: "prev" | "next") => void;
2045
+ showNavigation?: boolean;
2046
+ bordered?: boolean;
2047
+ }): react_jsx_runtime.JSX.Element;
2048
+
2049
+ interface DeliveryCardProps {
2050
+ /** Delivery data */
2051
+ delivery: LoadingDelivery;
2052
+ /** Callback when card is tapped */
2053
+ onTap?: () => void;
2054
+ /** Additional class names */
2055
+ className?: string;
2056
+ }
2057
+ /**
2058
+ * DeliveryCard - Touch-first card for displaying a delivery.
2059
+ *
2060
+ * Matches Calibration table visual language:
2061
+ * - Full-width (no max-width)
2062
+ * - 90° corners (j3m.radius.none = rounded-none)
2063
+ * - Left stroke only for status (j3m.stroke.m = border-l-2)
2064
+ * - 56px min-height for iPad tap targets
2065
+ *
2066
+ * Visual States (left stroke):
2067
+ * - Sent: Green stroke (subtle) + greyed content + checkmark
2068
+ * - Ready: Green stroke + "Ready" badge
2069
+ * - Risk: Red stroke (same as Calibration)
2070
+ * - Normal: Transparent stroke (border on hover)
2071
+ */
2072
+ declare function DeliveryCard({ delivery, onTap, className, }: DeliveryCardProps): react_jsx_runtime.JSX.Element;
2073
+
2074
+ interface DeliveryBadgeProps {
2075
+ /** Delivery data */
2076
+ delivery: LoadingDelivery;
2077
+ /** Callback when badge is clicked */
2078
+ onClick?: () => void;
2079
+ /** Additional class names */
2080
+ className?: string;
2081
+ }
2082
+ /**
2083
+ * DeliveryBadge - Touch-first card for weekly grid view
2084
+ *
2085
+ * Card title = prefixes carried (e.g., "TF · WP · CF")
2086
+ * Factory icon + progress bar for production readiness
2087
+ *
2088
+ * Spacing using Quantum tokens:
2089
+ * - Card height: h-[80px]
2090
+ * - Padding: px-6 py-4 (j3m.spacing.l / j3m.spacing.m)
2091
+ * - Row gap: gap-3 (j3m.spacing.s = 12px) - breathing room between title and progress
2092
+ * - Intra-row gap: gap-2 (j3m.spacing.xs = 8px) - tighter within rows
2093
+ */
2094
+ declare function DeliveryBadge({ delivery, onClick, className, }: DeliveryBadgeProps): react_jsx_runtime.JSX.Element;
2095
+
2096
+ /**
2097
+ * DeliveryDetailPage - Touch-first detail page for a delivery
2098
+ *
2099
+ * Shows:
2100
+ * - Delivery summary with visual state (sent/ready/normal)
2101
+ * - Production progress with risk indicators
2102
+ * - Elements table (view-only)
2103
+ * - Pre-unloading notes (Dialog for adding - no "Applies to" selector)
2104
+ * - Actions (Confirm load)
2105
+ */
2106
+ declare function DeliveryDetailPage({ delivery, week, suppliers, userRole, currentSupplierId, onBack, onAddComment, onConfirmLoad, }: DeliveryDetailPageProps): react_jsx_runtime.JSX.Element;
2107
+
2108
+ interface WeeklyLoadingViewProps {
2109
+ /** Week data */
2110
+ week: LoadingWeek;
2111
+ /** Deliveries for the week */
2112
+ deliveries: LoadingDelivery[];
2113
+ /** Callback when a delivery is clicked */
2114
+ onDeliveryClick?: (delivery: LoadingDelivery) => void;
2115
+ /** Callback for week navigation (optional) */
2116
+ onWeekChange?: (direction: "prev" | "next") => void;
2117
+ /** Callback when day comment button is clicked */
2118
+ onDayCommentClick?: (dayOfWeek: number, date: Date) => void;
2119
+ /** Show week navigation controls */
2120
+ showNavigation?: boolean;
2121
+ /** Additional class names */
2122
+ className?: string;
2123
+ }
2124
+ /**
2125
+ * WeeklyLoadingView - Clean weekly view with day columns
2126
+ *
2127
+ * Layout using Quantum spacing tokens:
2128
+ * - Columns = Mon-Fri (no vertical dividers)
2129
+ * - Day headers include comment button (top-right)
2130
+ * - Each column contains stacked delivery cards with gap-3 (j3m.spacing.s = 12px)
2131
+ * - Content-sized grid
2132
+ */
2133
+ declare function WeeklyLoadingView({ week, deliveries, onDeliveryClick, onWeekChange, onDayCommentClick, showNavigation, className, }: WeeklyLoadingViewProps): react_jsx_runtime.JSX.Element;
2134
+
1633
2135
  /**
1634
2136
  * Event Calendar Types
1635
2137
  * Based on big-calendar by Leonardo Ramos (MIT License)
@@ -2202,4 +2704,4 @@ interface BigCalendarProps extends Omit<EventCalendarProviderProps, "children">
2202
2704
  }
2203
2705
  declare function BigCalendar({ className, compact, bordered, showHeader, showAddButton, showSettings, enableDragDrop, weekStartsOn, maxEventsPerDay, config, ...providerProps }: BigCalendarProps): react_jsx_runtime.JSX.Element;
2204
2706
 
2205
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgendaView, type AgendaViewProps, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, BADGE_VARIANT_LABELS, Badge, BigCalendar, type BigCalendarProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, Calendar, CalendarContext, CalendarDayButton, CalendarHeader, CalendarHeaderCompact, type CalendarHeaderCompactProps, type CalendarHeaderProps, CalendarSettingsButton, type CalendarSettingsButtonProps, CalendarSettingsContent, type CalendarSettingsContentProps, CalendarSettingsDialog, type CalendarSettingsDialogProps, type CalibrationCellData, type CalibrationComment, type CalibrationMode, type CalibrationOverviewProps, type CalibrationPrefix, type CalibrationStatus, type CalibrationSupplier, CalibrationTable, type CalibrationTableConfig, type CalibrationTableProps, type CalibrationUnit, CalibrationWeekCell, type CalibrationWeekCellProps, CalibrationWeekHeader, type CalibrationWeekHeaderProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChangeBadgeVariantInput, ChangeVisibleHoursInput, ChangeWorkingHoursInput, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, type CheckpointBadgeType, CircularProgress, type CircularProgressProps, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CommentButton, type CommentButtonProps, CommentDialog, type CommentDialogProps, type CommentLocationOption, CommentPopover, type CommentPopoverProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_VISIBLE_HOURS, DEFAULT_WORKING_HOURS, DataTableColumnHeader, type DataTableColumnHeaderProps, DataTablePagination, type DataTablePaginationProps, DataTableViewOptions, type DataTableViewOptionsProps, DateBadge, type DateBadgeProps, DayView, type DayViewProps, type Delivery, type DeliveryElement, DeliveryIndicator, type DeliveryIndicatorProps, DeliveryIndicators, type DeliveryIndicatorsProps, type DeliveryStatus, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragContext, DragProvider, type DragProviderProps, DraggableEvent, type DraggableEventProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DroppableZone, type DroppableZoneProps, EVENT_COLORS, type ElementShipmentStatus, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, EventBadge, type EventBadgeProps, EventCalendarProvider, type EventCalendarProviderProps, EventDialog, type EventDialogProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, type ICalendarActions, type ICalendarCell, type ICalendarConfig, type ICalendarContext, type ICalendarHeaderProps, type ICalendarState, type IDayCellProps, type IDragContext, type IEvent, type IEventBadgeProps, type IEventDialogProps, type IEventPosition, type ITimeSlotProps, type IUser, type IViewProps, type IWorkingHours, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MonthView, type MonthViewProps, MoreEvents, type MoreEventsProps, NativeSelect, NativeSelectOptGroup, NativeSelectOption, type NavItem, NavMain, type NavProject, NavProjects, NavSecondary, NavUser, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NetBadge, type NetBadgeProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PlanningComment, type PlanningCommentLocation, type PlanningCommentLocationType, PlanningTable, type PlanningTableConfig, type PlanningTableProps, PlanningTableToolbar, type PlanningTableToolbarProps, type PlanningUserRole, PlanningWeekCommentPopover, type PlanningWeekCommentPopoverProps, PlayerCanvas, PlayerCanvasActionButton, PlayerCanvasControls, PlayerCanvasDivider, PlayerCanvasInfo, PlayerCanvasLabel, PlayerCanvasPlayButton, PlayerCanvasProgress, PlayerCanvasSkipButton, PlayerCanvasTitle, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PrefixOption, type ProductionData, type ProductionUnit, Progress, QuickAddEvent, type QuickAddEventProps, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RowHeaderCell, type RowHeaderCellProps, ScrollArea, ScrollBar, SearchForm, SearchTrigger, type SearchTriggerProps, Section, SectionContent, SectionDescription, SectionFooter, SectionHeader, type SectionProps, SectionTitle, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SiteHeader, Skeleton, Slider, Spinner, type SubmissionStatus, SubmitCalibrationBar, type SubmitCalibrationBarProps, type Supplier, type SupplierBadgeType, SupplierCell, type SupplierCellProps, Switch, type TBadgeVariant, type TCalendarView, type TEventColor, type TVisibleHours, type TWorkingHours, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitch, type ThemeSwitchProps, TimeIndicator, type TimeIndicatorProps, Toaster, Toggle, ToggleGroup, ToggleGroupItem, ToolBarCanvas, ToolBarCanvasButton, ToolBarCanvasDivider, ToolBarCanvasGroup, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseDroppableOptions, type UserAvatarItem, UserAvatarsDropdown, type UserAvatarsDropdownProps, VIEW_LABELS, type Week, WeekCell, type WeekCellData, type WeekCellProps, WeekDetailDialog, type WeekDetailDialogProps, WeekHeader, type WeekHeaderProps, WeekView, type WeekViewProps, YearView, type YearViewProps, badgeVariants, buttonGroupVariants, buttonVariants, calculateCalibrationCells, calculateDropDates, calculateMonthEventPositions, canSubmitCalibration, cardVariants, createDefaultEvent, deliveryIndicatorVariants, formatCalibrationUnit, formatDateRange, formatProductionUnit, formatTime, generateColumns, generateEventId, generateLocationOptions, generateWeekColumns, generateWeeks, getCalendarCells, getCommentLocationLabel, getCurrentEvents, getDayHours, getElementShipmentStatus, getEventBlockStyle, getEventDuration, getEventDurationMinutes, getEventsCount, getEventsForDate, getEventsInRange, getHeaderLabel, getISOWeek, getMonthCellEvents, getMonthDays, getShipmentStatusLabel, getSupplierColumn, getTimeHeight, getTimePosition, getViewDateRange, getVisibleHours, getWeekDayNames, getWeekDays, getWeekKey, getYearMonths, groupEvents, isMultiDayEvent, isWorkingHour, navigateDate, navigationMenuTriggerStyle, playerCanvasPlayButtonVariants, playerCanvasSkipButtonVariants, rangeText, sectionVariants, snapToInterval, sortEvents, splitEventsByDuration, toggleVariants, toolBarCanvasButtonVariants, useDrag, useDraggable, useDroppable, useEventCalendar, useEventsInRange, useFilteredEvents, useFormField, useIsMobile, useSearchShortcut, useSidebar };
2707
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgendaView, type AgendaViewProps, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, BADGE_VARIANT_LABELS, Badge, BigCalendar, type BigCalendarProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, Calendar, CalendarContext, CalendarDayButton, CalendarHeader, CalendarHeaderCompact, type CalendarHeaderCompactProps, type CalendarHeaderProps, CalendarSettingsButton, type CalendarSettingsButtonProps, CalendarSettingsContent, type CalendarSettingsContentProps, CalendarSettingsDialog, type CalendarSettingsDialogProps, type CalibrationCellData, type CalibrationComment, type CalibrationMode, type CalibrationOverviewProps, type CalibrationPrefix, type CalibrationStatus, type CalibrationSupplier, CalibrationTable, type CalibrationTableConfig, type CalibrationTableProps, type CalibrationUnit, CalibrationWeekCell, type CalibrationWeekCellProps, CalibrationWeekHeader, type CalibrationWeekHeaderProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChangeBadgeVariantInput, ChangeVisibleHoursInput, ChangeWorkingHoursInput, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, type CheckpointBadgeType, CircularProgress, type CircularProgressProps, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CommentButton, type CommentButtonProps, type CommentContext, CommentDialog, type CommentDialogProps, type CommentLocationOption, CommentPopover, type CommentPopoverProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_VISIBLE_HOURS, DEFAULT_WORKING_HOURS, DataTableColumnHeader, type DataTableColumnHeaderProps, DataTablePagination, type DataTablePaginationProps, DataTableViewOptions, type DataTableViewOptionsProps, DateBadge, type DateBadgeProps, DayView, type DayViewProps, type Delivery, DeliveryBadge, type DeliveryBadgeProps, DeliveryCard, type DeliveryCardProps, DeliveryDetailPage, type DeliveryDetailPageProps, type DeliveryElement, DeliveryIndicator, type DeliveryIndicatorProps, DeliveryIndicators, type DeliveryIndicatorsProps, type DeliveryStatus, type DeliveryVisualState, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragContext, DragProvider, type DragProviderProps, DraggableEvent, type DraggableEventProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DroppableZone, type DroppableZoneProps, EVENT_COLORS, type ElementShipmentStatus, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, EventBadge, type EventBadgeProps, EventCalendarProvider, type EventCalendarProviderProps, EventDialog, type EventDialogProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, type ICalendarActions, type ICalendarCell, type ICalendarConfig, type ICalendarContext, type ICalendarHeaderProps, type ICalendarState, type IDayCellProps, type IDragContext, type IEvent, type IEventBadgeProps, type IEventDialogProps, type IEventPosition, type ITimeSlotProps, type IUser, type IViewProps, type IWorkingHours, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, type LoadingComment, type LoadingDelivery, type LoadingDeliveryStatus, type LoadingElement, type LoadingElementStatus, type LoadingPrefix, type LoadingSupplier, type LoadingUserRole, type LoadingWeek, Map$1 as Map, MapMarker, type MapMarkerProps, MapPopup, type MapPopupProps, type MapProps, MapTileLayer, type MapTileLayerProps, MapTooltip, type MapTooltipProps, MapZoomControl, type MapZoomControlProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MonthView, type MonthViewProps, MoreEvents, type MoreEventsProps, NativeSelect, NativeSelectOptGroup, NativeSelectOption, type NavItem, NavMain, type NavProject, NavProjects, NavSecondary, NavUser, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NetBadge, type NetBadgeProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PlanningComment, type PlanningCommentLocation, type PlanningCommentLocationType, PlanningTable, type PlanningTableConfig, type PlanningTableProps, PlanningTableToolbar, type PlanningTableToolbarProps, type PlanningUserRole, PlanningWeekCommentPopover, type PlanningWeekCommentPopoverProps, PlayerCanvas, PlayerCanvasActionButton, PlayerCanvasControls, PlayerCanvasDivider, PlayerCanvasInfo, PlayerCanvasLabel, PlayerCanvasPlayButton, PlayerCanvasProgress, PlayerCanvasSkipButton, PlayerCanvasTitle, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PrefixOption, type ProductionData, type ProductionUnit, Progress, QuickAddEvent, type QuickAddEventProps, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RowHeaderCell, type RowHeaderCellProps, ScrollArea, ScrollBar, SearchForm, SearchTrigger, type SearchTriggerProps, Section, SectionContent, SectionDescription, SectionFooter, SectionHeader, type SectionProps, SectionTitle, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SiteHeader, Skeleton, Slider, Spinner, type SubmissionStatus, SubmitCalibrationBar, type SubmitCalibrationBarProps, type Supplier, type SupplierBadgeType, SupplierCell, type SupplierCellProps, SupplierWeeklyLoading, type SupplierWeeklyLoadingProps, Switch, type TBadgeVariant, type TCalendarView, type TEventColor, type TVisibleHours, type TWorkingHours, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitch, type ThemeSwitchProps, TimeIndicator, type TimeIndicatorProps, Toaster, Toggle, ToggleGroup, ToggleGroupItem, ToolBarCanvas, ToolBarCanvasButton, ToolBarCanvasDivider, ToolBarCanvasGroup, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseDroppableOptions, type UserAvatarItem, UserAvatarsDropdown, type UserAvatarsDropdownProps, VIEW_LABELS, type Week, WeekCell, type WeekCellData, type WeekCellProps, WeekDetailDialog, type WeekDetailDialogProps, WeekHeader, type WeekHeaderProps, WeekView, type WeekViewProps, WeeklyLoadingView, type WeeklyLoadingViewProps, YearView, type YearViewProps, badgeVariants, buttonGroupVariants, buttonVariants, calculateCalibrationCells, calculateDropDates, calculateMonthEventPositions, canSubmitCalibration, cardVariants, createDefaultEvent, deliveryIndicatorVariants, extractPrefixes, formatCalibrationUnit, formatDateRange, formatProductionUnit, formatTime, generateColumns, generateEventId, generateLoadingWeek, generateLocationOptions, generateWeekColumns, generateWeeks, getCalendarCells, getCommentLocationLabel, getCurrentEvents, getDayHours, getDayLabel, getDeliveryVisualState, getElementShipmentStatus, getEventBlockStyle, getEventDuration, getEventDurationMinutes, getEventsCount, getEventsForDate, getEventsInRange, getHeaderLabel, getISOWeek, getLoadingDeliveryStatusLabel, getLoadingElementStatusLabel, getLoadingISOWeek, getLoadingWeekKey, getMonthCellEvents, getMonthDays, getShipmentStatusLabel, getShortDayLabel, getSupplierColumn, getTimeHeight, getTimePosition, getViewDateRange, getVisibleHours, getWeekDayNames, getWeekDays, getWeekKey, getYearMonths, groupDeliveriesByDay, groupDeliveriesByPrefixAndDay, groupEvents, isMultiDayEvent, isWorkingHour, navigateDate, navigationMenuTriggerStyle, playerCanvasPlayButtonVariants, playerCanvasSkipButtonVariants, rangeText, sectionVariants, snapToInterval, sortEvents, splitEventsByDuration, toggleVariants, toolBarCanvasButtonVariants, useDrag, useDraggable, useDroppable, useEventCalendar, useEventsInRange, useFilteredEvents, useFormField, useIsMobile, useSearchShortcut, useSidebar };