@libxai/board 1.5.11 → 1.5.13

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
@@ -506,6 +506,8 @@ interface GanttConfig {
506
506
  onTaskDblClick?: (task: Task) => void;
507
507
  onTaskContextMenu?: (task: Task, event: React.MouseEvent) => void;
508
508
  onTaskUpdate?: (task: Task) => void;
509
+ /** v2.2.0: Called after drag with all dependent tasks that were rescheduled by cascade */
510
+ onDependentTasksScheduled?: (tasks: Task[]) => void;
509
511
  onTaskDateChange?: (task: Task, startDate: Date, endDate: Date) => void;
510
512
  onProgressChange?: (taskId: string, oldProgress: number, newProgress: number) => void;
511
513
  /**
@@ -3368,7 +3370,7 @@ declare const ganttUtils: {
3368
3370
  * @param daysDelta - Optional: days the parent moved (for preserving relative gaps)
3369
3371
  * @returns Updated tasks with rescheduled dependencies
3370
3372
  */
3371
- autoScheduleDependents: (tasks: Task[], changedTaskId: string, daysDelta?: number) => Task[];
3373
+ autoScheduleDependents: (tasks: Task[], changedTaskId: string, daysDelta?: number, _visited?: Set<string>) => Task[];
3372
3374
  /**
3373
3375
  * v0.13.0: Calculate cascade preview positions for dependent tasks during drag
3374
3376
  * v0.13.3: FIXED - Preview shows ONLY actual movement needed (keeps same relative gap)
@@ -3911,6 +3913,8 @@ interface ListViewConfig {
3911
3913
  lens?: 'hours' | 'financial';
3912
3914
  /** Hourly rate for converting hours → dollars when lens='financial' */
3913
3915
  hourlyRate?: number;
3916
+ /** Show a sticky "TOTAL PROJECT" row at the bottom of the list */
3917
+ showProjectTotals?: boolean;
3914
3918
  }
3915
3919
  /**
3916
3920
  * ListView translations
package/dist/index.d.ts CHANGED
@@ -506,6 +506,8 @@ interface GanttConfig {
506
506
  onTaskDblClick?: (task: Task) => void;
507
507
  onTaskContextMenu?: (task: Task, event: React.MouseEvent) => void;
508
508
  onTaskUpdate?: (task: Task) => void;
509
+ /** v2.2.0: Called after drag with all dependent tasks that were rescheduled by cascade */
510
+ onDependentTasksScheduled?: (tasks: Task[]) => void;
509
511
  onTaskDateChange?: (task: Task, startDate: Date, endDate: Date) => void;
510
512
  onProgressChange?: (taskId: string, oldProgress: number, newProgress: number) => void;
511
513
  /**
@@ -3368,7 +3370,7 @@ declare const ganttUtils: {
3368
3370
  * @param daysDelta - Optional: days the parent moved (for preserving relative gaps)
3369
3371
  * @returns Updated tasks with rescheduled dependencies
3370
3372
  */
3371
- autoScheduleDependents: (tasks: Task[], changedTaskId: string, daysDelta?: number) => Task[];
3373
+ autoScheduleDependents: (tasks: Task[], changedTaskId: string, daysDelta?: number, _visited?: Set<string>) => Task[];
3372
3374
  /**
3373
3375
  * v0.13.0: Calculate cascade preview positions for dependent tasks during drag
3374
3376
  * v0.13.3: FIXED - Preview shows ONLY actual movement needed (keeps same relative gap)
@@ -3911,6 +3913,8 @@ interface ListViewConfig {
3911
3913
  lens?: 'hours' | 'financial';
3912
3914
  /** Hourly rate for converting hours → dollars when lens='financial' */
3913
3915
  hourlyRate?: number;
3916
+ /** Show a sticky "TOTAL PROJECT" row at the bottom of the list */
3917
+ showProjectTotals?: boolean;
3914
3918
  }
3915
3919
  /**
3916
3920
  * ListView translations