gantt-task-react-v 1.6.13 → 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>;
@@ -5167,16 +5167,16 @@ const DEFAULT_THEME = {
5167
5167
  groupProgressSelectedColor: "#388E3C",
5168
5168
  groupProgressCriticalColor: "#2E7D32",
5169
5169
  groupProgressSelectedCriticalColor: "#1B5E20",
5170
- groupBackgroundColor: "#0A0A0A",
5171
- groupBackgroundSelectedColor: "#333333",
5170
+ groupBackgroundColor: "#29B6F6",
5171
+ groupBackgroundSelectedColor: "#0288D1",
5172
5172
  groupBackgroundCriticalColor: "#0277BD",
5173
5173
  groupBackgroundSelectedCriticalColor: "#01579B",
5174
5174
  projectProgressColor: "#26C6DA",
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]);
@@ -12830,7 +12829,7 @@ const Bar = (props) => {
12830
12829
  taskHeight
12831
12830
  );
12832
12831
  const renderBarDisplay = () => {
12833
- if (task.type === "project" || hasChildren) {
12832
+ if (task.type === "project") {
12834
12833
  return /* @__PURE__ */ jsx(
12835
12834
  ProjectDisplay,
12836
12835
  {
@@ -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" && !hasChildren || 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 : ""}`,
@@ -13099,7 +13098,6 @@ const TaskItemInner = (props) => {
13099
13098
  const {
13100
13099
  movingAction,
13101
13100
  distances: { arrowIndent, relationCircleOffset, relationCircleRadius },
13102
- hasChildren,
13103
13101
  onDeleteTask,
13104
13102
  isDateChangeable,
13105
13103
  canDelete,
@@ -13301,13 +13299,13 @@ const TaskItemInner = (props) => {
13301
13299
  {
13302
13300
  x1,
13303
13301
  width,
13304
- taskHeight: task.type === "project" || hasChildren ? taskHalfHeight : taskHeight,
13302
+ taskHeight: task.type === "project" ? taskHalfHeight : taskHeight,
13305
13303
  arrowIndent,
13306
13304
  rtl,
13307
13305
  label: task.name,
13308
13306
  taskYOffset,
13309
13307
  viewMode,
13310
- alwaysOutline: task.type === "project" || hasChildren
13308
+ alwaysOutline: task.type === "project"
13311
13309
  }
13312
13310
  )
13313
13311
  ]
@@ -13448,7 +13446,6 @@ const TaskGanttContentInner = (props) => {
13448
13446
  waitCommitTasks,
13449
13447
  viewMode,
13450
13448
  showProgress = true,
13451
- showProjectProgress = false,
13452
13449
  progressColor
13453
13450
  } = props;
13454
13451
  const renderedHolidays = useMemo(() => {
@@ -13619,7 +13616,6 @@ const TaskGanttContentInner = (props) => {
13619
13616
  renderCustomLabel,
13620
13617
  viewMode,
13621
13618
  showProgress,
13622
- showProjectProgress,
13623
13619
  progressColor
13624
13620
  }
13625
13621
  )
@@ -13980,7 +13976,6 @@ const TaskGanttContentInner = (props) => {
13980
13976
  activeArrowKey,
13981
13977
  activeTaskId,
13982
13978
  showProgress,
13983
- showProjectProgress,
13984
13979
  progressColor
13985
13980
  ]);
13986
13981
  return /* @__PURE__ */ jsxs("g", { className: "content", children: [
@@ -19789,7 +19784,6 @@ const Gantt = (props) => {
19789
19784
  todayLabel = "Today",
19790
19785
  dataDateLabel = "Data Date",
19791
19786
  showProgress = true,
19792
- showProjectProgress = false,
19793
19787
  progressColor,
19794
19788
  scrollToTaskId,
19795
19789
  drawer: drawerProps
@@ -21305,7 +21299,6 @@ const Gantt = (props) => {
21305
21299
  visibleTasksMirror,
21306
21300
  viewMode,
21307
21301
  showProgress,
21308
- showProjectProgress,
21309
21302
  progressColor
21310
21303
  }),
21311
21304
  [
@@ -21351,7 +21344,6 @@ const Gantt = (props) => {
21351
21344
  changeInProgress == null ? void 0 : changeInProgress.action,
21352
21345
  handleDeleteTasks,
21353
21346
  showProgress,
21354
- showProjectProgress,
21355
21347
  progressColor
21356
21348
  ]
21357
21349
  );
@@ -5184,16 +5184,16 @@
5184
5184
  groupProgressSelectedColor: "#388E3C",
5185
5185
  groupProgressCriticalColor: "#2E7D32",
5186
5186
  groupProgressSelectedCriticalColor: "#1B5E20",
5187
- groupBackgroundColor: "#0A0A0A",
5188
- groupBackgroundSelectedColor: "#333333",
5187
+ groupBackgroundColor: "#29B6F6",
5188
+ groupBackgroundSelectedColor: "#0288D1",
5189
5189
  groupBackgroundCriticalColor: "#0277BD",
5190
5190
  groupBackgroundSelectedCriticalColor: "#01579B",
5191
5191
  projectProgressColor: "#26C6DA",
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]);
@@ -12847,7 +12846,7 @@
12847
12846
  taskHeight
12848
12847
  );
12849
12848
  const renderBarDisplay = () => {
12850
- if (task.type === "project" || hasChildren) {
12849
+ if (task.type === "project") {
12851
12850
  return /* @__PURE__ */ jsxRuntime.jsx(
12852
12851
  ProjectDisplay,
12853
12852
  {
@@ -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" && !hasChildren || 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 : ""}`,
@@ -13116,7 +13115,6 @@
13116
13115
  const {
13117
13116
  movingAction,
13118
13117
  distances: { arrowIndent, relationCircleOffset, relationCircleRadius },
13119
- hasChildren,
13120
13118
  onDeleteTask,
13121
13119
  isDateChangeable,
13122
13120
  canDelete,
@@ -13318,13 +13316,13 @@
13318
13316
  {
13319
13317
  x1,
13320
13318
  width,
13321
- taskHeight: task.type === "project" || hasChildren ? taskHalfHeight : taskHeight,
13319
+ taskHeight: task.type === "project" ? taskHalfHeight : taskHeight,
13322
13320
  arrowIndent,
13323
13321
  rtl,
13324
13322
  label: task.name,
13325
13323
  taskYOffset,
13326
13324
  viewMode,
13327
- alwaysOutline: task.type === "project" || hasChildren
13325
+ alwaysOutline: task.type === "project"
13328
13326
  }
13329
13327
  )
13330
13328
  ]
@@ -13465,7 +13463,6 @@
13465
13463
  waitCommitTasks,
13466
13464
  viewMode,
13467
13465
  showProgress = true,
13468
- showProjectProgress = false,
13469
13466
  progressColor
13470
13467
  } = props;
13471
13468
  const renderedHolidays = React.useMemo(() => {
@@ -13636,7 +13633,6 @@
13636
13633
  renderCustomLabel,
13637
13634
  viewMode,
13638
13635
  showProgress,
13639
- showProjectProgress,
13640
13636
  progressColor
13641
13637
  }
13642
13638
  )
@@ -13997,7 +13993,6 @@
13997
13993
  activeArrowKey,
13998
13994
  activeTaskId,
13999
13995
  showProgress,
14000
- showProjectProgress,
14001
13996
  progressColor
14002
13997
  ]);
14003
13998
  return /* @__PURE__ */ jsxRuntime.jsxs("g", { className: "content", children: [
@@ -19806,7 +19801,6 @@
19806
19801
  todayLabel = "Today",
19807
19802
  dataDateLabel = "Data Date",
19808
19803
  showProgress = true,
19809
- showProjectProgress = false,
19810
19804
  progressColor,
19811
19805
  scrollToTaskId,
19812
19806
  drawer: drawerProps
@@ -21322,7 +21316,6 @@
21322
21316
  visibleTasksMirror,
21323
21317
  viewMode,
21324
21318
  showProgress,
21325
- showProjectProgress,
21326
21319
  progressColor
21327
21320
  }),
21328
21321
  [
@@ -21368,7 +21361,6 @@
21368
21361
  changeInProgress == null ? void 0 : changeInProgress.action,
21369
21362
  handleDeleteTasks,
21370
21363
  showProgress,
21371
- showProjectProgress,
21372
21364
  progressColor
21373
21365
  ]
21374
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.13",
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",