gantt-task-react-powern 0.4.58 → 0.4.59
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.
- package/dist/index.css +3 -0
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -675,7 +675,7 @@ var TaskList = function TaskList(_ref) {
|
|
|
675
675
|
}, React.createElement(TaskListTable, Object.assign({}, tableProps))));
|
|
676
676
|
};
|
|
677
677
|
|
|
678
|
-
var styles$4 = {"gridRow":"_2dZTy","gridRowLine":"_3rUKi","gridTick":"_RuwuK"};
|
|
678
|
+
var styles$4 = {"gridRow":"_2dZTy","gridRowLine":"_3rUKi","gridTick":"_RuwuK","darkerGridRow":"_2M-tt"};
|
|
679
679
|
|
|
680
680
|
var GridBody = function GridBody(_ref) {
|
|
681
681
|
var tasks = _ref.tasks,
|
|
@@ -698,13 +698,14 @@ var GridBody = function GridBody(_ref) {
|
|
|
698
698
|
|
|
699
699
|
for (var _iterator = _createForOfIteratorHelperLoose(tasks), _step; !(_step = _iterator()).done;) {
|
|
700
700
|
var task = _step.value;
|
|
701
|
+
var isDarkerRow = task.type === "milestone";
|
|
701
702
|
gridRows.push(React.createElement("rect", {
|
|
702
703
|
key: "Row" + task.id,
|
|
703
704
|
x: "0",
|
|
704
705
|
y: y,
|
|
705
706
|
width: svgWidth,
|
|
706
707
|
height: rowHeight,
|
|
707
|
-
className: styles$4.gridRow
|
|
708
|
+
className: isDarkerRow ? styles$4.darkerGridRow : styles$4.gridRow
|
|
708
709
|
}));
|
|
709
710
|
rowLines.push(React.createElement("line", {
|
|
710
711
|
key: "RowLine" + task.id,
|
|
@@ -1259,7 +1260,7 @@ var convertToBarTasks = function convertToBarTasks(tasks, dates, columnWidth, ro
|
|
|
1259
1260
|
var dependence = barTasks.findIndex(function (value) {
|
|
1260
1261
|
return value.id === dependencies[j];
|
|
1261
1262
|
});
|
|
1262
|
-
if (dependence !== -1) barTasks[dependence].barChildren.push(task);
|
|
1263
|
+
if (dependence !== -1 && task.start.getTime() > 0 && task.end.getTime() > 0) barTasks[dependence].barChildren.push(task);
|
|
1263
1264
|
};
|
|
1264
1265
|
|
|
1265
1266
|
for (var j = 0; j < dependencies.length; j++) {
|