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