@libxai/board 0.13.2 → 0.13.4
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 +41 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +41 -41
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2208,15 +2208,17 @@ declare const ganttUtils: {
|
|
|
2208
2208
|
isOnCriticalPath: (tasks: Task[], taskId: string) => boolean;
|
|
2209
2209
|
/**
|
|
2210
2210
|
* Auto-schedule dependent tasks when a task changes
|
|
2211
|
+
* v0.13.3: Now takes optional daysDelta to shift dependents by same amount (preserves gap)
|
|
2211
2212
|
* @param tasks - All tasks
|
|
2212
2213
|
* @param changedTaskId - Task that was changed
|
|
2214
|
+
* @param daysDelta - Optional: days the parent moved (for preserving relative gaps)
|
|
2213
2215
|
* @returns Updated tasks with rescheduled dependencies
|
|
2214
2216
|
*/
|
|
2215
|
-
autoScheduleDependents: (tasks: Task[], changedTaskId: string) => Task[];
|
|
2217
|
+
autoScheduleDependents: (tasks: Task[], changedTaskId: string, daysDelta?: number) => Task[];
|
|
2216
2218
|
/**
|
|
2217
2219
|
* v0.13.0: Calculate cascade preview positions for dependent tasks during drag
|
|
2218
|
-
* v0.13.
|
|
2219
|
-
*
|
|
2220
|
+
* v0.13.3: FIXED - Preview shows ONLY actual movement needed (keeps same relative gap)
|
|
2221
|
+
* Dependents shift by the same daysDelta as their parent, preserving the original gap
|
|
2220
2222
|
* @param tasks - All tasks (nested structure)
|
|
2221
2223
|
* @param draggedTaskId - Task being dragged
|
|
2222
2224
|
* @param daysDelta - How many days the dragged task is being moved
|
package/dist/index.d.ts
CHANGED
|
@@ -2208,15 +2208,17 @@ declare const ganttUtils: {
|
|
|
2208
2208
|
isOnCriticalPath: (tasks: Task[], taskId: string) => boolean;
|
|
2209
2209
|
/**
|
|
2210
2210
|
* Auto-schedule dependent tasks when a task changes
|
|
2211
|
+
* v0.13.3: Now takes optional daysDelta to shift dependents by same amount (preserves gap)
|
|
2211
2212
|
* @param tasks - All tasks
|
|
2212
2213
|
* @param changedTaskId - Task that was changed
|
|
2214
|
+
* @param daysDelta - Optional: days the parent moved (for preserving relative gaps)
|
|
2213
2215
|
* @returns Updated tasks with rescheduled dependencies
|
|
2214
2216
|
*/
|
|
2215
|
-
autoScheduleDependents: (tasks: Task[], changedTaskId: string) => Task[];
|
|
2217
|
+
autoScheduleDependents: (tasks: Task[], changedTaskId: string, daysDelta?: number) => Task[];
|
|
2216
2218
|
/**
|
|
2217
2219
|
* v0.13.0: Calculate cascade preview positions for dependent tasks during drag
|
|
2218
|
-
* v0.13.
|
|
2219
|
-
*
|
|
2220
|
+
* v0.13.3: FIXED - Preview shows ONLY actual movement needed (keeps same relative gap)
|
|
2221
|
+
* Dependents shift by the same daysDelta as their parent, preserving the original gap
|
|
2220
2222
|
* @param tasks - All tasks (nested structure)
|
|
2221
2223
|
* @param draggedTaskId - Task being dragged
|
|
2222
2224
|
* @param daysDelta - How many days the dragged task is being moved
|