gantt-task-react-powern 0.4.64 → 0.4.65
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
CHANGED
|
@@ -285,7 +285,8 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
|
|
|
285
285
|
var headerHeight = _ref.headerHeight,
|
|
286
286
|
fontFamily = _ref.fontFamily,
|
|
287
287
|
fontSize = _ref.fontSize,
|
|
288
|
-
rowWidth = _ref.rowWidth
|
|
288
|
+
rowWidth = _ref.rowWidth,
|
|
289
|
+
scheduleType = _ref.scheduleType;
|
|
289
290
|
return React__default.createElement("div", {
|
|
290
291
|
className: styles.ganttTable,
|
|
291
292
|
style: {
|
|
@@ -312,8 +313,8 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
|
|
|
312
313
|
}), React__default.createElement("div", {
|
|
313
314
|
className: styles.ganttTable_HeaderItem,
|
|
314
315
|
style: {
|
|
315
|
-
minWidth: parseInt(rowWidth) *
|
|
316
|
-
maxWidth: parseInt(rowWidth) *
|
|
316
|
+
minWidth: parseInt(rowWidth) * 2,
|
|
317
|
+
maxWidth: parseInt(rowWidth) * 2
|
|
317
318
|
}
|
|
318
319
|
}, "Task"), React__default.createElement("div", {
|
|
319
320
|
className: styles.ganttTable_HeaderSeparator,
|
|
@@ -324,7 +325,7 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
|
|
|
324
325
|
}), React__default.createElement("div", {
|
|
325
326
|
className: styles.ganttTable_HeaderItem,
|
|
326
327
|
style: {
|
|
327
|
-
minWidth: parseInt(rowWidth) * 0.
|
|
328
|
+
minWidth: parseInt(rowWidth) * 0.6
|
|
328
329
|
},
|
|
329
330
|
title: "Planned Start"
|
|
330
331
|
}, "Planned Start"), React__default.createElement("div", {
|
|
@@ -336,10 +337,28 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
|
|
|
336
337
|
}), React__default.createElement("div", {
|
|
337
338
|
className: styles.ganttTable_HeaderItem,
|
|
338
339
|
style: {
|
|
339
|
-
minWidth: parseInt(rowWidth) * 0.
|
|
340
|
+
minWidth: parseInt(rowWidth) * 0.6
|
|
340
341
|
},
|
|
341
342
|
title: "Planned End"
|
|
342
|
-
}, "Planned End")
|
|
343
|
+
}, "Planned End"), scheduleType === "lookAhead" && React__default.createElement("div", {
|
|
344
|
+
className: styles.ganttTable_HeaderItem,
|
|
345
|
+
style: {
|
|
346
|
+
minWidth: parseInt(rowWidth) * 0.6
|
|
347
|
+
},
|
|
348
|
+
title: "Planned Start"
|
|
349
|
+
}, "Actual Start"), scheduleType === "lookAhead" && React__default.createElement("div", {
|
|
350
|
+
className: styles.ganttTable_HeaderSeparator,
|
|
351
|
+
style: {
|
|
352
|
+
height: headerHeight * 0.5,
|
|
353
|
+
marginTop: headerHeight * 0.25
|
|
354
|
+
}
|
|
355
|
+
}), scheduleType === "lookAhead" && React__default.createElement("div", {
|
|
356
|
+
className: styles.ganttTable_HeaderItem,
|
|
357
|
+
style: {
|
|
358
|
+
minWidth: parseInt(rowWidth) * 0.6
|
|
359
|
+
},
|
|
360
|
+
title: "Planned End"
|
|
361
|
+
}, "Actual End")));
|
|
343
362
|
};
|
|
344
363
|
|
|
345
364
|
var styles$1 = {"taskListWrapper":"_3ZbQT","taskListTableRow":"_34SS0","taskListLookAheadRow":"_GzvG4","taskListMilestoneRow":"_3Ykml","taskListCell":"_3lLk3","taskListNameWrapper":"_nI1Xw","taskListExpander":"_2QjE6","taskListExpanderPlaceholder":"_1fnLB","taskListEmptyExpander":"_2TfEi","taskListText":"_2ZvXU"};
|
|
@@ -463,7 +482,23 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
|
|
|
463
482
|
}
|
|
464
483
|
}, React__default.createElement("div", {
|
|
465
484
|
className: styles$1.taskListText
|
|
466
|
-
}, "\xA0", toLocaleDateString(t.end, dateTimeOptions)))
|
|
485
|
+
}, "\xA0", toLocaleDateString(t.end, dateTimeOptions))), scheduleType === "lookAhead" && React__default.createElement("div", {
|
|
486
|
+
className: styles$1.taskListCell,
|
|
487
|
+
style: {
|
|
488
|
+
minWidth: parseInt(rowWidth) * 0.6,
|
|
489
|
+
maxWidth: parseInt(rowWidth) * 0.6
|
|
490
|
+
}
|
|
491
|
+
}, React__default.createElement("div", {
|
|
492
|
+
className: styles$1.taskListText
|
|
493
|
+
}, "\xA0", toLocaleDateString(t.actualStart, dateTimeOptions))), scheduleType === "lookAhead" && React__default.createElement("div", {
|
|
494
|
+
className: styles$1.taskListCell,
|
|
495
|
+
style: {
|
|
496
|
+
minWidth: parseInt(rowWidth) * 0.6,
|
|
497
|
+
maxWidth: parseInt(rowWidth) * 0.6
|
|
498
|
+
}
|
|
499
|
+
}, React__default.createElement("div", {
|
|
500
|
+
className: styles$1.taskListText
|
|
501
|
+
}, "\xA0", toLocaleDateString(t.actualEnd, dateTimeOptions))));
|
|
467
502
|
}));
|
|
468
503
|
};
|
|
469
504
|
|
|
@@ -652,7 +687,8 @@ var TaskList = function TaskList(_ref) {
|
|
|
652
687
|
headerHeight: headerHeight,
|
|
653
688
|
fontFamily: fontFamily,
|
|
654
689
|
fontSize: fontSize,
|
|
655
|
-
rowWidth: rowWidth
|
|
690
|
+
rowWidth: rowWidth,
|
|
691
|
+
scheduleType: scheduleType
|
|
656
692
|
};
|
|
657
693
|
var selectedTaskId = selectedTask ? selectedTask.id : "";
|
|
658
694
|
var tableProps = {
|