gantt-task-react-v 1.6.12 → 1.6.13
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.
|
@@ -5167,8 +5167,8 @@ const DEFAULT_THEME = {
|
|
|
5167
5167
|
groupProgressSelectedColor: "#388E3C",
|
|
5168
5168
|
groupProgressCriticalColor: "#2E7D32",
|
|
5169
5169
|
groupProgressSelectedCriticalColor: "#1B5E20",
|
|
5170
|
-
groupBackgroundColor: "#
|
|
5171
|
-
groupBackgroundSelectedColor: "#
|
|
5170
|
+
groupBackgroundColor: "#0A0A0A",
|
|
5171
|
+
groupBackgroundSelectedColor: "#333333",
|
|
5172
5172
|
groupBackgroundCriticalColor: "#0277BD",
|
|
5173
5173
|
groupBackgroundSelectedCriticalColor: "#01579B",
|
|
5174
5174
|
projectProgressColor: "#26C6DA",
|
|
@@ -12830,7 +12830,7 @@ const Bar = (props) => {
|
|
|
12830
12830
|
taskHeight
|
|
12831
12831
|
);
|
|
12832
12832
|
const renderBarDisplay = () => {
|
|
12833
|
-
if (task.type === "project") {
|
|
12833
|
+
if (task.type === "project" || hasChildren) {
|
|
12834
12834
|
return /* @__PURE__ */ jsx(
|
|
12835
12835
|
ProjectDisplay,
|
|
12836
12836
|
{
|
|
@@ -12929,7 +12929,7 @@ const Bar = (props) => {
|
|
|
12929
12929
|
}
|
|
12930
12930
|
),
|
|
12931
12931
|
relationHandles,
|
|
12932
|
-
(task.type !== "project" || showProjectProgress) && isProgressChangeable(task) && /* @__PURE__ */ jsx(
|
|
12932
|
+
(task.type !== "project" && !hasChildren || showProjectProgress) && isProgressChangeable(task) && /* @__PURE__ */ jsx(
|
|
12933
12933
|
BarProgressHandle,
|
|
12934
12934
|
{
|
|
12935
12935
|
className: `${styles$9.barHandle} ${isMovingProgress ? styles$9.barHandleImportantVisible : ""} ${isSmallWidth || isMovingDate || isRelationDrawMode ? styles$9.barHandleImportantHidden : ""}`,
|
|
@@ -13099,6 +13099,7 @@ const TaskItemInner = (props) => {
|
|
|
13099
13099
|
const {
|
|
13100
13100
|
movingAction,
|
|
13101
13101
|
distances: { arrowIndent, relationCircleOffset, relationCircleRadius },
|
|
13102
|
+
hasChildren,
|
|
13102
13103
|
onDeleteTask,
|
|
13103
13104
|
isDateChangeable,
|
|
13104
13105
|
canDelete,
|
|
@@ -13300,13 +13301,13 @@ const TaskItemInner = (props) => {
|
|
|
13300
13301
|
{
|
|
13301
13302
|
x1,
|
|
13302
13303
|
width,
|
|
13303
|
-
taskHeight: task.type === "project" ? taskHalfHeight : taskHeight,
|
|
13304
|
+
taskHeight: task.type === "project" || hasChildren ? taskHalfHeight : taskHeight,
|
|
13304
13305
|
arrowIndent,
|
|
13305
13306
|
rtl,
|
|
13306
13307
|
label: task.name,
|
|
13307
13308
|
taskYOffset,
|
|
13308
13309
|
viewMode,
|
|
13309
|
-
alwaysOutline: task.type === "project"
|
|
13310
|
+
alwaysOutline: task.type === "project" || hasChildren
|
|
13310
13311
|
}
|
|
13311
13312
|
)
|
|
13312
13313
|
]
|
|
@@ -5184,8 +5184,8 @@
|
|
|
5184
5184
|
groupProgressSelectedColor: "#388E3C",
|
|
5185
5185
|
groupProgressCriticalColor: "#2E7D32",
|
|
5186
5186
|
groupProgressSelectedCriticalColor: "#1B5E20",
|
|
5187
|
-
groupBackgroundColor: "#
|
|
5188
|
-
groupBackgroundSelectedColor: "#
|
|
5187
|
+
groupBackgroundColor: "#0A0A0A",
|
|
5188
|
+
groupBackgroundSelectedColor: "#333333",
|
|
5189
5189
|
groupBackgroundCriticalColor: "#0277BD",
|
|
5190
5190
|
groupBackgroundSelectedCriticalColor: "#01579B",
|
|
5191
5191
|
projectProgressColor: "#26C6DA",
|
|
@@ -12847,7 +12847,7 @@
|
|
|
12847
12847
|
taskHeight
|
|
12848
12848
|
);
|
|
12849
12849
|
const renderBarDisplay = () => {
|
|
12850
|
-
if (task.type === "project") {
|
|
12850
|
+
if (task.type === "project" || hasChildren) {
|
|
12851
12851
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12852
12852
|
ProjectDisplay,
|
|
12853
12853
|
{
|
|
@@ -12946,7 +12946,7 @@
|
|
|
12946
12946
|
}
|
|
12947
12947
|
),
|
|
12948
12948
|
relationHandles,
|
|
12949
|
-
(task.type !== "project" || showProjectProgress) && isProgressChangeable(task) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
12949
|
+
(task.type !== "project" && !hasChildren || showProjectProgress) && isProgressChangeable(task) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
12950
12950
|
BarProgressHandle,
|
|
12951
12951
|
{
|
|
12952
12952
|
className: `${styles$9.barHandle} ${isMovingProgress ? styles$9.barHandleImportantVisible : ""} ${isSmallWidth || isMovingDate || isRelationDrawMode ? styles$9.barHandleImportantHidden : ""}`,
|
|
@@ -13116,6 +13116,7 @@
|
|
|
13116
13116
|
const {
|
|
13117
13117
|
movingAction,
|
|
13118
13118
|
distances: { arrowIndent, relationCircleOffset, relationCircleRadius },
|
|
13119
|
+
hasChildren,
|
|
13119
13120
|
onDeleteTask,
|
|
13120
13121
|
isDateChangeable,
|
|
13121
13122
|
canDelete,
|
|
@@ -13317,13 +13318,13 @@
|
|
|
13317
13318
|
{
|
|
13318
13319
|
x1,
|
|
13319
13320
|
width,
|
|
13320
|
-
taskHeight: task.type === "project" ? taskHalfHeight : taskHeight,
|
|
13321
|
+
taskHeight: task.type === "project" || hasChildren ? taskHalfHeight : taskHeight,
|
|
13321
13322
|
arrowIndent,
|
|
13322
13323
|
rtl,
|
|
13323
13324
|
label: task.name,
|
|
13324
13325
|
taskYOffset,
|
|
13325
13326
|
viewMode,
|
|
13326
|
-
alwaysOutline: task.type === "project"
|
|
13327
|
+
alwaysOutline: task.type === "project" || hasChildren
|
|
13327
13328
|
}
|
|
13328
13329
|
)
|
|
13329
13330
|
]
|
package/package.json
CHANGED