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