gantt-lib 0.124.0 → 0.124.2
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 +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7582,6 +7582,8 @@ var TaskList = ({
|
|
|
7582
7582
|
filterMode = "highlight",
|
|
7583
7583
|
filteredTaskIds = /* @__PURE__ */ new Set(),
|
|
7584
7584
|
isFilterActive = false,
|
|
7585
|
+
criticalPathMode,
|
|
7586
|
+
criticalTaskIds,
|
|
7585
7587
|
additionalColumns,
|
|
7586
7588
|
hiddenTaskListColumns,
|
|
7587
7589
|
taskListColumnWidths,
|
|
@@ -7642,8 +7644,11 @@ var TaskList = ({
|
|
|
7642
7644
|
if (filterMode === "hide" && isFilterActive) {
|
|
7643
7645
|
tasks2 = tasks2.filter((task) => filteredTaskIds.has(task.id));
|
|
7644
7646
|
}
|
|
7647
|
+
if (criticalPathMode === "hide" && criticalTaskIds) {
|
|
7648
|
+
tasks2 = tasks2.filter((task) => criticalTaskIds.has(task.id));
|
|
7649
|
+
}
|
|
7645
7650
|
return tasks2;
|
|
7646
|
-
}, [orderedTasks, collapsedParentIds, filterMode, filteredTaskIds, isFilterActive]);
|
|
7651
|
+
}, [orderedTasks, collapsedParentIds, filterMode, filteredTaskIds, isFilterActive, criticalPathMode, criticalTaskIds]);
|
|
7647
7652
|
const totalHeight = useMemo9(
|
|
7648
7653
|
() => visibleTasks.length * rowHeight,
|
|
7649
7654
|
[visibleTasks.length, rowHeight]
|
|
@@ -13644,6 +13649,8 @@ function TaskGanttChartInner(props, ref) {
|
|
|
13644
13649
|
filterMode,
|
|
13645
13650
|
filteredTaskIds: matchedTaskIds,
|
|
13646
13651
|
isFilterActive: !!taskFilter,
|
|
13652
|
+
criticalPathMode,
|
|
13653
|
+
criticalTaskIds: criticalPathMode === "hide" ? criticalTaskIds : void 0,
|
|
13647
13654
|
additionalColumns,
|
|
13648
13655
|
hiddenTaskListColumns,
|
|
13649
13656
|
taskListColumnWidths,
|