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.modern.js
CHANGED
|
@@ -327,7 +327,7 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
|
|
|
327
327
|
}, "Finish")));
|
|
328
328
|
};
|
|
329
329
|
|
|
330
|
-
var styles$1 = {"taskListWrapper":"_3ZbQT","taskListTableRow":"_34SS0","taskListCell":"_3lLk3","taskListNameWrapper":"_nI1Xw","taskListExpander":"_2QjE6","taskListEmptyExpander":"_2TfEi","taskListText":"_2ZvXU"};
|
|
330
|
+
var styles$1 = {"taskListWrapper":"_3ZbQT","taskListTableRow":"_34SS0","taskListCell":"_3lLk3","taskListNameWrapper":"_nI1Xw","taskListExpander":"_2QjE6","taskListExpanderPlaceholder":"_1fnLB","taskListEmptyExpander":"_2TfEi","taskListText":"_2ZvXU"};
|
|
331
331
|
|
|
332
332
|
var localeDateStringCache = {};
|
|
333
333
|
|
|
@@ -374,10 +374,12 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
|
|
|
374
374
|
}, tasks.map(function (t) {
|
|
375
375
|
var expanderSymbol = "";
|
|
376
376
|
|
|
377
|
-
if (t.
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
377
|
+
if (t.childrenCount && t.childrenCount > 0) {
|
|
378
|
+
if (t.hideChildren === false) {
|
|
379
|
+
expanderSymbol = "▼";
|
|
380
|
+
} else if (t.hideChildren === true) {
|
|
381
|
+
expanderSymbol = "►";
|
|
382
|
+
}
|
|
381
383
|
}
|
|
382
384
|
|
|
383
385
|
return React.createElement("div", {
|
|
@@ -398,12 +400,14 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
|
|
|
398
400
|
style: {
|
|
399
401
|
paddingLeft: t.depth * 4 + "px"
|
|
400
402
|
}
|
|
401
|
-
}, React.createElement("div", {
|
|
403
|
+
}, t.childrenCount && t.childrenCount > 0 ? React.createElement("div", {
|
|
402
404
|
className: styles$1.taskListExpander,
|
|
403
405
|
onClick: function onClick() {
|
|
404
406
|
return onExpanderClick(t);
|
|
405
407
|
}
|
|
406
|
-
}, expanderSymbol)
|
|
408
|
+
}, expanderSymbol) : React.createElement("div", {
|
|
409
|
+
className: styles$1.taskListExpanderPlaceholder
|
|
410
|
+
}), React.createElement("div", {
|
|
407
411
|
className: styles$1.taskListText
|
|
408
412
|
}, t.id))), React.createElement("div", {
|
|
409
413
|
className: styles$1.taskListCell,
|