gantt-lib 0.146.5 → 0.146.6

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.mjs CHANGED
@@ -3690,6 +3690,15 @@ function normalizeHierarchyTasks(tasks, businessDays = false, weekendPredicate)
3690
3690
  }
3691
3691
  return orderedTasks;
3692
3692
  }
3693
+ function compactGroupBoundaryClasses(tasks, index, compositeParents) {
3694
+ const parentId = tasks[index]?.parentId;
3695
+ if (!parentId || !compositeParents.has(parentId)) return void 0;
3696
+ const classes = [
3697
+ tasks[index - 1]?.parentId !== parentId ? "gantt-compact-group-start" : "",
3698
+ tasks[index + 1]?.parentId !== parentId ? "gantt-compact-group-end" : ""
3699
+ ].filter(Boolean).join(" ");
3700
+ return classes || void 0;
3701
+ }
3693
3702
 
3694
3703
  // src/components/TimeScaleHeader/TimeScaleHeader.tsx
3695
3704
  import { useMemo } from "react";
@@ -11490,6 +11499,7 @@ var TaskList = ({
11490
11499
  return /* @__PURE__ */ jsx18(
11491
11500
  "div",
11492
11501
  {
11502
+ className: compactGroupBoundaryClasses(visibleTasks, index, compositeParentsById),
11493
11503
  style: {
11494
11504
  position: "absolute",
11495
11505
  top: `${topOffset}px`,
@@ -17123,6 +17133,7 @@ function TaskGanttChartInner(props, ref) {
17123
17133
  renderedChartTasks.map(({ task, index }) => /* @__PURE__ */ jsx22(
17124
17134
  "div",
17125
17135
  {
17136
+ className: compactGroupBoundaryClasses(previewVisibleTasks, index, compositeParentsById),
17126
17137
  style: {
17127
17138
  position: "absolute",
17128
17139
  top: `${compositeRowLayout.tops[index]}px`,
@@ -17327,6 +17338,7 @@ export {
17327
17338
  cascadeByLinks,
17328
17339
  clampDateRangeForIncomingFS,
17329
17340
  clampTaskRangeForIncomingFS,
17341
+ compactGroupBoundaryClasses,
17330
17342
  computeActivityLanes,
17331
17343
  computeCriticalPath,
17332
17344
  computeLagFromDates,