gantt-task-react-powern 0.6.34 → 0.6.36

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.
@@ -269,7 +269,7 @@ var getMonday = function getMonday(date) {
269
269
  return new Date(date.setDate(diff));
270
270
  };
271
271
 
272
- var styles = {"ganttTable":"_3_ygE","ganttTable_Header":"_1nBOt","ganttTable_HeaderSeparator":"_2eZzQ","ganttTable_HeaderResizeHandle":"_ddPJg","ganttTable_HeaderItem":"_WuQ0f"};
272
+ var styles = {"ganttTable":"_3_ygE","ganttTable_Header":"_1nBOt","ganttTable_HeaderSeparator":"_2eZzQ","ganttTable_HeaderResizeHandle":"_ddPJg","ganttTable_HeaderItem":"_WuQ0f","ganttTable_HeaderItemText":"_2X3fk"};
273
273
 
274
274
  var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
275
275
  var headerHeight = _ref.headerHeight,
@@ -327,7 +327,9 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
327
327
  position: "relative"
328
328
  },
329
329
  title: title
330
- }, content, resizable && onColumnResize && React.createElement("div", {
330
+ }, React.createElement("div", {
331
+ className: styles.ganttTable_HeaderItemText
332
+ }, content), resizable && onColumnResize && React.createElement("div", {
331
333
  className: styles.ganttTable_HeaderResizeHandle,
332
334
  style: {
333
335
  height: headerHeight - 2
@@ -3910,6 +3912,8 @@ var Gantt = function Gantt(_ref) {
3910
3912
  var _ref2;
3911
3913
 
3912
3914
  var tasks = _ref.tasks,
3915
+ primaryPath = _ref.primaryPath,
3916
+ secondaryPath = _ref.secondaryPath,
3913
3917
  _ref$leafTasks = _ref.leafTasks,
3914
3918
  leafTasks = _ref$leafTasks === void 0 ? [] : _ref$leafTasks,
3915
3919
  _ref$scheduleType = _ref.scheduleType,
@@ -4270,10 +4274,6 @@ var Gantt = function Gantt(_ref) {
4270
4274
  });
4271
4275
  }
4272
4276
 
4273
- var _getCriticalPaths = getCriticalPaths(leafTasks),
4274
- primaryPath = _getCriticalPaths[0],
4275
- secondaryPath = _getCriticalPaths[1];
4276
-
4277
4277
  uncolorAll(tasks);
4278
4278
 
4279
4279
  if (scheduleType !== "lookAhead") {
@@ -4920,6 +4920,8 @@ function getCriticalPaths(leafTasks) {
4920
4920
  secondaryLeaf = _nextPath.task;
4921
4921
  }
4922
4922
 
4923
+ console.debug("Primary", primaryPath);
4924
+ console.debug("Secondary", secondaryPath);
4923
4925
  return [primaryPath, secondaryPath];
4924
4926
  }
4925
4927