gantt-task-react-powern 0.4.5 → 0.4.8
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.
|
@@ -18,7 +18,7 @@ declare type BarDisplayProps = {
|
|
|
18
18
|
backgroundSelectedColor: string;
|
|
19
19
|
progressColor: string;
|
|
20
20
|
progressSelectedColor: string;
|
|
21
|
-
criticalPathColor
|
|
21
|
+
criticalPathColor?: string;
|
|
22
22
|
};
|
|
23
23
|
onMouseDown: (event: React.MouseEvent<SVGPolygonElement, MouseEvent>) => void;
|
|
24
24
|
};
|
package/dist/index.css
CHANGED
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
display: table-cell;
|
|
21
21
|
vertical-align: -webkit-baseline-middle;
|
|
22
22
|
vertical-align: middle;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
text-overflow: ellipsis;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
._3ZbQT {
|
|
@@ -31,6 +34,8 @@
|
|
|
31
34
|
._34SS0 {
|
|
32
35
|
display: table-row;
|
|
33
36
|
text-overflow: ellipsis;
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
overflow: hidden;
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
._34SS0:nth-of-type(even) {
|
package/dist/index.js
CHANGED
|
@@ -118,6 +118,14 @@ var ganttDateRange = function ganttDateRange(tasks, viewMode, preStepsCount) {
|
|
|
118
118
|
if (task.end > newEndDate) {
|
|
119
119
|
newEndDate = task.end;
|
|
120
120
|
}
|
|
121
|
+
|
|
122
|
+
if (task.actualStart < newStartDate) {
|
|
123
|
+
newStartDate = task.actualStart;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (task.actualEnd > newEndDate) {
|
|
127
|
+
newEndDate = task.actualEnd;
|
|
128
|
+
}
|
|
121
129
|
}
|
|
122
130
|
|
|
123
131
|
switch (viewMode) {
|
|
@@ -278,9 +286,10 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
|
|
|
278
286
|
}, React__default.createElement("div", {
|
|
279
287
|
className: styles.ganttTable_HeaderItem,
|
|
280
288
|
style: {
|
|
281
|
-
minWidth: rowWidth
|
|
289
|
+
minWidth: parseInt(rowWidth) / 2,
|
|
290
|
+
maxWidth: parseInt(rowWidth) / 2
|
|
282
291
|
}
|
|
283
|
-
}, "\
|
|
292
|
+
}, "\xA0WBSGetitemgyrg"), React__default.createElement("div", {
|
|
284
293
|
className: styles.ganttTable_HeaderSeparator,
|
|
285
294
|
style: {
|
|
286
295
|
height: headerHeight * 0.5,
|
|
@@ -289,7 +298,8 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
|
|
|
289
298
|
}), React__default.createElement("div", {
|
|
290
299
|
className: styles.ganttTable_HeaderItem,
|
|
291
300
|
style: {
|
|
292
|
-
minWidth: rowWidth
|
|
301
|
+
minWidth: parseInt(rowWidth) * 1.5,
|
|
302
|
+
maxWidth: parseInt(rowWidth) * 1.5
|
|
293
303
|
}
|
|
294
304
|
}, "\xA0Task"), React__default.createElement("div", {
|
|
295
305
|
className: styles.ganttTable_HeaderSeparator,
|
|
@@ -379,12 +389,16 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
|
|
|
379
389
|
}, React__default.createElement("div", {
|
|
380
390
|
className: styles$1.taskListCell,
|
|
381
391
|
style: {
|
|
382
|
-
minWidth: rowWidth,
|
|
383
|
-
maxWidth: rowWidth
|
|
392
|
+
minWidth: parseInt(rowWidth) / 2,
|
|
393
|
+
maxWidth: parseInt(rowWidth) / 2
|
|
384
394
|
},
|
|
385
395
|
title: t.id
|
|
386
396
|
}, React__default.createElement("div", {
|
|
387
|
-
className: styles$1.taskListNameWrapper
|
|
397
|
+
className: styles$1.taskListNameWrapper,
|
|
398
|
+
style: {
|
|
399
|
+
minWidth: parseInt(rowWidth) / 2,
|
|
400
|
+
maxWidth: parseInt(rowWidth) / 2
|
|
401
|
+
}
|
|
388
402
|
}, React__default.createElement("div", {
|
|
389
403
|
className: styles$1.taskListExpander,
|
|
390
404
|
onClick: function onClick() {
|
|
@@ -393,10 +407,16 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
|
|
|
393
407
|
}, expanderSymbol), React__default.createElement("div", null, t.id))), React__default.createElement("div", {
|
|
394
408
|
className: styles$1.taskListCell,
|
|
395
409
|
style: {
|
|
396
|
-
minWidth: rowWidth,
|
|
397
|
-
maxWidth: rowWidth
|
|
410
|
+
minWidth: parseInt(rowWidth) * 1.5,
|
|
411
|
+
maxWidth: parseInt(rowWidth) * 1.5
|
|
412
|
+
}
|
|
413
|
+
}, React__default.createElement("div", {
|
|
414
|
+
style: {
|
|
415
|
+
minWidth: parseInt(rowWidth) * 1.3,
|
|
416
|
+
maxWidth: parseInt(rowWidth) * 1.3,
|
|
417
|
+
overflow: "hidden"
|
|
398
418
|
}
|
|
399
|
-
}, taskLabelRenderer(t)), React__default.createElement("div", {
|
|
419
|
+
}, taskLabelRenderer(t))), React__default.createElement("div", {
|
|
400
420
|
className: styles$1.taskListCell,
|
|
401
421
|
style: {
|
|
402
422
|
minWidth: rowWidth,
|