gantt-task-react-powern 0.4.67 → 0.4.69

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.
@@ -274,6 +274,9 @@ var getWeekNumberISO8601 = function getWeekNumberISO8601(date) {
274
274
  return weekNumber;
275
275
  }
276
276
  };
277
+ var getDaysInMonth = function getDaysInMonth(month, year) {
278
+ return new Date(year, month + 1, 0).getDate();
279
+ };
277
280
 
278
281
  var styles = {"ganttTable":"_3_ygE","ganttTable_Header":"_1nBOt","ganttTable_HeaderSeparator":"_2eZzQ","ganttTable_HeaderItem":"_WuQ0f"};
279
282
 
@@ -281,8 +284,7 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
281
284
  var headerHeight = _ref.headerHeight,
282
285
  fontFamily = _ref.fontFamily,
283
286
  fontSize = _ref.fontSize,
284
- rowWidth = _ref.rowWidth,
285
- scheduleType = _ref.scheduleType;
287
+ rowWidth = _ref.rowWidth;
286
288
  return React.createElement("div", {
287
289
  className: styles.ganttTable,
288
290
  style: {
@@ -309,10 +311,10 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
309
311
  }), React.createElement("div", {
310
312
  className: styles.ganttTable_HeaderItem,
311
313
  style: {
312
- minWidth: parseInt(rowWidth) * 2,
313
- maxWidth: parseInt(rowWidth) * 2
314
+ minWidth: parseInt(rowWidth) * 0.8,
315
+ maxWidth: parseInt(rowWidth) * 0.8
314
316
  }
315
- }, "Task"), React.createElement("div", {
317
+ }, "ID"), React.createElement("div", {
316
318
  className: styles.ganttTable_HeaderSeparator,
317
319
  style: {
318
320
  height: headerHeight * 0.5,
@@ -321,43 +323,37 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
321
323
  }), React.createElement("div", {
322
324
  className: styles.ganttTable_HeaderItem,
323
325
  style: {
324
- minWidth: parseInt(rowWidth) * 0.6
325
- },
326
- title: "Planned Start"
327
- }, "Planned Start"), React.createElement("div", {
326
+ minWidth: parseInt(rowWidth) * 1.8,
327
+ maxWidth: parseInt(rowWidth) * 1.8
328
+ }
329
+ }, "Task"), React.createElement("div", {
328
330
  className: styles.ganttTable_HeaderSeparator,
329
331
  style: {
330
332
  height: headerHeight * 0.5,
331
- marginTop: headerHeight * 0.25
333
+ marginTop: headerHeight * 0.2
332
334
  }
333
335
  }), React.createElement("div", {
334
336
  className: styles.ganttTable_HeaderItem,
335
337
  style: {
336
- minWidth: parseInt(rowWidth) * 0.6
337
- },
338
- title: "Planned End"
339
- }, "Planned End"), scheduleType === "lookAhead" && React.createElement("div", {
340
- className: styles.ganttTable_HeaderItem,
341
- style: {
342
- minWidth: parseInt(rowWidth) * 0.6
338
+ minWidth: parseInt(rowWidth) * 0.7
343
339
  },
344
340
  title: "Planned Start"
345
- }, "Actual Start"), scheduleType === "lookAhead" && React.createElement("div", {
341
+ }, "Planned Start"), React.createElement("div", {
346
342
  className: styles.ganttTable_HeaderSeparator,
347
343
  style: {
348
344
  height: headerHeight * 0.5,
349
345
  marginTop: headerHeight * 0.25
350
346
  }
351
- }), scheduleType === "lookAhead" && React.createElement("div", {
347
+ }), React.createElement("div", {
352
348
  className: styles.ganttTable_HeaderItem,
353
349
  style: {
354
- minWidth: parseInt(rowWidth) * 0.6
350
+ minWidth: parseInt(rowWidth) * 0.7
355
351
  },
356
352
  title: "Planned End"
357
- }, "Actual End")));
353
+ }, "Planned End")));
358
354
  };
359
355
 
360
- var styles$1 = {"taskListWrapper":"_3ZbQT","taskListTableRow":"_34SS0","taskListLookAheadRow":"_GzvG4","taskListMilestoneRow":"_3Ykml","taskListCell":"_3lLk3","taskListNameWrapper":"_nI1Xw","taskListExpander":"_2QjE6","taskListExpanderPlaceholder":"_1fnLB","taskListEmptyExpander":"_2TfEi","taskListText":"_2ZvXU"};
356
+ var styles$1 = {"taskListWrapper":"_3ZbQT","taskListTableRow":"_34SS0","taskListCell":"_3lLk3","taskListNameWrapper":"_nI1Xw","taskListExpander":"_2QjE6","taskListExpanderPlaceholder":"_1fnLB","taskListEmptyExpander":"_2TfEi","taskListText":"_2ZvXU"};
361
357
 
362
358
  var localeDateStringCache = {};
363
359
 
@@ -385,7 +381,6 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
385
381
  var rowHeight = _ref.rowHeight,
386
382
  rowWidth = _ref.rowWidth,
387
383
  tasks = _ref.tasks,
388
- scheduleType = _ref.scheduleType,
389
384
  leafTasks = _ref.leafTasks,
390
385
  fontFamily = _ref.fontFamily,
391
386
  fontSize = _ref.fontSize,
@@ -421,7 +416,7 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
421
416
  }
422
417
 
423
418
  return React.createElement("div", {
424
- className: t.type === "milestone" ? styles$1.taskListMilestoneRow : scheduleType === "lookAhead" ? styles$1.taskListLookAheadRow : styles$1.taskListTableRow,
419
+ className: styles$1.taskListTableRow,
425
420
  style: {
426
421
  height: rowHeight
427
422
  },
@@ -454,6 +449,13 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
454
449
  fontSize: "16px"
455
450
  }
456
451
  }, "\u2714") : ""))), React.createElement("div", {
452
+ className: styles$1.taskListCell,
453
+ style: {
454
+ minWidth: parseInt(rowWidth) * 0.8,
455
+ maxWidth: parseInt(rowWidth) * 0.8
456
+ },
457
+ title: t.optionalId ? t.optionalId : ""
458
+ }, t.optionalId), React.createElement("div", {
457
459
  className: styles$1.taskListCell,
458
460
  style: {
459
461
  minWidth: parseInt(rowWidth) * 2,
@@ -478,23 +480,7 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
478
480
  }
479
481
  }, React.createElement("div", {
480
482
  className: styles$1.taskListText
481
- }, "\xA0", toLocaleDateString(t.end, dateTimeOptions))), scheduleType === "lookAhead" && React.createElement("div", {
482
- className: styles$1.taskListCell,
483
- style: {
484
- minWidth: parseInt(rowWidth) * 0.6,
485
- maxWidth: parseInt(rowWidth) * 0.6
486
- }
487
- }, React.createElement("div", {
488
- className: styles$1.taskListText
489
- }, "\xA0", toLocaleDateString(t.actualStart, dateTimeOptions))), scheduleType === "lookAhead" && React.createElement("div", {
490
- className: styles$1.taskListCell,
491
- style: {
492
- minWidth: parseInt(rowWidth) * 0.6,
493
- maxWidth: parseInt(rowWidth) * 0.6
494
- }
495
- }, React.createElement("div", {
496
- className: styles$1.taskListText
497
- }, "\xA0", toLocaleDateString(t.actualEnd, dateTimeOptions))));
483
+ }, "\xA0", toLocaleDateString(t.end, dateTimeOptions))));
498
484
  }));
499
485
  };
500
486
 
@@ -661,7 +647,6 @@ var TaskList = function TaskList(_ref) {
661
647
  rowHeight = _ref.rowHeight,
662
648
  scrollY = _ref.scrollY,
663
649
  tasks = _ref.tasks,
664
- scheduleType = _ref.scheduleType,
665
650
  leafTasks = _ref.leafTasks,
666
651
  selectedTask = _ref.selectedTask,
667
652
  setSelectedTask = _ref.setSelectedTask,
@@ -683,8 +668,7 @@ var TaskList = function TaskList(_ref) {
683
668
  headerHeight: headerHeight,
684
669
  fontFamily: fontFamily,
685
670
  fontSize: fontSize,
686
- rowWidth: rowWidth,
687
- scheduleType: scheduleType
671
+ rowWidth: rowWidth
688
672
  };
689
673
  var selectedTaskId = selectedTask ? selectedTask.id : "";
690
674
  var tableProps = {
@@ -694,7 +678,6 @@ var TaskList = function TaskList(_ref) {
694
678
  fontSize: fontSize,
695
679
  tasks: tasks,
696
680
  leafTasks: leafTasks,
697
- scheduleType: scheduleType,
698
681
  locale: locale,
699
682
  selectedTaskId: selectedTaskId,
700
683
  setSelectedTask: setSelectedTask,
@@ -712,17 +695,15 @@ var TaskList = function TaskList(_ref) {
712
695
  }, React.createElement(TaskListTable, Object.assign({}, tableProps))));
713
696
  };
714
697
 
715
- var styles$4 = {"gridRow":"_2dZTy","gridRowLookAhead":"_2RRca","gridRowLine":"_3rUKi","gridTick":"_RuwuK","darkerGridRow":"_2M-tt"};
698
+ var styles$4 = {"gridRow":"_2dZTy","gridRowLine":"_3rUKi","gridTick":"_RuwuK","darkerGridRow":"_2M-tt"};
716
699
 
717
700
  var GridBody = function GridBody(_ref) {
718
701
  var tasks = _ref.tasks,
719
- scheduleType = _ref.scheduleType,
720
702
  dates = _ref.dates,
721
703
  rowHeight = _ref.rowHeight,
722
704
  svgWidth = _ref.svgWidth,
723
705
  columnWidth = _ref.columnWidth,
724
706
  todayColor = _ref.todayColor,
725
- weekendColor = _ref.weekendColor,
726
707
  rtl = _ref.rtl;
727
708
  var y = 0;
728
709
  var gridRows = [];
@@ -744,7 +725,7 @@ var GridBody = function GridBody(_ref) {
744
725
  y: y,
745
726
  width: svgWidth,
746
727
  height: rowHeight,
747
- className: isDarkerRow ? styles$4.darkerGridRow : scheduleType === "lookAhead" ? styles$4.gridRowLookAhead : styles$4.gridRow
728
+ className: isDarkerRow ? styles$4.darkerGridRow : styles$4.gridRow
748
729
  }));
749
730
  rowLines.push(React.createElement("line", {
750
731
  key: "RowLine" + task.id,
@@ -761,7 +742,6 @@ var GridBody = function GridBody(_ref) {
761
742
  var tickX = 0;
762
743
  var ticks = [];
763
744
  var today = React.createElement("rect", null);
764
- var weekend = [];
765
745
 
766
746
  for (var i = 0; i < dates.length; i++) {
767
747
  var date = dates[i];
@@ -784,16 +764,6 @@ var GridBody = function GridBody(_ref) {
784
764
  });
785
765
  }
786
766
 
787
- if (date.getDay() === 6 || date.getDay() === 0) {
788
- weekend.push(React.createElement("rect", {
789
- x: tickX,
790
- y: 0,
791
- width: columnWidth,
792
- height: y,
793
- fill: weekendColor
794
- }));
795
- }
796
-
797
767
  if (rtl && i + 1 !== dates.length && date.getTime() >= now.getTime() && dates[i + 1].getTime() < now.getTime()) {
798
768
  today = React.createElement("rect", {
799
769
  x: tickX + columnWidth,
@@ -815,9 +785,7 @@ var GridBody = function GridBody(_ref) {
815
785
  className: "rowLines"
816
786
  }, rowLines), React.createElement("g", {
817
787
  className: "ticks"
818
- }, ticks), scheduleType === "lookAhead" && React.createElement("g", {
819
- className: "weekend"
820
- }, weekend), React.createElement("g", {
788
+ }, ticks), React.createElement("g", {
821
789
  className: "today"
822
790
  }, today));
823
791
  };
@@ -1062,21 +1030,7 @@ var Calendar = function Calendar(_ref) {
1062
1030
  x1Line: columnWidth * (i + 1),
1063
1031
  y1Line: 0,
1064
1032
  y2Line: topDefaultHeight,
1065
- xText: topValues.length === 0 ? columnWidth * (i + 1) * 0.5 : columnWidth * (i + 1) - date.getDate() * columnWidth * 0.5,
1066
- yText: topDefaultHeight * 0.9
1067
- }));
1068
- }
1069
-
1070
- if (i + 1 === dates.length) {
1071
- var _topValue = getLocaleMonth(date, locale) + " " + date.getFullYear();
1072
-
1073
- topValues.push(React.createElement(TopPartOfCalendar, {
1074
- key: _topValue + date.getFullYear(),
1075
- value: _topValue,
1076
- x1Line: columnWidth * (i + 1),
1077
- y1Line: 0,
1078
- y2Line: topDefaultHeight,
1079
- xText: columnWidth * (i + 1) - date.getDate() * columnWidth * 0.5,
1033
+ xText: columnWidth * (i + 1) - getDaysInMonth(date.getMonth(), date.getFullYear()) * columnWidth * 0.5,
1080
1034
  yText: topDefaultHeight * 0.9
1081
1035
  }));
1082
1036
  }
@@ -1862,7 +1816,7 @@ var Bar = function Bar(_ref) {
1862
1816
  var handleHeight = task.height / 2 - 1;
1863
1817
 
1864
1818
  if (type == "planned") {
1865
- if ((task === null || task === void 0 ? void 0 : task.x1) >= 0 && (task === null || task === void 0 ? void 0 : task.x2) >= 0) return React.createElement("g", {
1819
+ if (task.x1 && task.x2) return React.createElement("g", {
1866
1820
  className: styles$6.barWrapper,
1867
1821
  tabIndex: 0
1868
1822
  }, React.createElement(BarDisplay, {
@@ -1910,7 +1864,7 @@ var Bar = function Bar(_ref) {
1910
1864
  className: styles$6.barWrapper,
1911
1865
  tabIndex: 0
1912
1866
  });
1913
- } else if ((task === null || task === void 0 ? void 0 : task.actualx1) >= 0 && (task === null || task === void 0 ? void 0 : task.actualx2) >= 0) {
1867
+ } else if (task.actualx1 && task.actualx2) {
1914
1868
  return React.createElement("g", {
1915
1869
  className: styles$6.barWrapper,
1916
1870
  tabIndex: 0
@@ -2097,11 +2051,11 @@ var TaskItem = function TaskItem(props) {
2097
2051
  useEffect(function () {
2098
2052
  switch (task.typeInternal) {
2099
2053
  case "milestone":
2100
- if (task.x1 >= 0 && task.actualx1 >= 0) setTaskItem([React.createElement(Milestone, Object.assign({}, props))]);else setTaskItem([]);
2054
+ setTaskItem([React.createElement(Milestone, Object.assign({}, props))]);
2101
2055
  break;
2102
2056
 
2103
2057
  case "project":
2104
- if ((task === null || task === void 0 ? void 0 : task.x1) >= 0 && (task === null || task === void 0 ? void 0 : task.x2) >= 0 && task.x2 > task.x1 && (task === null || task === void 0 ? void 0 : task.actualx1) >= 0 && (task === null || task === void 0 ? void 0 : task.actualx2) >= 0 && task.actualx2 > task.actualx1) setTaskItem([React.createElement(Project, Object.assign({}, props))]);else setTaskItem([]);
2058
+ setTaskItem([React.createElement(Project, Object.assign({}, props))]);
2105
2059
  break;
2106
2060
 
2107
2061
  case "smalltask":
@@ -2112,13 +2066,13 @@ var TaskItem = function TaskItem(props) {
2112
2066
  {
2113
2067
  var _taskItem = [];
2114
2068
 
2115
- if ((task === null || task === void 0 ? void 0 : task.x1) >= 0 && (task === null || task === void 0 ? void 0 : task.x2) >= 0) {
2069
+ if (task.x1 && task.x2) {
2116
2070
  _taskItem.push(React.createElement(Bar, Object.assign({}, props, {
2117
2071
  type: "planned"
2118
2072
  })));
2119
2073
  }
2120
2074
 
2121
- if ((task === null || task === void 0 ? void 0 : task.actualx1) >= 0 && (task === null || task === void 0 ? void 0 : task.actualx2) >= 0) {
2075
+ if (task.actualx1 && task.actualx2) {
2122
2076
  _taskItem.push(React.createElement(Bar, Object.assign({}, props, {
2123
2077
  type: "actual"
2124
2078
  })));
@@ -2429,7 +2383,7 @@ var TaskGanttContent = function TaskGanttContent(_ref) {
2429
2383
  return task.barChildren.map(function (child) {
2430
2384
  var _task$criticalPathArr, _task$criticalPathArr2;
2431
2385
 
2432
- if (task.x2 > task.x1 || task.actualx2 > task.actualx1) return React.createElement(Arrow, {
2386
+ return React.createElement(Arrow, {
2433
2387
  key: "Arrow from " + task.id + " to " + tasks[child.index].id,
2434
2388
  taskFrom: task,
2435
2389
  taskTo: tasks[child.index],
@@ -2440,11 +2394,6 @@ var TaskGanttContent = function TaskGanttContent(_ref) {
2440
2394
  arrowColor: ((_task$criticalPathArr = task.criticalPathArrows) === null || _task$criticalPathArr === void 0 ? void 0 : (_task$criticalPathArr2 = _task$criticalPathArr.find(function (arrow) {
2441
2395
  return arrow.taskId == tasks[child.index].id;
2442
2396
  })) === null || _task$criticalPathArr2 === void 0 ? void 0 : _task$criticalPathArr2.arrowColor) || "#808080"
2443
- });else return React.createElement("g", {
2444
- key: _task.id,
2445
- style: {
2446
- height: taskHeight
2447
- }
2448
2397
  });
2449
2398
  });
2450
2399
  })), React.createElement("g", {
@@ -2566,12 +2515,6 @@ var Gantt = function Gantt(_ref) {
2566
2515
  var tasks = _ref.tasks,
2567
2516
  _ref$leafTasks = _ref.leafTasks,
2568
2517
  leafTasks = _ref$leafTasks === void 0 ? [] : _ref$leafTasks,
2569
- _ref$scheduleType = _ref.scheduleType,
2570
- scheduleType = _ref$scheduleType === void 0 ? "main" : _ref$scheduleType,
2571
- _ref$startDate = _ref.startDate,
2572
- startDate = _ref$startDate === void 0 ? new Date() : _ref$startDate,
2573
- _ref$endDate = _ref.endDate,
2574
- endDate = _ref$endDate === void 0 ? new Date() : _ref$endDate,
2575
2518
  _ref$headerHeight = _ref.headerHeight,
2576
2519
  headerHeight = _ref$headerHeight === void 0 ? 50 : _ref$headerHeight,
2577
2520
  _ref$columnWidth = _ref.columnWidth,
@@ -2628,8 +2571,6 @@ var Gantt = function Gantt(_ref) {
2628
2571
  arrowIndent = _ref$arrowIndent === void 0 ? 20 : _ref$arrowIndent,
2629
2572
  _ref$todayColor = _ref.todayColor,
2630
2573
  todayColor = _ref$todayColor === void 0 ? "rgba(252, 248, 227, 0.5)" : _ref$todayColor,
2631
- _ref$weekendColor = _ref.weekendColor,
2632
- weekendColor = _ref$weekendColor === void 0 ? "#f5f5f5" : _ref$weekendColor,
2633
2574
  viewDate = _ref.viewDate,
2634
2575
  _ref$TooltipContent = _ref.TooltipContent,
2635
2576
  TooltipContent = _ref$TooltipContent === void 0 ? StandardTooltipContent : _ref$TooltipContent,
@@ -2650,19 +2591,12 @@ var Gantt = function Gantt(_ref) {
2650
2591
 
2651
2592
  var _useState = useState(function () {
2652
2593
  var _ganttDateRange = ganttDateRange(tasks, viewMode, preStepsCount),
2653
- startDateRange = _ganttDateRange[0],
2654
- endDateRange = _ganttDateRange[1];
2655
-
2656
- if (scheduleType === "lookAhead") {
2657
- return {
2658
- viewMode: viewMode,
2659
- dates: seedDates(startDate, endDate, viewMode)
2660
- };
2661
- }
2594
+ startDate = _ganttDateRange[0],
2595
+ endDate = _ganttDateRange[1];
2662
2596
 
2663
2597
  return {
2664
2598
  viewMode: viewMode,
2665
- dates: seedDates(startDateRange, endDateRange, viewMode)
2599
+ dates: seedDates(startDate, endDate, viewMode)
2666
2600
  };
2667
2601
  }),
2668
2602
  dateSetup = _useState[0],
@@ -2721,14 +2655,6 @@ var Gantt = function Gantt(_ref) {
2721
2655
  ignoreScrollEvent = _useState12[0],
2722
2656
  setIgnoreScrollEvent = _useState12[1];
2723
2657
 
2724
- useEffect(function () {
2725
- if (scheduleType === "lookAhead" && startDate && endDate) {
2726
- setDateSetup({
2727
- viewMode: viewMode,
2728
- dates: seedDates(startDate, endDate, viewMode)
2729
- });
2730
- }
2731
- }, [startDate, endDate]);
2732
2658
  useEffect(function () {
2733
2659
  var filteredTasks;
2734
2660
 
@@ -2741,14 +2667,10 @@ var Gantt = function Gantt(_ref) {
2741
2667
  filteredTasks = filteredTasks.sort(sortTasks);
2742
2668
 
2743
2669
  var _ganttDateRange2 = ganttDateRange(filteredTasks, viewMode, preStepsCount),
2744
- startDateRange = _ganttDateRange2[0],
2745
- endDateRange = _ganttDateRange2[1];
2746
-
2747
- var newDates = seedDates(startDateRange, endDateRange, viewMode);
2670
+ startDate = _ganttDateRange2[0],
2671
+ endDate = _ganttDateRange2[1];
2748
2672
 
2749
- if (scheduleType === "lookAhead") {
2750
- newDates = seedDates(startDate, endDate, viewMode);
2751
- }
2673
+ var newDates = seedDates(startDate, endDate, viewMode);
2752
2674
 
2753
2675
  if (rtl) {
2754
2676
  newDates = newDates.reverse();
@@ -2758,24 +2680,18 @@ var Gantt = function Gantt(_ref) {
2758
2680
  }
2759
2681
  }
2760
2682
 
2761
- if (scheduleType !== "lookAhead") {
2762
- setDateSetup({
2763
- dates: seedDates(startDateRange, endDateRange, viewMode),
2764
- viewMode: viewMode
2765
- });
2766
- }
2683
+ setDateSetup({
2684
+ dates: newDates,
2685
+ viewMode: viewMode
2686
+ });
2767
2687
 
2768
2688
  var _getCriticalPaths = getCriticalPaths(leafTasks),
2769
2689
  primaryPath = _getCriticalPaths[0],
2770
2690
  secondaryPath = _getCriticalPaths[1];
2771
2691
 
2772
2692
  uncolorAll(tasks);
2773
-
2774
- if (scheduleType !== "lookAhead") {
2775
- colorPath(secondaryPath, "#00ff00", tasks);
2776
- colorPath(primaryPath, "#ff0000", tasks);
2777
- }
2778
-
2693
+ colorPath(secondaryPath, "#00ff00", tasks);
2694
+ colorPath(primaryPath, "#ff0000", tasks);
2779
2695
  setBarTasks(convertToBarTasks(filteredTasks, newDates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, milestoneBackgroundColor, milestoneBackgroundSelectedColor));
2780
2696
  }, [tasks, viewMode, preStepsCount, rowHeight, barCornerRadius, columnWidth, taskHeight, handleWidth, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, milestoneBackgroundColor, milestoneBackgroundSelectedColor, rtl, scrollX, onExpanderClick]);
2781
2697
  useEffect(function () {
@@ -2994,11 +2910,9 @@ var Gantt = function Gantt(_ref) {
2994
2910
  columnWidth: columnWidth,
2995
2911
  svgWidth: svgWidth,
2996
2912
  tasks: tasks,
2997
- scheduleType: scheduleType,
2998
2913
  rowHeight: rowHeight,
2999
2914
  dates: dateSetup.dates,
3000
2915
  todayColor: todayColor,
3001
- weekendColor: weekendColor,
3002
2916
  rtl: rtl
3003
2917
  };
3004
2918
  var calendarProps = {
@@ -3042,7 +2956,6 @@ var Gantt = function Gantt(_ref) {
3042
2956
  fontSize: fontSize,
3043
2957
  tasks: barTasks,
3044
2958
  leafTasks: leafTasks,
3045
- scheduleType: scheduleType,
3046
2959
  locale: locale,
3047
2960
  headerHeight: headerHeight,
3048
2961
  scrollY: scrollY,