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.
@@ -117,6 +117,14 @@ var ganttDateRange = function ganttDateRange(tasks, viewMode, preStepsCount) {
117
117
  if (task.end > newEndDate) {
118
118
  newEndDate = task.end;
119
119
  }
120
+
121
+ if (task.actualStart < newStartDate) {
122
+ newStartDate = task.actualStart;
123
+ }
124
+
125
+ if (task.actualEnd > newEndDate) {
126
+ newEndDate = task.actualEnd;
127
+ }
120
128
  }
121
129
 
122
130
  switch (viewMode) {
@@ -277,9 +285,10 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
277
285
  }, React.createElement("div", {
278
286
  className: styles.ganttTable_HeaderItem,
279
287
  style: {
280
- minWidth: rowWidth
288
+ minWidth: parseInt(rowWidth) / 2,
289
+ maxWidth: parseInt(rowWidth) / 2
281
290
  }
282
- }, "\xA0WBS"), React.createElement("div", {
291
+ }, "\xA0WBSGetitemgyrg"), React.createElement("div", {
283
292
  className: styles.ganttTable_HeaderSeparator,
284
293
  style: {
285
294
  height: headerHeight * 0.5,
@@ -288,7 +297,8 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
288
297
  }), React.createElement("div", {
289
298
  className: styles.ganttTable_HeaderItem,
290
299
  style: {
291
- minWidth: rowWidth
300
+ minWidth: parseInt(rowWidth) * 1.5,
301
+ maxWidth: parseInt(rowWidth) * 1.5
292
302
  }
293
303
  }, "\xA0Task"), React.createElement("div", {
294
304
  className: styles.ganttTable_HeaderSeparator,
@@ -378,12 +388,16 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
378
388
  }, React.createElement("div", {
379
389
  className: styles$1.taskListCell,
380
390
  style: {
381
- minWidth: rowWidth,
382
- maxWidth: rowWidth
391
+ minWidth: parseInt(rowWidth) / 2,
392
+ maxWidth: parseInt(rowWidth) / 2
383
393
  },
384
394
  title: t.id
385
395
  }, React.createElement("div", {
386
- className: styles$1.taskListNameWrapper
396
+ className: styles$1.taskListNameWrapper,
397
+ style: {
398
+ minWidth: parseInt(rowWidth) / 2,
399
+ maxWidth: parseInt(rowWidth) / 2
400
+ }
387
401
  }, React.createElement("div", {
388
402
  className: styles$1.taskListExpander,
389
403
  onClick: function onClick() {
@@ -392,10 +406,16 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
392
406
  }, expanderSymbol), React.createElement("div", null, t.id))), React.createElement("div", {
393
407
  className: styles$1.taskListCell,
394
408
  style: {
395
- minWidth: rowWidth,
396
- maxWidth: rowWidth
409
+ minWidth: parseInt(rowWidth) * 1.5,
410
+ maxWidth: parseInt(rowWidth) * 1.5
411
+ }
412
+ }, React.createElement("div", {
413
+ style: {
414
+ minWidth: parseInt(rowWidth) * 1.3,
415
+ maxWidth: parseInt(rowWidth) * 1.3,
416
+ overflow: "hidden"
397
417
  }
398
- }, taskLabelRenderer(t)), React.createElement("div", {
418
+ }, taskLabelRenderer(t))), React.createElement("div", {
399
419
  className: styles$1.taskListCell,
400
420
  style: {
401
421
  minWidth: rowWidth,