gantt-task-react-powern 0.4.14 → 0.4.16
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.js +17 -17
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +17 -17
- package/dist/index.modern.js.map +1 -1
- package/dist/types/gantt-task-actions.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -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)
|
|
289
|
-
maxWidth: parseInt(rowWidth)
|
|
288
|
+
minWidth: parseInt(rowWidth),
|
|
289
|
+
maxWidth: parseInt(rowWidth)
|
|
290
290
|
}
|
|
291
291
|
}, "\xA0WBS"), React.createElement("div", {
|
|
292
292
|
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
|
-
}, "\
|
|
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
|
-
}, "\
|
|
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: "
|
|
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)
|
|
390
|
+
minWidth: parseInt(rowWidth),
|
|
391
|
+
maxWidth: parseInt(rowWidth)
|
|
392
392
|
},
|
|
393
393
|
title: t.id
|
|
394
394
|
}, React.createElement("div", {
|
|
@@ -414,16 +414,16 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
|
|
|
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.
|
|
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.
|
|
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-
|
|
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,
|
|
@@ -2544,7 +2544,7 @@ var Gantt = function Gantt(_ref) {
|
|
|
2544
2544
|
return t.id === changedTask.id;
|
|
2545
2545
|
});
|
|
2546
2546
|
|
|
2547
|
-
if (prevStateTask && (prevStateTask.start.getTime() !== changedTask.start.getTime() || prevStateTask.end.getTime() !== changedTask.end.getTime() || prevStateTask.progress !== changedTask.progress)) {
|
|
2547
|
+
if (prevStateTask && (prevStateTask.start.getTime() !== changedTask.start.getTime() || prevStateTask.end.getTime() !== changedTask.end.getTime() || prevStateTask.actualStart.getTime() !== changedTask.actualStart.getTime() || prevStateTask.actualEnd.getTime() !== changedTask.actualEnd.getTime() || prevStateTask.progress !== changedTask.progress)) {
|
|
2548
2548
|
var newTaskList = barTasks.map(function (t) {
|
|
2549
2549
|
return t.id === changedTask.id ? changedTask : t;
|
|
2550
2550
|
});
|