gantt-task-react-powern 0.6.11 → 0.6.13
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 +34 -39
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +34 -39
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -3108,11 +3108,9 @@ var Gantt = function Gantt(_ref) {
|
|
|
3108
3108
|
setFailedTask = _useState9[1];
|
|
3109
3109
|
|
|
3110
3110
|
var svgWidth = columnWidth < 55 ? (dateSetup.dates.length + 0.5) * columnWidth : dateSetup.dates.length * columnWidth;
|
|
3111
|
-
var
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
}, [tasks, onExpanderClick]);
|
|
3115
|
-
var ganttFullHeight = displayedTasks.length * rowHeight;
|
|
3111
|
+
var ganttFullHeight = useMemo(function () {
|
|
3112
|
+
return barTasks.length * rowHeight;
|
|
3113
|
+
}, [barTasks.length, rowHeight]);
|
|
3116
3114
|
|
|
3117
3115
|
var _useState10 = useState(0),
|
|
3118
3116
|
scrollY = _useState10[0],
|
|
@@ -3278,8 +3276,6 @@ var Gantt = function Gantt(_ref) {
|
|
|
3278
3276
|
useEffect(function () {
|
|
3279
3277
|
var _wrapperRef$current, _wrapperRef$current2, _wrapperRef$current3, _wrapperRef$current4;
|
|
3280
3278
|
|
|
3281
|
-
if (isProcessing) return;
|
|
3282
|
-
|
|
3283
3279
|
var handleWheel = function handleWheel(event) {
|
|
3284
3280
|
if (event.shiftKey || event.deltaX) {
|
|
3285
3281
|
var scrollMove = event.deltaX ? event.deltaX : event.deltaY;
|
|
@@ -3372,7 +3368,7 @@ var Gantt = function Gantt(_ref) {
|
|
|
3372
3368
|
(_wrapperRef$current7 = wrapperRef.current) === null || _wrapperRef$current7 === void 0 ? void 0 : _wrapperRef$current7.removeEventListener("touchend", handleLogTouch);
|
|
3373
3369
|
(_wrapperRef$current8 = wrapperRef.current) === null || _wrapperRef$current8 === void 0 ? void 0 : _wrapperRef$current8.removeEventListener("touchend", handleLogTouch);
|
|
3374
3370
|
};
|
|
3375
|
-
}, [wrapperRef, scrollY, scrollX, ganttHeight, svgWidth, rtl, ganttFullHeight
|
|
3371
|
+
}, [wrapperRef, scrollY, scrollX, ganttHeight, svgWidth, rtl, ganttFullHeight]);
|
|
3376
3372
|
|
|
3377
3373
|
var handleScrollY = function handleScrollY(event) {
|
|
3378
3374
|
if (scrollY !== event.currentTarget.scrollTop && !ignoreScrollEvent) {
|
|
@@ -3544,37 +3540,11 @@ var Gantt = function Gantt(_ref) {
|
|
|
3544
3540
|
taskLabelRenderer: taskLabelRenderer,
|
|
3545
3541
|
onMultiSelect: onMultiSelect
|
|
3546
3542
|
};
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
position: "relative",
|
|
3553
|
-
minHeight: ganttHeight + 70 || 400
|
|
3554
|
-
}
|
|
3555
|
-
}, React.createElement("div", {
|
|
3556
|
-
style: {
|
|
3557
|
-
position: "absolute",
|
|
3558
|
-
inset: 0,
|
|
3559
|
-
height: "100%",
|
|
3560
|
-
width: "100%",
|
|
3561
|
-
display: "flex",
|
|
3562
|
-
justifyContent: "center",
|
|
3563
|
-
alignItems: "center",
|
|
3564
|
-
gap: "16px"
|
|
3565
|
-
}
|
|
3566
|
-
}, React.createElement("span", {
|
|
3567
|
-
style: {
|
|
3568
|
-
fontSize: "24px",
|
|
3569
|
-
color: "#cc0404",
|
|
3570
|
-
fontFamily: "Arial, sans-serif"
|
|
3571
|
-
}
|
|
3572
|
-
}, "Loading..."), React.createElement("div", {
|
|
3573
|
-
className: styles$9.spinner
|
|
3574
|
-
})));
|
|
3575
|
-
}
|
|
3576
|
-
|
|
3577
|
-
return React.createElement("div", null, React.createElement("div", {
|
|
3543
|
+
return React.createElement("div", {
|
|
3544
|
+
style: {
|
|
3545
|
+
position: "relative"
|
|
3546
|
+
}
|
|
3547
|
+
}, React.createElement("div", {
|
|
3578
3548
|
className: styles$9.wrapper,
|
|
3579
3549
|
onKeyDown: handleKeyDown,
|
|
3580
3550
|
tabIndex: 0,
|
|
@@ -3609,6 +3579,31 @@ var Gantt = function Gantt(_ref) {
|
|
|
3609
3579
|
scroll: scrollY,
|
|
3610
3580
|
onScroll: handleScrollY,
|
|
3611
3581
|
rtl: rtl
|
|
3582
|
+
})), isProcessing && React.createElement("div", {
|
|
3583
|
+
style: {
|
|
3584
|
+
position: "absolute",
|
|
3585
|
+
top: 0,
|
|
3586
|
+
left: 0,
|
|
3587
|
+
right: 0,
|
|
3588
|
+
bottom: 0,
|
|
3589
|
+
backgroundColor: "rgba(255, 255, 255, 0.95)",
|
|
3590
|
+
display: "flex",
|
|
3591
|
+
justifyContent: "center",
|
|
3592
|
+
alignItems: "center",
|
|
3593
|
+
gap: "20px",
|
|
3594
|
+
zIndex: 9999,
|
|
3595
|
+
pointerEvents: "none",
|
|
3596
|
+
borderRadius: "8px"
|
|
3597
|
+
}
|
|
3598
|
+
}, React.createElement("span", {
|
|
3599
|
+
style: {
|
|
3600
|
+
fontSize: "24px",
|
|
3601
|
+
fontWeight: "600",
|
|
3602
|
+
color: "#cc0404",
|
|
3603
|
+
fontFamily: "Arial, sans-serif"
|
|
3604
|
+
}
|
|
3605
|
+
}, "Loading..."), React.createElement("div", {
|
|
3606
|
+
className: styles$9.spinner
|
|
3612
3607
|
})), React.createElement(HorizontalScroll, {
|
|
3613
3608
|
svgWidth: svgWidth,
|
|
3614
3609
|
taskListWidth: taskListWidth,
|