gantt-task-react-powern 0.4.39 → 0.4.41

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
@@ -64,6 +64,11 @@
64
64
  user-select: none;
65
65
  cursor: pointer;
66
66
  }
67
+ ._1fnLB {
68
+ display: inline-block;
69
+ width: 0.59rem;
70
+ padding: 0.15rem 0.2rem 0rem 0.2rem;
71
+ }
67
72
  ._2TfEi {
68
73
  font-size: 0.6rem;
69
74
  padding-left: 1rem;
package/dist/index.js CHANGED
@@ -328,7 +328,7 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
328
328
  }, "Finish")));
329
329
  };
330
330
 
331
- var styles$1 = {"taskListWrapper":"_3ZbQT","taskListTableRow":"_34SS0","taskListCell":"_3lLk3","taskListNameWrapper":"_nI1Xw","taskListExpander":"_2QjE6","taskListEmptyExpander":"_2TfEi","taskListText":"_2ZvXU"};
331
+ var styles$1 = {"taskListWrapper":"_3ZbQT","taskListTableRow":"_34SS0","taskListCell":"_3lLk3","taskListNameWrapper":"_nI1Xw","taskListExpander":"_2QjE6","taskListExpanderPlaceholder":"_1fnLB","taskListEmptyExpander":"_2TfEi","taskListText":"_2ZvXU"};
332
332
 
333
333
  var localeDateStringCache = {};
334
334
 
@@ -375,10 +375,12 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
375
375
  }, tasks.map(function (t) {
376
376
  var expanderSymbol = "";
377
377
 
378
- if (t.hideChildren === false) {
379
- expanderSymbol = "▼";
380
- } else if (t.hideChildren === true) {
381
- expanderSymbol = "►";
378
+ if (t.childrenCount && t.childrenCount > 0) {
379
+ if (t.hideChildren === false) {
380
+ expanderSymbol = "▼";
381
+ } else if (t.hideChildren === true) {
382
+ expanderSymbol = "►";
383
+ }
382
384
  }
383
385
 
384
386
  return React__default.createElement("div", {
@@ -399,12 +401,14 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
399
401
  style: {
400
402
  paddingLeft: t.depth * 4 + "px"
401
403
  }
402
- }, React__default.createElement("div", {
404
+ }, t.childrenCount && t.childrenCount > 0 ? React__default.createElement("div", {
403
405
  className: styles$1.taskListExpander,
404
406
  onClick: function onClick() {
405
407
  return onExpanderClick(t);
406
408
  }
407
- }, expanderSymbol), React__default.createElement("div", {
409
+ }, expanderSymbol) : React__default.createElement("div", {
410
+ className: styles$1.taskListExpanderPlaceholder
411
+ }), React__default.createElement("div", {
408
412
  className: styles$1.taskListText
409
413
  }, t.id))), React__default.createElement("div", {
410
414
  className: styles$1.taskListCell,