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