gantt-lib 0.132.0 → 0.132.1

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 CHANGED
@@ -839,6 +839,7 @@ interface GenerationSkeletonRowsProps {
839
839
  startIndex?: number;
840
840
  taskListLayout?: GenerationSkeletonTaskListLayout;
841
841
  chartDayWidth?: number;
842
+ chartStartDayOffset?: number;
842
843
  }
843
844
  declare const GenerationSkeletonRows: React$1.FC<GenerationSkeletonRowsProps>;
844
845
 
package/dist/index.d.ts CHANGED
@@ -839,6 +839,7 @@ interface GenerationSkeletonRowsProps {
839
839
  startIndex?: number;
840
840
  taskListLayout?: GenerationSkeletonTaskListLayout;
841
841
  chartDayWidth?: number;
842
+ chartStartDayOffset?: number;
842
843
  }
843
844
  declare const GenerationSkeletonRows: React$1.FC<GenerationSkeletonRowsProps>;
844
845
 
package/dist/index.js CHANGED
@@ -8656,7 +8656,8 @@ var GenerationSkeletonRows = ({
8656
8656
  variant,
8657
8657
  startIndex = 0,
8658
8658
  taskListLayout,
8659
- chartDayWidth = 40
8659
+ chartDayWidth = 40,
8660
+ chartStartDayOffset = 0
8660
8661
  }) => {
8661
8662
  const safeCount = clampCount(count);
8662
8663
  if (safeCount === 0) return null;
@@ -8675,7 +8676,10 @@ var GenerationSkeletonRows = ({
8675
8676
  const shortShape = rowIndex % 3 === 1;
8676
8677
  const mediumShape = rowIndex % 3 === 2;
8677
8678
  const chartBarDays = 5 + rowIndex % 6;
8678
- const chartBarStyle = variant === "chart" ? { width: `${chartBarDays * Math.max(1, chartDayWidth)}px` } : void 0;
8679
+ const chartBarStyle = variant === "chart" ? {
8680
+ width: `${chartBarDays * Math.max(1, chartDayWidth)}px`,
8681
+ marginLeft: `${Math.max(0, chartStartDayOffset) * Math.max(1, chartDayWidth)}px`
8682
+ } : void 0;
8679
8683
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8680
8684
  "div",
8681
8685
  {
@@ -15473,7 +15477,8 @@ function TaskGanttChartInner(props, ref) {
15473
15477
  rowHeight: effectiveRowHeight,
15474
15478
  variant: "chart",
15475
15479
  startIndex: visibleTasks.length,
15476
- chartDayWidth: dayWidth
15480
+ chartDayWidth: dayWidth,
15481
+ chartStartDayOffset: todayInRange ? todayIndex : 0
15477
15482
  }
15478
15483
  )
15479
15484
  ]