gantt-lib 0.7.1 → 0.8.0
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.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +221 -233
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +221 -233
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -216,8 +216,8 @@ interface GanttChartProps {
|
|
|
216
216
|
headerHeight?: number;
|
|
217
217
|
/** Container height. Can be pixels (600), string ("90vh", "100%", "500px"), or undefined for auto height */
|
|
218
218
|
containerHeight?: number | string;
|
|
219
|
-
/** Callback when tasks are modified
|
|
220
|
-
|
|
219
|
+
/** Callback when tasks are modified. Receives ONLY the changed tasks as full objects with all properties. */
|
|
220
|
+
onTasksChange?: (tasks: Task[]) => void;
|
|
221
221
|
/** Optional callback for dependency validation results */
|
|
222
222
|
onValidateDependencies?: (result: ValidationResult) => void;
|
|
223
223
|
/** Enable automatic shifting of dependent tasks when predecessor moves (default: false) */
|
|
@@ -289,8 +289,8 @@ interface TaskRowProps {
|
|
|
289
289
|
dayWidth: number;
|
|
290
290
|
/** Height of the task row in pixels */
|
|
291
291
|
rowHeight: number;
|
|
292
|
-
/** Callback when task is modified via drag/resize */
|
|
293
|
-
|
|
292
|
+
/** Callback when task is modified via drag/resize. Receives array of changed tasks. */
|
|
293
|
+
onTasksChange?: (tasks: Task[]) => void;
|
|
294
294
|
/** Callback when task drag state changes (for rendering guide lines) */
|
|
295
295
|
onDragStateChange?: (state: {
|
|
296
296
|
isDragging: boolean;
|
|
@@ -401,8 +401,8 @@ interface TaskListProps {
|
|
|
401
401
|
headerHeight: number;
|
|
402
402
|
/** Width of the task list overlay in pixels (default: 400) */
|
|
403
403
|
taskListWidth?: number;
|
|
404
|
-
/** Callback when
|
|
405
|
-
|
|
404
|
+
/** Callback when tasks are modified via inline edit. Receives array of changed tasks. */
|
|
405
|
+
onTasksChange?: (tasks: Task[]) => void;
|
|
406
406
|
/** ID of currently selected task */
|
|
407
407
|
selectedTaskId?: string;
|
|
408
408
|
/** Callback when task row is clicked */
|
package/dist/index.d.ts
CHANGED
|
@@ -216,8 +216,8 @@ interface GanttChartProps {
|
|
|
216
216
|
headerHeight?: number;
|
|
217
217
|
/** Container height. Can be pixels (600), string ("90vh", "100%", "500px"), or undefined for auto height */
|
|
218
218
|
containerHeight?: number | string;
|
|
219
|
-
/** Callback when tasks are modified
|
|
220
|
-
|
|
219
|
+
/** Callback when tasks are modified. Receives ONLY the changed tasks as full objects with all properties. */
|
|
220
|
+
onTasksChange?: (tasks: Task[]) => void;
|
|
221
221
|
/** Optional callback for dependency validation results */
|
|
222
222
|
onValidateDependencies?: (result: ValidationResult) => void;
|
|
223
223
|
/** Enable automatic shifting of dependent tasks when predecessor moves (default: false) */
|
|
@@ -289,8 +289,8 @@ interface TaskRowProps {
|
|
|
289
289
|
dayWidth: number;
|
|
290
290
|
/** Height of the task row in pixels */
|
|
291
291
|
rowHeight: number;
|
|
292
|
-
/** Callback when task is modified via drag/resize */
|
|
293
|
-
|
|
292
|
+
/** Callback when task is modified via drag/resize. Receives array of changed tasks. */
|
|
293
|
+
onTasksChange?: (tasks: Task[]) => void;
|
|
294
294
|
/** Callback when task drag state changes (for rendering guide lines) */
|
|
295
295
|
onDragStateChange?: (state: {
|
|
296
296
|
isDragging: boolean;
|
|
@@ -401,8 +401,8 @@ interface TaskListProps {
|
|
|
401
401
|
headerHeight: number;
|
|
402
402
|
/** Width of the task list overlay in pixels (default: 400) */
|
|
403
403
|
taskListWidth?: number;
|
|
404
|
-
/** Callback when
|
|
405
|
-
|
|
404
|
+
/** Callback when tasks are modified via inline edit. Receives array of changed tasks. */
|
|
405
|
+
onTasksChange?: (tasks: Task[]) => void;
|
|
406
406
|
/** ID of currently selected task */
|
|
407
407
|
selectedTaskId?: string;
|
|
408
408
|
/** Callback when task row is clicked */
|