gantt-task-react-powern 0.6.35 → 0.6.37
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 +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/types/public-types.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -600,7 +600,7 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
|
|
|
600
600
|
|
|
601
601
|
var percentComplete = t.percentComplete != null ? t.percentComplete : (_t$progress = t.progress) != null ? _t$progress : 0;
|
|
602
602
|
var plannedDuration = t.plannedDuration != null ? t.plannedDuration : null;
|
|
603
|
-
var remainingDuration = plannedDuration != null ? Math.round(plannedDuration - plannedDuration * (percentComplete / 100)) : null;
|
|
603
|
+
var remainingDuration = plannedDuration != null ? Math.max(Math.round(plannedDuration - plannedDuration * (percentComplete / 100)), 0) : null;
|
|
604
604
|
|
|
605
605
|
var actualDuration = function () {
|
|
606
606
|
if (!t.actualStart || t.actualStart.getTime() === 0) return null;
|
|
@@ -3913,6 +3913,8 @@ var Gantt = function Gantt(_ref) {
|
|
|
3913
3913
|
var _ref2;
|
|
3914
3914
|
|
|
3915
3915
|
var tasks = _ref.tasks,
|
|
3916
|
+
primaryPath = _ref.primaryPath,
|
|
3917
|
+
secondaryPath = _ref.secondaryPath,
|
|
3916
3918
|
_ref$leafTasks = _ref.leafTasks,
|
|
3917
3919
|
leafTasks = _ref$leafTasks === void 0 ? [] : _ref$leafTasks,
|
|
3918
3920
|
_ref$scheduleType = _ref.scheduleType,
|
|
@@ -4273,10 +4275,6 @@ var Gantt = function Gantt(_ref) {
|
|
|
4273
4275
|
});
|
|
4274
4276
|
}
|
|
4275
4277
|
|
|
4276
|
-
var _getCriticalPaths = getCriticalPaths(leafTasks),
|
|
4277
|
-
primaryPath = _getCriticalPaths[0],
|
|
4278
|
-
secondaryPath = _getCriticalPaths[1];
|
|
4279
|
-
|
|
4280
4278
|
uncolorAll(tasks);
|
|
4281
4279
|
|
|
4282
4280
|
if (scheduleType !== "lookAhead") {
|
|
@@ -4923,6 +4921,8 @@ function getCriticalPaths(leafTasks) {
|
|
|
4923
4921
|
secondaryLeaf = _nextPath.task;
|
|
4924
4922
|
}
|
|
4925
4923
|
|
|
4924
|
+
console.debug("Primary", primaryPath);
|
|
4925
|
+
console.debug("Secondary", secondaryPath);
|
|
4926
4926
|
return [primaryPath, secondaryPath];
|
|
4927
4927
|
}
|
|
4928
4928
|
|