gantt-task-react-powern 0.4.95 → 0.4.96
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 +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -2959,8 +2959,8 @@ var Gantt = function Gantt(_ref) {
|
|
|
2959
2959
|
if (leafTasks.length > 0 && primaryPath.length === 0 && secondaryPath.length === 0) {
|
|
2960
2960
|
setHasCircularDeps(true);
|
|
2961
2961
|
} else {
|
|
2962
|
-
if (hasCircularDeps && localStorage.getItem(
|
|
2963
|
-
localStorage.removeItem(
|
|
2962
|
+
if (hasCircularDeps && localStorage.getItem('hideCircularDepsAlert') === 'true') {
|
|
2963
|
+
localStorage.removeItem('hideCircularDepsAlert');
|
|
2964
2964
|
}
|
|
2965
2965
|
|
|
2966
2966
|
setHasCircularDeps(false);
|
|
@@ -3112,7 +3112,7 @@ var Gantt = function Gantt(_ref) {
|
|
|
3112
3112
|
var alert = document.getElementById("alert-container");
|
|
3113
3113
|
|
|
3114
3114
|
if (checkbox.checked) {
|
|
3115
|
-
localStorage.setItem(
|
|
3115
|
+
localStorage.setItem('hideCircularDepsAlert', 'true');
|
|
3116
3116
|
alert.style.display = "None";
|
|
3117
3117
|
}
|
|
3118
3118
|
};
|
|
@@ -3265,7 +3265,7 @@ var Gantt = function Gantt(_ref) {
|
|
|
3265
3265
|
taskLabelRenderer: taskLabelRenderer,
|
|
3266
3266
|
onMultiSelect: onMultiSelect
|
|
3267
3267
|
};
|
|
3268
|
-
return React.createElement("div", null, hasCircularDeps && localStorage.getItem(
|
|
3268
|
+
return React.createElement("div", null, hasCircularDeps && localStorage.getItem('hideCircularDepsAlert') !== 'true' && React.createElement("div", {
|
|
3269
3269
|
id: "alert-container",
|
|
3270
3270
|
className: styles$9.alertContainer + " " + styles$9.warning
|
|
3271
3271
|
}, React.createElement("input", {
|
|
@@ -3393,6 +3393,7 @@ function getCriticalPaths(leafTasks) {
|
|
|
3393
3393
|
primaryLeaf = taskMap[primaryLeaf].next;
|
|
3394
3394
|
}
|
|
3395
3395
|
|
|
3396
|
+
console.debug(taskMap);
|
|
3396
3397
|
var secondaryLeaf;
|
|
3397
3398
|
var secondaryDuration = 0;
|
|
3398
3399
|
|
|
@@ -3414,7 +3415,6 @@ function getCriticalPaths(leafTasks) {
|
|
|
3414
3415
|
secondaryLeaf = taskMap[secondaryLeaf].next;
|
|
3415
3416
|
}
|
|
3416
3417
|
|
|
3417
|
-
console.debug([primaryPath, secondaryPath]);
|
|
3418
3418
|
return [primaryPath, secondaryPath];
|
|
3419
3419
|
}
|
|
3420
3420
|
function computeCriticalPath(taskID, taskMap) {
|
|
@@ -3432,6 +3432,7 @@ function computeCriticalPath(taskID, taskMap) {
|
|
|
3432
3432
|
var dependency = (_dependentTask$depend = dependentTask.dependencies) === null || _dependentTask$depend === void 0 ? void 0 : _dependentTask$depend.find(function (d) {
|
|
3433
3433
|
return d.id === taskID;
|
|
3434
3434
|
});
|
|
3435
|
+
console.debug(dependency);
|
|
3435
3436
|
if (!dependency) continue;
|
|
3436
3437
|
|
|
3437
3438
|
switch (dependency.type) {
|