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