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