@libxai/board 1.5.26 → 1.5.28

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
@@ -558,6 +558,10 @@ interface GanttConfig {
558
558
  onTaskRename?: (taskId: string, newName: string) => void;
559
559
  onTaskToggleExpand?: (taskId: string) => void;
560
560
  onTaskReparent?: (taskId: string, newParentId: string | null, position?: number) => void;
561
+ /** v2.5.0: Per-user hourly rate map for Excel export cost columns (userId → rate) */
562
+ rateMap?: Record<string, number>;
563
+ /** v2.5.0: Default hourly rate fallback when rateMap has no match for a user */
564
+ defaultRate?: number;
561
565
  }
562
566
 
563
567
  /**
@@ -3348,7 +3352,10 @@ declare const ganttUtils: {
3348
3352
  * @param filename - Optional filename (default: 'gantt-chart.xlsx')
3349
3353
  * @returns Promise<void>
3350
3354
  */
3351
- exportToExcel: (tasks: Task[], filename?: string) => Promise<void>;
3355
+ exportToExcel: (tasks: Task[], filename?: string, options?: {
3356
+ rateMap?: Record<string, number>;
3357
+ defaultRate?: number;
3358
+ }) => Promise<void>;
3352
3359
  /**
3353
3360
  * Export tasks to Microsoft Project XML format
3354
3361
  * Compatible with MS Project 2010+ and other project management tools
package/dist/index.d.ts CHANGED
@@ -558,6 +558,10 @@ interface GanttConfig {
558
558
  onTaskRename?: (taskId: string, newName: string) => void;
559
559
  onTaskToggleExpand?: (taskId: string) => void;
560
560
  onTaskReparent?: (taskId: string, newParentId: string | null, position?: number) => void;
561
+ /** v2.5.0: Per-user hourly rate map for Excel export cost columns (userId → rate) */
562
+ rateMap?: Record<string, number>;
563
+ /** v2.5.0: Default hourly rate fallback when rateMap has no match for a user */
564
+ defaultRate?: number;
561
565
  }
562
566
 
563
567
  /**
@@ -3348,7 +3352,10 @@ declare const ganttUtils: {
3348
3352
  * @param filename - Optional filename (default: 'gantt-chart.xlsx')
3349
3353
  * @returns Promise<void>
3350
3354
  */
3351
- exportToExcel: (tasks: Task[], filename?: string) => Promise<void>;
3355
+ exportToExcel: (tasks: Task[], filename?: string, options?: {
3356
+ rateMap?: Record<string, number>;
3357
+ defaultRate?: number;
3358
+ }) => Promise<void>;
3352
3359
  /**
3353
3360
  * Export tasks to Microsoft Project XML format
3354
3361
  * Compatible with MS Project 2010+ and other project management tools