@libxai/board 0.17.258 → 0.17.310

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
@@ -49,6 +49,7 @@ interface Task {
49
49
  type TimeScale = 'day' | 'week' | 'month';
50
50
  type Theme$1 = 'dark' | 'light' | 'neutral';
51
51
  type RowDensity = 'compact' | 'comfortable' | 'spacious';
52
+ type DependencyLineStyle = 'curved' | 'squared';
52
53
  type TaskFilterType = 'all' | 'incomplete' | 'in_progress' | 'completed';
53
54
  type ColumnType = 'name' | 'startDate' | 'endDate' | 'duration' | 'assignees' | 'status' | 'progress' | 'priority';
54
55
  interface GanttColumn {
@@ -365,6 +366,14 @@ interface GanttConfig {
365
366
  * @default false
366
367
  */
367
368
  persistExpandedState?: boolean | string;
369
+ /**
370
+ * v0.17.310: Dependency line style
371
+ * Controls how dependency arrows are rendered between tasks
372
+ * - 'curved': Smooth bezier curves (default)
373
+ * - 'squared': Right-angle orthogonal lines
374
+ * @default 'curved'
375
+ */
376
+ dependencyLineStyle?: DependencyLineStyle;
368
377
  onThemeChange?: (theme: Theme$1) => void;
369
378
  onTaskClick?: (task: Task) => void;
370
379
  onTaskDblClick?: (task: Task) => void;
@@ -2253,6 +2262,7 @@ interface TimelineProps {
2253
2262
  endDate: Date;
2254
2263
  zoom: number;
2255
2264
  templates: Required<GanttTemplates>;
2265
+ dependencyLineStyle?: DependencyLineStyle;
2256
2266
  onTaskClick?: (task: Task) => void;
2257
2267
  onTaskDblClick?: (task: Task) => void;
2258
2268
  onTaskContextMenu?: (task: Task, event: React.MouseEvent) => void;
@@ -2267,7 +2277,8 @@ interface TaskPosition {
2267
2277
  width: number;
2268
2278
  height: number;
2269
2279
  }
2270
- declare function Timeline({ tasks, theme, rowHeight: ROW_HEIGHT, timeScale, startDate, endDate, zoom, templates, onTaskClick, onTaskDblClick, // v0.8.0
2280
+ declare function Timeline({ tasks, theme, rowHeight: ROW_HEIGHT, timeScale, startDate, endDate, zoom, templates, dependencyLineStyle, // v0.17.310
2281
+ onTaskClick, onTaskDblClick, // v0.8.0
2271
2282
  onTaskContextMenu, // v0.8.0
2272
2283
  onTaskDateChange, onDependencyCreate, onDependencyDelete, }: TimelineProps): react_jsx_runtime.JSX.Element;
2273
2284
 
@@ -2308,6 +2319,7 @@ interface DependencyHoverData {
2308
2319
  x2: number;
2309
2320
  y2: number;
2310
2321
  onDelete: () => void;
2322
+ lineStyle?: DependencyLineStyle;
2311
2323
  }
2312
2324
  interface DependencyLineProps {
2313
2325
  x1: number;
@@ -2317,8 +2329,9 @@ interface DependencyLineProps {
2317
2329
  theme: any;
2318
2330
  onDelete?: () => void;
2319
2331
  onHoverChange?: (data: DependencyHoverData | null) => void;
2332
+ lineStyle?: DependencyLineStyle;
2320
2333
  }
2321
- declare function DependencyLine({ x1, y1, x2, y2, theme, onDelete, onHoverChange }: DependencyLineProps): react_jsx_runtime.JSX.Element;
2334
+ declare function DependencyLine({ x1, y1, x2, y2, theme, onDelete, onHoverChange, lineStyle }: DependencyLineProps): react_jsx_runtime.JSX.Element;
2322
2335
 
2323
2336
  interface MilestoneProps {
2324
2337
  task: Task;
package/dist/index.d.ts CHANGED
@@ -49,6 +49,7 @@ interface Task {
49
49
  type TimeScale = 'day' | 'week' | 'month';
50
50
  type Theme$1 = 'dark' | 'light' | 'neutral';
51
51
  type RowDensity = 'compact' | 'comfortable' | 'spacious';
52
+ type DependencyLineStyle = 'curved' | 'squared';
52
53
  type TaskFilterType = 'all' | 'incomplete' | 'in_progress' | 'completed';
53
54
  type ColumnType = 'name' | 'startDate' | 'endDate' | 'duration' | 'assignees' | 'status' | 'progress' | 'priority';
54
55
  interface GanttColumn {
@@ -365,6 +366,14 @@ interface GanttConfig {
365
366
  * @default false
366
367
  */
367
368
  persistExpandedState?: boolean | string;
369
+ /**
370
+ * v0.17.310: Dependency line style
371
+ * Controls how dependency arrows are rendered between tasks
372
+ * - 'curved': Smooth bezier curves (default)
373
+ * - 'squared': Right-angle orthogonal lines
374
+ * @default 'curved'
375
+ */
376
+ dependencyLineStyle?: DependencyLineStyle;
368
377
  onThemeChange?: (theme: Theme$1) => void;
369
378
  onTaskClick?: (task: Task) => void;
370
379
  onTaskDblClick?: (task: Task) => void;
@@ -2253,6 +2262,7 @@ interface TimelineProps {
2253
2262
  endDate: Date;
2254
2263
  zoom: number;
2255
2264
  templates: Required<GanttTemplates>;
2265
+ dependencyLineStyle?: DependencyLineStyle;
2256
2266
  onTaskClick?: (task: Task) => void;
2257
2267
  onTaskDblClick?: (task: Task) => void;
2258
2268
  onTaskContextMenu?: (task: Task, event: React.MouseEvent) => void;
@@ -2267,7 +2277,8 @@ interface TaskPosition {
2267
2277
  width: number;
2268
2278
  height: number;
2269
2279
  }
2270
- declare function Timeline({ tasks, theme, rowHeight: ROW_HEIGHT, timeScale, startDate, endDate, zoom, templates, onTaskClick, onTaskDblClick, // v0.8.0
2280
+ declare function Timeline({ tasks, theme, rowHeight: ROW_HEIGHT, timeScale, startDate, endDate, zoom, templates, dependencyLineStyle, // v0.17.310
2281
+ onTaskClick, onTaskDblClick, // v0.8.0
2271
2282
  onTaskContextMenu, // v0.8.0
2272
2283
  onTaskDateChange, onDependencyCreate, onDependencyDelete, }: TimelineProps): react_jsx_runtime.JSX.Element;
2273
2284
 
@@ -2308,6 +2319,7 @@ interface DependencyHoverData {
2308
2319
  x2: number;
2309
2320
  y2: number;
2310
2321
  onDelete: () => void;
2322
+ lineStyle?: DependencyLineStyle;
2311
2323
  }
2312
2324
  interface DependencyLineProps {
2313
2325
  x1: number;
@@ -2317,8 +2329,9 @@ interface DependencyLineProps {
2317
2329
  theme: any;
2318
2330
  onDelete?: () => void;
2319
2331
  onHoverChange?: (data: DependencyHoverData | null) => void;
2332
+ lineStyle?: DependencyLineStyle;
2320
2333
  }
2321
- declare function DependencyLine({ x1, y1, x2, y2, theme, onDelete, onHoverChange }: DependencyLineProps): react_jsx_runtime.JSX.Element;
2334
+ declare function DependencyLine({ x1, y1, x2, y2, theme, onDelete, onHoverChange, lineStyle }: DependencyLineProps): react_jsx_runtime.JSX.Element;
2322
2335
 
2323
2336
  interface MilestoneProps {
2324
2337
  task: Task;