gantt-task-react-powern 0.5.9 → 0.6.0
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.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -678,7 +678,7 @@ var StandardTooltipContent = function StandardTooltipContent(_ref2) {
|
|
|
678
678
|
}
|
|
679
679
|
}, task.name + ": Planned dates: "), React__default.createElement("b", null, task.start.getMonth() + 1 + "/" + task.start.getDate() + "/" + task.start.getFullYear() + " - " + (task.end.getMonth() + 1) + "/" + task.end.getDate() + "/" + task.end.getFullYear()), task.end.getTime() - task.start.getTime() !== 0 && React__default.createElement("p", {
|
|
680
680
|
className: styles$2.tooltipDefaultContainerParagraph
|
|
681
|
-
}, "Duration: " + ~~Math.
|
|
681
|
+
}, "Duration: " + ~~Math.round((task.end.getTime() - task.start.getTime()) / (1000 * 60 * 60 * 24)) + " day(s)"), React__default.createElement("p", {
|
|
682
682
|
className: styles$2.tooltipDefaultContainerParagraph
|
|
683
683
|
}, !!task.progress && "Progress: " + task.progress + " %"));else return React__default.createElement("div", {
|
|
684
684
|
className: styles$2.tooltipDefaultContainer,
|
|
@@ -689,7 +689,7 @@ var StandardTooltipContent = function StandardTooltipContent(_ref2) {
|
|
|
689
689
|
}
|
|
690
690
|
}, task.name + ": Actual dates: "), React__default.createElement("b", null, task.actualStart.getMonth() + 1 + "/" + task.actualStart.getDate() + "/" + task.actualStart.getFullYear() + " - " + (task.actualEnd.getMonth() + 1) + "/" + task.actualEnd.getDate() + "/" + task.actualEnd.getFullYear()), task.actualEnd.getTime() - task.actualStart.getTime() !== 0 && React__default.createElement("p", {
|
|
691
691
|
className: styles$2.tooltipDefaultContainerParagraph
|
|
692
|
-
}, "Duration: " + ~~Math.
|
|
692
|
+
}, "Duration: " + ~~Math.round((task.actualEnd.getTime() - task.actualStart.getTime()) / (1000 * 60 * 60 * 24)) + " day(s)"), React__default.createElement("p", {
|
|
693
693
|
className: styles$2.tooltipDefaultContainerParagraph
|
|
694
694
|
}, !!task.progress && "Progress: " + task.progress + " %"));
|
|
695
695
|
};
|
|
@@ -3505,7 +3505,6 @@ function getCriticalPaths(leafTasks) {
|
|
|
3505
3505
|
computeCriticalPath(sortedTaskList[_i4], taskMap);
|
|
3506
3506
|
}
|
|
3507
3507
|
|
|
3508
|
-
console.debug(taskMap);
|
|
3509
3508
|
var taskChainList = [];
|
|
3510
3509
|
|
|
3511
3510
|
for (var _i5 = 0; _i5 < sortedTaskList.length; _i5++) {
|