@libxai/board 1.5.25 → 1.5.27
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 +55 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +55 -55
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
@@ -3945,8 +3952,10 @@ interface ListViewConfig {
|
|
|
3945
3952
|
showSoldEffort?: boolean;
|
|
3946
3953
|
/** Display mode: 'hours' shows time values, 'financial' converts to dollars (hours × hourlyRate) */
|
|
3947
3954
|
lens?: 'hours' | 'financial';
|
|
3948
|
-
/** Hourly rate for converting hours → dollars when lens='financial' */
|
|
3955
|
+
/** Hourly rate for converting hours → dollars when lens='financial' (fallback when rateMap has no match) */
|
|
3949
3956
|
hourlyRate?: number;
|
|
3957
|
+
/** Per-user hourly rate map (userId → rate). When provided, uses the task assignee's rate instead of the global hourlyRate */
|
|
3958
|
+
rateMap?: Record<string, number>;
|
|
3950
3959
|
/** Show a sticky "TOTAL PROJECT" row at the bottom of the list */
|
|
3951
3960
|
showProjectTotals?: boolean;
|
|
3952
3961
|
}
|
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
|
|
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
|
|
@@ -3945,8 +3952,10 @@ interface ListViewConfig {
|
|
|
3945
3952
|
showSoldEffort?: boolean;
|
|
3946
3953
|
/** Display mode: 'hours' shows time values, 'financial' converts to dollars (hours × hourlyRate) */
|
|
3947
3954
|
lens?: 'hours' | 'financial';
|
|
3948
|
-
/** Hourly rate for converting hours → dollars when lens='financial' */
|
|
3955
|
+
/** Hourly rate for converting hours → dollars when lens='financial' (fallback when rateMap has no match) */
|
|
3949
3956
|
hourlyRate?: number;
|
|
3957
|
+
/** Per-user hourly rate map (userId → rate). When provided, uses the task assignee's rate instead of the global hourlyRate */
|
|
3958
|
+
rateMap?: Record<string, number>;
|
|
3950
3959
|
/** Show a sticky "TOTAL PROJECT" row at the bottom of the list */
|
|
3951
3960
|
showProjectTotals?: boolean;
|
|
3952
3961
|
}
|