gantt-task-react-powern 0.5.4 → 0.5.6
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 +1 -38
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -38
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -3019,10 +3019,6 @@ var Gantt = function Gantt(_ref) {
|
|
|
3019
3019
|
lastTouchY = _useState14[0],
|
|
3020
3020
|
setLastTouchY = _useState14[1];
|
|
3021
3021
|
|
|
3022
|
-
var _useState15 = useState(false),
|
|
3023
|
-
hasCircularDeps = _useState15[0],
|
|
3024
|
-
setHasCircularDeps = _useState15[1];
|
|
3025
|
-
|
|
3026
3022
|
useEffect(function () {
|
|
3027
3023
|
if (scheduleType === "lookAhead" && startDate && endDate) {
|
|
3028
3024
|
setDateSetup({
|
|
@@ -3071,16 +3067,6 @@ var Gantt = function Gantt(_ref) {
|
|
|
3071
3067
|
primaryPath = _getCriticalPaths[0],
|
|
3072
3068
|
secondaryPath = _getCriticalPaths[1];
|
|
3073
3069
|
|
|
3074
|
-
if (leafTasks.length > 0 && primaryPath.length === 0 && secondaryPath.length === 0) {
|
|
3075
|
-
setHasCircularDeps(true);
|
|
3076
|
-
} else {
|
|
3077
|
-
if (hasCircularDeps && localStorage.getItem('hideCircularDepsAlert') === 'true') {
|
|
3078
|
-
localStorage.removeItem('hideCircularDepsAlert');
|
|
3079
|
-
}
|
|
3080
|
-
|
|
3081
|
-
setHasCircularDeps(false);
|
|
3082
|
-
}
|
|
3083
|
-
|
|
3084
3070
|
uncolorAll(tasks);
|
|
3085
3071
|
|
|
3086
3072
|
if (scheduleType !== "lookAhead") {
|
|
@@ -3275,16 +3261,6 @@ var Gantt = function Gantt(_ref) {
|
|
|
3275
3261
|
}
|
|
3276
3262
|
};
|
|
3277
3263
|
|
|
3278
|
-
var hideAlert = function hideAlert() {
|
|
3279
|
-
var checkbox = document.getElementById("alert-dismiss");
|
|
3280
|
-
var alert = document.getElementById("alert-container");
|
|
3281
|
-
|
|
3282
|
-
if (checkbox.checked) {
|
|
3283
|
-
localStorage.setItem('hideCircularDepsAlert', 'true');
|
|
3284
|
-
alert.style.display = "None";
|
|
3285
|
-
}
|
|
3286
|
-
};
|
|
3287
|
-
|
|
3288
3264
|
var handleKeyDown = function handleKeyDown(event) {
|
|
3289
3265
|
event.preventDefault();
|
|
3290
3266
|
var newScrollY = scrollY;
|
|
@@ -3433,20 +3409,7 @@ var Gantt = function Gantt(_ref) {
|
|
|
3433
3409
|
taskLabelRenderer: taskLabelRenderer,
|
|
3434
3410
|
onMultiSelect: onMultiSelect
|
|
3435
3411
|
};
|
|
3436
|
-
return React.createElement("div", null,
|
|
3437
|
-
id: "alert-container",
|
|
3438
|
-
className: styles$9.alertContainer + " " + styles$9.warning
|
|
3439
|
-
}, React.createElement("input", {
|
|
3440
|
-
type: "checkbox",
|
|
3441
|
-
id: "alert-dismiss",
|
|
3442
|
-
className: styles$9.alertDismissCheckbox,
|
|
3443
|
-
onChange: hideAlert
|
|
3444
|
-
}), React.createElement("label", {
|
|
3445
|
-
htmlFor: "alert-dismiss",
|
|
3446
|
-
className: styles$9.alertCloseButton
|
|
3447
|
-
}, "\xD7"), React.createElement("div", {
|
|
3448
|
-
className: styles$9.alertContent
|
|
3449
|
-
}, React.createElement("p", null, "Critical path could not be displayed due to circular dependencies"))), React.createElement("div", {
|
|
3412
|
+
return React.createElement("div", null, React.createElement("div", {
|
|
3450
3413
|
className: styles$9.wrapper,
|
|
3451
3414
|
onKeyDown: handleKeyDown,
|
|
3452
3415
|
tabIndex: 0,
|