gantt-task-react-powern 0.4.15 → 0.4.17

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.
@@ -285,8 +285,8 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
285
285
  }, React.createElement("div", {
286
286
  className: styles.ganttTable_HeaderItem,
287
287
  style: {
288
- minWidth: parseInt(rowWidth) / 2,
289
- maxWidth: parseInt(rowWidth) / 2
288
+ minWidth: parseInt(rowWidth) * 0.8,
289
+ maxWidth: parseInt(rowWidth) * 0.8
290
290
  }
291
291
  }, "\xA0WBS"), React.createElement("div", {
292
292
  className: styles.ganttTable_HeaderSeparator,
@@ -297,8 +297,8 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
297
297
  }), React.createElement("div", {
298
298
  className: styles.ganttTable_HeaderItem,
299
299
  style: {
300
- minWidth: parseInt(rowWidth) * 1.5,
301
- maxWidth: parseInt(rowWidth) * 1.5
300
+ minWidth: parseInt(rowWidth) * 2,
301
+ maxWidth: parseInt(rowWidth) * 2
302
302
  }
303
303
  }, "\xA0Task"), React.createElement("div", {
304
304
  className: styles.ganttTable_HeaderSeparator,
@@ -309,9 +309,9 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
309
309
  }), React.createElement("div", {
310
310
  className: styles.ganttTable_HeaderItem,
311
311
  style: {
312
- minWidth: rowWidth
312
+ minWidth: parseInt(rowWidth) * 0.6
313
313
  }
314
- }, "\xA0Start"), React.createElement("div", {
314
+ }, "\xA0Planned Start"), React.createElement("div", {
315
315
  className: styles.ganttTable_HeaderSeparator,
316
316
  style: {
317
317
  height: headerHeight * 0.5,
@@ -320,9 +320,9 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
320
320
  }), React.createElement("div", {
321
321
  className: styles.ganttTable_HeaderItem,
322
322
  style: {
323
- minWidth: rowWidth
323
+ minWidth: parseInt(rowWidth) * 0.6
324
324
  }
325
- }, "\xA0Finish")));
325
+ }, "\xA0Planned End")));
326
326
  };
327
327
 
328
328
  var styles$1 = {"taskListWrapper":"_3ZbQT","taskListTableRow":"_34SS0","taskListCell":"_3lLk3","taskListNameWrapper":"_nI1Xw","taskListExpander":"_2QjE6","taskListEmptyExpander":"_2TfEi","taskListText":"_2ZvXU"};
@@ -344,9 +344,8 @@ var toLocaleDateStringFactory = function toLocaleDateStringFactory(locale) {
344
344
  };
345
345
 
346
346
  var dateTimeOptions = {
347
- weekday: "short",
348
347
  year: "numeric",
349
- month: "long",
348
+ month: "numeric",
350
349
  day: "numeric"
351
350
  };
352
351
  var TaskListTableDefault = function TaskListTableDefault(_ref) {
@@ -388,7 +387,8 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
388
387
  }, React.createElement("div", {
389
388
  className: styles$1.taskListCell,
390
389
  style: {
391
- minWidth: parseInt(rowWidth) / 2
390
+ minWidth: parseInt(rowWidth) * 0.8,
391
+ maxWidth: parseInt(rowWidth) * 0.8
392
392
  },
393
393
  title: t.id
394
394
  }, React.createElement("div", {
@@ -406,24 +406,24 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
406
406
  }, t.id))), React.createElement("div", {
407
407
  className: styles$1.taskListCell,
408
408
  style: {
409
- minWidth: parseInt(rowWidth) * 1.5,
410
- maxWidth: parseInt(rowWidth) * 1.5
409
+ minWidth: parseInt(rowWidth) * 2,
410
+ maxWidth: parseInt(rowWidth) * 2
411
411
  }
412
412
  }, React.createElement("div", {
413
413
  className: styles$1.taskListText
414
414
  }, taskLabelRenderer(t))), React.createElement("div", {
415
415
  className: styles$1.taskListCell,
416
416
  style: {
417
- minWidth: rowWidth,
418
- maxWidth: rowWidth
417
+ minWidth: parseInt(rowWidth) * 0.6,
418
+ maxWidth: parseInt(rowWidth) * 0.6
419
419
  }
420
420
  }, React.createElement("div", {
421
421
  className: styles$1.taskListText
422
422
  }, "\xA0", toLocaleDateString(t.start, dateTimeOptions))), React.createElement("div", {
423
423
  className: styles$1.taskListCell,
424
424
  style: {
425
- minWidth: rowWidth,
426
- maxWidth: rowWidth
425
+ minWidth: parseInt(rowWidth) * 0.6,
426
+ maxWidth: parseInt(rowWidth) * 0.6
427
427
  }
428
428
  }, React.createElement("div", {
429
429
  className: styles$1.taskListText
@@ -535,7 +535,7 @@ var StandardTooltipContent = function StandardTooltipContent(_ref2) {
535
535
  style: {
536
536
  fontSize: fontSize + 6
537
537
  }
538
- }, task.name + ": Planned dates: "), React.createElement("b", null, task.start.getDate() + "-" + (task.start.getMonth() + 1) + "-" + task.start.getFullYear() + " - " + task.end.getDate() + "-" + (task.end.getMonth() + 1) + "-" + task.end.getFullYear()), task.end.getTime() - task.start.getTime() !== 0 && React.createElement("p", {
538
+ }, task.name + ": Planned dates: "), React.createElement("b", null, task.start.getMonth() + 1 + "/" + task.start.getDate() + "/" + task.start.getFullYear() + " - " + (task.end.getMonth() + 1) + "/" + task.end.getDate() + "/" + task.end.getFullYear()), task.end.getTime() - task.start.getTime() !== 0 && React.createElement("p", {
539
539
  className: styles$2.tooltipDefaultContainerParagraph
540
540
  }, "Duration: " + ~~((task.end.getTime() - task.start.getTime()) / (1000 * 60 * 60 * 24)) + " day(s)"), React.createElement("p", {
541
541
  className: styles$2.tooltipDefaultContainerParagraph
@@ -546,7 +546,7 @@ var StandardTooltipContent = function StandardTooltipContent(_ref2) {
546
546
  style: {
547
547
  fontSize: fontSize + 6
548
548
  }
549
- }, task.name + ": Actual dates: "), React.createElement("b", null, task.actualStart.getDate() + "-" + (task.actualStart.getMonth() + 1) + "-" + task.actualStart.getFullYear() + " - " + task.actualEnd.getDate() + "-" + (task.actualEnd.getMonth() + 1) + "-" + task.actualEnd.getFullYear()), task.actualEnd.getTime() - task.actualStart.getTime() !== 0 && React.createElement("p", {
549
+ }, task.name + ": Actual dates: "), React.createElement("b", null, task.actualStart.getMonth() + 1 + "/" + task.actualStart.getDate() + "/" + task.actualStart.getFullYear() + " - " + (task.actualEnd.getMonth() + 1) + "/" + task.actualEnd.getDate() + "/" + task.actualEnd.getFullYear()), task.actualEnd.getTime() - task.actualStart.getTime() !== 0 && React.createElement("p", {
550
550
  className: styles$2.tooltipDefaultContainerParagraph
551
551
  }, "Duration: " + ~~((task.actualEnd.getTime() - task.actualStart.getTime()) / (1000 * 60 * 60 * 24)) + " day(s)"), React.createElement("p", {
552
552
  className: styles$2.tooltipDefaultContainerParagraph
@@ -2356,7 +2356,7 @@ var Gantt = function Gantt(_ref) {
2356
2356
  _ref$preStepsCount = _ref.preStepsCount,
2357
2357
  preStepsCount = _ref$preStepsCount === void 0 ? 1 : _ref$preStepsCount,
2358
2358
  _ref$locale = _ref.locale,
2359
- locale = _ref$locale === void 0 ? "en-GB" : _ref$locale,
2359
+ locale = _ref$locale === void 0 ? "en-US" : _ref$locale,
2360
2360
  _ref$barFill = _ref.barFill,
2361
2361
  barFill = _ref$barFill === void 0 ? 60 : _ref$barFill,
2362
2362
  _ref$barCornerRadius = _ref.barCornerRadius,