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.
package/dist/index.css CHANGED
@@ -43,6 +43,18 @@
43
43
  word-break: break-word;
44
44
  }
45
45
 
46
+ /* Clamp header labels to a maximum of two lines so a long label (e.g.
47
+ "WBS Code / Activity ID") cannot grow the header row past headerHeight,
48
+ which otherwise misaligns the table body with the Gantt scrollbar. */
49
+ ._2X3fk {
50
+ display: -webkit-box;
51
+ -webkit-line-clamp: 2;
52
+ -webkit-box-orient: vertical;
53
+ overflow: hidden;
54
+ text-overflow: ellipsis;
55
+ line-height: 1.15;
56
+ }
57
+
46
58
  ._3ZbQT {
47
59
  display: table;
48
60
  border-bottom: #e6e4e4 1px solid;
package/dist/index.js CHANGED
@@ -270,7 +270,7 @@ var getMonday = function getMonday(date) {
270
270
  return new Date(date.setDate(diff));
271
271
  };
272
272
 
273
- var styles = {"ganttTable":"_3_ygE","ganttTable_Header":"_1nBOt","ganttTable_HeaderSeparator":"_2eZzQ","ganttTable_HeaderResizeHandle":"_ddPJg","ganttTable_HeaderItem":"_WuQ0f"};
273
+ var styles = {"ganttTable":"_3_ygE","ganttTable_Header":"_1nBOt","ganttTable_HeaderSeparator":"_2eZzQ","ganttTable_HeaderResizeHandle":"_ddPJg","ganttTable_HeaderItem":"_WuQ0f","ganttTable_HeaderItemText":"_2X3fk"};
274
274
 
275
275
  var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
276
276
  var headerHeight = _ref.headerHeight,
@@ -328,7 +328,9 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
328
328
  position: "relative"
329
329
  },
330
330
  title: title
331
- }, content, resizable && onColumnResize && React__default.createElement("div", {
331
+ }, React__default.createElement("div", {
332
+ className: styles.ganttTable_HeaderItemText
333
+ }, content), resizable && onColumnResize && React__default.createElement("div", {
332
334
  className: styles.ganttTable_HeaderResizeHandle,
333
335
  style: {
334
336
  height: headerHeight - 2
@@ -3911,6 +3913,8 @@ var Gantt = function Gantt(_ref) {
3911
3913
  var _ref2;
3912
3914
 
3913
3915
  var tasks = _ref.tasks,
3916
+ primaryPath = _ref.primaryPath,
3917
+ secondaryPath = _ref.secondaryPath,
3914
3918
  _ref$leafTasks = _ref.leafTasks,
3915
3919
  leafTasks = _ref$leafTasks === void 0 ? [] : _ref$leafTasks,
3916
3920
  _ref$scheduleType = _ref.scheduleType,
@@ -4271,10 +4275,6 @@ var Gantt = function Gantt(_ref) {
4271
4275
  });
4272
4276
  }
4273
4277
 
4274
- var _getCriticalPaths = getCriticalPaths(leafTasks),
4275
- primaryPath = _getCriticalPaths[0],
4276
- secondaryPath = _getCriticalPaths[1];
4277
-
4278
4278
  uncolorAll(tasks);
4279
4279
 
4280
4280
  if (scheduleType !== "lookAhead") {
@@ -4921,6 +4921,8 @@ function getCriticalPaths(leafTasks) {
4921
4921
  secondaryLeaf = _nextPath.task;
4922
4922
  }
4923
4923
 
4924
+ console.debug("Primary", primaryPath);
4925
+ console.debug("Secondary", secondaryPath);
4924
4926
  return [primaryPath, secondaryPath];
4925
4927
  }
4926
4928