gantt-task-react-v 1.0.6 → 1.0.8

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.
@@ -5,6 +5,7 @@ import { CalendarProps } from "../calendar/calendar";
5
5
  import { TaskGanttContentProps } from "./task-gantt-content";
6
6
  import { GanttTaskBarActions } from "../../types";
7
7
  export interface TaskGanttProps extends GanttTaskBarActions {
8
+ ganttHeight?: number;
8
9
  barProps: TaskGanttContentProps;
9
10
  calendarProps: Omit<CalendarProps, "scrollRef">;
10
11
  fullRowHeight: number;
@@ -14,6 +14,7 @@ export type TaskListProps = {
14
14
  distances: Distances;
15
15
  fullRowHeight: number;
16
16
  ganttFullHeight: number;
17
+ ganttHeight?: number;
17
18
  getTaskCurrentState: (task: Task) => Task;
18
19
  handleAddTask: (task: Task | null) => void;
19
20
  handleDeleteTasks: (task: RenderTask[]) => void;
@@ -10720,7 +10720,8 @@ const TaskListInner = ({
10720
10720
  tasks,
10721
10721
  onResizeColumn,
10722
10722
  canReorderTasks,
10723
- tableBottom
10723
+ tableBottom,
10724
+ ganttHeight
10724
10725
  }) => {
10725
10726
  const [
10726
10727
  columns,
@@ -10829,7 +10830,7 @@ const TaskListInner = ({
10829
10830
  className: styles$d.horizontalContainer,
10830
10831
  style: {
10831
10832
  height: Math.min(
10832
- ganttFullHeight,
10833
+ ganttHeight || ganttFullHeight,
10833
10834
  distances.minimumRowDisplayed * distances.rowHeight
10834
10835
  ),
10835
10836
  width: taskListWidth
@@ -19833,6 +19834,7 @@ const Gantt = (props) => {
19833
19834
  distances,
19834
19835
  fullRowHeight,
19835
19836
  ganttFullHeight,
19837
+ ganttHeight,
19836
19838
  getTaskCurrentState,
19837
19839
  handleAddTask,
19838
19840
  handleDeleteTasks,
@@ -19862,6 +19864,7 @@ const Gantt = (props) => {
19862
19864
  distances,
19863
19865
  fullRowHeight,
19864
19866
  ganttFullHeight,
19867
+ ganttHeight,
19865
19868
  getTaskCurrentState,
19866
19869
  handleAddTask,
19867
19870
  handleDeleteTasks,
@@ -19902,6 +19905,7 @@ const Gantt = (props) => {
19902
19905
  fullRowHeight,
19903
19906
  fullSvgWidth,
19904
19907
  ganttFullHeight,
19908
+ ganttHeight,
19905
19909
  ganttSVGRef,
19906
19910
  ganttTodayProps: gridProps,
19907
19911
  horizontalContainerRef,
@@ -10737,7 +10737,8 @@
10737
10737
  tasks,
10738
10738
  onResizeColumn,
10739
10739
  canReorderTasks,
10740
- tableBottom
10740
+ tableBottom,
10741
+ ganttHeight
10741
10742
  }) => {
10742
10743
  const [
10743
10744
  columns,
@@ -10846,7 +10847,7 @@
10846
10847
  className: styles$d.horizontalContainer,
10847
10848
  style: {
10848
10849
  height: Math.min(
10849
- ganttFullHeight,
10850
+ ganttHeight || ganttFullHeight,
10850
10851
  distances.minimumRowDisplayed * distances.rowHeight
10851
10852
  ),
10852
10853
  width: taskListWidth
@@ -19850,6 +19851,7 @@
19850
19851
  distances,
19851
19852
  fullRowHeight,
19852
19853
  ganttFullHeight,
19854
+ ganttHeight,
19853
19855
  getTaskCurrentState,
19854
19856
  handleAddTask,
19855
19857
  handleDeleteTasks,
@@ -19879,6 +19881,7 @@
19879
19881
  distances,
19880
19882
  fullRowHeight,
19881
19883
  ganttFullHeight,
19884
+ ganttHeight,
19882
19885
  getTaskCurrentState,
19883
19886
  handleAddTask,
19884
19887
  handleDeleteTasks,
@@ -19919,6 +19922,7 @@
19919
19922
  fullRowHeight,
19920
19923
  fullSvgWidth,
19921
19924
  ganttFullHeight,
19925
+ ganttHeight,
19922
19926
  ganttSVGRef,
19923
19927
  ganttTodayProps: gridProps,
19924
19928
  horizontalContainerRef,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Interactive Gantt Chart for React with TypeScript.",
5
5
  "author": "aguilanbon",
6
6
  "homepage": "https://github.com/aguilanbon/gantt-task-react-v",