gantt-lib 0.85.1 → 0.86.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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -710,7 +710,7 @@ interface TaskListProps {
|
|
|
710
710
|
rowHeight: number;
|
|
711
711
|
/** Height of the header row in pixels (must match Gantt chart's headerHeight) */
|
|
712
712
|
headerHeight: number;
|
|
713
|
-
/** Width of the task list overlay in pixels. Values below
|
|
713
|
+
/** Width of the task list overlay in pixels. Values below the visible column width are clamped. */
|
|
714
714
|
taskListWidth?: number;
|
|
715
715
|
/** Callback when tasks are modified via inline edit. Receives array of changed tasks. */
|
|
716
716
|
onTasksChange?: (tasks: Task[]) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -710,7 +710,7 @@ interface TaskListProps {
|
|
|
710
710
|
rowHeight: number;
|
|
711
711
|
/** Height of the header row in pixels (must match Gantt chart's headerHeight) */
|
|
712
712
|
headerHeight: number;
|
|
713
|
-
/** Width of the task list overlay in pixels. Values below
|
|
713
|
+
/** Width of the task list overlay in pixels. Values below the visible column width are clamped. */
|
|
714
714
|
taskListWidth?: number;
|
|
715
715
|
/** Callback when tasks are modified via inline edit. Receives array of changed tasks. */
|
|
716
716
|
onTasksChange?: (tasks: Task[]) => void;
|
package/dist/index.js
CHANGED
|
@@ -6575,7 +6575,7 @@ var TaskList = ({
|
|
|
6575
6575
|
tasks,
|
|
6576
6576
|
rowHeight,
|
|
6577
6577
|
headerHeight,
|
|
6578
|
-
taskListWidth
|
|
6578
|
+
taskListWidth,
|
|
6579
6579
|
onTasksChange,
|
|
6580
6580
|
selectedTaskId,
|
|
6581
6581
|
onTaskSelect,
|
|
@@ -7148,7 +7148,8 @@ var TaskList = ({
|
|
|
7148
7148
|
() => resolvedColumns.reduce((sum, col) => sum + (col.width ?? 120), 0),
|
|
7149
7149
|
[resolvedColumns]
|
|
7150
7150
|
);
|
|
7151
|
-
const
|
|
7151
|
+
const requestedTaskListWidth = taskListWidth ?? Math.min(MIN_TASK_LIST_WIDTH, resolvedColumnWidthTotal);
|
|
7152
|
+
const effectiveTaskListWidth = Math.max(requestedTaskListWidth, resolvedColumnWidthTotal);
|
|
7152
7153
|
const tableHeaderHeight = headerHeight + 1;
|
|
7153
7154
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
7154
7155
|
"div",
|