gantt-task-react-powern 0.4.65 → 0.4.67
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 +21 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +21 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -274,9 +274,6 @@ var getWeekNumberISO8601 = function getWeekNumberISO8601(date) {
|
|
|
274
274
|
return weekNumber;
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
|
-
var getDaysInMonth = function getDaysInMonth(month, year) {
|
|
278
|
-
return new Date(year, month + 1, 0).getDate();
|
|
279
|
-
};
|
|
280
277
|
|
|
281
278
|
var styles = {"ganttTable":"_3_ygE","ganttTable_Header":"_1nBOt","ganttTable_HeaderSeparator":"_2eZzQ","ganttTable_HeaderItem":"_WuQ0f"};
|
|
282
279
|
|
|
@@ -1065,7 +1062,21 @@ var Calendar = function Calendar(_ref) {
|
|
|
1065
1062
|
x1Line: columnWidth * (i + 1),
|
|
1066
1063
|
y1Line: 0,
|
|
1067
1064
|
y2Line: topDefaultHeight,
|
|
1068
|
-
xText: columnWidth * (i + 1)
|
|
1065
|
+
xText: topValues.length === 0 ? columnWidth * (i + 1) * 0.5 : columnWidth * (i + 1) - date.getDate() * columnWidth * 0.5,
|
|
1066
|
+
yText: topDefaultHeight * 0.9
|
|
1067
|
+
}));
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
if (i + 1 === dates.length) {
|
|
1071
|
+
var _topValue = getLocaleMonth(date, locale) + " " + date.getFullYear();
|
|
1072
|
+
|
|
1073
|
+
topValues.push(React.createElement(TopPartOfCalendar, {
|
|
1074
|
+
key: _topValue + date.getFullYear(),
|
|
1075
|
+
value: _topValue,
|
|
1076
|
+
x1Line: columnWidth * (i + 1),
|
|
1077
|
+
y1Line: 0,
|
|
1078
|
+
y2Line: topDefaultHeight,
|
|
1079
|
+
xText: columnWidth * (i + 1) - date.getDate() * columnWidth * 0.5,
|
|
1069
1080
|
yText: topDefaultHeight * 0.9
|
|
1070
1081
|
}));
|
|
1071
1082
|
}
|
|
@@ -2759,8 +2770,12 @@ var Gantt = function Gantt(_ref) {
|
|
|
2759
2770
|
secondaryPath = _getCriticalPaths[1];
|
|
2760
2771
|
|
|
2761
2772
|
uncolorAll(tasks);
|
|
2762
|
-
|
|
2763
|
-
|
|
2773
|
+
|
|
2774
|
+
if (scheduleType !== "lookAhead") {
|
|
2775
|
+
colorPath(secondaryPath, "#00ff00", tasks);
|
|
2776
|
+
colorPath(primaryPath, "#ff0000", tasks);
|
|
2777
|
+
}
|
|
2778
|
+
|
|
2764
2779
|
setBarTasks(convertToBarTasks(filteredTasks, newDates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, milestoneBackgroundColor, milestoneBackgroundSelectedColor));
|
|
2765
2780
|
}, [tasks, viewMode, preStepsCount, rowHeight, barCornerRadius, columnWidth, taskHeight, handleWidth, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, milestoneBackgroundColor, milestoneBackgroundSelectedColor, rtl, scrollX, onExpanderClick]);
|
|
2766
2781
|
useEffect(function () {
|