@j3m-quantum/ui 1.9.1 → 1.10.0
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.cjs +296 -177
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -13
- package/dist/index.d.ts +16 -13
- package/dist/index.js +296 -177
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1762,7 +1762,7 @@ declare function SubmitCalibrationBar({ className, status, lastSaved, canSubmit,
|
|
|
1762
1762
|
* Types for the Supplier Weekly Loading (iPad) block
|
|
1763
1763
|
*
|
|
1764
1764
|
* A touch-first weekly view for suppliers to view deliveries
|
|
1765
|
-
* and add pre-
|
|
1765
|
+
* and add pre-loading comments.
|
|
1766
1766
|
*/
|
|
1767
1767
|
/**
|
|
1768
1768
|
* User role for role-based access control
|
|
@@ -1787,7 +1787,7 @@ declare function getLoadingDeliveryStatusLabel(status: LoadingDeliveryStatus): s
|
|
|
1787
1787
|
/**
|
|
1788
1788
|
* Visual state for delivery cards (3-state model)
|
|
1789
1789
|
* - sent: Greyed out with checkmark (shipped/delivered)
|
|
1790
|
-
* - ready: Highlighted as ready to
|
|
1790
|
+
* - ready: Highlighted as ready to load
|
|
1791
1791
|
* - normal: Default neutral state
|
|
1792
1792
|
*/
|
|
1793
1793
|
type DeliveryVisualState = "sent" | "ready" | "normal";
|
|
@@ -1825,11 +1825,11 @@ interface LoadingElement {
|
|
|
1825
1825
|
originalDeliveryLabel?: string;
|
|
1826
1826
|
}
|
|
1827
1827
|
/**
|
|
1828
|
-
* Comment context for pre-
|
|
1828
|
+
* Comment context for pre-loading notes
|
|
1829
1829
|
*/
|
|
1830
1830
|
type CommentContext = "pre_unloading" | "general";
|
|
1831
1831
|
/**
|
|
1832
|
-
* A comment attached to a delivery (pre-
|
|
1832
|
+
* A comment attached to a delivery (pre-loading)
|
|
1833
1833
|
*/
|
|
1834
1834
|
interface LoadingComment {
|
|
1835
1835
|
/** Unique identifier */
|
|
@@ -1877,7 +1877,7 @@ interface LoadingDelivery {
|
|
|
1877
1877
|
destination?: string;
|
|
1878
1878
|
/** Elements to load */
|
|
1879
1879
|
elements: LoadingElement[];
|
|
1880
|
-
/** Pre-
|
|
1880
|
+
/** Pre-loading comments */
|
|
1881
1881
|
comments: LoadingComment[];
|
|
1882
1882
|
/** Number loaded (if loading has started) */
|
|
1883
1883
|
loadedCount?: number;
|
|
@@ -2076,6 +2076,8 @@ interface DeliveryBadgeProps {
|
|
|
2076
2076
|
delivery: LoadingDelivery;
|
|
2077
2077
|
/** Callback when badge is clicked */
|
|
2078
2078
|
onClick?: () => void;
|
|
2079
|
+
/** Callback when comment button is clicked */
|
|
2080
|
+
onCommentClick?: () => void;
|
|
2079
2081
|
/** Additional class names */
|
|
2080
2082
|
className?: string;
|
|
2081
2083
|
}
|
|
@@ -2084,14 +2086,15 @@ interface DeliveryBadgeProps {
|
|
|
2084
2086
|
*
|
|
2085
2087
|
* Card title = prefixes carried (e.g., "TF · WP · CF")
|
|
2086
2088
|
* Factory icon + progress bar for production readiness
|
|
2089
|
+
* Comment button in top-right corner (44px touch target)
|
|
2087
2090
|
*
|
|
2088
2091
|
* Spacing using Quantum tokens:
|
|
2089
|
-
* - Card height: h-[
|
|
2090
|
-
* - Padding:
|
|
2092
|
+
* - Card min-height: min-h-[100px]
|
|
2093
|
+
* - Padding: p-4 (j3m.spacing.m = 16px)
|
|
2091
2094
|
* - Row gap: gap-3 (j3m.spacing.s = 12px) - breathing room between title and progress
|
|
2092
2095
|
* - Intra-row gap: gap-2 (j3m.spacing.xs = 8px) - tighter within rows
|
|
2093
2096
|
*/
|
|
2094
|
-
declare function DeliveryBadge({ delivery, onClick, className, }: DeliveryBadgeProps): react_jsx_runtime.JSX.Element;
|
|
2097
|
+
declare function DeliveryBadge({ delivery, onClick, onCommentClick, className, }: DeliveryBadgeProps): react_jsx_runtime.JSX.Element;
|
|
2095
2098
|
|
|
2096
2099
|
/**
|
|
2097
2100
|
* DeliveryDetailPage - Touch-first detail page for a delivery
|
|
@@ -2100,7 +2103,7 @@ declare function DeliveryBadge({ delivery, onClick, className, }: DeliveryBadgeP
|
|
|
2100
2103
|
* - Delivery summary with visual state (sent/ready/normal)
|
|
2101
2104
|
* - Production progress with risk indicators
|
|
2102
2105
|
* - Elements table (view-only)
|
|
2103
|
-
* - Pre-
|
|
2106
|
+
* - Pre-loading notes (Dialog for adding - no "Applies to" selector)
|
|
2104
2107
|
* - Actions (Confirm load)
|
|
2105
2108
|
*/
|
|
2106
2109
|
declare function DeliveryDetailPage({ delivery, week, suppliers, userRole, currentSupplierId, onBack, onAddComment, onConfirmLoad, }: DeliveryDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2114,8 +2117,8 @@ interface WeeklyLoadingViewProps {
|
|
|
2114
2117
|
onDeliveryClick?: (delivery: LoadingDelivery) => void;
|
|
2115
2118
|
/** Callback for week navigation (optional) */
|
|
2116
2119
|
onWeekChange?: (direction: "prev" | "next") => void;
|
|
2117
|
-
/** Callback when
|
|
2118
|
-
|
|
2120
|
+
/** Callback when delivery comment button is clicked */
|
|
2121
|
+
onDeliveryCommentClick?: (delivery: LoadingDelivery) => void;
|
|
2119
2122
|
/** Show week navigation controls */
|
|
2120
2123
|
showNavigation?: boolean;
|
|
2121
2124
|
/** Additional class names */
|
|
@@ -2126,11 +2129,11 @@ interface WeeklyLoadingViewProps {
|
|
|
2126
2129
|
*
|
|
2127
2130
|
* Layout using Quantum spacing tokens:
|
|
2128
2131
|
* - Columns = Mon-Fri (no vertical dividers)
|
|
2129
|
-
* -
|
|
2132
|
+
* - Clean day headers (no comment controls)
|
|
2130
2133
|
* - Each column contains stacked delivery cards with gap-3 (j3m.spacing.s = 12px)
|
|
2131
2134
|
* - Content-sized grid
|
|
2132
2135
|
*/
|
|
2133
|
-
declare function WeeklyLoadingView({ week, deliveries, onDeliveryClick, onWeekChange,
|
|
2136
|
+
declare function WeeklyLoadingView({ week, deliveries, onDeliveryClick, onWeekChange, onDeliveryCommentClick, showNavigation, className, }: WeeklyLoadingViewProps): react_jsx_runtime.JSX.Element;
|
|
2134
2137
|
|
|
2135
2138
|
/**
|
|
2136
2139
|
* Event Calendar Types
|
package/dist/index.d.ts
CHANGED
|
@@ -1762,7 +1762,7 @@ declare function SubmitCalibrationBar({ className, status, lastSaved, canSubmit,
|
|
|
1762
1762
|
* Types for the Supplier Weekly Loading (iPad) block
|
|
1763
1763
|
*
|
|
1764
1764
|
* A touch-first weekly view for suppliers to view deliveries
|
|
1765
|
-
* and add pre-
|
|
1765
|
+
* and add pre-loading comments.
|
|
1766
1766
|
*/
|
|
1767
1767
|
/**
|
|
1768
1768
|
* User role for role-based access control
|
|
@@ -1787,7 +1787,7 @@ declare function getLoadingDeliveryStatusLabel(status: LoadingDeliveryStatus): s
|
|
|
1787
1787
|
/**
|
|
1788
1788
|
* Visual state for delivery cards (3-state model)
|
|
1789
1789
|
* - sent: Greyed out with checkmark (shipped/delivered)
|
|
1790
|
-
* - ready: Highlighted as ready to
|
|
1790
|
+
* - ready: Highlighted as ready to load
|
|
1791
1791
|
* - normal: Default neutral state
|
|
1792
1792
|
*/
|
|
1793
1793
|
type DeliveryVisualState = "sent" | "ready" | "normal";
|
|
@@ -1825,11 +1825,11 @@ interface LoadingElement {
|
|
|
1825
1825
|
originalDeliveryLabel?: string;
|
|
1826
1826
|
}
|
|
1827
1827
|
/**
|
|
1828
|
-
* Comment context for pre-
|
|
1828
|
+
* Comment context for pre-loading notes
|
|
1829
1829
|
*/
|
|
1830
1830
|
type CommentContext = "pre_unloading" | "general";
|
|
1831
1831
|
/**
|
|
1832
|
-
* A comment attached to a delivery (pre-
|
|
1832
|
+
* A comment attached to a delivery (pre-loading)
|
|
1833
1833
|
*/
|
|
1834
1834
|
interface LoadingComment {
|
|
1835
1835
|
/** Unique identifier */
|
|
@@ -1877,7 +1877,7 @@ interface LoadingDelivery {
|
|
|
1877
1877
|
destination?: string;
|
|
1878
1878
|
/** Elements to load */
|
|
1879
1879
|
elements: LoadingElement[];
|
|
1880
|
-
/** Pre-
|
|
1880
|
+
/** Pre-loading comments */
|
|
1881
1881
|
comments: LoadingComment[];
|
|
1882
1882
|
/** Number loaded (if loading has started) */
|
|
1883
1883
|
loadedCount?: number;
|
|
@@ -2076,6 +2076,8 @@ interface DeliveryBadgeProps {
|
|
|
2076
2076
|
delivery: LoadingDelivery;
|
|
2077
2077
|
/** Callback when badge is clicked */
|
|
2078
2078
|
onClick?: () => void;
|
|
2079
|
+
/** Callback when comment button is clicked */
|
|
2080
|
+
onCommentClick?: () => void;
|
|
2079
2081
|
/** Additional class names */
|
|
2080
2082
|
className?: string;
|
|
2081
2083
|
}
|
|
@@ -2084,14 +2086,15 @@ interface DeliveryBadgeProps {
|
|
|
2084
2086
|
*
|
|
2085
2087
|
* Card title = prefixes carried (e.g., "TF · WP · CF")
|
|
2086
2088
|
* Factory icon + progress bar for production readiness
|
|
2089
|
+
* Comment button in top-right corner (44px touch target)
|
|
2087
2090
|
*
|
|
2088
2091
|
* Spacing using Quantum tokens:
|
|
2089
|
-
* - Card height: h-[
|
|
2090
|
-
* - Padding:
|
|
2092
|
+
* - Card min-height: min-h-[100px]
|
|
2093
|
+
* - Padding: p-4 (j3m.spacing.m = 16px)
|
|
2091
2094
|
* - Row gap: gap-3 (j3m.spacing.s = 12px) - breathing room between title and progress
|
|
2092
2095
|
* - Intra-row gap: gap-2 (j3m.spacing.xs = 8px) - tighter within rows
|
|
2093
2096
|
*/
|
|
2094
|
-
declare function DeliveryBadge({ delivery, onClick, className, }: DeliveryBadgeProps): react_jsx_runtime.JSX.Element;
|
|
2097
|
+
declare function DeliveryBadge({ delivery, onClick, onCommentClick, className, }: DeliveryBadgeProps): react_jsx_runtime.JSX.Element;
|
|
2095
2098
|
|
|
2096
2099
|
/**
|
|
2097
2100
|
* DeliveryDetailPage - Touch-first detail page for a delivery
|
|
@@ -2100,7 +2103,7 @@ declare function DeliveryBadge({ delivery, onClick, className, }: DeliveryBadgeP
|
|
|
2100
2103
|
* - Delivery summary with visual state (sent/ready/normal)
|
|
2101
2104
|
* - Production progress with risk indicators
|
|
2102
2105
|
* - Elements table (view-only)
|
|
2103
|
-
* - Pre-
|
|
2106
|
+
* - Pre-loading notes (Dialog for adding - no "Applies to" selector)
|
|
2104
2107
|
* - Actions (Confirm load)
|
|
2105
2108
|
*/
|
|
2106
2109
|
declare function DeliveryDetailPage({ delivery, week, suppliers, userRole, currentSupplierId, onBack, onAddComment, onConfirmLoad, }: DeliveryDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2114,8 +2117,8 @@ interface WeeklyLoadingViewProps {
|
|
|
2114
2117
|
onDeliveryClick?: (delivery: LoadingDelivery) => void;
|
|
2115
2118
|
/** Callback for week navigation (optional) */
|
|
2116
2119
|
onWeekChange?: (direction: "prev" | "next") => void;
|
|
2117
|
-
/** Callback when
|
|
2118
|
-
|
|
2120
|
+
/** Callback when delivery comment button is clicked */
|
|
2121
|
+
onDeliveryCommentClick?: (delivery: LoadingDelivery) => void;
|
|
2119
2122
|
/** Show week navigation controls */
|
|
2120
2123
|
showNavigation?: boolean;
|
|
2121
2124
|
/** Additional class names */
|
|
@@ -2126,11 +2129,11 @@ interface WeeklyLoadingViewProps {
|
|
|
2126
2129
|
*
|
|
2127
2130
|
* Layout using Quantum spacing tokens:
|
|
2128
2131
|
* - Columns = Mon-Fri (no vertical dividers)
|
|
2129
|
-
* -
|
|
2132
|
+
* - Clean day headers (no comment controls)
|
|
2130
2133
|
* - Each column contains stacked delivery cards with gap-3 (j3m.spacing.s = 12px)
|
|
2131
2134
|
* - Content-sized grid
|
|
2132
2135
|
*/
|
|
2133
|
-
declare function WeeklyLoadingView({ week, deliveries, onDeliveryClick, onWeekChange,
|
|
2136
|
+
declare function WeeklyLoadingView({ week, deliveries, onDeliveryClick, onWeekChange, onDeliveryCommentClick, showNavigation, className, }: WeeklyLoadingViewProps): react_jsx_runtime.JSX.Element;
|
|
2134
2137
|
|
|
2135
2138
|
/**
|
|
2136
2139
|
* Event Calendar Types
|