gantt-task-react-v 1.6.12 → 1.6.14

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.
@@ -45,7 +45,6 @@ export interface TaskGanttContentProps extends GanttTaskBarActions {
45
45
  taskBarMovingAction: (task: RenderTask) => TaskBarMoveAction | null;
46
46
  viewMode: ViewMode;
47
47
  showProgress?: boolean;
48
- showProjectProgress?: boolean;
49
48
  progressColor?: string;
50
49
  }
51
50
  export declare const TaskGanttContent: React.NamedExoticComponent<TaskGanttContentProps>;
@@ -33,7 +33,6 @@ export interface TaskItemProps extends Omit<GanttTaskBarActions, "taskBarMovingA
33
33
  renderCustomLabel?: RenderCustomLabel;
34
34
  viewMode: ViewMode;
35
35
  showProgress?: boolean;
36
- showProjectProgress?: boolean;
37
36
  progressColor?: string;
38
37
  }
39
38
  export declare const TaskItem: React.NamedExoticComponent<TaskItemProps>;
@@ -5175,8 +5175,8 @@ const DEFAULT_THEME = {
5175
5175
  projectProgressSelectedColor: "#0097A7",
5176
5176
  projectProgressCriticalColor: "#00838F",
5177
5177
  projectProgressSelectedCriticalColor: "#006064",
5178
- projectBackgroundColor: "#0A0A0A",
5179
- projectBackgroundSelectedColor: "#333333",
5178
+ projectBackgroundColor: "#FFA726",
5179
+ projectBackgroundSelectedColor: "#F57C00",
5180
5180
  projectBackgroundCriticalColor: "#EF6C00",
5181
5181
  projectBackgroundSelectedCriticalColor: "#E65100",
5182
5182
  milestoneBackgroundColor: "#FF7043",
@@ -12658,7 +12658,7 @@ const ProjectDisplay = ({
12658
12658
  },
12659
12659
  className: styles$8.projectWrapper,
12660
12660
  children: [
12661
- showProgress && /* @__PURE__ */ jsx(
12661
+ /* @__PURE__ */ jsx(
12662
12662
  "rect",
12663
12663
  {
12664
12664
  fill: barColor,
@@ -12781,7 +12781,6 @@ const Bar = (props) => {
12781
12781
  movingAction,
12782
12782
  ganttRelationEvent,
12783
12783
  showProgress = true,
12784
- showProjectProgress = false,
12785
12784
  progressColor
12786
12785
  } = props;
12787
12786
  const isSmallWidth = useMemo(() => width < 30, [width]);
@@ -12849,7 +12848,7 @@ const Bar = (props) => {
12849
12848
  isCritical,
12850
12849
  hasChildren,
12851
12850
  startMoveFullTask,
12852
- showProgress: showProjectProgress,
12851
+ showProgress,
12853
12852
  progressColor
12854
12853
  }
12855
12854
  );
@@ -12929,7 +12928,7 @@ const Bar = (props) => {
12929
12928
  }
12930
12929
  ),
12931
12930
  relationHandles,
12932
- (task.type !== "project" || showProjectProgress) && isProgressChangeable(task) && /* @__PURE__ */ jsx(
12931
+ isProgressChangeable(task) && /* @__PURE__ */ jsx(
12933
12932
  BarProgressHandle,
12934
12933
  {
12935
12934
  className: `${styles$9.barHandle} ${isMovingProgress ? styles$9.barHandleImportantVisible : ""} ${isSmallWidth || isMovingDate || isRelationDrawMode ? styles$9.barHandleImportantHidden : ""}`,
@@ -13447,7 +13446,6 @@ const TaskGanttContentInner = (props) => {
13447
13446
  waitCommitTasks,
13448
13447
  viewMode,
13449
13448
  showProgress = true,
13450
- showProjectProgress = false,
13451
13449
  progressColor
13452
13450
  } = props;
13453
13451
  const renderedHolidays = useMemo(() => {
@@ -13618,7 +13616,6 @@ const TaskGanttContentInner = (props) => {
13618
13616
  renderCustomLabel,
13619
13617
  viewMode,
13620
13618
  showProgress,
13621
- showProjectProgress,
13622
13619
  progressColor
13623
13620
  }
13624
13621
  )
@@ -13979,7 +13976,6 @@ const TaskGanttContentInner = (props) => {
13979
13976
  activeArrowKey,
13980
13977
  activeTaskId,
13981
13978
  showProgress,
13982
- showProjectProgress,
13983
13979
  progressColor
13984
13980
  ]);
13985
13981
  return /* @__PURE__ */ jsxs("g", { className: "content", children: [
@@ -19788,7 +19784,6 @@ const Gantt = (props) => {
19788
19784
  todayLabel = "Today",
19789
19785
  dataDateLabel = "Data Date",
19790
19786
  showProgress = true,
19791
- showProjectProgress = false,
19792
19787
  progressColor,
19793
19788
  scrollToTaskId,
19794
19789
  drawer: drawerProps
@@ -21304,7 +21299,6 @@ const Gantt = (props) => {
21304
21299
  visibleTasksMirror,
21305
21300
  viewMode,
21306
21301
  showProgress,
21307
- showProjectProgress,
21308
21302
  progressColor
21309
21303
  }),
21310
21304
  [
@@ -21350,7 +21344,6 @@ const Gantt = (props) => {
21350
21344
  changeInProgress == null ? void 0 : changeInProgress.action,
21351
21345
  handleDeleteTasks,
21352
21346
  showProgress,
21353
- showProjectProgress,
21354
21347
  progressColor
21355
21348
  ]
21356
21349
  );
@@ -5192,8 +5192,8 @@
5192
5192
  projectProgressSelectedColor: "#0097A7",
5193
5193
  projectProgressCriticalColor: "#00838F",
5194
5194
  projectProgressSelectedCriticalColor: "#006064",
5195
- projectBackgroundColor: "#0A0A0A",
5196
- projectBackgroundSelectedColor: "#333333",
5195
+ projectBackgroundColor: "#FFA726",
5196
+ projectBackgroundSelectedColor: "#F57C00",
5197
5197
  projectBackgroundCriticalColor: "#EF6C00",
5198
5198
  projectBackgroundSelectedCriticalColor: "#E65100",
5199
5199
  milestoneBackgroundColor: "#FF7043",
@@ -12675,7 +12675,7 @@
12675
12675
  },
12676
12676
  className: styles$8.projectWrapper,
12677
12677
  children: [
12678
- showProgress && /* @__PURE__ */ jsxRuntime.jsx(
12678
+ /* @__PURE__ */ jsxRuntime.jsx(
12679
12679
  "rect",
12680
12680
  {
12681
12681
  fill: barColor,
@@ -12798,7 +12798,6 @@
12798
12798
  movingAction,
12799
12799
  ganttRelationEvent,
12800
12800
  showProgress = true,
12801
- showProjectProgress = false,
12802
12801
  progressColor
12803
12802
  } = props;
12804
12803
  const isSmallWidth = React.useMemo(() => width < 30, [width]);
@@ -12866,7 +12865,7 @@
12866
12865
  isCritical,
12867
12866
  hasChildren,
12868
12867
  startMoveFullTask,
12869
- showProgress: showProjectProgress,
12868
+ showProgress,
12870
12869
  progressColor
12871
12870
  }
12872
12871
  );
@@ -12946,7 +12945,7 @@
12946
12945
  }
12947
12946
  ),
12948
12947
  relationHandles,
12949
- (task.type !== "project" || showProjectProgress) && isProgressChangeable(task) && /* @__PURE__ */ jsxRuntime.jsx(
12948
+ isProgressChangeable(task) && /* @__PURE__ */ jsxRuntime.jsx(
12950
12949
  BarProgressHandle,
12951
12950
  {
12952
12951
  className: `${styles$9.barHandle} ${isMovingProgress ? styles$9.barHandleImportantVisible : ""} ${isSmallWidth || isMovingDate || isRelationDrawMode ? styles$9.barHandleImportantHidden : ""}`,
@@ -13464,7 +13463,6 @@
13464
13463
  waitCommitTasks,
13465
13464
  viewMode,
13466
13465
  showProgress = true,
13467
- showProjectProgress = false,
13468
13466
  progressColor
13469
13467
  } = props;
13470
13468
  const renderedHolidays = React.useMemo(() => {
@@ -13635,7 +13633,6 @@
13635
13633
  renderCustomLabel,
13636
13634
  viewMode,
13637
13635
  showProgress,
13638
- showProjectProgress,
13639
13636
  progressColor
13640
13637
  }
13641
13638
  )
@@ -13996,7 +13993,6 @@
13996
13993
  activeArrowKey,
13997
13994
  activeTaskId,
13998
13995
  showProgress,
13999
- showProjectProgress,
14000
13996
  progressColor
14001
13997
  ]);
14002
13998
  return /* @__PURE__ */ jsxRuntime.jsxs("g", { className: "content", children: [
@@ -19805,7 +19801,6 @@
19805
19801
  todayLabel = "Today",
19806
19802
  dataDateLabel = "Data Date",
19807
19803
  showProgress = true,
19808
- showProjectProgress = false,
19809
19804
  progressColor,
19810
19805
  scrollToTaskId,
19811
19806
  drawer: drawerProps
@@ -21321,7 +21316,6 @@
21321
21316
  visibleTasksMirror,
21322
21317
  viewMode,
21323
21318
  showProgress,
21324
- showProjectProgress,
21325
21319
  progressColor
21326
21320
  }),
21327
21321
  [
@@ -21367,7 +21361,6 @@
21367
21361
  changeInProgress == null ? void 0 : changeInProgress.action,
21368
21362
  handleDeleteTasks,
21369
21363
  showProgress,
21370
- showProjectProgress,
21371
21364
  progressColor
21372
21365
  ]
21373
21366
  );
@@ -407,10 +407,6 @@ export interface GanttProps {
407
407
  * Show/hide progress bar on task bars. Defaults to true.
408
408
  */
409
409
  showProgress?: boolean;
410
- /**
411
- * Show/hide progress bar on project/WBS task bars. Defaults to false.
412
- */
413
- showProjectProgress?: boolean;
414
410
  /**
415
411
  * Custom color for progress bars. If not provided, theme progress colors are used.
416
412
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.6.12",
3
+ "version": "1.6.14",
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",