gantt-task-react-v 1.7.7 → 1.7.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.
|
@@ -10457,6 +10457,16 @@ const TaskListTableRowInner = forwardRef(
|
|
|
10457
10457
|
}
|
|
10458
10458
|
return isSelected ? "var(--gantt-table-selected-task-background-color)" : isEven ? "var(--gantt-table-even-background-color)" : "var(--gantt-background-color, #fff)";
|
|
10459
10459
|
}, [isEven, isOverlay2, isSelected]);
|
|
10460
|
+
const pinnedBgColor = useMemo(() => {
|
|
10461
|
+
if (isOverlay2) {
|
|
10462
|
+
return "var(--gantt-table-drag-task-background-color)";
|
|
10463
|
+
}
|
|
10464
|
+
if (isSelected) {
|
|
10465
|
+
const base = isEven ? "var(--gantt-table-even-background-color, #f5f5f5)" : "var(--gantt-background-color, #fff)";
|
|
10466
|
+
return `linear-gradient(var(--gantt-table-selected-task-background-color), var(--gantt-table-selected-task-background-color)), linear-gradient(${base}, ${base})`;
|
|
10467
|
+
}
|
|
10468
|
+
return isEven ? "var(--gantt-table-even-background-color)" : "var(--gantt-background-color, #fff)";
|
|
10469
|
+
}, [isEven, isOverlay2, isSelected]);
|
|
10460
10470
|
const rowClassName = useMemo(() => {
|
|
10461
10471
|
const classNames = [styles$h.taskListTableRow];
|
|
10462
10472
|
if (moveOverPosition === "after") {
|
|
@@ -10478,7 +10488,7 @@ const TaskListTableRowInner = forwardRef(
|
|
|
10478
10488
|
const pinnedBase = {
|
|
10479
10489
|
position: "relative",
|
|
10480
10490
|
zIndex: 3,
|
|
10481
|
-
|
|
10491
|
+
background: pinnedBgColor
|
|
10482
10492
|
};
|
|
10483
10493
|
for (let i = 0; i < columns.length; i++) {
|
|
10484
10494
|
if (columns[i].pinned === "left") {
|
|
@@ -10497,7 +10507,7 @@ const TaskListTableRowInner = forwardRef(
|
|
|
10497
10507
|
}
|
|
10498
10508
|
}
|
|
10499
10509
|
return result;
|
|
10500
|
-
}, [columns,
|
|
10510
|
+
}, [columns, pinnedBgColor]);
|
|
10501
10511
|
return /* @__PURE__ */ jsxs(
|
|
10502
10512
|
"div",
|
|
10503
10513
|
{
|
|
@@ -11334,7 +11344,7 @@ const TaskListInner = ({
|
|
|
11334
11344
|
distances.minimumRowDisplayed * distances.rowHeight
|
|
11335
11345
|
),
|
|
11336
11346
|
backgroundSize: `100% ${fullRowHeight * 2}px`,
|
|
11337
|
-
backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)`
|
|
11347
|
+
backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, var(--gantt-table-even-background-color, #f5f5f5) ${fullRowHeight}px)`
|
|
11338
11348
|
},
|
|
11339
11349
|
children: /* @__PURE__ */ jsx(
|
|
11340
11350
|
RenderTaskListTable,
|
|
@@ -14449,7 +14459,7 @@ const TaskGanttInner = (props) => {
|
|
|
14449
14459
|
backgroundPositionX: additionalLeftSpace || void 0,
|
|
14450
14460
|
backgroundImage: [
|
|
14451
14461
|
`linear-gradient(to right, #ebeff2 1px, transparent 2px)`,
|
|
14452
|
-
`linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)`
|
|
14462
|
+
`linear-gradient(to bottom, transparent ${fullRowHeight}px, var(--gantt-table-even-background-color, #f5f5f5) ${fullRowHeight}px)`
|
|
14453
14463
|
].join(", ")
|
|
14454
14464
|
}),
|
|
14455
14465
|
[
|
|
@@ -10474,6 +10474,16 @@
|
|
|
10474
10474
|
}
|
|
10475
10475
|
return isSelected ? "var(--gantt-table-selected-task-background-color)" : isEven ? "var(--gantt-table-even-background-color)" : "var(--gantt-background-color, #fff)";
|
|
10476
10476
|
}, [isEven, isOverlay2, isSelected]);
|
|
10477
|
+
const pinnedBgColor = React.useMemo(() => {
|
|
10478
|
+
if (isOverlay2) {
|
|
10479
|
+
return "var(--gantt-table-drag-task-background-color)";
|
|
10480
|
+
}
|
|
10481
|
+
if (isSelected) {
|
|
10482
|
+
const base = isEven ? "var(--gantt-table-even-background-color, #f5f5f5)" : "var(--gantt-background-color, #fff)";
|
|
10483
|
+
return `linear-gradient(var(--gantt-table-selected-task-background-color), var(--gantt-table-selected-task-background-color)), linear-gradient(${base}, ${base})`;
|
|
10484
|
+
}
|
|
10485
|
+
return isEven ? "var(--gantt-table-even-background-color)" : "var(--gantt-background-color, #fff)";
|
|
10486
|
+
}, [isEven, isOverlay2, isSelected]);
|
|
10477
10487
|
const rowClassName = React.useMemo(() => {
|
|
10478
10488
|
const classNames = [styles$h.taskListTableRow];
|
|
10479
10489
|
if (moveOverPosition === "after") {
|
|
@@ -10495,7 +10505,7 @@
|
|
|
10495
10505
|
const pinnedBase = {
|
|
10496
10506
|
position: "relative",
|
|
10497
10507
|
zIndex: 3,
|
|
10498
|
-
|
|
10508
|
+
background: pinnedBgColor
|
|
10499
10509
|
};
|
|
10500
10510
|
for (let i = 0; i < columns.length; i++) {
|
|
10501
10511
|
if (columns[i].pinned === "left") {
|
|
@@ -10514,7 +10524,7 @@
|
|
|
10514
10524
|
}
|
|
10515
10525
|
}
|
|
10516
10526
|
return result;
|
|
10517
|
-
}, [columns,
|
|
10527
|
+
}, [columns, pinnedBgColor]);
|
|
10518
10528
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
10519
10529
|
"div",
|
|
10520
10530
|
{
|
|
@@ -11351,7 +11361,7 @@
|
|
|
11351
11361
|
distances.minimumRowDisplayed * distances.rowHeight
|
|
11352
11362
|
),
|
|
11353
11363
|
backgroundSize: `100% ${fullRowHeight * 2}px`,
|
|
11354
|
-
backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)`
|
|
11364
|
+
backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, var(--gantt-table-even-background-color, #f5f5f5) ${fullRowHeight}px)`
|
|
11355
11365
|
},
|
|
11356
11366
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11357
11367
|
RenderTaskListTable,
|
|
@@ -14466,7 +14476,7 @@
|
|
|
14466
14476
|
backgroundPositionX: additionalLeftSpace || void 0,
|
|
14467
14477
|
backgroundImage: [
|
|
14468
14478
|
`linear-gradient(to right, #ebeff2 1px, transparent 2px)`,
|
|
14469
|
-
`linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)`
|
|
14479
|
+
`linear-gradient(to bottom, transparent ${fullRowHeight}px, var(--gantt-table-even-background-color, #f5f5f5) ${fullRowHeight}px)`
|
|
14470
14480
|
].join(", ")
|
|
14471
14481
|
}),
|
|
14472
14482
|
[
|
package/package.json
CHANGED