gantt-task-react-powern 0.6.7 → 0.6.9
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.css +19 -0
- package/dist/index.js +37 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +37 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -340,6 +340,25 @@
|
|
|
340
340
|
font-weight: bold;
|
|
341
341
|
cursor: pointer;
|
|
342
342
|
}
|
|
343
|
+
._3HJjy {
|
|
344
|
+
width: 24px;
|
|
345
|
+
height: 24px;
|
|
346
|
+
border: 4px solid rgba(0, 0, 0, 0.15);
|
|
347
|
+
border-top: 4px solid #cc0404;
|
|
348
|
+
border-radius: 50%;
|
|
349
|
+
animation: _1W2rn 1s linear infinite;
|
|
350
|
+
display: inline-block;
|
|
351
|
+
box-sizing: border-box;
|
|
352
|
+
}
|
|
353
|
+
@keyframes _1W2rn {
|
|
354
|
+
from {
|
|
355
|
+
transform: rotate(0deg);
|
|
356
|
+
}
|
|
357
|
+
to {
|
|
358
|
+
transform: rotate(360deg);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
343
362
|
._2k9Ys {
|
|
344
363
|
overflow: auto;
|
|
345
364
|
max-width: 100%;
|
package/dist/index.js
CHANGED
|
@@ -2852,7 +2852,7 @@ var TaskGanttContent = function TaskGanttContent(_ref) {
|
|
|
2852
2852
|
})));
|
|
2853
2853
|
};
|
|
2854
2854
|
|
|
2855
|
-
var styles$9 = {"ganttVerticalContainer":"_CZjuD","horizontalContainer":"_2B2zv","wrapper":"_3eULf","alertContainer":"_2AxB2","success":"_1a-EU","warning":"_1TP0x","error":"_2TeAI","alertDismissCheckbox":"_3cBUj","alertCloseButton":"_5jQM6"};
|
|
2855
|
+
var styles$9 = {"ganttVerticalContainer":"_CZjuD","horizontalContainer":"_2B2zv","wrapper":"_3eULf","alertContainer":"_2AxB2","success":"_1a-EU","warning":"_1TP0x","error":"_2TeAI","alertDismissCheckbox":"_3cBUj","alertCloseButton":"_5jQM6","spinner":"_3HJjy","spin":"_1W2rn"};
|
|
2856
2856
|
|
|
2857
2857
|
var TaskGantt = function TaskGantt(_ref) {
|
|
2858
2858
|
var gridProps = _ref.gridProps,
|
|
@@ -3131,6 +3131,10 @@ var Gantt = function Gantt(_ref) {
|
|
|
3131
3131
|
lastTouchY = _useState14[0],
|
|
3132
3132
|
setLastTouchY = _useState14[1];
|
|
3133
3133
|
|
|
3134
|
+
var _useState15 = React.useState(false),
|
|
3135
|
+
isProcessing = _useState15[0],
|
|
3136
|
+
setIsProcessing = _useState15[1];
|
|
3137
|
+
|
|
3134
3138
|
var buffer = rowHeight * 10;
|
|
3135
3139
|
var visibleStartY = scrollY - buffer;
|
|
3136
3140
|
var visibleEndY = scrollY + ganttHeight + buffer;
|
|
@@ -3143,12 +3147,11 @@ var Gantt = function Gantt(_ref) {
|
|
|
3143
3147
|
}
|
|
3144
3148
|
}, [startDate, endDate]);
|
|
3145
3149
|
React.useEffect(function () {
|
|
3146
|
-
console.debug("Tasks or view mode changed, recalculating bars...");
|
|
3147
|
-
|
|
3148
3150
|
if (debounceRef.current) {
|
|
3149
3151
|
clearTimeout(debounceRef.current);
|
|
3150
3152
|
}
|
|
3151
3153
|
|
|
3154
|
+
setIsProcessing(true);
|
|
3152
3155
|
debounceRef.current = setTimeout(function () {
|
|
3153
3156
|
var filteredTasks;
|
|
3154
3157
|
|
|
@@ -3197,6 +3200,7 @@ var Gantt = function Gantt(_ref) {
|
|
|
3197
3200
|
}
|
|
3198
3201
|
|
|
3199
3202
|
setBarTasks(convertToBarTasks(filteredTasks, newDates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, milestoneBackgroundColor, milestoneBackgroundSelectedColor));
|
|
3203
|
+
setIsProcessing(false);
|
|
3200
3204
|
}, delayToRender);
|
|
3201
3205
|
}, [tasks, viewMode, preStepsCount, rowHeight, barCornerRadius, columnWidth, taskHeight, handleWidth, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, milestoneBackgroundColor, milestoneBackgroundSelectedColor, rtl, onExpanderClick]);
|
|
3202
3206
|
React.useEffect(function () {
|
|
@@ -3541,6 +3545,36 @@ var Gantt = function Gantt(_ref) {
|
|
|
3541
3545
|
taskLabelRenderer: taskLabelRenderer,
|
|
3542
3546
|
onMultiSelect: onMultiSelect
|
|
3543
3547
|
};
|
|
3548
|
+
|
|
3549
|
+
if (isProcessing) {
|
|
3550
|
+
return React__default.createElement("div", {
|
|
3551
|
+
className: styles$9.wrapper,
|
|
3552
|
+
style: {
|
|
3553
|
+
position: "relative",
|
|
3554
|
+
minHeight: "400px"
|
|
3555
|
+
}
|
|
3556
|
+
}, React__default.createElement("div", {
|
|
3557
|
+
style: {
|
|
3558
|
+
position: "absolute",
|
|
3559
|
+
inset: 0,
|
|
3560
|
+
height: "100%",
|
|
3561
|
+
width: "100%",
|
|
3562
|
+
display: "flex",
|
|
3563
|
+
justifyContent: "center",
|
|
3564
|
+
alignItems: "center",
|
|
3565
|
+
gap: "16px"
|
|
3566
|
+
}
|
|
3567
|
+
}, React__default.createElement("span", {
|
|
3568
|
+
style: {
|
|
3569
|
+
fontSize: "24px",
|
|
3570
|
+
color: "#cc0404",
|
|
3571
|
+
fontFamily: "Arial, sans-serif"
|
|
3572
|
+
}
|
|
3573
|
+
}, "Loading..."), React__default.createElement("div", {
|
|
3574
|
+
className: styles$9.spinner
|
|
3575
|
+
})));
|
|
3576
|
+
}
|
|
3577
|
+
|
|
3544
3578
|
return React__default.createElement("div", null, React__default.createElement("div", {
|
|
3545
3579
|
className: styles$9.wrapper,
|
|
3546
3580
|
onKeyDown: handleKeyDown,
|