gantt-lib 0.139.0 → 0.141.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/README.md CHANGED
@@ -581,3 +581,16 @@ MIT
581
581
  ```
582
582
 
583
583
  All four dependency types (`FS`, `SS`, `FF`, `SF`), signed lags, cross-row links, packed lanes and filtered/virtualized rows are supported. `showActivityLinks={false}` hides the graph; `showActivityLag={false}` hides its lag labels.
584
+
585
+ To control which links remain visible while a chain is active, pass `activityDependencyHighlight`. The selection uses host-scoped identities; `mode` is `chain` (default), `chain-incoming`, `chain-outgoing`, or `chain-all`. Omit the prop when deselecting to restore all links.
586
+
587
+ ```tsx
588
+ activityDependencyHighlight={{
589
+ activities: [{taskId: 'floor-1', activityId: 'walls'}, {taskId: 'floor-2', activityId: 'walls'}],
590
+ mode: 'chain-incoming',
591
+ }}
592
+ ```
593
+
594
+ ### Hidden system dependencies
595
+
596
+ Set TaskDependency.hidden to true to omit its arrow, predecessor chip and print label. The full dependency remains available to validation, drag constraints and cascading; this is a presentation flag, not a scheduling switch.
@@ -1,2 +1,2 @@
1
- export { am as CascadeContext, C as CriticalPathOptions, D as DAY_MS, h as DependencyError, L as LinkType, p as ScaleTaskSubtreeAnchor, q as ScaleTaskSubtreeErrorCode, r as ScaleTaskSubtreeExternalPolicy, s as ScaleTaskSubtreeOptions, S as ScaleTaskSubtreeResult, t as ScaleTaskSubtreeWarning, an as ScheduleCommandOptions, ao as ScheduleCommandResult, ap as ScheduleDependency, aq as ScheduleTask, ar as ScheduleTaskUpdate, T as Task, as as TaskDependency, V as ValidationResult, at as addBusinessDays, w as alignToWorkingDay, x as areTasksHierarchicallyRelated, y as buildAdjacencyList, z as buildTaskRangeFromEnd, E as buildTaskRangeFromStart, F as calculateSuccessorDate, H as cascadeByLinks, au as cascadeTaskProgress, I as clampTaskRangeForIncomingFS, J as computeCriticalPath, K as computeLagFromDates, N as computeParentDates, O as computeParentProgress, av as createCascadeContext, P as detectCycles, Q as extendCriticalIdsToParents, U as findParentId, X as getAllDependencyEdges, Y as getAllDescendants, Z as getBusinessDayOffset, aw as getBusinessDaysCount, _ as getChildren, $ as getDependencyLag, a0 as getSuccessorChain, a1 as getTaskDuration, a2 as getTransitiveCascadeChain, a3 as isAncestorTask, a4 as isTaskParent, a5 as moveTaskRange, a6 as moveTaskWithCascade, a7 as normalizeDependencyLag, a8 as normalizePredecessorDates, a9 as normalizeTaskDependencyLags, aa as normalizeUTCDate, ab as parseDateOnly, ac as recalculateIncomingLags, ad as recalculateProjectSchedule, ae as recalculateTaskFromDependencies, af as reflowTasksOnModeSwitch, ag as removeDependenciesBetweenTasks, ah as resizeTaskWithCascade, ai as scaleTaskSubtreeDuration, aj as shiftBusinessDayOffset, ax as subtractBusinessDays, ak as universalCascade, al as validateDependencies } from '../../index-BfFHn43h.mjs';
1
+ export { an as CascadeContext, C as CriticalPathOptions, D as DAY_MS, i as DependencyError, L as LinkType, q as ScaleTaskSubtreeAnchor, r as ScaleTaskSubtreeErrorCode, s as ScaleTaskSubtreeExternalPolicy, t as ScaleTaskSubtreeOptions, S as ScaleTaskSubtreeResult, u as ScaleTaskSubtreeWarning, ao as ScheduleCommandOptions, ap as ScheduleCommandResult, aq as ScheduleDependency, ar as ScheduleTask, as as ScheduleTaskUpdate, T as Task, at as TaskDependency, V as ValidationResult, au as addBusinessDays, x as alignToWorkingDay, y as areTasksHierarchicallyRelated, z as buildAdjacencyList, E as buildTaskRangeFromEnd, F as buildTaskRangeFromStart, H as calculateSuccessorDate, I as cascadeByLinks, av as cascadeTaskProgress, J as clampTaskRangeForIncomingFS, K as computeCriticalPath, N as computeLagFromDates, O as computeParentDates, P as computeParentProgress, aw as createCascadeContext, Q as detectCycles, U as extendCriticalIdsToParents, X as findParentId, Y as getAllDependencyEdges, Z as getAllDescendants, _ as getBusinessDayOffset, ax as getBusinessDaysCount, $ as getChildren, a0 as getDependencyLag, a1 as getSuccessorChain, a2 as getTaskDuration, a3 as getTransitiveCascadeChain, a4 as isAncestorTask, a5 as isTaskParent, a6 as moveTaskRange, a7 as moveTaskWithCascade, a8 as normalizeDependencyLag, a9 as normalizePredecessorDates, aa as normalizeTaskDependencyLags, ab as normalizeUTCDate, ac as parseDateOnly, ad as recalculateIncomingLags, ae as recalculateProjectSchedule, af as recalculateTaskFromDependencies, ag as reflowTasksOnModeSwitch, ah as removeDependenciesBetweenTasks, ai as resizeTaskWithCascade, aj as scaleTaskSubtreeDuration, ak as shiftBusinessDayOffset, ay as subtractBusinessDays, al as universalCascade, am as validateDependencies } from '../../index-C7mf06-7.mjs';
2
2
  import 'react';
@@ -1,2 +1,2 @@
1
- export { am as CascadeContext, C as CriticalPathOptions, D as DAY_MS, h as DependencyError, L as LinkType, p as ScaleTaskSubtreeAnchor, q as ScaleTaskSubtreeErrorCode, r as ScaleTaskSubtreeExternalPolicy, s as ScaleTaskSubtreeOptions, S as ScaleTaskSubtreeResult, t as ScaleTaskSubtreeWarning, an as ScheduleCommandOptions, ao as ScheduleCommandResult, ap as ScheduleDependency, aq as ScheduleTask, ar as ScheduleTaskUpdate, T as Task, as as TaskDependency, V as ValidationResult, at as addBusinessDays, w as alignToWorkingDay, x as areTasksHierarchicallyRelated, y as buildAdjacencyList, z as buildTaskRangeFromEnd, E as buildTaskRangeFromStart, F as calculateSuccessorDate, H as cascadeByLinks, au as cascadeTaskProgress, I as clampTaskRangeForIncomingFS, J as computeCriticalPath, K as computeLagFromDates, N as computeParentDates, O as computeParentProgress, av as createCascadeContext, P as detectCycles, Q as extendCriticalIdsToParents, U as findParentId, X as getAllDependencyEdges, Y as getAllDescendants, Z as getBusinessDayOffset, aw as getBusinessDaysCount, _ as getChildren, $ as getDependencyLag, a0 as getSuccessorChain, a1 as getTaskDuration, a2 as getTransitiveCascadeChain, a3 as isAncestorTask, a4 as isTaskParent, a5 as moveTaskRange, a6 as moveTaskWithCascade, a7 as normalizeDependencyLag, a8 as normalizePredecessorDates, a9 as normalizeTaskDependencyLags, aa as normalizeUTCDate, ab as parseDateOnly, ac as recalculateIncomingLags, ad as recalculateProjectSchedule, ae as recalculateTaskFromDependencies, af as reflowTasksOnModeSwitch, ag as removeDependenciesBetweenTasks, ah as resizeTaskWithCascade, ai as scaleTaskSubtreeDuration, aj as shiftBusinessDayOffset, ax as subtractBusinessDays, ak as universalCascade, al as validateDependencies } from '../../index-BfFHn43h.js';
1
+ export { an as CascadeContext, C as CriticalPathOptions, D as DAY_MS, i as DependencyError, L as LinkType, q as ScaleTaskSubtreeAnchor, r as ScaleTaskSubtreeErrorCode, s as ScaleTaskSubtreeExternalPolicy, t as ScaleTaskSubtreeOptions, S as ScaleTaskSubtreeResult, u as ScaleTaskSubtreeWarning, ao as ScheduleCommandOptions, ap as ScheduleCommandResult, aq as ScheduleDependency, ar as ScheduleTask, as as ScheduleTaskUpdate, T as Task, at as TaskDependency, V as ValidationResult, au as addBusinessDays, x as alignToWorkingDay, y as areTasksHierarchicallyRelated, z as buildAdjacencyList, E as buildTaskRangeFromEnd, F as buildTaskRangeFromStart, H as calculateSuccessorDate, I as cascadeByLinks, av as cascadeTaskProgress, J as clampTaskRangeForIncomingFS, K as computeCriticalPath, N as computeLagFromDates, O as computeParentDates, P as computeParentProgress, aw as createCascadeContext, Q as detectCycles, U as extendCriticalIdsToParents, X as findParentId, Y as getAllDependencyEdges, Z as getAllDescendants, _ as getBusinessDayOffset, ax as getBusinessDaysCount, $ as getChildren, a0 as getDependencyLag, a1 as getSuccessorChain, a2 as getTaskDuration, a3 as getTransitiveCascadeChain, a4 as isAncestorTask, a5 as isTaskParent, a6 as moveTaskRange, a7 as moveTaskWithCascade, a8 as normalizeDependencyLag, a9 as normalizePredecessorDates, aa as normalizeTaskDependencyLags, ab as normalizeUTCDate, ac as parseDateOnly, ad as recalculateIncomingLags, ae as recalculateProjectSchedule, af as recalculateTaskFromDependencies, ag as reflowTasksOnModeSwitch, ah as removeDependenciesBetweenTasks, ai as resizeTaskWithCascade, aj as scaleTaskSubtreeDuration, ak as shiftBusinessDayOffset, ay as subtractBusinessDays, al as universalCascade, am as validateDependencies } from '../../index-C7mf06-7.js';
2
2
  import 'react';
@@ -136,6 +136,8 @@ interface TaskDependency {
136
136
  type: LinkType;
137
137
  /** Lag in days (positive or negative integer) */
138
138
  lag: number;
139
+ /** Hide arrows and predecessor labels only; scheduling and validation still use this link. */
140
+ hidden?: boolean;
139
141
  }
140
142
  /**
141
143
  * Error or warning from dependency validation
@@ -170,6 +172,15 @@ interface TaskActivityTooltipField {
170
172
  /** Field value — any renderable content (string, badge, icon, JSX) */
171
173
  value: ReactNode;
172
174
  }
175
+ interface ActivityDependencyHighlight {
176
+ /** All activity bars in the selected chain, scoped by host row. */
177
+ activities: readonly {
178
+ taskId: string;
179
+ activityId: string;
180
+ }[];
181
+ /** Show internal chain edges, optionally also edges entering/leaving the chain. */
182
+ mode?: 'chain' | 'chain-incoming' | 'chain-outgoing' | 'chain-all';
183
+ }
173
184
  interface TaskActivityDependency {
174
185
  predecessorTaskId: string;
175
186
  predecessorActivityId: string;
@@ -846,4 +857,4 @@ type ScaleTaskSubtreeResult = {
846
857
  */
847
858
  declare function scaleTaskSubtreeDuration(parentId: string, targetDuration: number, snapshot: Task[], options?: ScaleTaskSubtreeOptions): ScaleTaskSubtreeResult;
848
859
 
849
- export { getDependencyLag as $, type ActivityTooltipContext as A, type BuiltInResourceTableColumnId as B, type CriticalPathOptions as C, DAY_MS as D, buildTaskRangeFromStart as E, calculateSuccessorDate as F, type GanttScheduleIntent as G, cascadeByLinks as H, clampTaskRangeForIncomingFS as I, computeCriticalPath as J, computeLagFromDates as K, type LinkType as L, type MonthSpan as M, computeParentDates as N, computeParentProgress as O, detectCycles as P, extendCriticalIdsToParents as Q, type ResourceTimelineItem as R, type ScaleTaskSubtreeResult as S, type Task as T, findParentId as U, type ValidationResult as V, type WeekendBlock as W, getAllDependencyEdges as X, getAllDescendants as Y, getBusinessDayOffset as Z, getChildren as _, type GanttDateRange as a, getSuccessorChain as a0, getTaskDuration as a1, getTransitiveCascadeChain as a2, isAncestorTask as a3, isTaskParent as a4, moveTaskRange as a5, moveTaskWithCascade as a6, normalizeDependencyLag as a7, normalizePredecessorDates as a8, normalizeTaskDependencyLags as a9, normalizeUTCDate as aa, parseDateOnly as ab, recalculateIncomingLags as ac, recalculateProjectSchedule as ad, recalculateTaskFromDependencies as ae, reflowTasksOnModeSwitch as af, removeDependenciesBetweenTasks as ag, resizeTaskWithCascade as ah, scaleTaskSubtreeDuration as ai, shiftBusinessDayOffset as aj, universalCascade as ak, validateDependencies as al, type CascadeContext as am, type ScheduleCommandOptions as an, type ScheduleCommandResult as ao, type ScheduleDependency as ap, type ScheduleTask as aq, type ScheduleTaskUpdate as ar, type TaskDependency as as, addBusinessDays as at, cascadeTaskProgress as au, createCascadeContext as av, getBusinessDaysCount as aw, subtractBusinessDays as ax, type TaskActivityDependency as b, type TimelineMarker as c, type TaskDateChangeMode as d, type ResourcePlannerChartProps as e, type TaskActivity as f, type ResourceTimelineResource as g, type DependencyError as h, type GanttChartMode as i, type GridConfig as j, type GridLine as k, type ResourceTableColumnId as l, type ResourceTableColumnWidthMap as m, type ResourceTimelineMove as n, type ResourceTimelineResourceMenuCommand as o, type ScaleTaskSubtreeAnchor as p, type ScaleTaskSubtreeErrorCode as q, type ScaleTaskSubtreeExternalPolicy as r, type ScaleTaskSubtreeOptions as s, type ScaleTaskSubtreeWarning as t, type TaskActivityTooltipField as u, type TaskBarGeometry as v, alignToWorkingDay as w, areTasksHierarchicallyRelated as x, buildAdjacencyList as y, buildTaskRangeFromEnd as z };
860
+ export { getChildren as $, type ActivityDependencyHighlight as A, type BuiltInResourceTableColumnId as B, type CriticalPathOptions as C, DAY_MS as D, buildTaskRangeFromEnd as E, buildTaskRangeFromStart as F, type GanttScheduleIntent as G, calculateSuccessorDate as H, cascadeByLinks as I, clampTaskRangeForIncomingFS as J, computeCriticalPath as K, type LinkType as L, type MonthSpan as M, computeLagFromDates as N, computeParentDates as O, computeParentProgress as P, detectCycles as Q, type ResourceTimelineItem as R, type ScaleTaskSubtreeResult as S, type Task as T, extendCriticalIdsToParents as U, type ValidationResult as V, type WeekendBlock as W, findParentId as X, getAllDependencyEdges as Y, getAllDescendants as Z, getBusinessDayOffset as _, type GanttDateRange as a, getDependencyLag as a0, getSuccessorChain as a1, getTaskDuration as a2, getTransitiveCascadeChain as a3, isAncestorTask as a4, isTaskParent as a5, moveTaskRange as a6, moveTaskWithCascade as a7, normalizeDependencyLag as a8, normalizePredecessorDates as a9, normalizeTaskDependencyLags as aa, normalizeUTCDate as ab, parseDateOnly as ac, recalculateIncomingLags as ad, recalculateProjectSchedule as ae, recalculateTaskFromDependencies as af, reflowTasksOnModeSwitch as ag, removeDependenciesBetweenTasks as ah, resizeTaskWithCascade as ai, scaleTaskSubtreeDuration as aj, shiftBusinessDayOffset as ak, universalCascade as al, validateDependencies as am, type CascadeContext as an, type ScheduleCommandOptions as ao, type ScheduleCommandResult as ap, type ScheduleDependency as aq, type ScheduleTask as ar, type ScheduleTaskUpdate as as, type TaskDependency as at, addBusinessDays as au, cascadeTaskProgress as av, createCascadeContext as aw, getBusinessDaysCount as ax, subtractBusinessDays as ay, type TaskActivityDependency as b, type ActivityTooltipContext as c, type TimelineMarker as d, type TaskDateChangeMode as e, type ResourcePlannerChartProps as f, type TaskActivity as g, type ResourceTimelineResource as h, type DependencyError as i, type GanttChartMode as j, type GridConfig as k, type GridLine as l, type ResourceTableColumnId as m, type ResourceTableColumnWidthMap as n, type ResourceTimelineMove as o, type ResourceTimelineResourceMenuCommand as p, type ScaleTaskSubtreeAnchor as q, type ScaleTaskSubtreeErrorCode as r, type ScaleTaskSubtreeExternalPolicy as s, type ScaleTaskSubtreeOptions as t, type ScaleTaskSubtreeWarning as u, type TaskActivityTooltipField as v, type TaskBarGeometry as w, alignToWorkingDay as x, areTasksHierarchicallyRelated as y, buildAdjacencyList as z };
@@ -136,6 +136,8 @@ interface TaskDependency {
136
136
  type: LinkType;
137
137
  /** Lag in days (positive or negative integer) */
138
138
  lag: number;
139
+ /** Hide arrows and predecessor labels only; scheduling and validation still use this link. */
140
+ hidden?: boolean;
139
141
  }
140
142
  /**
141
143
  * Error or warning from dependency validation
@@ -170,6 +172,15 @@ interface TaskActivityTooltipField {
170
172
  /** Field value — any renderable content (string, badge, icon, JSX) */
171
173
  value: ReactNode;
172
174
  }
175
+ interface ActivityDependencyHighlight {
176
+ /** All activity bars in the selected chain, scoped by host row. */
177
+ activities: readonly {
178
+ taskId: string;
179
+ activityId: string;
180
+ }[];
181
+ /** Show internal chain edges, optionally also edges entering/leaving the chain. */
182
+ mode?: 'chain' | 'chain-incoming' | 'chain-outgoing' | 'chain-all';
183
+ }
173
184
  interface TaskActivityDependency {
174
185
  predecessorTaskId: string;
175
186
  predecessorActivityId: string;
@@ -846,4 +857,4 @@ type ScaleTaskSubtreeResult = {
846
857
  */
847
858
  declare function scaleTaskSubtreeDuration(parentId: string, targetDuration: number, snapshot: Task[], options?: ScaleTaskSubtreeOptions): ScaleTaskSubtreeResult;
848
859
 
849
- export { getDependencyLag as $, type ActivityTooltipContext as A, type BuiltInResourceTableColumnId as B, type CriticalPathOptions as C, DAY_MS as D, buildTaskRangeFromStart as E, calculateSuccessorDate as F, type GanttScheduleIntent as G, cascadeByLinks as H, clampTaskRangeForIncomingFS as I, computeCriticalPath as J, computeLagFromDates as K, type LinkType as L, type MonthSpan as M, computeParentDates as N, computeParentProgress as O, detectCycles as P, extendCriticalIdsToParents as Q, type ResourceTimelineItem as R, type ScaleTaskSubtreeResult as S, type Task as T, findParentId as U, type ValidationResult as V, type WeekendBlock as W, getAllDependencyEdges as X, getAllDescendants as Y, getBusinessDayOffset as Z, getChildren as _, type GanttDateRange as a, getSuccessorChain as a0, getTaskDuration as a1, getTransitiveCascadeChain as a2, isAncestorTask as a3, isTaskParent as a4, moveTaskRange as a5, moveTaskWithCascade as a6, normalizeDependencyLag as a7, normalizePredecessorDates as a8, normalizeTaskDependencyLags as a9, normalizeUTCDate as aa, parseDateOnly as ab, recalculateIncomingLags as ac, recalculateProjectSchedule as ad, recalculateTaskFromDependencies as ae, reflowTasksOnModeSwitch as af, removeDependenciesBetweenTasks as ag, resizeTaskWithCascade as ah, scaleTaskSubtreeDuration as ai, shiftBusinessDayOffset as aj, universalCascade as ak, validateDependencies as al, type CascadeContext as am, type ScheduleCommandOptions as an, type ScheduleCommandResult as ao, type ScheduleDependency as ap, type ScheduleTask as aq, type ScheduleTaskUpdate as ar, type TaskDependency as as, addBusinessDays as at, cascadeTaskProgress as au, createCascadeContext as av, getBusinessDaysCount as aw, subtractBusinessDays as ax, type TaskActivityDependency as b, type TimelineMarker as c, type TaskDateChangeMode as d, type ResourcePlannerChartProps as e, type TaskActivity as f, type ResourceTimelineResource as g, type DependencyError as h, type GanttChartMode as i, type GridConfig as j, type GridLine as k, type ResourceTableColumnId as l, type ResourceTableColumnWidthMap as m, type ResourceTimelineMove as n, type ResourceTimelineResourceMenuCommand as o, type ScaleTaskSubtreeAnchor as p, type ScaleTaskSubtreeErrorCode as q, type ScaleTaskSubtreeExternalPolicy as r, type ScaleTaskSubtreeOptions as s, type ScaleTaskSubtreeWarning as t, type TaskActivityTooltipField as u, type TaskBarGeometry as v, alignToWorkingDay as w, areTasksHierarchicallyRelated as x, buildAdjacencyList as y, buildTaskRangeFromEnd as z };
860
+ export { getChildren as $, type ActivityDependencyHighlight as A, type BuiltInResourceTableColumnId as B, type CriticalPathOptions as C, DAY_MS as D, buildTaskRangeFromEnd as E, buildTaskRangeFromStart as F, type GanttScheduleIntent as G, calculateSuccessorDate as H, cascadeByLinks as I, clampTaskRangeForIncomingFS as J, computeCriticalPath as K, type LinkType as L, type MonthSpan as M, computeLagFromDates as N, computeParentDates as O, computeParentProgress as P, detectCycles as Q, type ResourceTimelineItem as R, type ScaleTaskSubtreeResult as S, type Task as T, extendCriticalIdsToParents as U, type ValidationResult as V, type WeekendBlock as W, findParentId as X, getAllDependencyEdges as Y, getAllDescendants as Z, getBusinessDayOffset as _, type GanttDateRange as a, getDependencyLag as a0, getSuccessorChain as a1, getTaskDuration as a2, getTransitiveCascadeChain as a3, isAncestorTask as a4, isTaskParent as a5, moveTaskRange as a6, moveTaskWithCascade as a7, normalizeDependencyLag as a8, normalizePredecessorDates as a9, normalizeTaskDependencyLags as aa, normalizeUTCDate as ab, parseDateOnly as ac, recalculateIncomingLags as ad, recalculateProjectSchedule as ae, recalculateTaskFromDependencies as af, reflowTasksOnModeSwitch as ag, removeDependenciesBetweenTasks as ah, resizeTaskWithCascade as ai, scaleTaskSubtreeDuration as aj, shiftBusinessDayOffset as ak, universalCascade as al, validateDependencies as am, type CascadeContext as an, type ScheduleCommandOptions as ao, type ScheduleCommandResult as ap, type ScheduleDependency as aq, type ScheduleTask as ar, type ScheduleTaskUpdate as as, type TaskDependency as at, addBusinessDays as au, cascadeTaskProgress as av, createCascadeContext as aw, getBusinessDaysCount as ax, subtractBusinessDays as ay, type TaskActivityDependency as b, type ActivityTooltipContext as c, type TimelineMarker as d, type TaskDateChangeMode as e, type ResourcePlannerChartProps as f, type TaskActivity as g, type ResourceTimelineResource as h, type DependencyError as i, type GanttChartMode as j, type GridConfig as k, type GridLine as l, type ResourceTableColumnId as m, type ResourceTableColumnWidthMap as n, type ResourceTimelineMove as o, type ResourceTimelineResourceMenuCommand as p, type ScaleTaskSubtreeAnchor as q, type ScaleTaskSubtreeErrorCode as r, type ScaleTaskSubtreeExternalPolicy as s, type ScaleTaskSubtreeOptions as t, type ScaleTaskSubtreeWarning as u, type TaskActivityTooltipField as v, type TaskBarGeometry as w, alignToWorkingDay as x, areTasksHierarchicallyRelated as y, buildAdjacencyList as z };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React$1, { ReactNode } from 'react';
2
- import { T as Task$1, R as ResourceTimelineItem, G as GanttScheduleIntent, V as ValidationResult, a as GanttDateRange, b as TaskActivityDependency, A as ActivityTooltipContext, c as TimelineMarker, d as TaskDateChangeMode, S as ScaleTaskSubtreeResult, e as ResourcePlannerChartProps, f as TaskActivity$1, g as ResourceTimelineResource } from './index-BfFHn43h.mjs';
3
- export { B as BuiltInResourceTableColumnId, C as CriticalPathOptions, D as DAY_MS, h as DependencyError, i as GanttChartMode, j as GridConfig, k as GridLine, L as LinkType, M as MonthSpan, l as ResourceTableColumnId, m as ResourceTableColumnWidthMap, n as ResourceTimelineMove, o as ResourceTimelineResourceMenuCommand, p as ScaleTaskSubtreeAnchor, q as ScaleTaskSubtreeErrorCode, r as ScaleTaskSubtreeExternalPolicy, s as ScaleTaskSubtreeOptions, t as ScaleTaskSubtreeWarning, u as TaskActivityTooltipField, v as TaskBarGeometry, W as WeekendBlock, w as alignToWorkingDay, x as areTasksHierarchicallyRelated, y as buildAdjacencyList, z as buildTaskRangeFromEnd, E as buildTaskRangeFromStart, F as calculateSuccessorDate, H as cascadeByLinks, I as clampTaskRangeForIncomingFS, J as computeCriticalPath, K as computeLagFromDates, N as computeParentDates, O as computeParentProgress, P as detectCycles, Q as extendCriticalIdsToParents, U as findParentId, X as getAllDependencyEdges, Y as getAllDescendants, Z as getBusinessDayOffset, _ as getChildren, $ as getDependencyLag, a0 as getSuccessorChain, a1 as getTaskDuration, a2 as getTransitiveCascadeChain, a3 as isAncestorTask, a4 as isTaskParent, a5 as moveTaskRange, a6 as moveTaskWithCascade, a7 as normalizeDependencyLag, a8 as normalizePredecessorDates, a9 as normalizeTaskDependencyLags, aa as normalizeUTCDate, ab as parseDateOnly, ac as recalculateIncomingLags, ad as recalculateProjectSchedule, ae as recalculateTaskFromDependencies, af as reflowTasksOnModeSwitch, ag as removeDependenciesBetweenTasks, ah as resizeTaskWithCascade, ai as scaleTaskSubtreeDuration, aj as shiftBusinessDayOffset, ak as universalCascade, al as validateDependencies } from './index-BfFHn43h.mjs';
2
+ import { T as Task$1, R as ResourceTimelineItem, G as GanttScheduleIntent, V as ValidationResult, a as GanttDateRange, b as TaskActivityDependency, A as ActivityDependencyHighlight, c as ActivityTooltipContext, d as TimelineMarker, e as TaskDateChangeMode, S as ScaleTaskSubtreeResult, f as ResourcePlannerChartProps, g as TaskActivity$1, h as ResourceTimelineResource } from './index-C7mf06-7.mjs';
3
+ export { B as BuiltInResourceTableColumnId, C as CriticalPathOptions, D as DAY_MS, i as DependencyError, j as GanttChartMode, k as GridConfig, l as GridLine, L as LinkType, M as MonthSpan, m as ResourceTableColumnId, n as ResourceTableColumnWidthMap, o as ResourceTimelineMove, p as ResourceTimelineResourceMenuCommand, q as ScaleTaskSubtreeAnchor, r as ScaleTaskSubtreeErrorCode, s as ScaleTaskSubtreeExternalPolicy, t as ScaleTaskSubtreeOptions, u as ScaleTaskSubtreeWarning, v as TaskActivityTooltipField, w as TaskBarGeometry, W as WeekendBlock, x as alignToWorkingDay, y as areTasksHierarchicallyRelated, z as buildAdjacencyList, E as buildTaskRangeFromEnd, F as buildTaskRangeFromStart, H as calculateSuccessorDate, I as cascadeByLinks, J as clampTaskRangeForIncomingFS, K as computeCriticalPath, N as computeLagFromDates, O as computeParentDates, P as computeParentProgress, Q as detectCycles, U as extendCriticalIdsToParents, X as findParentId, Y as getAllDependencyEdges, Z as getAllDescendants, _ as getBusinessDayOffset, $ as getChildren, a0 as getDependencyLag, a1 as getSuccessorChain, a2 as getTaskDuration, a3 as getTransitiveCascadeChain, a4 as isAncestorTask, a5 as isTaskParent, a6 as moveTaskRange, a7 as moveTaskWithCascade, a8 as normalizeDependencyLag, a9 as normalizePredecessorDates, aa as normalizeTaskDependencyLags, ab as normalizeUTCDate, ac as parseDateOnly, ad as recalculateIncomingLags, ae as recalculateProjectSchedule, af as recalculateTaskFromDependencies, ag as reflowTasksOnModeSwitch, ah as removeDependenciesBetweenTasks, ai as resizeTaskWithCascade, aj as scaleTaskSubtreeDuration, ak as shiftBusinessDayOffset, al as universalCascade, am as validateDependencies } from './index-C7mf06-7.mjs';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as RadixPopover from '@radix-ui/react-popover';
6
6
 
@@ -557,6 +557,8 @@ interface TaskActivity {
557
557
  * Task dependency definition
558
558
  */
559
559
  interface TaskDependency {
560
+ /** Presentation only: hide arrows and predecessor labels, retaining constraints and cascades. */
561
+ hidden?: boolean;
560
562
  /** ID of the predecessor task */
561
563
  taskId: string;
562
564
  /** Link type: FS, SS, FF, or SF */
@@ -697,6 +699,8 @@ interface TaskChartSharedProps<TTask extends Task = Task> {
697
699
  showActivityLinks?: boolean;
698
700
  /** Explicit visual activity graph. When provided (including []), replaces implicit consecutive-row activity links. */
699
701
  activityDependencies?: readonly TaskActivityDependency[];
702
+ /** Controlled chain selection: internal edges only, with optional incoming/outgoing edges. Undefined shows the whole graph. */
703
+ activityDependencyHighlight?: ActivityDependencyHighlight;
700
704
  /** Label the lag («+N») on work links (default: true). */
701
705
  showActivityLag?: boolean;
702
706
  /** Render extra tooltip content for a work (dates, crew — anything). */
@@ -1890,4 +1894,4 @@ interface ResourceTimelineLayoutResult<TItem extends ResourceTimelineItem = Reso
1890
1894
  }
1891
1895
  declare const layoutResourceTimelineItems: <TItem extends ResourceTimelineItem = ResourceTimelineItem>(resources: Array<ResourceTimelineResource<TItem>>, options: ResourceTimelineLayoutOptions) => ResourceTimelineLayoutResult<TItem>;
1892
1896
 
1893
- export { ACTIVITY_LANES_PADDING, ACTIVITY_LANE_BAR_HEIGHT, ACTIVITY_LANE_STEP, type ActivityChainPushResult, type ActivityChainShift, type ActivityChainTask, type ActivityLanesLayout, type ActivitySegment, type ActivityStartConstraint, ActivityTooltipContext, type BuiltInTaskListColumnId, Button, type ButtonProps, Calendar, type CalendarProps, type CustomDayConfig, type CustomDayPredicateConfig, DatePicker, type DatePickerProps, DragGuideLines, type ExportToPdfHeaderOptions, type ExportToPdfOptions, GanttChart, type GanttChartHandle, type GanttChartProps, GanttDateRange, type GanttModeProps, GanttScheduleIntent, GenerationSkeletonRows, type GenerationSkeletonRowsProps, type GenerationSkeletonTaskListLayout, type GenerationSkeletonVariant, GridBackground, Input, type InputProps, MIN_EDGE_ZONE_PX, MIN_MOVE_ZONE_PX, type MonthBlock, type PlanFactCellCommitContext, type PlanFactCellKind, PlanFactMatrix, type PlanFactModeProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type ReorderDropPlacement, type ReorderDropTarget, ResourcePlannerChartProps, ResourceTimelineChart, type ResourceTimelineConflictRange, ResourceTimelineItem, type ResourceTimelineLayoutDiagnostic, type ResourceTimelineLayoutItem, type ResourceTimelineLayoutOptions, type ResourceTimelineLayoutResult, type ResourceTimelineLayoutRow, ResourceTimelineResource, ScaleTaskSubtreeResult, TableMatrix, type TableMatrixCellClickContext, type TableMatrixColumn, type TableMatrixColumnGroup, type TableMatrixDateOverlay, type TableMatrixModeProps, type Task, TaskActivity$1 as TaskActivity, TaskActivityDependency, TaskDateChangeMode, type TaskDependency, TaskList, type TaskListColumn, type TaskListColumnContext, type TaskListColumnId, type TaskListColumnWidthMap, type TaskListMenuCommand, type TaskListProps, type TaskPredicate, TaskRow, TimeScaleHeader, TimelineMarker, TodayIndicator, ValidationResult, type VisibleReorderPlan, type VisibleReorderPosition, type WeekBlock, type WeekSpan, type WithoutDepsOptions, type YearSpan, activityBounds, activityChainMinStartDelta, activityLanesExtraHeight, activitySpanMs, activityStartConstraint, addBusinessDays, and, calculateBezierPath, calculateDependencyPath, calculateGridLines, calculateGridWidth, calculateMilestoneConnectionBounds, calculateMilestoneGeometry, calculateMonthGridLines, calculateOrthogonalPath, calculateTaskBar, calculateWeekGridLines, calculateWeekendBlocks, clampDateRangeForIncomingFS, computeActivityLanes, createCustomDayPredicate, createDateKey, detectEdgeZone, expired, flattenHierarchy, formatDateLabel, formatDateRangeLabel, getBusinessDaysCount, getCursorForPosition, getDateRangeDays, getDayOffset, getMonthBlocks, getMonthDays, getMonthSpans, getMultiMonthDays, getTodayLocalUtcDate, getVisibleReorderPlan, getVisibleReorderPosition, getWeekBlocks, getWeekSpans, getYearSpans, inDateRange, isTaskExpired, isToday, isWeekend, layoutResourceTimelineItems, nameContains, normalizeHierarchyTasks, normalizeTaskDates, not, or, packIntervals, parseUTCDate, pixelsToDate, progressInRange, pushActivityChain, resolveDateRangeFromPixels, resolveTaskHorizontalGeometry, shiftActivityChain, shiftActivityDate, subtractBusinessDays, useTaskDrag, withoutDeps };
1897
+ export { ACTIVITY_LANES_PADDING, ACTIVITY_LANE_BAR_HEIGHT, ACTIVITY_LANE_STEP, type ActivityChainPushResult, type ActivityChainShift, type ActivityChainTask, ActivityDependencyHighlight, type ActivityLanesLayout, type ActivitySegment, type ActivityStartConstraint, ActivityTooltipContext, type BuiltInTaskListColumnId, Button, type ButtonProps, Calendar, type CalendarProps, type CustomDayConfig, type CustomDayPredicateConfig, DatePicker, type DatePickerProps, DragGuideLines, type ExportToPdfHeaderOptions, type ExportToPdfOptions, GanttChart, type GanttChartHandle, type GanttChartProps, GanttDateRange, type GanttModeProps, GanttScheduleIntent, GenerationSkeletonRows, type GenerationSkeletonRowsProps, type GenerationSkeletonTaskListLayout, type GenerationSkeletonVariant, GridBackground, Input, type InputProps, MIN_EDGE_ZONE_PX, MIN_MOVE_ZONE_PX, type MonthBlock, type PlanFactCellCommitContext, type PlanFactCellKind, PlanFactMatrix, type PlanFactModeProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type ReorderDropPlacement, type ReorderDropTarget, ResourcePlannerChartProps, ResourceTimelineChart, type ResourceTimelineConflictRange, ResourceTimelineItem, type ResourceTimelineLayoutDiagnostic, type ResourceTimelineLayoutItem, type ResourceTimelineLayoutOptions, type ResourceTimelineLayoutResult, type ResourceTimelineLayoutRow, ResourceTimelineResource, ScaleTaskSubtreeResult, TableMatrix, type TableMatrixCellClickContext, type TableMatrixColumn, type TableMatrixColumnGroup, type TableMatrixDateOverlay, type TableMatrixModeProps, type Task, TaskActivity$1 as TaskActivity, TaskActivityDependency, TaskDateChangeMode, type TaskDependency, TaskList, type TaskListColumn, type TaskListColumnContext, type TaskListColumnId, type TaskListColumnWidthMap, type TaskListMenuCommand, type TaskListProps, type TaskPredicate, TaskRow, TimeScaleHeader, TimelineMarker, TodayIndicator, ValidationResult, type VisibleReorderPlan, type VisibleReorderPosition, type WeekBlock, type WeekSpan, type WithoutDepsOptions, type YearSpan, activityBounds, activityChainMinStartDelta, activityLanesExtraHeight, activitySpanMs, activityStartConstraint, addBusinessDays, and, calculateBezierPath, calculateDependencyPath, calculateGridLines, calculateGridWidth, calculateMilestoneConnectionBounds, calculateMilestoneGeometry, calculateMonthGridLines, calculateOrthogonalPath, calculateTaskBar, calculateWeekGridLines, calculateWeekendBlocks, clampDateRangeForIncomingFS, computeActivityLanes, createCustomDayPredicate, createDateKey, detectEdgeZone, expired, flattenHierarchy, formatDateLabel, formatDateRangeLabel, getBusinessDaysCount, getCursorForPosition, getDateRangeDays, getDayOffset, getMonthBlocks, getMonthDays, getMonthSpans, getMultiMonthDays, getTodayLocalUtcDate, getVisibleReorderPlan, getVisibleReorderPosition, getWeekBlocks, getWeekSpans, getYearSpans, inDateRange, isTaskExpired, isToday, isWeekend, layoutResourceTimelineItems, nameContains, normalizeHierarchyTasks, normalizeTaskDates, not, or, packIntervals, parseUTCDate, pixelsToDate, progressInRange, pushActivityChain, resolveDateRangeFromPixels, resolveTaskHorizontalGeometry, shiftActivityChain, shiftActivityDate, subtractBusinessDays, useTaskDrag, withoutDeps };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React$1, { ReactNode } from 'react';
2
- import { T as Task$1, R as ResourceTimelineItem, G as GanttScheduleIntent, V as ValidationResult, a as GanttDateRange, b as TaskActivityDependency, A as ActivityTooltipContext, c as TimelineMarker, d as TaskDateChangeMode, S as ScaleTaskSubtreeResult, e as ResourcePlannerChartProps, f as TaskActivity$1, g as ResourceTimelineResource } from './index-BfFHn43h.js';
3
- export { B as BuiltInResourceTableColumnId, C as CriticalPathOptions, D as DAY_MS, h as DependencyError, i as GanttChartMode, j as GridConfig, k as GridLine, L as LinkType, M as MonthSpan, l as ResourceTableColumnId, m as ResourceTableColumnWidthMap, n as ResourceTimelineMove, o as ResourceTimelineResourceMenuCommand, p as ScaleTaskSubtreeAnchor, q as ScaleTaskSubtreeErrorCode, r as ScaleTaskSubtreeExternalPolicy, s as ScaleTaskSubtreeOptions, t as ScaleTaskSubtreeWarning, u as TaskActivityTooltipField, v as TaskBarGeometry, W as WeekendBlock, w as alignToWorkingDay, x as areTasksHierarchicallyRelated, y as buildAdjacencyList, z as buildTaskRangeFromEnd, E as buildTaskRangeFromStart, F as calculateSuccessorDate, H as cascadeByLinks, I as clampTaskRangeForIncomingFS, J as computeCriticalPath, K as computeLagFromDates, N as computeParentDates, O as computeParentProgress, P as detectCycles, Q as extendCriticalIdsToParents, U as findParentId, X as getAllDependencyEdges, Y as getAllDescendants, Z as getBusinessDayOffset, _ as getChildren, $ as getDependencyLag, a0 as getSuccessorChain, a1 as getTaskDuration, a2 as getTransitiveCascadeChain, a3 as isAncestorTask, a4 as isTaskParent, a5 as moveTaskRange, a6 as moveTaskWithCascade, a7 as normalizeDependencyLag, a8 as normalizePredecessorDates, a9 as normalizeTaskDependencyLags, aa as normalizeUTCDate, ab as parseDateOnly, ac as recalculateIncomingLags, ad as recalculateProjectSchedule, ae as recalculateTaskFromDependencies, af as reflowTasksOnModeSwitch, ag as removeDependenciesBetweenTasks, ah as resizeTaskWithCascade, ai as scaleTaskSubtreeDuration, aj as shiftBusinessDayOffset, ak as universalCascade, al as validateDependencies } from './index-BfFHn43h.js';
2
+ import { T as Task$1, R as ResourceTimelineItem, G as GanttScheduleIntent, V as ValidationResult, a as GanttDateRange, b as TaskActivityDependency, A as ActivityDependencyHighlight, c as ActivityTooltipContext, d as TimelineMarker, e as TaskDateChangeMode, S as ScaleTaskSubtreeResult, f as ResourcePlannerChartProps, g as TaskActivity$1, h as ResourceTimelineResource } from './index-C7mf06-7.js';
3
+ export { B as BuiltInResourceTableColumnId, C as CriticalPathOptions, D as DAY_MS, i as DependencyError, j as GanttChartMode, k as GridConfig, l as GridLine, L as LinkType, M as MonthSpan, m as ResourceTableColumnId, n as ResourceTableColumnWidthMap, o as ResourceTimelineMove, p as ResourceTimelineResourceMenuCommand, q as ScaleTaskSubtreeAnchor, r as ScaleTaskSubtreeErrorCode, s as ScaleTaskSubtreeExternalPolicy, t as ScaleTaskSubtreeOptions, u as ScaleTaskSubtreeWarning, v as TaskActivityTooltipField, w as TaskBarGeometry, W as WeekendBlock, x as alignToWorkingDay, y as areTasksHierarchicallyRelated, z as buildAdjacencyList, E as buildTaskRangeFromEnd, F as buildTaskRangeFromStart, H as calculateSuccessorDate, I as cascadeByLinks, J as clampTaskRangeForIncomingFS, K as computeCriticalPath, N as computeLagFromDates, O as computeParentDates, P as computeParentProgress, Q as detectCycles, U as extendCriticalIdsToParents, X as findParentId, Y as getAllDependencyEdges, Z as getAllDescendants, _ as getBusinessDayOffset, $ as getChildren, a0 as getDependencyLag, a1 as getSuccessorChain, a2 as getTaskDuration, a3 as getTransitiveCascadeChain, a4 as isAncestorTask, a5 as isTaskParent, a6 as moveTaskRange, a7 as moveTaskWithCascade, a8 as normalizeDependencyLag, a9 as normalizePredecessorDates, aa as normalizeTaskDependencyLags, ab as normalizeUTCDate, ac as parseDateOnly, ad as recalculateIncomingLags, ae as recalculateProjectSchedule, af as recalculateTaskFromDependencies, ag as reflowTasksOnModeSwitch, ah as removeDependenciesBetweenTasks, ai as resizeTaskWithCascade, aj as scaleTaskSubtreeDuration, ak as shiftBusinessDayOffset, al as universalCascade, am as validateDependencies } from './index-C7mf06-7.js';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as RadixPopover from '@radix-ui/react-popover';
6
6
 
@@ -557,6 +557,8 @@ interface TaskActivity {
557
557
  * Task dependency definition
558
558
  */
559
559
  interface TaskDependency {
560
+ /** Presentation only: hide arrows and predecessor labels, retaining constraints and cascades. */
561
+ hidden?: boolean;
560
562
  /** ID of the predecessor task */
561
563
  taskId: string;
562
564
  /** Link type: FS, SS, FF, or SF */
@@ -697,6 +699,8 @@ interface TaskChartSharedProps<TTask extends Task = Task> {
697
699
  showActivityLinks?: boolean;
698
700
  /** Explicit visual activity graph. When provided (including []), replaces implicit consecutive-row activity links. */
699
701
  activityDependencies?: readonly TaskActivityDependency[];
702
+ /** Controlled chain selection: internal edges only, with optional incoming/outgoing edges. Undefined shows the whole graph. */
703
+ activityDependencyHighlight?: ActivityDependencyHighlight;
700
704
  /** Label the lag («+N») on work links (default: true). */
701
705
  showActivityLag?: boolean;
702
706
  /** Render extra tooltip content for a work (dates, crew — anything). */
@@ -1890,4 +1894,4 @@ interface ResourceTimelineLayoutResult<TItem extends ResourceTimelineItem = Reso
1890
1894
  }
1891
1895
  declare const layoutResourceTimelineItems: <TItem extends ResourceTimelineItem = ResourceTimelineItem>(resources: Array<ResourceTimelineResource<TItem>>, options: ResourceTimelineLayoutOptions) => ResourceTimelineLayoutResult<TItem>;
1892
1896
 
1893
- export { ACTIVITY_LANES_PADDING, ACTIVITY_LANE_BAR_HEIGHT, ACTIVITY_LANE_STEP, type ActivityChainPushResult, type ActivityChainShift, type ActivityChainTask, type ActivityLanesLayout, type ActivitySegment, type ActivityStartConstraint, ActivityTooltipContext, type BuiltInTaskListColumnId, Button, type ButtonProps, Calendar, type CalendarProps, type CustomDayConfig, type CustomDayPredicateConfig, DatePicker, type DatePickerProps, DragGuideLines, type ExportToPdfHeaderOptions, type ExportToPdfOptions, GanttChart, type GanttChartHandle, type GanttChartProps, GanttDateRange, type GanttModeProps, GanttScheduleIntent, GenerationSkeletonRows, type GenerationSkeletonRowsProps, type GenerationSkeletonTaskListLayout, type GenerationSkeletonVariant, GridBackground, Input, type InputProps, MIN_EDGE_ZONE_PX, MIN_MOVE_ZONE_PX, type MonthBlock, type PlanFactCellCommitContext, type PlanFactCellKind, PlanFactMatrix, type PlanFactModeProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type ReorderDropPlacement, type ReorderDropTarget, ResourcePlannerChartProps, ResourceTimelineChart, type ResourceTimelineConflictRange, ResourceTimelineItem, type ResourceTimelineLayoutDiagnostic, type ResourceTimelineLayoutItem, type ResourceTimelineLayoutOptions, type ResourceTimelineLayoutResult, type ResourceTimelineLayoutRow, ResourceTimelineResource, ScaleTaskSubtreeResult, TableMatrix, type TableMatrixCellClickContext, type TableMatrixColumn, type TableMatrixColumnGroup, type TableMatrixDateOverlay, type TableMatrixModeProps, type Task, TaskActivity$1 as TaskActivity, TaskActivityDependency, TaskDateChangeMode, type TaskDependency, TaskList, type TaskListColumn, type TaskListColumnContext, type TaskListColumnId, type TaskListColumnWidthMap, type TaskListMenuCommand, type TaskListProps, type TaskPredicate, TaskRow, TimeScaleHeader, TimelineMarker, TodayIndicator, ValidationResult, type VisibleReorderPlan, type VisibleReorderPosition, type WeekBlock, type WeekSpan, type WithoutDepsOptions, type YearSpan, activityBounds, activityChainMinStartDelta, activityLanesExtraHeight, activitySpanMs, activityStartConstraint, addBusinessDays, and, calculateBezierPath, calculateDependencyPath, calculateGridLines, calculateGridWidth, calculateMilestoneConnectionBounds, calculateMilestoneGeometry, calculateMonthGridLines, calculateOrthogonalPath, calculateTaskBar, calculateWeekGridLines, calculateWeekendBlocks, clampDateRangeForIncomingFS, computeActivityLanes, createCustomDayPredicate, createDateKey, detectEdgeZone, expired, flattenHierarchy, formatDateLabel, formatDateRangeLabel, getBusinessDaysCount, getCursorForPosition, getDateRangeDays, getDayOffset, getMonthBlocks, getMonthDays, getMonthSpans, getMultiMonthDays, getTodayLocalUtcDate, getVisibleReorderPlan, getVisibleReorderPosition, getWeekBlocks, getWeekSpans, getYearSpans, inDateRange, isTaskExpired, isToday, isWeekend, layoutResourceTimelineItems, nameContains, normalizeHierarchyTasks, normalizeTaskDates, not, or, packIntervals, parseUTCDate, pixelsToDate, progressInRange, pushActivityChain, resolveDateRangeFromPixels, resolveTaskHorizontalGeometry, shiftActivityChain, shiftActivityDate, subtractBusinessDays, useTaskDrag, withoutDeps };
1897
+ export { ACTIVITY_LANES_PADDING, ACTIVITY_LANE_BAR_HEIGHT, ACTIVITY_LANE_STEP, type ActivityChainPushResult, type ActivityChainShift, type ActivityChainTask, ActivityDependencyHighlight, type ActivityLanesLayout, type ActivitySegment, type ActivityStartConstraint, ActivityTooltipContext, type BuiltInTaskListColumnId, Button, type ButtonProps, Calendar, type CalendarProps, type CustomDayConfig, type CustomDayPredicateConfig, DatePicker, type DatePickerProps, DragGuideLines, type ExportToPdfHeaderOptions, type ExportToPdfOptions, GanttChart, type GanttChartHandle, type GanttChartProps, GanttDateRange, type GanttModeProps, GanttScheduleIntent, GenerationSkeletonRows, type GenerationSkeletonRowsProps, type GenerationSkeletonTaskListLayout, type GenerationSkeletonVariant, GridBackground, Input, type InputProps, MIN_EDGE_ZONE_PX, MIN_MOVE_ZONE_PX, type MonthBlock, type PlanFactCellCommitContext, type PlanFactCellKind, PlanFactMatrix, type PlanFactModeProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type ReorderDropPlacement, type ReorderDropTarget, ResourcePlannerChartProps, ResourceTimelineChart, type ResourceTimelineConflictRange, ResourceTimelineItem, type ResourceTimelineLayoutDiagnostic, type ResourceTimelineLayoutItem, type ResourceTimelineLayoutOptions, type ResourceTimelineLayoutResult, type ResourceTimelineLayoutRow, ResourceTimelineResource, ScaleTaskSubtreeResult, TableMatrix, type TableMatrixCellClickContext, type TableMatrixColumn, type TableMatrixColumnGroup, type TableMatrixDateOverlay, type TableMatrixModeProps, type Task, TaskActivity$1 as TaskActivity, TaskActivityDependency, TaskDateChangeMode, type TaskDependency, TaskList, type TaskListColumn, type TaskListColumnContext, type TaskListColumnId, type TaskListColumnWidthMap, type TaskListMenuCommand, type TaskListProps, type TaskPredicate, TaskRow, TimeScaleHeader, TimelineMarker, TodayIndicator, ValidationResult, type VisibleReorderPlan, type VisibleReorderPosition, type WeekBlock, type WeekSpan, type WithoutDepsOptions, type YearSpan, activityBounds, activityChainMinStartDelta, activityLanesExtraHeight, activitySpanMs, activityStartConstraint, addBusinessDays, and, calculateBezierPath, calculateDependencyPath, calculateGridLines, calculateGridWidth, calculateMilestoneConnectionBounds, calculateMilestoneGeometry, calculateMonthGridLines, calculateOrthogonalPath, calculateTaskBar, calculateWeekGridLines, calculateWeekendBlocks, clampDateRangeForIncomingFS, computeActivityLanes, createCustomDayPredicate, createDateKey, detectEdgeZone, expired, flattenHierarchy, formatDateLabel, formatDateRangeLabel, getBusinessDaysCount, getCursorForPosition, getDateRangeDays, getDayOffset, getMonthBlocks, getMonthDays, getMonthSpans, getMultiMonthDays, getTodayLocalUtcDate, getVisibleReorderPlan, getVisibleReorderPosition, getWeekBlocks, getWeekSpans, getYearSpans, inDateRange, isTaskExpired, isToday, isWeekend, layoutResourceTimelineItems, nameContains, normalizeHierarchyTasks, normalizeTaskDates, not, or, packIntervals, parseUTCDate, pixelsToDate, progressInRange, pushActivityChain, resolveDateRangeFromPixels, resolveTaskHorizontalGeometry, shiftActivityChain, shiftActivityDate, subtractBusinessDays, useTaskDrag, withoutDeps };
package/dist/index.js CHANGED
@@ -6321,6 +6321,7 @@ var DependencyLines = import_react7.default.memo(({
6321
6321
  continue;
6322
6322
  }
6323
6323
  for (const dependency of successorTaskForEdges.dependencies) {
6324
+ if (dependency.hidden) continue;
6324
6325
  if (!taskPositions.has(dependency.taskId)) {
6325
6326
  continue;
6326
6327
  }
@@ -6603,7 +6604,17 @@ function ActivityDependencyLines(props) {
6603
6604
  const flattened = [], rendered = [], tops = [], heights = [];
6604
6605
  const indices = /* @__PURE__ */ new Map();
6605
6606
  const incoming = /* @__PURE__ */ new Map();
6607
+ const selected = props.highlight ? new Set(props.highlight.activities.map((activity) => activityKey(activity.taskId, activity.activityId))) : void 0;
6608
+ const highlightMode = props.highlight?.mode ?? "chain";
6606
6609
  for (const edge of dependencies) {
6610
+ if (selected) {
6611
+ const fromSelected = selected.has(activityKey(edge.predecessorTaskId, edge.predecessorActivityId));
6612
+ const toSelected = selected.has(activityKey(edge.successorTaskId, edge.successorActivityId));
6613
+ const internal = fromSelected && toSelected;
6614
+ const incoming2 = !fromSelected && toSelected && (highlightMode === "chain-incoming" || highlightMode === "chain-all");
6615
+ const outgoing = fromSelected && !toSelected && (highlightMode === "chain-outgoing" || highlightMode === "chain-all");
6616
+ if (!internal && !incoming2 && !outgoing) continue;
6617
+ }
6607
6618
  const id = activityKey(edge.successorTaskId, edge.successorActivityId);
6608
6619
  const values = incoming.get(id) ?? [];
6609
6620
  values.push({ taskId: activityKey(edge.predecessorTaskId, edge.predecessorActivityId), type: edge.type, lag: edge.lag });
@@ -6630,7 +6641,7 @@ function ActivityDependencyLines(props) {
6630
6641
  }
6631
6642
  }
6632
6643
  return { flattened, rendered, indices, tops, heights };
6633
- }, [tasks, dependencies, monthStart, dayWidth, props.rowIndexByTaskId, props.rowTops, props.rowHeights, props.rowHeight, props.renderedTaskIds, previewStore, previewVersion]);
6644
+ }, [tasks, dependencies, props.highlight, monthStart, dayWidth, props.rowIndexByTaskId, props.rowTops, props.rowHeights, props.rowHeight, props.renderedTaskIds, previewStore, previewVersion]);
6634
6645
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DependencyLines, { tasks: layout.rendered, allTasks: layout.flattened, monthStart, dayWidth, rowHeight: ACTIVITY_LANE_BAR_HEIGHT, gridWidth: props.gridWidth, totalHeight: props.totalHeight, rowIndexByTaskId: layout.indices, rowTops: layout.tops, rowHeights: layout.heights, horizontalWindow: props.horizontalWindow, showLag: props.showLag, activityEndpoints: true });
6635
6646
  }
6636
6647
 
@@ -8216,7 +8227,7 @@ var TaskListRow = import_react12.default.memo(
8216
8227
  const [highlightedDependencyIndex, setHighlightedDependencyIndex] = (0, import_react12.useState)(0);
8217
8228
  const chips = (0, import_react12.useMemo)(() => {
8218
8229
  const taskById = new Map((allTasks ?? []).map((t) => [t.id, t]));
8219
- return (task.dependencies ?? []).map((dep) => {
8230
+ return (task.dependencies ?? []).filter((dep) => !dep.hidden).map((dep) => {
8220
8231
  const pred = taskById.get(dep.taskId);
8221
8232
  const lag = getDependencyLag(dep);
8222
8233
  return { dep, lag, predecessorName: pred?.name ?? dep.taskId };
@@ -15506,6 +15517,7 @@ function TaskGanttChartInner(props, ref) {
15506
15517
  activityActivationMode = "none",
15507
15518
  showActivityLinks = true,
15508
15519
  activityDependencies,
15520
+ activityDependencyHighlight,
15509
15521
  showActivityLag = true,
15510
15522
  activityTooltip,
15511
15523
  timelineMarkers,
@@ -16995,7 +17007,7 @@ function TaskGanttChartInner(props, ref) {
16995
17007
  onHoverEnd: () => setActiveTimelineTooltip(null)
16996
17008
  }
16997
17009
  ),
16998
- showActivityLinks && activityDependencies !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ActivityDependencyLines, { tasks: visibleTasks, renderedTaskIds: renderedTaskIdsRef.current, dependencies: activityDependencies, monthStart, dayWidth, rowHeight: effectiveRowHeight, gridWidth: renderGridWidth, totalHeight: totalGridHeight, rowIndexByTaskId: visibleTaskIndexMap, rowTops: compositeRowLayout.tops, rowHeights: compositeRowLayout.heights, showLag: showActivityLag, previewStore: activityPreviewStore, horizontalWindow }),
17010
+ showActivityLinks && activityDependencies !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ActivityDependencyLines, { tasks: visibleTasks, renderedTaskIds: renderedTaskIdsRef.current, dependencies: activityDependencies, highlight: activityDependencyHighlight, monthStart, dayWidth, rowHeight: effectiveRowHeight, gridWidth: renderGridWidth, totalHeight: totalGridHeight, rowIndexByTaskId: visibleTaskIndexMap, rowTops: compositeRowLayout.tops, rowHeights: compositeRowLayout.heights, showLag: showActivityLag, previewStore: activityPreviewStore, horizontalWindow }),
16999
17011
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
17000
17012
  DependencyLines_default,
17001
17013
  {