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