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 +5 -0
- package/dist/index.js +11 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11 -7
- package/dist/index.modern.js.map +1 -1
- package/dist/types/public-types.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.css
CHANGED
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.
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
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)
|
|
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,
|