@thepocman/gantt-task-react 1.0.18 → 1.0.19
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.
|
@@ -3446,15 +3446,17 @@ const TaskListInner = ({
|
|
|
3446
3446
|
onTableResizeStart,
|
|
3447
3447
|
onColumnResizeStart
|
|
3448
3448
|
] = useTableListResize(columnsProp, distances, onResizeColumn);
|
|
3449
|
-
const
|
|
3449
|
+
const groupedIndexes = useGroupedVirtualization(
|
|
3450
3450
|
taskListContentRef,
|
|
3451
3451
|
rowIndexToTasksMap,
|
|
3452
3452
|
distances.taskHeight
|
|
3453
|
-
)
|
|
3453
|
+
);
|
|
3454
|
+
const optimizedIndexes = useOptimizedList(
|
|
3454
3455
|
taskListContentRef,
|
|
3455
3456
|
"scrollTop",
|
|
3456
3457
|
fullRowHeight
|
|
3457
3458
|
);
|
|
3459
|
+
const renderedIndexes = enableTaskGrouping ? groupedIndexes : optimizedIndexes;
|
|
3458
3460
|
return /* @__PURE__ */ jsxs("div", { className: styles$e.ganttTableRoot, ref: taskListRef, children: [
|
|
3459
3461
|
/* @__PURE__ */ jsxs(
|
|
3460
3462
|
"div",
|
|
@@ -11788,15 +11790,17 @@ const Gantt = ({
|
|
|
11788
11790
|
}
|
|
11789
11791
|
return totalRows * fullRowHeight;
|
|
11790
11792
|
}, [enableTaskGrouping, rowIndexToTasksMap, maxLevelLength, fullRowHeight]);
|
|
11791
|
-
const
|
|
11793
|
+
const groupedIndexes = useGroupedVirtualization(
|
|
11792
11794
|
ganttTaskContentRef,
|
|
11793
11795
|
rowIndexToTasksMap,
|
|
11794
11796
|
fullRowHeight
|
|
11795
|
-
)
|
|
11797
|
+
);
|
|
11798
|
+
const optimizedIndexes = useOptimizedList(
|
|
11796
11799
|
ganttTaskContentRef,
|
|
11797
11800
|
"scrollTop",
|
|
11798
11801
|
fullRowHeight
|
|
11799
11802
|
);
|
|
11803
|
+
const renderedRowIndexes = enableTaskGrouping ? groupedIndexes : optimizedIndexes;
|
|
11800
11804
|
const {
|
|
11801
11805
|
checkHasCopyTasks,
|
|
11802
11806
|
checkHasCutTasks,
|
|
@@ -3459,15 +3459,17 @@
|
|
|
3459
3459
|
onTableResizeStart,
|
|
3460
3460
|
onColumnResizeStart
|
|
3461
3461
|
] = useTableListResize(columnsProp, distances, onResizeColumn);
|
|
3462
|
-
const
|
|
3462
|
+
const groupedIndexes = useGroupedVirtualization(
|
|
3463
3463
|
taskListContentRef,
|
|
3464
3464
|
rowIndexToTasksMap,
|
|
3465
3465
|
distances.taskHeight
|
|
3466
|
-
)
|
|
3466
|
+
);
|
|
3467
|
+
const optimizedIndexes = useOptimizedList(
|
|
3467
3468
|
taskListContentRef,
|
|
3468
3469
|
"scrollTop",
|
|
3469
3470
|
fullRowHeight
|
|
3470
3471
|
);
|
|
3472
|
+
const renderedIndexes = enableTaskGrouping ? groupedIndexes : optimizedIndexes;
|
|
3471
3473
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$e.ganttTableRoot, ref: taskListRef, children: [
|
|
3472
3474
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3473
3475
|
"div",
|
|
@@ -11801,15 +11803,17 @@
|
|
|
11801
11803
|
}
|
|
11802
11804
|
return totalRows * fullRowHeight;
|
|
11803
11805
|
}, [enableTaskGrouping, rowIndexToTasksMap, maxLevelLength, fullRowHeight]);
|
|
11804
|
-
const
|
|
11806
|
+
const groupedIndexes = useGroupedVirtualization(
|
|
11805
11807
|
ganttTaskContentRef,
|
|
11806
11808
|
rowIndexToTasksMap,
|
|
11807
11809
|
fullRowHeight
|
|
11808
|
-
)
|
|
11810
|
+
);
|
|
11811
|
+
const optimizedIndexes = useOptimizedList(
|
|
11809
11812
|
ganttTaskContentRef,
|
|
11810
11813
|
"scrollTop",
|
|
11811
11814
|
fullRowHeight
|
|
11812
11815
|
);
|
|
11816
|
+
const renderedRowIndexes = enableTaskGrouping ? groupedIndexes : optimizedIndexes;
|
|
11813
11817
|
const {
|
|
11814
11818
|
checkHasCopyTasks,
|
|
11815
11819
|
checkHasCutTasks,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thepocman/gantt-task-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Fork of gantt-task-react with support for grouped tasks on a single row when collapsed",
|
|
5
5
|
"author": "Adrian Bueno <adrianlbueno@users.noreply.github.com>",
|
|
6
6
|
"homepage": "https://github.com/adrianlbueno/gantt-task-react#readme",
|