gantt-task-react-powern 0.4.70 → 0.4.71

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
@@ -21,6 +21,10 @@ function _extends() {
21
21
  return _extends.apply(this, arguments);
22
22
  }
23
23
 
24
+ function _objectDestructuringEmpty(obj) {
25
+ if (obj == null) throw new TypeError("Cannot destructure undefined");
26
+ }
27
+
24
28
  function _unsupportedIterableToArray(o, minLen) {
25
29
  if (!o) return;
26
30
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -271,9 +275,6 @@ var getWeekNumberISO8601 = function getWeekNumberISO8601(date) {
271
275
  return weekNumber;
272
276
  }
273
277
  };
274
- var getDaysInMonth = function getDaysInMonth(month, year) {
275
- return new Date(year, month + 1, 0).getDate();
276
- };
277
278
 
278
279
  var styles = {"ganttTable":"_3_ygE","ganttTable_Header":"_1nBOt","ganttTable_HeaderSeparator":"_2eZzQ","ganttTable_HeaderItem":"_WuQ0f"};
279
280
 
@@ -282,6 +283,7 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
282
283
  fontFamily = _ref.fontFamily,
283
284
  fontSize = _ref.fontSize,
284
285
  rowWidth = _ref.rowWidth,
286
+ scheduleType = _ref.scheduleType,
285
287
  allSelected = _ref.allSelected,
286
288
  onSelectAll = _ref.onSelectAll;
287
289
  return React__default.createElement("div", {
@@ -346,7 +348,7 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
346
348
  }), React__default.createElement("div", {
347
349
  className: styles.ganttTable_HeaderItem,
348
350
  style: {
349
- minWidth: parseInt(rowWidth) * 0.7
351
+ minWidth: parseInt(rowWidth) * 0.6
350
352
  },
351
353
  title: "Planned Start"
352
354
  }, "Planned Start"), React__default.createElement("div", {
@@ -358,10 +360,28 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
358
360
  }), React__default.createElement("div", {
359
361
  className: styles.ganttTable_HeaderItem,
360
362
  style: {
361
- minWidth: parseInt(rowWidth) * 0.7
363
+ minWidth: parseInt(rowWidth) * 0.6
364
+ },
365
+ title: "Planned End"
366
+ }, "Planned End"), scheduleType === "lookAhead" && React__default.createElement("div", {
367
+ className: styles.ganttTable_HeaderItem,
368
+ style: {
369
+ minWidth: parseInt(rowWidth) * 0.6
370
+ },
371
+ title: "Planned Start"
372
+ }, "Actual Start"), scheduleType === "lookAhead" && React__default.createElement("div", {
373
+ className: styles.ganttTable_HeaderSeparator,
374
+ style: {
375
+ height: headerHeight * 0.5,
376
+ marginTop: headerHeight * 0.25
377
+ }
378
+ }), scheduleType === "lookAhead" && React__default.createElement("div", {
379
+ className: styles.ganttTable_HeaderItem,
380
+ style: {
381
+ minWidth: parseInt(rowWidth) * 0.6
362
382
  },
363
383
  title: "Planned End"
364
- }, "Planned End")));
384
+ }, "Actual End")));
365
385
  };
366
386
 
367
387
  var styles$1 = {"taskListWrapper":"_3ZbQT","taskListTableRow":"_34SS0","taskListLookAheadRow":"_GzvG4","taskListMilestoneRow":"_3Ykml","taskListCell":"_3lLk3","taskListNameWrapper":"_nI1Xw","taskListExpander":"_2QjE6","taskListExpanderPlaceholder":"_1fnLB","taskListEmptyExpander":"_2TfEi","taskListText":"_2ZvXU"};
@@ -518,7 +538,23 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
518
538
  }
519
539
  }, React__default.createElement("div", {
520
540
  className: styles$1.taskListText
521
- }, "\xA0", toLocaleDateString(t.end, dateTimeOptions))));
541
+ }, "\xA0", toLocaleDateString(t.end, dateTimeOptions))), scheduleType === "lookAhead" && React__default.createElement("div", {
542
+ className: styles$1.taskListCell,
543
+ style: {
544
+ minWidth: parseInt(rowWidth) * 0.6,
545
+ maxWidth: parseInt(rowWidth) * 0.6
546
+ }
547
+ }, React__default.createElement("div", {
548
+ className: styles$1.taskListText
549
+ }, "\xA0", toLocaleDateString(t.actualStart, dateTimeOptions))), scheduleType === "lookAhead" && React__default.createElement("div", {
550
+ className: styles$1.taskListCell,
551
+ style: {
552
+ minWidth: parseInt(rowWidth) * 0.6,
553
+ maxWidth: parseInt(rowWidth) * 0.6
554
+ }
555
+ }, React__default.createElement("div", {
556
+ className: styles$1.taskListText
557
+ }, "\xA0", toLocaleDateString(t.actualEnd, dateTimeOptions))));
522
558
  }));
523
559
  };
524
560
 
@@ -749,6 +785,7 @@ var TaskList = function TaskList(_ref) {
749
785
  fontFamily: fontFamily,
750
786
  fontSize: fontSize,
751
787
  rowWidth: rowWidth,
788
+ scheduleType: scheduleType,
752
789
  allSelected: tasks.length > 0 && selectedTasks.length === tasks.length,
753
790
  onSelectAll: onMultiSelect ? handleSelectAll : undefined
754
791
  };
@@ -782,21 +819,19 @@ var TaskList = function TaskList(_ref) {
782
819
 
783
820
  var styles$4 = {"gridRow":"_2dZTy","gridRowLookAhead":"_2RRca","gridRowLine":"_3rUKi","gridTick":"_RuwuK","darkerGridRow":"_2M-tt"};
784
821
 
785
- const GridBody = _ref => {
786
- let {
787
- tasks,
788
- scheduleType,
789
- dates,
790
- rowHeight,
791
- svgWidth,
792
- columnWidth,
793
- todayColor,
794
- weekendColor,
795
- rtl
796
- } = _ref;
797
- let y = 0;
798
- const gridRows = [];
799
- const rowLines = [React__default.createElement("line", {
822
+ var GridBody = function GridBody(_ref) {
823
+ var tasks = _ref.tasks,
824
+ scheduleType = _ref.scheduleType,
825
+ dates = _ref.dates,
826
+ rowHeight = _ref.rowHeight,
827
+ svgWidth = _ref.svgWidth,
828
+ columnWidth = _ref.columnWidth,
829
+ todayColor = _ref.todayColor,
830
+ weekendColor = _ref.weekendColor,
831
+ rtl = _ref.rtl;
832
+ var y = 0;
833
+ var gridRows = [];
834
+ var rowLines = [React__default.createElement("line", {
800
835
  key: "RowLineFirst",
801
836
  x: "0",
802
837
  y1: 0,
@@ -805,8 +840,9 @@ const GridBody = _ref => {
805
840
  className: styles$4.gridRowLine
806
841
  })];
807
842
 
808
- for (const task of tasks) {
809
- const isDarkerRow = task.type === "milestone";
843
+ for (var _iterator = _createForOfIteratorHelperLoose(tasks), _step; !(_step = _iterator()).done;) {
844
+ var task = _step.value;
845
+ var isDarkerRow = task.type === "milestone";
810
846
  gridRows.push(React__default.createElement("rect", {
811
847
  key: "Row" + task.id,
812
848
  x: "0",
@@ -826,14 +862,14 @@ const GridBody = _ref => {
826
862
  y += rowHeight;
827
863
  }
828
864
 
829
- const now = new Date();
830
- let tickX = 0;
831
- const ticks = [];
832
- let today = React__default.createElement("rect", null);
833
- let weekend = [];
865
+ var now = new Date();
866
+ var tickX = 0;
867
+ var ticks = [];
868
+ var today = React__default.createElement("rect", null);
869
+ var weekend = [];
834
870
 
835
- for (let i = 0; i < dates.length; i++) {
836
- const date = dates[i];
871
+ for (var i = 0; i < dates.length; i++) {
872
+ var date = dates[i];
837
873
  ticks.push(React__default.createElement("line", {
838
874
  key: date.getTime(),
839
875
  x1: tickX,
@@ -891,7 +927,7 @@ const GridBody = _ref => {
891
927
  }, today));
892
928
  };
893
929
 
894
- const Grid = props => {
930
+ var Grid = function Grid(props) {
895
931
  return React__default.createElement("g", {
896
932
  className: "grid"
897
933
  }, React__default.createElement(GridBody, Object.assign({}, props)));
@@ -899,17 +935,16 @@ const Grid = props => {
899
935
 
900
936
  var styles$5 = {"calendarBottomText":"_9w8d5","calendarTopTick":"_1rLuZ","calendarTopText":"_2q1Kt","calendarHeader":"_35nLX","textAnchorStart":"_2Shd-","textAnchorMiddle":"_2XXW4","textAnchorEnd":"_3GdnC"};
901
937
 
902
- const TopPartOfCalendar = _ref => {
903
- let {
904
- value,
905
- x1Line,
906
- y1Line,
907
- y2Line,
908
- xText,
909
- yText,
910
- textAnchor = "middle"
911
- } = _ref;
912
- const textAnchorClass = textAnchor === "start" ? styles$5.textAnchorStart : textAnchor === "middle" ? styles$5.textAnchorMiddle : styles$5.textAnchorEnd;
938
+ var TopPartOfCalendar = function TopPartOfCalendar(_ref) {
939
+ var value = _ref.value,
940
+ x1Line = _ref.x1Line,
941
+ y1Line = _ref.y1Line,
942
+ y2Line = _ref.y2Line,
943
+ xText = _ref.xText,
944
+ yText = _ref.yText,
945
+ _ref$textAnchor = _ref.textAnchor,
946
+ textAnchor = _ref$textAnchor === void 0 ? "middle" : _ref$textAnchor;
947
+ var textAnchorClass = textAnchor === "start" ? styles$5.textAnchorStart : textAnchor === "middle" ? styles$5.textAnchorMiddle : styles$5.textAnchorEnd;
913
948
  return React__default.createElement("g", {
914
949
  className: "calendarTop"
915
950
  }, React__default.createElement("line", {
@@ -923,30 +958,28 @@ const TopPartOfCalendar = _ref => {
923
958
  key: value + "text",
924
959
  y: yText,
925
960
  x: xText,
926
- className: `${styles$5.calendarTopText} ${textAnchorClass}`
961
+ className: styles$5.calendarTopText + " " + textAnchorClass
927
962
  }, value));
928
963
  };
929
964
 
930
- const Calendar = _ref => {
931
- let {
932
- dateSetup,
933
- locale,
934
- viewMode,
935
- rtl,
936
- headerHeight,
937
- columnWidth,
938
- fontFamily,
939
- fontSize
940
- } = _ref;
941
-
942
- const getCalendarValuesForYear = () => {
943
- const topValues = [];
944
- const bottomValues = [];
945
- const topDefaultHeight = headerHeight * 0.5;
946
-
947
- for (let i = 0; i < dateSetup.dates.length; i++) {
948
- const date = dateSetup.dates[i];
949
- const bottomValue = date.getFullYear();
965
+ var Calendar = function Calendar(_ref) {
966
+ var dateSetup = _ref.dateSetup,
967
+ locale = _ref.locale,
968
+ viewMode = _ref.viewMode,
969
+ rtl = _ref.rtl,
970
+ headerHeight = _ref.headerHeight,
971
+ columnWidth = _ref.columnWidth,
972
+ fontFamily = _ref.fontFamily,
973
+ fontSize = _ref.fontSize;
974
+
975
+ var getCalendarValuesForYear = function getCalendarValuesForYear() {
976
+ var topValues = [];
977
+ var bottomValues = [];
978
+ var topDefaultHeight = headerHeight * 0.5;
979
+
980
+ for (var i = 0; i < dateSetup.dates.length; i++) {
981
+ var date = dateSetup.dates[i];
982
+ var bottomValue = date.getFullYear();
950
983
  bottomValues.push(React__default.createElement("text", {
951
984
  key: date.getFullYear(),
952
985
  y: headerHeight * 0.8,
@@ -955,8 +988,8 @@ const Calendar = _ref => {
955
988
  }, bottomValue));
956
989
 
957
990
  if (i === 0 || date.getFullYear() !== dateSetup.dates[i - 1].getFullYear()) {
958
- const topValue = date.getFullYear().toString();
959
- let xText;
991
+ var topValue = date.getFullYear().toString();
992
+ var xText = void 0;
960
993
 
961
994
  if (rtl) {
962
995
  xText = (6 + i + date.getFullYear() + 1) * columnWidth;
@@ -979,25 +1012,25 @@ const Calendar = _ref => {
979
1012
  return [topValues, bottomValues];
980
1013
  };
981
1014
 
982
- const getCalendarValuesForQuarter = () => {
983
- const topValues = [];
984
- const bottomValues = [];
985
- const topDefaultHeight = headerHeight * 0.5;
1015
+ var getCalendarValuesForQuarter = function getCalendarValuesForQuarter() {
1016
+ var topValues = [];
1017
+ var bottomValues = [];
1018
+ var topDefaultHeight = headerHeight * 0.5;
986
1019
 
987
- for (let i = 0; i < dateSetup.dates.length; i++) {
988
- const date = dateSetup.dates[i];
989
- const quarter = Math.floor(date.getMonth() / 3) + 1;
990
- const bottomValue = `Q${quarter}`;
1020
+ for (var i = 0; i < dateSetup.dates.length; i++) {
1021
+ var date = dateSetup.dates[i];
1022
+ var quarter = Math.floor(date.getMonth() / 3) + 1;
1023
+ var bottomValue = "Q" + quarter;
991
1024
  bottomValues.push(React__default.createElement("text", {
992
- key: `${bottomValue}-${date.getFullYear()}`,
1025
+ key: bottomValue + "-" + date.getFullYear(),
993
1026
  y: headerHeight * 0.8,
994
1027
  x: columnWidth * i + columnWidth * 0.5,
995
1028
  className: styles$5.calendarBottomText
996
1029
  }, bottomValue));
997
1030
 
998
1031
  if (i === 0 || date.getFullYear() !== dateSetup.dates[i - 1].getFullYear()) {
999
- const topValue = date.getFullYear().toString();
1000
- let xText;
1032
+ var topValue = date.getFullYear().toString();
1033
+ var xText = void 0;
1001
1034
 
1002
1035
  if (rtl) {
1003
1036
  xText = (3 + i + quarter) * columnWidth;
@@ -1020,26 +1053,26 @@ const Calendar = _ref => {
1020
1053
  return [topValues, bottomValues];
1021
1054
  };
1022
1055
 
1023
- const getCalendarValuesForMonth = () => {
1024
- const topValues = [];
1025
- const bottomValues = [];
1026
- const topDefaultHeight = headerHeight * 0.5;
1056
+ var getCalendarValuesForMonth = function getCalendarValuesForMonth() {
1057
+ var topValues = [];
1058
+ var bottomValues = [];
1059
+ var topDefaultHeight = headerHeight * 0.5;
1027
1060
 
1028
- for (let i = 0; i < dateSetup.dates.length; i++) {
1029
- const date = dateSetup.dates[i];
1030
- const bottomValue = date.toLocaleString(locale, {
1061
+ for (var i = 0; i < dateSetup.dates.length; i++) {
1062
+ var date = dateSetup.dates[i];
1063
+ var bottomValue = date.toLocaleString(locale, {
1031
1064
  month: "short"
1032
1065
  });
1033
1066
  bottomValues.push(React__default.createElement("text", {
1034
1067
  key: bottomValue + date.getFullYear(),
1035
1068
  y: headerHeight * 0.8,
1036
1069
  x: columnWidth * i + columnWidth * 0.5,
1037
- className: `${styles$5.calendarTopText} ${styles$5.textAnchorEnd}`
1070
+ className: styles$5.calendarTopText + " " + styles$5.textAnchorEnd
1038
1071
  }, bottomValue));
1039
1072
 
1040
1073
  if (i === 0 || date.getFullYear() !== dateSetup.dates[i - 1].getFullYear()) {
1041
- const topValue = date.getFullYear().toString();
1042
- let xText;
1074
+ var topValue = date.getFullYear().toString();
1075
+ var xText = void 0;
1043
1076
 
1044
1077
  if (rtl) {
1045
1078
  xText = (6 + i + date.getMonth() + 1) * columnWidth;
@@ -1064,27 +1097,27 @@ const Calendar = _ref => {
1064
1097
  return [topValues, bottomValues];
1065
1098
  };
1066
1099
 
1067
- const getCalendarValuesForWeek = () => {
1068
- const topValues = [];
1069
- const bottomValues = [];
1070
- let weeksCount = 1;
1071
- const topDefaultHeight = headerHeight * 0.5;
1072
- const dates = dateSetup.dates;
1100
+ var getCalendarValuesForWeek = function getCalendarValuesForWeek() {
1101
+ var topValues = [];
1102
+ var bottomValues = [];
1103
+ var weeksCount = 1;
1104
+ var topDefaultHeight = headerHeight * 0.5;
1105
+ var dates = dateSetup.dates;
1073
1106
 
1074
- for (let i = dates.length - 1; i >= 0; i--) {
1075
- const date = dates[i];
1076
- let topValue = "";
1107
+ for (var i = dates.length - 1; i >= 0; i--) {
1108
+ var date = dates[i];
1109
+ var topValue = "";
1077
1110
 
1078
1111
  if (i === 0 || date.getMonth() !== dates[i - 1].getMonth()) {
1079
- topValue = `${getLocaleMonth(date, locale)}, ${date.getFullYear()}`;
1112
+ topValue = getLocaleMonth(date, locale) + ", " + date.getFullYear();
1080
1113
  }
1081
1114
 
1082
- const bottomValue = `W${getWeekNumberISO8601(date)}`;
1115
+ var bottomValue = "W" + getWeekNumberISO8601(date);
1083
1116
  bottomValues.push(React__default.createElement("text", {
1084
1117
  key: date.getTime(),
1085
1118
  y: headerHeight * 0.8,
1086
1119
  x: columnWidth * (i + +rtl),
1087
- className: `${styles$5.calendarTopText} ${styles$5.textAnchorStart}`
1120
+ className: styles$5.calendarTopText + " " + styles$5.textAnchorStart
1088
1121
  }, bottomValue));
1089
1122
 
1090
1123
  if (topValue) {
@@ -1110,31 +1143,45 @@ const Calendar = _ref => {
1110
1143
  return [topValues, bottomValues];
1111
1144
  };
1112
1145
 
1113
- const getCalendarValuesForDay = () => {
1114
- const topValues = [];
1115
- const bottomValues = [];
1116
- const topDefaultHeight = headerHeight * 0.5;
1117
- const dates = dateSetup.dates;
1146
+ var getCalendarValuesForDay = function getCalendarValuesForDay() {
1147
+ var topValues = [];
1148
+ var bottomValues = [];
1149
+ var topDefaultHeight = headerHeight * 0.5;
1150
+ var dates = dateSetup.dates;
1118
1151
 
1119
- for (let i = 0; i < dates.length; i++) {
1120
- const date = dates[i];
1121
- const bottomValue = `${getLocalDayOfWeek(date, locale, "short")}, ${date.getDate().toString()}`;
1152
+ for (var i = 0; i < dates.length; i++) {
1153
+ var date = dates[i];
1154
+ var bottomValue = getLocalDayOfWeek(date, locale, "short") + ", " + date.getDate().toString();
1122
1155
  bottomValues.push(React__default.createElement("text", {
1123
1156
  key: date.getTime(),
1124
1157
  y: headerHeight * 0.8,
1125
1158
  x: columnWidth * i + columnWidth * 0.5,
1126
- className: `${styles$5.calendarTopText} ${styles$5.textAnchorMiddle}`
1159
+ className: styles$5.calendarTopText + " " + styles$5.textAnchorMiddle
1127
1160
  }, bottomValue));
1128
1161
 
1129
1162
  if (i + 1 !== dates.length && date.getMonth() !== dates[i + 1].getMonth()) {
1130
- const topValue = `${getLocaleMonth(date, locale)} ${date.getFullYear()}`;
1163
+ var topValue = getLocaleMonth(date, locale) + " " + date.getFullYear();
1131
1164
  topValues.push(React__default.createElement(TopPartOfCalendar, {
1132
1165
  key: topValue + date.getFullYear(),
1133
1166
  value: topValue,
1134
1167
  x1Line: columnWidth * (i + 1),
1135
1168
  y1Line: 0,
1136
1169
  y2Line: topDefaultHeight,
1137
- xText: columnWidth * (i + 1) - getDaysInMonth(date.getMonth(), date.getFullYear()) * columnWidth * 0.5,
1170
+ xText: topValues.length === 0 ? columnWidth * (i + 1) * 0.5 : columnWidth * (i + 1) - date.getDate() * columnWidth * 0.5,
1171
+ yText: topDefaultHeight * 0.9
1172
+ }));
1173
+ }
1174
+
1175
+ if (i + 1 === dates.length) {
1176
+ var _topValue = getLocaleMonth(date, locale) + " " + date.getFullYear();
1177
+
1178
+ topValues.push(React__default.createElement(TopPartOfCalendar, {
1179
+ key: _topValue + date.getFullYear(),
1180
+ value: _topValue,
1181
+ x1Line: columnWidth * (i + 1),
1182
+ y1Line: 0,
1183
+ y2Line: topDefaultHeight,
1184
+ xText: columnWidth * (i + 1) - date.getDate() * columnWidth * 0.5,
1138
1185
  yText: topDefaultHeight * 0.9
1139
1186
  }));
1140
1187
  }
@@ -1143,28 +1190,28 @@ const Calendar = _ref => {
1143
1190
  return [topValues, bottomValues];
1144
1191
  };
1145
1192
 
1146
- const getCalendarValuesForPartOfDay = () => {
1147
- const topValues = [];
1148
- const bottomValues = [];
1149
- const ticks = viewMode === exports.ViewMode.HalfDay ? 2 : 4;
1150
- const topDefaultHeight = headerHeight * 0.5;
1151
- const dates = dateSetup.dates;
1193
+ var getCalendarValuesForPartOfDay = function getCalendarValuesForPartOfDay() {
1194
+ var topValues = [];
1195
+ var bottomValues = [];
1196
+ var ticks = viewMode === exports.ViewMode.HalfDay ? 2 : 4;
1197
+ var topDefaultHeight = headerHeight * 0.5;
1198
+ var dates = dateSetup.dates;
1152
1199
 
1153
- for (let i = 0; i < dates.length; i++) {
1154
- const date = dates[i];
1155
- const bottomValue = getCachedDateTimeFormat(locale, {
1200
+ for (var i = 0; i < dates.length; i++) {
1201
+ var date = dates[i];
1202
+ var bottomValue = getCachedDateTimeFormat(locale, {
1156
1203
  hour: "numeric"
1157
1204
  }).format(date);
1158
1205
  bottomValues.push(React__default.createElement("text", {
1159
1206
  key: date.getTime(),
1160
1207
  y: headerHeight * 0.8,
1161
1208
  x: columnWidth * (i + +rtl),
1162
- className: `${styles$5.calendarTopText} ${styles$5.textAnchorMiddle}`,
1209
+ className: styles$5.calendarTopText + " " + styles$5.textAnchorMiddle,
1163
1210
  fontFamily: fontFamily
1164
1211
  }, bottomValue));
1165
1212
 
1166
1213
  if (i === 0 || date.getDate() !== dates[i - 1].getDate()) {
1167
- const topValue = `${getLocalDayOfWeek(date, locale, "short")}, ${date.getDate()} ${getLocaleMonth(date, locale)}`;
1214
+ var topValue = getLocalDayOfWeek(date, locale, "short") + ", " + date.getDate() + " " + getLocaleMonth(date, locale);
1168
1215
  topValues.push(React__default.createElement(TopPartOfCalendar, {
1169
1216
  key: topValue + date.getFullYear(),
1170
1217
  value: topValue,
@@ -1180,15 +1227,15 @@ const Calendar = _ref => {
1180
1227
  return [topValues, bottomValues];
1181
1228
  };
1182
1229
 
1183
- const getCalendarValuesForHour = () => {
1184
- const topValues = [];
1185
- const bottomValues = [];
1186
- const topDefaultHeight = headerHeight * 0.5;
1187
- const dates = dateSetup.dates;
1230
+ var getCalendarValuesForHour = function getCalendarValuesForHour() {
1231
+ var topValues = [];
1232
+ var bottomValues = [];
1233
+ var topDefaultHeight = headerHeight * 0.5;
1234
+ var dates = dateSetup.dates;
1188
1235
 
1189
- for (let i = 0; i < dates.length; i++) {
1190
- const date = dates[i];
1191
- const bottomValue = getCachedDateTimeFormat(locale, {
1236
+ for (var i = 0; i < dates.length; i++) {
1237
+ var date = dates[i];
1238
+ var bottomValue = getCachedDateTimeFormat(locale, {
1192
1239
  hour: "numeric"
1193
1240
  }).format(date);
1194
1241
  bottomValues.push(React__default.createElement("text", {
@@ -1200,9 +1247,9 @@ const Calendar = _ref => {
1200
1247
  }, bottomValue));
1201
1248
 
1202
1249
  if (i !== 0 && date.getDate() !== dates[i - 1].getDate()) {
1203
- const displayDate = dates[i - 1];
1204
- const topValue = `${getLocalDayOfWeek(displayDate, locale, "long")}, ${displayDate.getDate()} ${getLocaleMonth(displayDate, locale)}`;
1205
- const topPosition = (date.getHours() - 24) / 2;
1250
+ var displayDate = dates[i - 1];
1251
+ var topValue = getLocalDayOfWeek(displayDate, locale, "long") + ", " + displayDate.getDate() + " " + getLocaleMonth(displayDate, locale);
1252
+ var topPosition = (date.getHours() - 24) / 2;
1206
1253
  topValues.push(React__default.createElement(TopPartOfCalendar, {
1207
1254
  key: topValue + displayDate.getFullYear(),
1208
1255
  value: topValue,
@@ -1218,37 +1265,58 @@ const Calendar = _ref => {
1218
1265
  return [topValues, bottomValues];
1219
1266
  };
1220
1267
 
1221
- let topValues = [];
1222
- let bottomValues = [];
1268
+ var topValues = [];
1269
+ var bottomValues = [];
1223
1270
 
1224
1271
  switch (dateSetup.viewMode) {
1225
1272
  case exports.ViewMode.Year:
1226
- [topValues, bottomValues] = getCalendarValuesForYear();
1273
+ var _getCalendarValuesFor = getCalendarValuesForYear();
1274
+
1275
+ topValues = _getCalendarValuesFor[0];
1276
+ bottomValues = _getCalendarValuesFor[1];
1227
1277
  break;
1228
1278
 
1229
1279
  case exports.ViewMode.Quarter:
1230
- [topValues, bottomValues] = getCalendarValuesForQuarter();
1280
+ var _getCalendarValuesFor2 = getCalendarValuesForQuarter();
1281
+
1282
+ topValues = _getCalendarValuesFor2[0];
1283
+ bottomValues = _getCalendarValuesFor2[1];
1231
1284
  break;
1232
1285
 
1233
1286
  case exports.ViewMode.Month:
1234
- [topValues, bottomValues] = getCalendarValuesForMonth();
1287
+ var _getCalendarValuesFor3 = getCalendarValuesForMonth();
1288
+
1289
+ topValues = _getCalendarValuesFor3[0];
1290
+ bottomValues = _getCalendarValuesFor3[1];
1235
1291
  break;
1236
1292
 
1237
1293
  case exports.ViewMode.Week:
1238
- [topValues, bottomValues] = getCalendarValuesForWeek();
1294
+ var _getCalendarValuesFor4 = getCalendarValuesForWeek();
1295
+
1296
+ topValues = _getCalendarValuesFor4[0];
1297
+ bottomValues = _getCalendarValuesFor4[1];
1239
1298
  break;
1240
1299
 
1241
1300
  case exports.ViewMode.Day:
1242
- [topValues, bottomValues] = getCalendarValuesForDay();
1301
+ var _getCalendarValuesFor5 = getCalendarValuesForDay();
1302
+
1303
+ topValues = _getCalendarValuesFor5[0];
1304
+ bottomValues = _getCalendarValuesFor5[1];
1243
1305
  break;
1244
1306
 
1245
1307
  case exports.ViewMode.QuarterDay:
1246
1308
  case exports.ViewMode.HalfDay:
1247
- [topValues, bottomValues] = getCalendarValuesForPartOfDay();
1309
+ var _getCalendarValuesFor6 = getCalendarValuesForPartOfDay();
1310
+
1311
+ topValues = _getCalendarValuesFor6[0];
1312
+ bottomValues = _getCalendarValuesFor6[1];
1248
1313
  break;
1249
1314
 
1250
1315
  case exports.ViewMode.Hour:
1251
- [topValues, bottomValues] = getCalendarValuesForHour();
1316
+ var _getCalendarValuesFor7 = getCalendarValuesForHour();
1317
+
1318
+ topValues = _getCalendarValuesFor7[0];
1319
+ bottomValues = _getCalendarValuesFor7[1];
1252
1320
  }
1253
1321
 
1254
1322
  return React__default.createElement("g", {
@@ -1284,23 +1352,27 @@ function _catch(body, recover) {
1284
1352
  return result;
1285
1353
  }
1286
1354
 
1287
- const Arrow = _ref => {
1288
- let {
1289
- taskFrom,
1290
- taskTo,
1291
- rowHeight,
1292
- taskHeight,
1293
- arrowIndent,
1294
- rtl,
1295
- arrowColor
1296
- } = _ref;
1297
- let path;
1298
- let trianglePoints;
1355
+ var Arrow = function Arrow(_ref) {
1356
+ var taskFrom = _ref.taskFrom,
1357
+ taskTo = _ref.taskTo,
1358
+ rowHeight = _ref.rowHeight,
1359
+ taskHeight = _ref.taskHeight,
1360
+ arrowIndent = _ref.arrowIndent,
1361
+ rtl = _ref.rtl,
1362
+ arrowColor = _ref.arrowColor;
1363
+ var path;
1364
+ var trianglePoints;
1299
1365
 
1300
1366
  if (rtl) {
1301
- [path, trianglePoints] = drownPathAndTriangleRTL(taskFrom, taskTo, rowHeight, taskHeight, arrowIndent);
1367
+ var _drownPathAndTriangle = drownPathAndTriangleRTL(taskFrom, taskTo, rowHeight, taskHeight, arrowIndent);
1368
+
1369
+ path = _drownPathAndTriangle[0];
1370
+ trianglePoints = _drownPathAndTriangle[1];
1302
1371
  } else {
1303
- [path, trianglePoints] = drownPathAndTriangle(taskFrom, taskTo, rowHeight, taskHeight, arrowIndent);
1372
+ var _drownPathAndTriangle2 = drownPathAndTriangle(taskFrom, taskTo, rowHeight, taskHeight, arrowIndent);
1373
+
1374
+ path = _drownPathAndTriangle2[0];
1375
+ trianglePoints = _drownPathAndTriangle2[1];
1304
1376
  }
1305
1377
 
1306
1378
  return React__default.createElement("g", {
@@ -1316,8 +1388,8 @@ const Arrow = _ref => {
1316
1388
  }));
1317
1389
  };
1318
1390
 
1319
- const drownPathAndTriangle = (taskFrom, taskTo, rowHeight, taskHeight, arrowIndent) => {
1320
- let taskToStart, taskFromEnd;
1391
+ var drownPathAndTriangle = function drownPathAndTriangle(taskFrom, taskTo, rowHeight, taskHeight, arrowIndent) {
1392
+ var taskToStart, taskFromEnd;
1321
1393
 
1322
1394
  if (taskTo.x1 > 0 && taskTo.actualx1 > 0) {
1323
1395
  taskToStart = Math.min(taskTo.x1, taskTo.actualx1);
@@ -1327,38 +1399,24 @@ const drownPathAndTriangle = (taskFrom, taskTo, rowHeight, taskHeight, arrowInde
1327
1399
  taskFromEnd = Math.max(taskFrom.x2, taskFrom.actualx2);
1328
1400
  } else if (taskFrom.x2 > 0) taskFromEnd = taskFrom.x2;else if (taskFrom.actualx2 > 0) taskFromEnd = taskFrom.actualx2;else taskFromEnd = 0;
1329
1401
 
1330
- const indexCompare = taskFrom.index > taskTo.index ? -1 : 1;
1331
- const taskToEndPosition = taskTo.y + taskHeight / 2;
1332
- const taskFromEndPosition = taskFromEnd + arrowIndent * 2;
1333
- const taskFromHorizontalOffsetValue = taskFromEndPosition < taskToStart ? "" : `H ${taskToStart - arrowIndent}`;
1334
- const taskToHorizontalOffsetValue = taskFromEndPosition > taskToStart ? arrowIndent : taskToStart - taskFromEnd - arrowIndent;
1335
- const path = `M ${taskFromEnd} ${taskFrom.y + taskHeight / 2}
1336
- h ${arrowIndent}
1337
- v ${indexCompare * rowHeight / 2}
1338
- ${taskFromHorizontalOffsetValue}
1339
- V ${taskToEndPosition}
1340
- h ${taskToHorizontalOffsetValue}`;
1341
- const trianglePoints = `${taskToStart},${taskToEndPosition}
1342
- ${taskToStart - 5},${taskToEndPosition - 5}
1343
- ${taskToStart - 5},${taskToEndPosition + 5}`;
1402
+ var indexCompare = taskFrom.index > taskTo.index ? -1 : 1;
1403
+ var taskToEndPosition = taskTo.y + taskHeight / 2;
1404
+ var taskFromEndPosition = taskFromEnd + arrowIndent * 2;
1405
+ var taskFromHorizontalOffsetValue = taskFromEndPosition < taskToStart ? "" : "H " + (taskToStart - arrowIndent);
1406
+ var taskToHorizontalOffsetValue = taskFromEndPosition > taskToStart ? arrowIndent : taskToStart - taskFromEnd - arrowIndent;
1407
+ var path = "M " + taskFromEnd + " " + (taskFrom.y + taskHeight / 2) + " \n h " + arrowIndent + " \n v " + indexCompare * rowHeight / 2 + " \n " + taskFromHorizontalOffsetValue + "\n V " + taskToEndPosition + " \n h " + taskToHorizontalOffsetValue;
1408
+ var trianglePoints = taskToStart + "," + taskToEndPosition + " \n " + (taskToStart - 5) + "," + (taskToEndPosition - 5) + " \n " + (taskToStart - 5) + "," + (taskToEndPosition + 5);
1344
1409
  return [path, trianglePoints];
1345
1410
  };
1346
1411
 
1347
- const drownPathAndTriangleRTL = (taskFrom, taskTo, rowHeight, taskHeight, arrowIndent) => {
1348
- const indexCompare = taskFrom.index > taskTo.index ? -1 : 1;
1349
- const taskToEndPosition = taskTo.y + taskHeight / 2;
1350
- const taskFromEndPosition = taskFrom.x1 - arrowIndent * 2;
1351
- const taskFromHorizontalOffsetValue = taskFromEndPosition > taskTo.x2 ? "" : `H ${taskTo.x2 + arrowIndent}`;
1352
- const taskToHorizontalOffsetValue = taskFromEndPosition < taskTo.x2 ? -arrowIndent : taskTo.x2 - taskFrom.x1 + arrowIndent;
1353
- const path = `M ${taskFrom.x1} ${taskFrom.y + taskHeight / 2}
1354
- h ${-arrowIndent}
1355
- v ${indexCompare * rowHeight / 2}
1356
- ${taskFromHorizontalOffsetValue}
1357
- V ${taskToEndPosition}
1358
- h ${taskToHorizontalOffsetValue}`;
1359
- const trianglePoints = `${taskTo.x2},${taskToEndPosition}
1360
- ${taskTo.x2 + 5},${taskToEndPosition + 5}
1361
- ${taskTo.x2 + 5},${taskToEndPosition - 5}`;
1412
+ var drownPathAndTriangleRTL = function drownPathAndTriangleRTL(taskFrom, taskTo, rowHeight, taskHeight, arrowIndent) {
1413
+ var indexCompare = taskFrom.index > taskTo.index ? -1 : 1;
1414
+ var taskToEndPosition = taskTo.y + taskHeight / 2;
1415
+ var taskFromEndPosition = taskFrom.x1 - arrowIndent * 2;
1416
+ var taskFromHorizontalOffsetValue = taskFromEndPosition > taskTo.x2 ? "" : "H " + (taskTo.x2 + arrowIndent);
1417
+ var taskToHorizontalOffsetValue = taskFromEndPosition < taskTo.x2 ? -arrowIndent : taskTo.x2 - taskFrom.x1 + arrowIndent;
1418
+ var path = "M " + taskFrom.x1 + " " + (taskFrom.y + taskHeight / 2) + " \n h " + -arrowIndent + " \n v " + indexCompare * rowHeight / 2 + " \n " + taskFromHorizontalOffsetValue + "\n V " + taskToEndPosition + " \n h " + taskToHorizontalOffsetValue;
1419
+ var trianglePoints = taskTo.x2 + "," + taskToEndPosition + " \n " + (taskTo.x2 + 5) + "," + (taskToEndPosition + 5) + " \n " + (taskTo.x2 + 5) + "," + (taskToEndPosition - 5);
1362
1420
  return [path, trianglePoints];
1363
1421
  };
1364
1422
 
@@ -1808,26 +1866,24 @@ var sortTasks = function sortTasks(taskA, taskB) {
1808
1866
  }
1809
1867
  };
1810
1868
 
1811
- const BarDisplay = _ref => {
1812
- let {
1813
- x,
1814
- y,
1815
- type,
1816
- width,
1817
- height,
1818
- isSelected,
1819
- progressX,
1820
- progressWidth,
1821
- barCornerRadius,
1822
- styles,
1823
- onMouseDown
1824
- } = _ref;
1825
-
1826
- const getProcessColor = () => {
1869
+ var BarDisplay = function BarDisplay(_ref) {
1870
+ var x = _ref.x,
1871
+ y = _ref.y,
1872
+ type = _ref.type,
1873
+ width = _ref.width,
1874
+ height = _ref.height,
1875
+ isSelected = _ref.isSelected,
1876
+ progressX = _ref.progressX,
1877
+ progressWidth = _ref.progressWidth,
1878
+ barCornerRadius = _ref.barCornerRadius,
1879
+ styles = _ref.styles,
1880
+ onMouseDown = _ref.onMouseDown;
1881
+
1882
+ var getProcessColor = function getProcessColor() {
1827
1883
  return isSelected ? styles.progressSelectedColor : styles.progressColor;
1828
1884
  };
1829
1885
 
1830
- const getBarColor = () => {
1886
+ var getBarColor = function getBarColor() {
1831
1887
  return isSelected ? styles.backgroundSelectedColor : styles.backgroundColor;
1832
1888
  };
1833
1889
 
@@ -1874,15 +1930,13 @@ const BarDisplay = _ref => {
1874
1930
 
1875
1931
  var styles$6 = {"barWrapper":"_KxSXS","barHandle":"_3w_5u","barBackground":"_31ERP"};
1876
1932
 
1877
- const BarDateHandle = _ref => {
1878
- let {
1879
- x,
1880
- y,
1881
- width,
1882
- height,
1883
- barCornerRadius,
1884
- onMouseDown
1885
- } = _ref;
1933
+ var BarDateHandle = function BarDateHandle(_ref) {
1934
+ var x = _ref.x,
1935
+ y = _ref.y,
1936
+ width = _ref.width,
1937
+ height = _ref.height,
1938
+ barCornerRadius = _ref.barCornerRadius,
1939
+ onMouseDown = _ref.onMouseDown;
1886
1940
  return React__default.createElement("rect", {
1887
1941
  x: x,
1888
1942
  y: y,
@@ -1895,22 +1949,22 @@ const BarDateHandle = _ref => {
1895
1949
  });
1896
1950
  };
1897
1951
 
1898
- const BarProgressHandle = _ref => {
1952
+ var BarProgressHandle = function BarProgressHandle(_ref) {
1953
+ _objectDestructuringEmpty(_ref);
1954
+
1899
1955
  return React__default.createElement("div", null);
1900
1956
  };
1901
1957
 
1902
- const Bar = _ref => {
1903
- let {
1904
- task,
1905
- isProgressChangeable,
1906
- isDateChangeable,
1907
- rtl,
1908
- type,
1909
- onEventStart,
1910
- isSelected
1911
- } = _ref;
1912
- const progressPoint = getProgressPoint(+!rtl * task.progressWidth + task.progressX, task.y, task.height);
1913
- const handleHeight = task.height / 2 - 1;
1958
+ var Bar = function Bar(_ref) {
1959
+ var task = _ref.task,
1960
+ isProgressChangeable = _ref.isProgressChangeable,
1961
+ isDateChangeable = _ref.isDateChangeable,
1962
+ rtl = _ref.rtl,
1963
+ type = _ref.type,
1964
+ onEventStart = _ref.onEventStart,
1965
+ isSelected = _ref.isSelected;
1966
+ var progressPoint = getProgressPoint(+!rtl * task.progressWidth + task.progressX, task.y, task.height);
1967
+ var handleHeight = task.height / 2 - 1;
1914
1968
 
1915
1969
  if (type == "planned") {
1916
1970
  if ((task === null || task === void 0 ? void 0 : task.x1) >= 0 && (task === null || task === void 0 ? void 0 : task.x2) >= 0) return React__default.createElement("g", {
@@ -1929,7 +1983,7 @@ const Bar = _ref => {
1929
1983
  barCornerRadius: task.barCornerRadius,
1930
1984
  styles: task.styles,
1931
1985
  isSelected: isSelected,
1932
- onMouseDown: e => {
1986
+ onMouseDown: function onMouseDown(e) {
1933
1987
  isDateChangeable && onEventStart("move", task, e, "planned");
1934
1988
  }
1935
1989
  }), React__default.createElement("g", {
@@ -1940,7 +1994,7 @@ const Bar = _ref => {
1940
1994
  width: task.handleWidth,
1941
1995
  height: handleHeight,
1942
1996
  barCornerRadius: task.barCornerRadius,
1943
- onMouseDown: e => {
1997
+ onMouseDown: function onMouseDown(e) {
1944
1998
  onEventStart("start", task, e, "planned");
1945
1999
  }
1946
2000
  }), React__default.createElement(BarDateHandle, {
@@ -1949,12 +2003,12 @@ const Bar = _ref => {
1949
2003
  width: task.handleWidth,
1950
2004
  height: handleHeight,
1951
2005
  barCornerRadius: task.barCornerRadius,
1952
- onMouseDown: e => {
2006
+ onMouseDown: function onMouseDown(e) {
1953
2007
  onEventStart("end", task, e, "planned");
1954
2008
  }
1955
2009
  })), isProgressChangeable && React__default.createElement(BarProgressHandle, {
1956
2010
  progressPoint: progressPoint,
1957
- onMouseDown: e => {
2011
+ onMouseDown: function onMouseDown(e) {
1958
2012
  onEventStart("progress", task, e, "planned");
1959
2013
  }
1960
2014
  })));else return React__default.createElement("g", {
@@ -1978,7 +2032,7 @@ const Bar = _ref => {
1978
2032
  barCornerRadius: task.barCornerRadius,
1979
2033
  styles: task.styles,
1980
2034
  isSelected: isSelected,
1981
- onMouseDown: e => {
2035
+ onMouseDown: function onMouseDown(e) {
1982
2036
  isDateChangeable && onEventStart("move", task, e, "actual");
1983
2037
  }
1984
2038
  }), React__default.createElement("g", {
@@ -1989,7 +2043,7 @@ const Bar = _ref => {
1989
2043
  width: task.handleWidth,
1990
2044
  height: handleHeight,
1991
2045
  barCornerRadius: task.barCornerRadius,
1992
- onMouseDown: e => {
2046
+ onMouseDown: function onMouseDown(e) {
1993
2047
  onEventStart("start", task, e, "actual");
1994
2048
  }
1995
2049
  }), React__default.createElement(BarDateHandle, {
@@ -1998,12 +2052,12 @@ const Bar = _ref => {
1998
2052
  width: task.handleWidth,
1999
2053
  height: handleHeight,
2000
2054
  barCornerRadius: task.barCornerRadius,
2001
- onMouseDown: e => {
2055
+ onMouseDown: function onMouseDown(e) {
2002
2056
  onEventStart("end", task, e, "actual");
2003
2057
  }
2004
2058
  })), isProgressChangeable && React__default.createElement(BarProgressHandle, {
2005
2059
  progressPoint: progressPoint,
2006
- onMouseDown: e => {
2060
+ onMouseDown: function onMouseDown(e) {
2007
2061
  onEventStart("progress", task, e, "actual");
2008
2062
  }
2009
2063
  })));
@@ -2015,16 +2069,14 @@ const Bar = _ref => {
2015
2069
  }
2016
2070
  };
2017
2071
 
2018
- const BarSmall = _ref => {
2019
- let {
2020
- task,
2021
- type,
2022
- isProgressChangeable,
2023
- isDateChangeable,
2024
- onEventStart,
2025
- isSelected
2026
- } = _ref;
2027
- const progressPoint = getProgressPoint(task.progressWidth + task.x1, task.y, task.height);
2072
+ var BarSmall = function BarSmall(_ref) {
2073
+ var task = _ref.task,
2074
+ type = _ref.type,
2075
+ isProgressChangeable = _ref.isProgressChangeable,
2076
+ isDateChangeable = _ref.isDateChangeable,
2077
+ onEventStart = _ref.onEventStart,
2078
+ isSelected = _ref.isSelected;
2079
+ var progressPoint = getProgressPoint(task.progressWidth + task.x1, task.y, task.height);
2028
2080
  return React__default.createElement("g", {
2029
2081
  className: styles$6.barWrapper,
2030
2082
  tabIndex: 0
@@ -2041,14 +2093,14 @@ const BarSmall = _ref => {
2041
2093
  barCornerRadius: task.barCornerRadius,
2042
2094
  styles: task.styles,
2043
2095
  isSelected: isSelected,
2044
- onMouseDown: e => {
2096
+ onMouseDown: function onMouseDown(e) {
2045
2097
  isDateChangeable && onEventStart("move", task, e);
2046
2098
  }
2047
2099
  }), React__default.createElement("g", {
2048
2100
  className: "handleGroup"
2049
2101
  }, isProgressChangeable && React__default.createElement(BarProgressHandle, {
2050
2102
  progressPoint: progressPoint,
2051
- onMouseDown: e => {
2103
+ onMouseDown: function onMouseDown(e) {
2052
2104
  onEventStart("progress", task, e);
2053
2105
  }
2054
2106
  })));
@@ -2056,17 +2108,14 @@ const BarSmall = _ref => {
2056
2108
 
2057
2109
  var styles$7 = {"milestoneWrapper":"_RRr13","milestoneBackground":"_2P2B1"};
2058
2110
 
2059
- const Milestone = _ref => {
2060
- let {
2061
- task,
2062
- isDateChangeable,
2063
- onEventStart,
2064
- isSelected
2065
- } = _ref;
2066
- const transform = `rotate(45 ${task.x1 + task.height * 0.356}
2067
- ${task.y + task.height * 0.85})`;
2068
-
2069
- const getBarColor = () => {
2111
+ var Milestone = function Milestone(_ref) {
2112
+ var task = _ref.task,
2113
+ isDateChangeable = _ref.isDateChangeable,
2114
+ onEventStart = _ref.onEventStart,
2115
+ isSelected = _ref.isSelected;
2116
+ var transform = "rotate(45 " + (task.x1 + task.height * 0.356) + " \n " + (task.y + task.height * 0.85) + ")";
2117
+
2118
+ var getBarColor = function getBarColor() {
2070
2119
  return isSelected ? task.styles.backgroundSelectedColor : task.styles.backgroundColor;
2071
2120
  };
2072
2121
 
@@ -2083,7 +2132,7 @@ const Milestone = _ref => {
2083
2132
  ry: task.barCornerRadius,
2084
2133
  transform: transform,
2085
2134
  className: styles$7.milestoneBackground,
2086
- onMouseDown: e => {
2135
+ onMouseDown: function onMouseDown(e) {
2087
2136
  isDateChangeable && onEventStart("move", task, e);
2088
2137
  }
2089
2138
  }));
@@ -2091,16 +2140,14 @@ const Milestone = _ref => {
2091
2140
 
2092
2141
  var styles$8 = {"projectWrapper":"_1KJ6x","projectBackground":"_2RbVy","projectTop":"_2pZMF"};
2093
2142
 
2094
- const Project = _ref => {
2095
- let {
2096
- task,
2097
- isSelected
2098
- } = _ref;
2099
- const barColor = isSelected ? task.styles.backgroundSelectedColor : task.styles.backgroundColor;
2100
- const processColor = isSelected ? task.styles.progressSelectedColor : task.styles.progressColor;
2101
- const projectWith = task.x2 - task.x1;
2102
- const projectLeftTriangle = [task.x1, task.y + task.height / 2 - 1, task.x1, task.y + task.height, task.x1 + 15, task.y + task.height / 2 - 1].join(",");
2103
- const projectRightTriangle = [task.x2, task.y + task.height / 2 - 1, task.x2, task.y + task.height, task.x2 - 15, task.y + task.height / 2 - 1].join(",");
2143
+ var Project = function Project(_ref) {
2144
+ var task = _ref.task,
2145
+ isSelected = _ref.isSelected;
2146
+ var barColor = isSelected ? task.styles.backgroundSelectedColor : task.styles.backgroundColor;
2147
+ var processColor = isSelected ? task.styles.progressSelectedColor : task.styles.progressColor;
2148
+ var projectWith = task.x2 - task.x1;
2149
+ var projectLeftTriangle = [task.x1, task.y + task.height / 2 - 1, task.x1, task.y + task.height, task.x1 + 15, task.y + task.height / 2 - 1].join(",");
2150
+ var projectRightTriangle = [task.x2, task.y + task.height / 2 - 1, task.x2, task.y + task.height, task.x2 - 15, task.y + task.height / 2 - 1].join(",");
2104
2151
  return React__default.createElement("g", {
2105
2152
  tabIndex: 0,
2106
2153
  className: styles$8.projectWrapper
@@ -2141,16 +2188,18 @@ const Project = _ref => {
2141
2188
  }));
2142
2189
  };
2143
2190
 
2144
- const TaskItem = props => {
2145
- const {
2146
- task,
2147
- isDelete,
2148
- isSelected,
2149
- onEventStart
2150
- } = { ...props
2151
- };
2152
- const [taskItem, setTaskItem] = React.useState([React__default.createElement("div", null)]);
2153
- React.useEffect(() => {
2191
+ var TaskItem = function TaskItem(props) {
2192
+ var _props = _extends({}, props),
2193
+ task = _props.task,
2194
+ isDelete = _props.isDelete,
2195
+ isSelected = _props.isSelected,
2196
+ onEventStart = _props.onEventStart;
2197
+
2198
+ var _useState = React.useState([React__default.createElement("div", null)]),
2199
+ taskItem = _useState[0],
2200
+ setTaskItem = _useState[1];
2201
+
2202
+ React.useEffect(function () {
2154
2203
  switch (task.typeInternal) {
2155
2204
  case "milestone":
2156
2205
  if (task.x1 >= 0 && task.actualx1 >= 0) setTaskItem([React__default.createElement(Milestone, Object.assign({}, props))]);else setTaskItem([]);
@@ -2166,27 +2215,27 @@ const TaskItem = props => {
2166
2215
 
2167
2216
  default:
2168
2217
  {
2169
- let taskItem = [];
2218
+ var _taskItem = [];
2170
2219
 
2171
2220
  if ((task === null || task === void 0 ? void 0 : task.x1) >= 0 && (task === null || task === void 0 ? void 0 : task.x2) >= 0) {
2172
- taskItem.push(React__default.createElement(Bar, Object.assign({}, props, {
2221
+ _taskItem.push(React__default.createElement(Bar, Object.assign({}, props, {
2173
2222
  type: "planned"
2174
2223
  })));
2175
2224
  }
2176
2225
 
2177
2226
  if ((task === null || task === void 0 ? void 0 : task.actualx1) >= 0 && (task === null || task === void 0 ? void 0 : task.actualx2) >= 0) {
2178
- taskItem.push(React__default.createElement(Bar, Object.assign({}, props, {
2227
+ _taskItem.push(React__default.createElement(Bar, Object.assign({}, props, {
2179
2228
  type: "actual"
2180
2229
  })));
2181
2230
  }
2182
2231
 
2183
- setTaskItem(taskItem);
2232
+ setTaskItem(_taskItem);
2184
2233
  }
2185
2234
  break;
2186
2235
  }
2187
2236
  }, [task, isSelected]);
2188
2237
  return React__default.createElement("g", null, React__default.createElement("g", {
2189
- onKeyDown: e => {
2238
+ onKeyDown: function onKeyDown(e) {
2190
2239
  switch (e.key) {
2191
2240
  case "Delete":
2192
2241
  {
@@ -2197,20 +2246,20 @@ const TaskItem = props => {
2197
2246
 
2198
2247
  e.stopPropagation();
2199
2248
  },
2200
- onMouseEnter: e => {
2249
+ onMouseEnter: function onMouseEnter(e) {
2201
2250
  onEventStart("mouseenter", task, e, "planned");
2202
2251
  },
2203
- onMouseLeave: e => {
2252
+ onMouseLeave: function onMouseLeave(e) {
2204
2253
  onEventStart("mouseleave", task, e, "planned");
2205
2254
  },
2206
- onDoubleClick: e => {
2255
+ onDoubleClick: function onDoubleClick(e) {
2207
2256
  onEventStart("dblclick", task, e, "planned");
2208
2257
  },
2209
- onClick: e => {
2258
+ onClick: function onClick(e) {
2210
2259
  onEventStart("click", task, e, "planned");
2211
2260
  }
2212
2261
  }, taskItem[0]), React__default.createElement("g", {
2213
- onKeyDown: e => {
2262
+ onKeyDown: function onKeyDown(e) {
2214
2263
  switch (e.key) {
2215
2264
  case "Delete":
2216
2265
  {
@@ -2221,74 +2270,82 @@ const TaskItem = props => {
2221
2270
 
2222
2271
  e.stopPropagation();
2223
2272
  },
2224
- onMouseEnter: e => {
2273
+ onMouseEnter: function onMouseEnter(e) {
2225
2274
  onEventStart("mouseenter", task, e, "actual");
2226
2275
  },
2227
- onMouseLeave: e => {
2276
+ onMouseLeave: function onMouseLeave(e) {
2228
2277
  onEventStart("mouseleave", task, e, "actual");
2229
2278
  },
2230
- onDoubleClick: e => {
2279
+ onDoubleClick: function onDoubleClick(e) {
2231
2280
  onEventStart("dblclick", task, e, "actual");
2232
2281
  },
2233
- onClick: e => {
2282
+ onClick: function onClick(e) {
2234
2283
  onEventStart("click", task, e, "actual");
2235
2284
  }
2236
2285
  }, taskItem[1]));
2237
2286
  };
2238
2287
 
2239
- const TaskGanttContent = _ref => {
2288
+ var TaskGanttContent = function TaskGanttContent(_ref) {
2240
2289
  var _svg$current;
2241
2290
 
2242
- let {
2243
- tasks,
2244
- dates,
2245
- ganttEvent,
2246
- selectedTask,
2247
- rowHeight,
2248
- columnWidth,
2249
- timeStep,
2250
- svg,
2251
- taskHeight,
2252
- arrowIndent,
2253
- fontFamily,
2254
- fontSize,
2255
- rtl,
2256
- setGanttEvent,
2257
- setFailedTask,
2258
- setSelectedTask,
2259
- onDateChange,
2260
- onProgressChange,
2261
- onDoubleClick,
2262
- onClick,
2263
- onDelete
2264
- } = _ref;
2265
- const point = svg === null || svg === void 0 ? void 0 : (_svg$current = svg.current) === null || _svg$current === void 0 ? void 0 : _svg$current.createSVGPoint();
2266
- const [xStep, setXStep] = React.useState(0);
2267
- const [initEventX1Delta, setInitEventX1Delta] = React.useState(0);
2268
- const [isMoving, setIsMoving] = React.useState(false);
2269
- React.useEffect(() => {
2270
- const dateDelta = dates[1].getTime() - dates[0].getTime() - dates[1].getTimezoneOffset() * 60 * 1000 + dates[0].getTimezoneOffset() * 60 * 1000;
2271
- const newXStep = timeStep * columnWidth / dateDelta;
2291
+ var tasks = _ref.tasks,
2292
+ dates = _ref.dates,
2293
+ ganttEvent = _ref.ganttEvent,
2294
+ selectedTask = _ref.selectedTask,
2295
+ rowHeight = _ref.rowHeight,
2296
+ columnWidth = _ref.columnWidth,
2297
+ timeStep = _ref.timeStep,
2298
+ svg = _ref.svg,
2299
+ taskHeight = _ref.taskHeight,
2300
+ arrowIndent = _ref.arrowIndent,
2301
+ fontFamily = _ref.fontFamily,
2302
+ fontSize = _ref.fontSize,
2303
+ rtl = _ref.rtl,
2304
+ setGanttEvent = _ref.setGanttEvent,
2305
+ setFailedTask = _ref.setFailedTask,
2306
+ setSelectedTask = _ref.setSelectedTask,
2307
+ onDateChange = _ref.onDateChange,
2308
+ onProgressChange = _ref.onProgressChange,
2309
+ onDoubleClick = _ref.onDoubleClick,
2310
+ onClick = _ref.onClick,
2311
+ onDelete = _ref.onDelete;
2312
+ var point = svg === null || svg === void 0 ? void 0 : (_svg$current = svg.current) === null || _svg$current === void 0 ? void 0 : _svg$current.createSVGPoint();
2313
+
2314
+ var _useState = React.useState(0),
2315
+ xStep = _useState[0],
2316
+ setXStep = _useState[1];
2317
+
2318
+ var _useState2 = React.useState(0),
2319
+ initEventX1Delta = _useState2[0],
2320
+ setInitEventX1Delta = _useState2[1];
2321
+
2322
+ var _useState3 = React.useState(false),
2323
+ isMoving = _useState3[0],
2324
+ setIsMoving = _useState3[1];
2325
+
2326
+ React.useEffect(function () {
2327
+ var dateDelta = dates[1].getTime() - dates[0].getTime() - dates[1].getTimezoneOffset() * 60 * 1000 + dates[0].getTimezoneOffset() * 60 * 1000;
2328
+ var newXStep = timeStep * columnWidth / dateDelta;
2272
2329
  setXStep(newXStep);
2273
2330
  }, [columnWidth, dates, timeStep]);
2274
- React.useEffect(() => {
2275
- const handleMouseMove = function (event) {
2331
+ React.useEffect(function () {
2332
+ var handleMouseMove = function handleMouseMove(event) {
2276
2333
  try {
2277
2334
  var _svg$current$getScree;
2278
2335
 
2279
2336
  if (!ganttEvent.changedTask || !point || !(svg !== null && svg !== void 0 && svg.current)) return Promise.resolve();
2280
2337
  event.preventDefault();
2281
2338
  point.x = event.clientX;
2282
- const cursor = point.matrixTransform(svg === null || svg === void 0 ? void 0 : (_svg$current$getScree = svg.current.getScreenCTM()) === null || _svg$current$getScree === void 0 ? void 0 : _svg$current$getScree.inverse());
2283
- const {
2284
- isChanged,
2285
- changedTask
2286
- } = handleTaskBySVGMouseEvent(cursor.x, ganttEvent.action, ganttEvent.changedTask, ganttEvent.type, xStep, timeStep, initEventX1Delta, rtl);
2339
+ var cursor = point.matrixTransform(svg === null || svg === void 0 ? void 0 : (_svg$current$getScree = svg.current.getScreenCTM()) === null || _svg$current$getScree === void 0 ? void 0 : _svg$current$getScree.inverse());
2340
+
2341
+ var _handleTaskBySVGMouse = handleTaskBySVGMouseEvent(cursor.x, ganttEvent.action, ganttEvent.changedTask, ganttEvent.type, xStep, timeStep, initEventX1Delta, rtl),
2342
+ isChanged = _handleTaskBySVGMouse.isChanged,
2343
+ changedTask = _handleTaskBySVGMouse.changedTask;
2287
2344
 
2288
2345
  if (isChanged) {
2289
2346
  setGanttEvent({
2290
2347
  action: ganttEvent.action,
2291
- changedTask
2348
+ changedTask: changedTask
2292
2349
  });
2293
2350
  }
2294
2351
 
@@ -2298,41 +2355,40 @@ const TaskGanttContent = _ref => {
2298
2355
  }
2299
2356
  };
2300
2357
 
2301
- const handleMouseUp = function (event) {
2358
+ var handleMouseUp = function handleMouseUp(event) {
2302
2359
  try {
2303
2360
  var _svg$current$getScree2;
2304
2361
 
2305
- function _temp5() {
2362
+ var _temp6 = function _temp6() {
2306
2363
  if (!operationSuccess) {
2307
2364
  setFailedTask(originalSelectedTask);
2308
2365
  }
2309
- }
2366
+ };
2310
2367
 
2311
- const {
2312
- action,
2313
- originalSelectedTask,
2314
- changedTask,
2315
- type
2316
- } = ganttEvent;
2368
+ var action = ganttEvent.action,
2369
+ originalSelectedTask = ganttEvent.originalSelectedTask,
2370
+ changedTask = ganttEvent.changedTask,
2371
+ type = ganttEvent.type;
2317
2372
  if (!changedTask || !point || !(svg !== null && svg !== void 0 && svg.current) || !originalSelectedTask) return Promise.resolve();
2318
2373
  event.preventDefault();
2319
2374
  point.x = event.clientX;
2320
- const cursor = point.matrixTransform(svg === null || svg === void 0 ? void 0 : (_svg$current$getScree2 = svg.current.getScreenCTM()) === null || _svg$current$getScree2 === void 0 ? void 0 : _svg$current$getScree2.inverse());
2321
- const {
2322
- changedTask: newChangedTask
2323
- } = handleTaskBySVGMouseEvent(cursor.x, action, changedTask, type, xStep, timeStep, initEventX1Delta, rtl);
2324
- const isNotLikeOriginal = originalSelectedTask.start !== newChangedTask.start || originalSelectedTask.end !== newChangedTask.end || originalSelectedTask.actualStart !== newChangedTask.actualStart || originalSelectedTask.actualEnd !== newChangedTask.actualEnd || originalSelectedTask.progress !== newChangedTask.progress;
2375
+ var cursor = point.matrixTransform(svg === null || svg === void 0 ? void 0 : (_svg$current$getScree2 = svg.current.getScreenCTM()) === null || _svg$current$getScree2 === void 0 ? void 0 : _svg$current$getScree2.inverse());
2376
+
2377
+ var _handleTaskBySVGMouse2 = handleTaskBySVGMouseEvent(cursor.x, action, changedTask, type, xStep, timeStep, initEventX1Delta, rtl),
2378
+ newChangedTask = _handleTaskBySVGMouse2.changedTask;
2379
+
2380
+ var isNotLikeOriginal = originalSelectedTask.start !== newChangedTask.start || originalSelectedTask.end !== newChangedTask.end || originalSelectedTask.actualStart !== newChangedTask.actualStart || originalSelectedTask.actualEnd !== newChangedTask.actualEnd || originalSelectedTask.progress !== newChangedTask.progress;
2325
2381
  svg.current.removeEventListener("mousemove", handleMouseMove);
2326
2382
  svg.current.removeEventListener("mouseup", handleMouseUp);
2327
2383
  setGanttEvent({
2328
2384
  action: ""
2329
2385
  });
2330
2386
  setIsMoving(false);
2331
- let operationSuccess = true;
2387
+ var operationSuccess = true;
2332
2388
 
2333
- const _temp4 = function () {
2389
+ var _temp7 = function () {
2334
2390
  if ((action === "move" || action === "end" || action === "start") && onDateChange && isNotLikeOriginal) {
2335
- const _temp = _catch(function () {
2391
+ var _temp8 = _catch(function () {
2336
2392
  return Promise.resolve(onDateChange(newChangedTask, newChangedTask.barChildren)).then(function (result) {
2337
2393
  if (result !== undefined) {
2338
2394
  operationSuccess = result;
@@ -2342,11 +2398,11 @@ const TaskGanttContent = _ref => {
2342
2398
  operationSuccess = false;
2343
2399
  });
2344
2400
 
2345
- if (_temp && _temp.then) return _temp.then(function () {});
2401
+ if (_temp8 && _temp8.then) return _temp8.then(function () {});
2346
2402
  } else {
2347
- const _temp3 = function () {
2403
+ var _temp9 = function () {
2348
2404
  if (onProgressChange && isNotLikeOriginal) {
2349
- const _temp2 = _catch(function () {
2405
+ var _temp10 = _catch(function () {
2350
2406
  return Promise.resolve(onProgressChange(newChangedTask, newChangedTask.barChildren)).then(function (result) {
2351
2407
  if (result !== undefined) {
2352
2408
  operationSuccess = result;
@@ -2356,15 +2412,15 @@ const TaskGanttContent = _ref => {
2356
2412
  operationSuccess = false;
2357
2413
  });
2358
2414
 
2359
- if (_temp2 && _temp2.then) return _temp2.then(function () {});
2415
+ if (_temp10 && _temp10.then) return _temp10.then(function () {});
2360
2416
  }
2361
2417
  }();
2362
2418
 
2363
- if (_temp3 && _temp3.then) return _temp3.then(function () {});
2419
+ if (_temp9 && _temp9.then) return _temp9.then(function () {});
2364
2420
  }
2365
2421
  }();
2366
2422
 
2367
- return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp5) : _temp5(_temp4));
2423
+ return Promise.resolve(_temp7 && _temp7.then ? _temp7.then(_temp6) : _temp6(_temp7));
2368
2424
  } catch (e) {
2369
2425
  return Promise.reject(e);
2370
2426
  }
@@ -2377,7 +2433,7 @@ const TaskGanttContent = _ref => {
2377
2433
  }
2378
2434
  }, [ganttEvent, xStep, initEventX1Delta, onProgressChange, timeStep, onDateChange, svg, isMoving, point, rtl, setFailedTask, setGanttEvent]);
2379
2435
 
2380
- const handleBarEventStart = function (action, task, event, type) {
2436
+ var handleBarEventStart = function handleBarEventStart(action, task, event, type) {
2381
2437
  try {
2382
2438
  return Promise.resolve(function () {
2383
2439
  if (!event) {
@@ -2386,15 +2442,15 @@ const TaskGanttContent = _ref => {
2386
2442
  }
2387
2443
  } else return function () {
2388
2444
  if (isKeyboardEvent(event)) {
2389
- const _temp8 = function () {
2445
+ var _temp14 = function () {
2390
2446
  if (action === "delete") {
2391
- const _temp7 = function () {
2447
+ var _temp15 = function () {
2392
2448
  if (onDelete) {
2393
- const _temp6 = _catch(function () {
2449
+ var _temp16 = _catch(function () {
2394
2450
  return Promise.resolve(onDelete(task)).then(function (result) {
2395
2451
  if (result !== undefined && result) {
2396
2452
  setGanttEvent({
2397
- action,
2453
+ action: action,
2398
2454
  changedTask: task
2399
2455
  });
2400
2456
  }
@@ -2403,19 +2459,19 @@ const TaskGanttContent = _ref => {
2403
2459
  console.error("Error on Delete. " + error);
2404
2460
  });
2405
2461
 
2406
- if (_temp6 && _temp6.then) return _temp6.then(function () {});
2462
+ if (_temp16 && _temp16.then) return _temp16.then(function () {});
2407
2463
  }
2408
2464
  }();
2409
2465
 
2410
- if (_temp7 && _temp7.then) return _temp7.then(function () {});
2466
+ if (_temp15 && _temp15.then) return _temp15.then(function () {});
2411
2467
  }
2412
2468
  }();
2413
2469
 
2414
- if (_temp8 && _temp8.then) return _temp8.then(function () {});
2470
+ if (_temp14 && _temp14.then) return _temp14.then(function () {});
2415
2471
  } else if (action === "mouseenter") {
2416
2472
  if (!ganttEvent.action) {
2417
2473
  setGanttEvent({
2418
- action,
2474
+ action: action,
2419
2475
  changedTask: task,
2420
2476
  originalSelectedTask: task,
2421
2477
  type: type
@@ -2436,17 +2492,17 @@ const TaskGanttContent = _ref => {
2436
2492
 
2437
2493
  if (!(svg !== null && svg !== void 0 && svg.current) || !point) return;
2438
2494
  point.x = event.clientX;
2439
- const cursor = point.matrixTransform((_svg$current$getScree3 = svg.current.getScreenCTM()) === null || _svg$current$getScree3 === void 0 ? void 0 : _svg$current$getScree3.inverse());
2495
+ var cursor = point.matrixTransform((_svg$current$getScree3 = svg.current.getScreenCTM()) === null || _svg$current$getScree3 === void 0 ? void 0 : _svg$current$getScree3.inverse());
2440
2496
  if (type == "planned") setInitEventX1Delta(cursor.x - task.x1);else if (type == "actual") setInitEventX1Delta(cursor.x - task.actualx1);
2441
2497
  setGanttEvent({
2442
- action,
2498
+ action: action,
2443
2499
  changedTask: task,
2444
2500
  originalSelectedTask: task,
2445
2501
  type: type
2446
2502
  });
2447
2503
  } else {
2448
2504
  setGanttEvent({
2449
- action,
2505
+ action: action,
2450
2506
  changedTask: task,
2451
2507
  originalSelectedTask: task,
2452
2508
  type: type
@@ -2463,8 +2519,8 @@ const TaskGanttContent = _ref => {
2463
2519
  className: "content"
2464
2520
  }, React__default.createElement("g", {
2465
2521
  className: "arrows"
2466
- }, tasks.map(_task => {
2467
- const task = _task.start.getTime() > 0 && _task.end.getTime() > 0 ? _task : undefined;
2522
+ }, tasks.map(function (_task) {
2523
+ var task = _task.start.getTime() > 0 && _task.end.getTime() > 0 ? _task : undefined;
2468
2524
 
2469
2525
  if (!task) {
2470
2526
  return React__default.createElement("g", {
@@ -2475,18 +2531,20 @@ const TaskGanttContent = _ref => {
2475
2531
  });
2476
2532
  }
2477
2533
 
2478
- return task.barChildren.map(child => {
2534
+ return task.barChildren.map(function (child) {
2479
2535
  var _task$criticalPathArr, _task$criticalPathArr2;
2480
2536
 
2481
2537
  if (task.x2 > task.x1 || task.actualx2 > task.actualx1) return React__default.createElement(Arrow, {
2482
- key: `Arrow from ${task.id} to ${tasks[child.index].id}`,
2538
+ key: "Arrow from " + task.id + " to " + tasks[child.index].id,
2483
2539
  taskFrom: task,
2484
2540
  taskTo: tasks[child.index],
2485
2541
  rowHeight: rowHeight,
2486
2542
  taskHeight: taskHeight,
2487
2543
  arrowIndent: arrowIndent,
2488
2544
  rtl: rtl,
2489
- arrowColor: ((_task$criticalPathArr = task.criticalPathArrows) === null || _task$criticalPathArr === void 0 ? void 0 : (_task$criticalPathArr2 = _task$criticalPathArr.find(arrow => arrow.taskId == tasks[child.index].id)) === null || _task$criticalPathArr2 === void 0 ? void 0 : _task$criticalPathArr2.arrowColor) || "#808080"
2545
+ arrowColor: ((_task$criticalPathArr = task.criticalPathArrows) === null || _task$criticalPathArr === void 0 ? void 0 : (_task$criticalPathArr2 = _task$criticalPathArr.find(function (arrow) {
2546
+ return arrow.taskId == tasks[child.index].id;
2547
+ })) === null || _task$criticalPathArr2 === void 0 ? void 0 : _task$criticalPathArr2.arrowColor) || "#808080"
2490
2548
  });else return React__default.createElement("g", {
2491
2549
  key: _task.id,
2492
2550
  style: {
@@ -2498,8 +2556,8 @@ const TaskGanttContent = _ref => {
2498
2556
  className: "bar",
2499
2557
  fontFamily: fontFamily,
2500
2558
  fontSize: fontSize
2501
- }, tasks.map(_task => {
2502
- const task = _task.start.getTime() > 0 && _task.end.getTime() > 0 ? _task : undefined;
2559
+ }, tasks.map(function (_task) {
2560
+ var task = _task.start.getTime() > 0 && _task.end.getTime() > 0 ? _task : undefined;
2503
2561
 
2504
2562
  if (!task) {
2505
2563
  return React__default.createElement("g", {
@@ -2818,8 +2876,12 @@ var Gantt = function Gantt(_ref) {
2818
2876
  secondaryPath = _getCriticalPaths[1];
2819
2877
 
2820
2878
  uncolorAll(tasks);
2821
- colorPath(secondaryPath, "#00ff00", tasks);
2822
- colorPath(primaryPath, "#ff0000", tasks);
2879
+
2880
+ if (scheduleType !== "lookAhead") {
2881
+ colorPath(secondaryPath, "#00ff00", tasks);
2882
+ colorPath(primaryPath, "#ff0000", tasks);
2883
+ }
2884
+
2823
2885
  setBarTasks(convertToBarTasks(filteredTasks, newDates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, milestoneBackgroundColor, milestoneBackgroundSelectedColor));
2824
2886
  }, [tasks, viewMode, preStepsCount, rowHeight, barCornerRadius, columnWidth, taskHeight, handleWidth, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, milestoneBackgroundColor, milestoneBackgroundSelectedColor, rtl, scrollX, onExpanderClick]);
2825
2887
  React.useEffect(function () {