@thepocman/gantt-task-react 1.0.23 → 1.0.25

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.
@@ -1416,6 +1416,8 @@ const getDateByOffset = (startDate, offset2, viewMode) => {
1416
1416
  return addWeeks(startDate, offset2);
1417
1417
  case ViewMode.QuarterYear:
1418
1418
  return addQuarters(startDate, offset2);
1419
+ case ViewMode.HalfYear:
1420
+ return addMonths(startDate, offset2 * 6);
1419
1421
  case ViewMode.Year:
1420
1422
  return addYears(startDate, offset2);
1421
1423
  default:
@@ -1860,7 +1862,7 @@ const tooltipDefaultContainer = "_tooltipDefaultContainer_qip67_1";
1860
1862
  const tooltipDefaultContainerParagraph = "_tooltipDefaultContainerParagraph_qip67_13";
1861
1863
  const tooltipDetailsContainer = "_tooltipDetailsContainer_qip67_25";
1862
1864
  const tooltipDetailsContainerHidden = "_tooltipDetailsContainerHidden_qip67_49";
1863
- const styles$j = {
1865
+ const styles$i = {
1864
1866
  tooltipDefaultContainer,
1865
1867
  tooltipDefaultContainerParagraph,
1866
1868
  tooltipDetailsContainer,
@@ -1900,12 +1902,12 @@ const StandardTooltipContent = ({ task, fontSize, fontFamily }) => {
1900
1902
  return /* @__PURE__ */ jsxs(
1901
1903
  "div",
1902
1904
  {
1903
- className: styles$j.tooltipDefaultContainer,
1905
+ className: styles$i.tooltipDefaultContainer,
1904
1906
  style: style2,
1905
1907
  children: [
1906
1908
  /* @__PURE__ */ jsx("b", { style: { fontSize: fontSize + 6 }, children: `${task.name}: ${task.start.getDate()}-${task.start.getMonth() + 1}-${task.start.getFullYear()} - ${task.end.getDate()}-${task.end.getMonth() + 1}-${task.end.getFullYear()}` }),
1907
- task.end.getTime() - task.start.getTime() !== 0 && /* @__PURE__ */ jsx("p", { className: styles$j.tooltipDefaultContainerParagraph, children: `Duration: ${~~((task.end.getTime() - task.start.getTime()) / (1e3 * 60 * 60 * 24))} day(s)` }),
1908
- /* @__PURE__ */ jsx("p", { className: styles$j.tooltipDefaultContainerParagraph, children: !!task.progress && `Progress: ${task.progress} %` })
1909
+ task.end.getTime() - task.start.getTime() !== 0 && /* @__PURE__ */ jsx("p", { className: styles$i.tooltipDefaultContainerParagraph, children: `Duration: ${~~((task.end.getTime() - task.start.getTime()) / (1e3 * 60 * 60 * 24))} day(s)` }),
1910
+ /* @__PURE__ */ jsx("p", { className: styles$i.tooltipDefaultContainerParagraph, children: !!task.progress && `Progress: ${task.progress} %` })
1909
1911
  ]
1910
1912
  }
1911
1913
  );
@@ -1987,7 +1989,7 @@ const useGroupedVirtualization = (_containerRef, rowIndexToTasksMap, taskHeight)
1987
1989
  ];
1988
1990
  };
1989
1991
  const button$2 = "_button_1eue5_1";
1990
- const styles$i = {
1992
+ const styles$h = {
1991
1993
  button: button$2
1992
1994
  };
1993
1995
  const AddColumn = (props) => {
@@ -2005,14 +2007,14 @@ const AddColumn = (props) => {
2005
2007
  }
2006
2008
  return /* @__PURE__ */ jsx("button", { type: "button", onClick, style: {
2007
2009
  "color": colors.barLabelColor
2008
- }, className: styles$i.button, children: (icons == null ? void 0 : icons.renderAddIcon) ? icons.renderAddIcon(task) : "+" });
2010
+ }, className: styles$h.button, children: (icons == null ? void 0 : icons.renderAddIcon) ? icons.renderAddIcon(task) : "+" });
2009
2011
  };
2010
2012
  const taskListNameWrapper = "_taskListNameWrapper_1un0e_1";
2011
2013
  const dragging = "_dragging_1un0e_11";
2012
2014
  const taskListExpander = "_taskListExpander_1un0e_19";
2013
2015
  const taskListEmptyExpander = "_taskListEmptyExpander_1un0e_35";
2014
2016
  const taskName = "_taskName_1un0e_45";
2015
- const styles$h = {
2017
+ const styles$g = {
2016
2018
  taskListNameWrapper,
2017
2019
  dragging,
2018
2020
  taskListExpander,
@@ -2055,7 +2057,7 @@ const TitleColumn = (props) => {
2055
2057
  "div",
2056
2058
  {
2057
2059
  "data-testid": `title-table-cell-${name}`,
2058
- className: `${styles$h.taskListNameWrapper}`,
2060
+ className: `${styles$g.taskListNameWrapper}`,
2059
2061
  style: {
2060
2062
  paddingLeft: depth * nestedTaskNameOffset
2061
2063
  },
@@ -2064,7 +2066,7 @@ const TitleColumn = (props) => {
2064
2066
  /* @__PURE__ */ jsx(
2065
2067
  "div",
2066
2068
  {
2067
- className: `${styles$h.taskListExpander} ${!hasChildren ? styles$h.taskListEmptyExpander : ""}`,
2069
+ className: `${styles$g.taskListExpander} ${!hasChildren ? styles$g.taskListEmptyExpander : ""}`,
2068
2070
  onClick,
2069
2071
  style: {
2070
2072
  width: expandIconWidth
@@ -2074,7 +2076,7 @@ const TitleColumn = (props) => {
2074
2076
  ),
2075
2077
  /* @__PURE__ */ jsxs("div", { style: {
2076
2078
  color: colors.barLabelColor
2077
- }, className: styles$h.taskName, children: [
2079
+ }, className: styles$g.taskName, children: [
2078
2080
  isShowTaskNumbers && /* @__PURE__ */ jsxs("b", { children: [
2079
2081
  indexStr,
2080
2082
  " "
@@ -3171,7 +3173,7 @@ const DependenciesColumn = ({
3171
3173
  }, children: dependencies.map(({ name }) => name).join(", ") });
3172
3174
  };
3173
3175
  const button$1 = "_button_1eue5_1";
3174
- const styles$g = {
3176
+ const styles$f = {
3175
3177
  button: button$1
3176
3178
  };
3177
3179
  const DeleteColumn = (props) => {
@@ -3183,10 +3185,10 @@ const DeleteColumn = (props) => {
3183
3185
  }, [task, handleDeleteTasks]);
3184
3186
  return /* @__PURE__ */ jsx("button", { type: "button", onClick, style: {
3185
3187
  "color": colors.barLabelColor
3186
- }, className: styles$g.button, children: (icons == null ? void 0 : icons.renderDeleteIcon) ? icons.renderDeleteIcon(task) : "-" });
3188
+ }, className: styles$f.button, children: (icons == null ? void 0 : icons.renderDeleteIcon) ? icons.renderDeleteIcon(task) : "-" });
3187
3189
  };
3188
3190
  const button = "_button_ys66g_1";
3189
- const styles$f = {
3191
+ const styles$e = {
3190
3192
  button
3191
3193
  };
3192
3194
  const EditColumn = (props) => {
@@ -3198,7 +3200,7 @@ const EditColumn = (props) => {
3198
3200
  }, [task, handleEditTask]);
3199
3201
  return /* @__PURE__ */ jsx("button", { type: "button", onClick, style: {
3200
3202
  "color": colors.barLabelColor
3201
- }, className: styles$f.button, children: (icons == null ? void 0 : icons.renderEditIcon) ? icons.renderEditIcon(task) : "✎" });
3203
+ }, className: styles$e.button, children: (icons == null ? void 0 : icons.renderEditIcon) ? icons.renderEditIcon(task) : "✎" });
3202
3204
  };
3203
3205
  const useTableListResize = (columnsProp, distances, onResizeColumn) => {
3204
3206
  const [columnsState, setColumns] = useState(() => {
@@ -3404,7 +3406,7 @@ const ganttTableWrapper = "_ganttTableWrapper_1ogga_15";
3404
3406
  const taskListResizer = "_taskListResizer_1ogga_79";
3405
3407
  const taskListContent = "_taskListContent_1ogga_127";
3406
3408
  const hidden = "_hidden_1ogga_147";
3407
- const styles$e = {
3409
+ const styles$d = {
3408
3410
  ganttTableRoot,
3409
3411
  ganttTableWrapper,
3410
3412
  taskListResizer,
@@ -3472,11 +3474,11 @@ const TaskListInner = ({
3472
3474
  fullRowHeight
3473
3475
  );
3474
3476
  const renderedIndexes = enableTaskGrouping ? groupedIndexes : optimizedIndexes;
3475
- return /* @__PURE__ */ jsxs("div", { className: styles$e.ganttTableRoot, ref: taskListRef, children: [
3477
+ return /* @__PURE__ */ jsxs("div", { className: styles$d.ganttTableRoot, ref: taskListRef, children: [
3476
3478
  /* @__PURE__ */ jsxs(
3477
3479
  "div",
3478
3480
  {
3479
- className: styles$e.ganttTableWrapper,
3481
+ className: styles$d.ganttTableWrapper,
3480
3482
  style: {
3481
3483
  width: tableWidth
3482
3484
  },
@@ -3499,7 +3501,7 @@ const TaskListInner = ({
3499
3501
  /* @__PURE__ */ jsx(
3500
3502
  "div",
3501
3503
  {
3502
- className: styles$e.taskListContent,
3504
+ className: styles$d.taskListContent,
3503
3505
  ref: taskListContentRef,
3504
3506
  onScroll: onScrollTableListContentVertically,
3505
3507
  children: /* @__PURE__ */ jsx(
@@ -3562,7 +3564,7 @@ const TaskListInner = ({
3562
3564
  /* @__PURE__ */ jsx(
3563
3565
  "div",
3564
3566
  {
3565
- className: styles$e.taskListResizer,
3567
+ className: styles$d.taskListResizer,
3566
3568
  onMouseDown: (event) => {
3567
3569
  onTableResizeStart(event.clientX);
3568
3570
  },
@@ -3583,7 +3585,7 @@ const ganttTable_HeaderContent = "_ganttTable_HeaderContent_1ndeo_29";
3583
3585
  const ganttTable_HeaderTitle = "_ganttTable_HeaderTitle_1ndeo_41";
3584
3586
  const ganttTable_HeaderItem = "_ganttTable_HeaderItem_1ndeo_49";
3585
3587
  const resizer = "_resizer_1ndeo_75";
3586
- const styles$d = {
3588
+ const styles$c = {
3587
3589
  ganttTable_Header,
3588
3590
  ganttTable_HeaderSeparator,
3589
3591
  ganttTable_HeaderContent,
@@ -3680,7 +3682,7 @@ const TaskListHeaderDefaultInner = (props) => {
3680
3682
  return /* @__PURE__ */ jsx(
3681
3683
  "div",
3682
3684
  {
3683
- className: styles$d.ganttTable_Header,
3685
+ className: styles$c.ganttTable_Header,
3684
3686
  style: {
3685
3687
  height: headerHeight,
3686
3688
  fontFamily,
@@ -3691,7 +3693,7 @@ const TaskListHeaderDefaultInner = (props) => {
3691
3693
  index2 > 0 && /* @__PURE__ */ jsx(
3692
3694
  "div",
3693
3695
  {
3694
- className: styles$d.ganttTable_HeaderSeparator,
3696
+ className: styles$c.ganttTable_HeaderSeparator,
3695
3697
  style: {
3696
3698
  height: headerHeight * 0.5,
3697
3699
  marginTop: headerHeight * 0.2
@@ -3702,14 +3704,14 @@ const TaskListHeaderDefaultInner = (props) => {
3702
3704
  "div",
3703
3705
  {
3704
3706
  "data-testid": `table-column-header-${title}`,
3705
- className: styles$d.ganttTable_HeaderItem,
3707
+ className: styles$c.ganttTable_HeaderItem,
3706
3708
  style: {
3707
3709
  minWidth: width,
3708
3710
  maxWidth: width
3709
3711
  },
3710
3712
  children: [
3711
- /* @__PURE__ */ jsxs("div", { className: styles$d.ganttTable_HeaderContent, children: [
3712
- /* @__PURE__ */ jsx("div", { className: styles$d.ganttTable_HeaderTitle, children: title }),
3713
+ /* @__PURE__ */ jsxs("div", { className: styles$c.ganttTable_HeaderContent, children: [
3714
+ /* @__PURE__ */ jsx("div", { className: styles$c.ganttTable_HeaderTitle, children: title }),
3713
3715
  title === "Name" && /* @__PURE__ */ jsx(
3714
3716
  TaskListHeaderActions,
3715
3717
  {
@@ -3724,7 +3726,7 @@ const TaskListHeaderDefaultInner = (props) => {
3724
3726
  "div",
3725
3727
  {
3726
3728
  "data-testid": `table-column-header-resize-handle-${title}`,
3727
- className: styles$d.resizer,
3729
+ className: styles$c.resizer,
3728
3730
  onMouseDown: (event) => {
3729
3731
  onColumnResizeStart(index2, event.clientX);
3730
3732
  },
@@ -3754,7 +3756,7 @@ const dropAfter = "_dropAfter_1e35i_57";
3754
3756
  const dropAfterLighten = "_dropAfterLighten_1e35i_81";
3755
3757
  const dropBefore = "_dropBefore_1e35i_105";
3756
3758
  const dropBeforeLighten = "_dropBeforeLighten_1e35i_127";
3757
- const styles$c = {
3759
+ const styles$b = {
3758
3760
  taskListTableRow,
3759
3761
  taskListTableRowGrabbing,
3760
3762
  cut,
@@ -3966,7 +3968,7 @@ const TaskListTableRowInner = ({
3966
3968
  return /* @__PURE__ */ jsxs(
3967
3969
  "div",
3968
3970
  {
3969
- className: `${styles$c.taskListTableRow} ${isCut ? styles$c.cut : ""}`,
3971
+ className: `${styles$b.taskListTableRow} ${isCut ? styles$b.cut : ""}`,
3970
3972
  onMouseDown: onRootMouseDown,
3971
3973
  style: {
3972
3974
  height: fullRowHeight,
@@ -3984,7 +3986,7 @@ const TaskListTableRowInner = ({
3984
3986
  return /* @__PURE__ */ jsx(
3985
3987
  "div",
3986
3988
  {
3987
- className: styles$c.taskListCell,
3989
+ className: styles$b.taskListCell,
3988
3990
  style: {
3989
3991
  minWidth: width,
3990
3992
  maxWidth: width
@@ -3992,7 +3994,7 @@ const TaskListTableRowInner = ({
3992
3994
  children: /* @__PURE__ */ jsx(
3993
3995
  "div",
3994
3996
  {
3995
- className: styles$c.taskListCellInner,
3997
+ className: styles$b.taskListCellInner,
3996
3998
  onDragEnter: () => {
3997
3999
  setHoveringState({
3998
4000
  hoveringBefore: false,
@@ -4032,7 +4034,7 @@ const TaskListTableRowInner = ({
4032
4034
  "div",
4033
4035
  {
4034
4036
  "data-testid": `table-row-drop-before-${task.name}`,
4035
- className: `${styles$c.dropBefore} ${hoveringState.hoveringBefore ? styles$c.dropBeforeLighten : ""}`,
4037
+ className: `${styles$b.dropBefore} ${hoveringState.hoveringBefore ? styles$b.dropBeforeLighten : ""}`,
4036
4038
  style: {
4037
4039
  left: dropPreviewOffset,
4038
4040
  backgroundColor: hoveringState.hoveringBefore ? colors.taskDragColor : void 0,
@@ -4062,7 +4064,7 @@ const TaskListTableRowInner = ({
4062
4064
  "div",
4063
4065
  {
4064
4066
  "data-testid": `table-row-drop-after-${task.name}`,
4065
- className: `${styles$c.dropAfter} ${hoveringState.hoveringAfter ? styles$c.dropBeforeLighten : ""}`,
4067
+ className: `${styles$b.dropAfter} ${hoveringState.hoveringAfter ? styles$b.dropBeforeLighten : ""}`,
4066
4068
  style: {
4067
4069
  left: dropPreviewOffset,
4068
4070
  backgroundColor: hoveringState.hoveringAfter ? colors.taskDragColor : void 0,
@@ -4104,7 +4106,7 @@ const checkHasChildren = (task, childTasksMap) => {
4104
4106
  return childs.length > 0;
4105
4107
  };
4106
4108
  const taskListWrapper = "_taskListWrapper_5941j_1";
4107
- const styles$b = {
4109
+ const styles$a = {
4108
4110
  taskListWrapper
4109
4111
  };
4110
4112
  const TaskListTableDefaultInner = ({
@@ -4290,7 +4292,7 @@ const TaskListTableDefaultInner = ({
4290
4292
  return /* @__PURE__ */ jsx(
4291
4293
  "div",
4292
4294
  {
4293
- className: styles$b.taskListWrapper,
4295
+ className: styles$a.taskListWrapper,
4294
4296
  style: { fontFamily, fontSize },
4295
4297
  children: renderedListWithOffset
4296
4298
  }
@@ -4444,7 +4446,7 @@ const calendarBottomText = "_calendarBottomText_lemhx_13";
4444
4446
  const calendarTopTick = "_calendarTopTick_lemhx_35";
4445
4447
  const calendarTopText = "_calendarTopText_lemhx_43";
4446
4448
  const calendarHeader = "_calendarHeader_lemhx_65";
4447
- const styles$a = {
4449
+ const styles$9 = {
4448
4450
  calendarMain,
4449
4451
  calendarBottomText,
4450
4452
  calendarTopTick,
@@ -4468,7 +4470,7 @@ const TopPartOfCalendar = ({
4468
4470
  y1: y1Line,
4469
4471
  x2: x1Line,
4470
4472
  y2: y2Line,
4471
- className: styles$a.calendarTopTick
4473
+ className: styles$9.calendarTopTick
4472
4474
  }
4473
4475
  ),
4474
4476
  value !== null && /* @__PURE__ */ jsx(
@@ -4476,7 +4478,7 @@ const TopPartOfCalendar = ({
4476
4478
  {
4477
4479
  y: yText,
4478
4480
  x: xText,
4479
- className: styles$a.calendarTopText,
4481
+ className: styles$9.calendarTopText,
4480
4482
  style: { fill: colors.barLabelColor },
4481
4483
  children: value
4482
4484
  }
@@ -4525,7 +4527,7 @@ const Calendar = ({
4525
4527
  {
4526
4528
  y: headerHeight * 0.8,
4527
4529
  x: columnWidth * i2 + columnWidth * 0.5,
4528
- className: styles$a.calendarBottomText,
4530
+ className: styles$9.calendarBottomText,
4529
4531
  style: { fill: colors.barLabelColor },
4530
4532
  children: bottomValue
4531
4533
  },
@@ -4566,7 +4568,7 @@ const Calendar = ({
4566
4568
  {
4567
4569
  y: headerHeight * 0.8,
4568
4570
  x: additionalLeftSpace + columnWidth * i2 + columnWidth * 0.5,
4569
- className: styles$a.calendarBottomText,
4571
+ className: styles$9.calendarBottomText,
4570
4572
  style: { fill: colors.barLabelColor },
4571
4573
  children: halfYear
4572
4574
  },
@@ -4609,7 +4611,7 @@ const Calendar = ({
4609
4611
  {
4610
4612
  y: headerHeight * 0.8,
4611
4613
  x: additionalLeftSpace + columnWidth * i2 + columnWidth * 0.5,
4612
- className: styles$a.calendarBottomText,
4614
+ className: styles$9.calendarBottomText,
4613
4615
  style: { fill: colors.barLabelColor },
4614
4616
  children: quarter
4615
4617
  },
@@ -4651,7 +4653,7 @@ const Calendar = ({
4651
4653
  {
4652
4654
  y: headerHeight * 0.8,
4653
4655
  x: additionalLeftSpace + columnWidth * i2 + columnWidth * 0.5,
4654
- className: styles$a.calendarBottomText,
4656
+ className: styles$9.calendarBottomText,
4655
4657
  style: { fill: colors.barLabelColor },
4656
4658
  children: bottomValue
4657
4659
  },
@@ -4706,7 +4708,7 @@ const Calendar = ({
4706
4708
  {
4707
4709
  y: headerHeight * 0.8,
4708
4710
  x: additionalLeftSpace + columnWidth * (i2 + +rtl),
4709
- className: styles$a.calendarBottomText,
4711
+ className: styles$9.calendarBottomText,
4710
4712
  style: { fill: colors.barLabelColor },
4711
4713
  children: bottomValue
4712
4714
  },
@@ -4751,7 +4753,7 @@ const Calendar = ({
4751
4753
  {
4752
4754
  y: headerHeight * 0.8,
4753
4755
  x: additionalLeftSpace + columnWidth * i2 + columnWidth * 0.5,
4754
- className: styles$a.calendarBottomText,
4756
+ className: styles$9.calendarBottomText,
4755
4757
  style: { fill: colors.barLabelColor },
4756
4758
  children: bottomValue
4757
4759
  },
@@ -4798,7 +4800,7 @@ const Calendar = ({
4798
4800
  {
4799
4801
  y: headerHeight * 0.8,
4800
4802
  x: additionalLeftSpace + columnWidth * (i2 + +rtl),
4801
- className: styles$a.calendarBottomText,
4803
+ className: styles$9.calendarBottomText,
4802
4804
  fontFamily,
4803
4805
  style: { fill: colors.barLabelColor },
4804
4806
  children: bottomValue
@@ -4843,7 +4845,7 @@ const Calendar = ({
4843
4845
  {
4844
4846
  y: headerHeight * 0.8,
4845
4847
  x: additionalLeftSpace + columnWidth * (i2 + +rtl),
4846
- className: styles$a.calendarBottomText,
4848
+ className: styles$9.calendarBottomText,
4847
4849
  fontFamily,
4848
4850
  style: { fill: colors.barLabelColor },
4849
4851
  children: bottomValue
@@ -4907,7 +4909,7 @@ const Calendar = ({
4907
4909
  case ViewMode.Hour:
4908
4910
  [topValues, bottomValues] = getCalendarValuesForHour();
4909
4911
  }
4910
- return /* @__PURE__ */ jsx("div", { className: styles$a.calendarMain, style: { width: fullSvgWidth }, children: /* @__PURE__ */ jsx(
4912
+ return /* @__PURE__ */ jsx("div", { className: styles$9.calendarMain, style: { width: fullSvgWidth }, children: /* @__PURE__ */ jsx(
4911
4913
  "svg",
4912
4914
  {
4913
4915
  xmlns: "http://www.w3.org/2000/svg",
@@ -5162,7 +5164,7 @@ const Grid = (props) => {
5162
5164
  const ganttTaskRoot = "_ganttTaskRoot_1mu5y_1";
5163
5165
  const ganttTaskContent = "_ganttTaskContent_1mu5y_83";
5164
5166
  const wrapper$2 = "_wrapper_1mu5y_111";
5165
- const styles$9 = {
5167
+ const styles$8 = {
5166
5168
  ganttTaskRoot,
5167
5169
  ganttTaskContent,
5168
5170
  wrapper: wrapper$2
@@ -5192,13 +5194,13 @@ const hoverVisibleWrapper$1 = "_hoverVisibleWrapper_11ld1_1";
5192
5194
  const wrapper$1 = "_wrapper_11ld1_1";
5193
5195
  const mainPath$2 = "_mainPath_11ld1_17";
5194
5196
  const clickZone$2 = "_clickZone_11ld1_35";
5195
- const styles$8 = {
5197
+ const styles$7 = {
5196
5198
  hoverVisibleWrapper: hoverVisibleWrapper$1,
5197
5199
  wrapper: wrapper$1,
5198
5200
  mainPath: mainPath$2,
5199
5201
  clickZone: clickZone$2
5200
5202
  };
5201
- const fixPositionContainerClass = styles$8.hoverVisibleWrapper;
5203
+ const fixPositionContainerClass = styles$7.hoverVisibleWrapper;
5202
5204
  const FixDependencyPositionInner = ({
5203
5205
  color,
5204
5206
  dependencyFixIndent,
@@ -5245,7 +5247,7 @@ const FixDependencyPositionInner = ({
5245
5247
  return /* @__PURE__ */ jsxs(
5246
5248
  "g",
5247
5249
  {
5248
- className: styles$8.wrapper,
5250
+ className: styles$7.wrapper,
5249
5251
  fill: color,
5250
5252
  stroke: color,
5251
5253
  onMouseDown: handleFixPosition,
@@ -5254,7 +5256,7 @@ const FixDependencyPositionInner = ({
5254
5256
  "path",
5255
5257
  {
5256
5258
  d: d4,
5257
- className: styles$8.mainPath
5259
+ className: styles$7.mainPath
5258
5260
  }
5259
5261
  ),
5260
5262
  /* @__PURE__ */ jsx(
@@ -5264,7 +5266,7 @@ const FixDependencyPositionInner = ({
5264
5266
  y: y3,
5265
5267
  width: width + dependencyFixIndent,
5266
5268
  height,
5267
- className: styles$8.clickZone
5269
+ className: styles$7.clickZone
5268
5270
  }
5269
5271
  ),
5270
5272
  /* @__PURE__ */ jsx("polygon", { points: trianglePoints })
@@ -5276,7 +5278,7 @@ const FixDependencyPosition = memo(FixDependencyPositionInner);
5276
5278
  const arrow_clickable = "_arrow_clickable_1k55i_1";
5277
5279
  const mainPath$1 = "_mainPath_1k55i_9";
5278
5280
  const clickZone$1 = "_clickZone_1k55i_27";
5279
- const styles$7 = {
5281
+ const styles$6 = {
5280
5282
  arrow_clickable,
5281
5283
  mainPath: mainPath$1,
5282
5284
  clickZone: clickZone$1
@@ -5413,12 +5415,12 @@ const ArrowInner = ({
5413
5415
  "g",
5414
5416
  {
5415
5417
  "data-testid": `task-arrow-${extremityFrom}-${taskFrom.name}-${extremityTo}-${taskTo.name}`,
5416
- className: `"arrow" ${styles$7.arrow_clickable}`,
5418
+ className: `"arrow" ${styles$6.arrow_clickable}`,
5417
5419
  onDoubleClick,
5418
5420
  onClick,
5419
5421
  children: [
5420
- onArrowDoubleClick && /* @__PURE__ */ jsx("path", { d: path, className: styles$7.clickZone }),
5421
- /* @__PURE__ */ jsx("path", { className: styles$7.mainPath, d: path }),
5422
+ onArrowDoubleClick && /* @__PURE__ */ jsx("path", { d: path, className: styles$6.clickZone }),
5423
+ /* @__PURE__ */ jsx("path", { className: styles$6.mainPath, d: path }),
5422
5424
  /* @__PURE__ */ jsx("polygon", { points: trianglePoints })
5423
5425
  ]
5424
5426
  }
@@ -5470,7 +5472,7 @@ const drownPathAndTriangle = (indexForm, fromX1, fromX2, fromY, isTaskFromLeftSi
5470
5472
  return [path, trianglePoints];
5471
5473
  };
5472
5474
  const relationLine = "_relationLine_ftzm9_1";
5473
- const styles$6 = {
5475
+ const styles$5 = {
5474
5476
  relationLine
5475
5477
  };
5476
5478
  const RelationLine = ({
@@ -5486,14 +5488,98 @@ const RelationLine = ({
5486
5488
  x2: x22,
5487
5489
  y1,
5488
5490
  y2: y22,
5489
- className: styles$6.relationLine
5491
+ className: styles$5.relationLine
5492
+ }
5493
+ );
5494
+ };
5495
+ const hoverVisibleWrapper = "_hoverVisibleWrapper_11ld1_1";
5496
+ const wrapper = "_wrapper_11ld1_1";
5497
+ const mainPath = "_mainPath_11ld1_17";
5498
+ const clickZone = "_clickZone_11ld1_35";
5499
+ const styles$4 = {
5500
+ hoverVisibleWrapper,
5501
+ wrapper,
5502
+ mainPath,
5503
+ clickZone
5504
+ };
5505
+ const fixWidthContainerClass = styles$4.hoverVisibleWrapper;
5506
+ const BarFixWidthInner = ({
5507
+ x: x3,
5508
+ y: y3,
5509
+ width,
5510
+ height,
5511
+ isLeft,
5512
+ color,
5513
+ handleFixWidth
5514
+ }) => {
5515
+ const halfHeight = useMemo(
5516
+ () => Math.round(height / 2),
5517
+ [height]
5518
+ );
5519
+ const d4 = useMemo(() => {
5520
+ return `M ${x3} ${y3}
5521
+ v ${height}
5522
+ M ${x3} ${y3 + halfHeight}
5523
+ h ${isLeft ? -width : width}
5524
+ `;
5525
+ }, [
5526
+ x3,
5527
+ y3,
5528
+ width,
5529
+ height,
5530
+ halfHeight,
5531
+ isLeft
5532
+ ]);
5533
+ const trianglePoints = useMemo(
5534
+ () => generateTrianglePoints(
5535
+ isLeft ? x3 - width : x3 + width,
5536
+ y3 + halfHeight,
5537
+ 5,
5538
+ isLeft
5539
+ ),
5540
+ [
5541
+ x3,
5542
+ y3,
5543
+ width,
5544
+ halfHeight,
5545
+ isLeft
5546
+ ]
5547
+ );
5548
+ return /* @__PURE__ */ jsxs(
5549
+ "g",
5550
+ {
5551
+ className: styles$4.wrapper,
5552
+ fill: color,
5553
+ stroke: color,
5554
+ onMouseDown: handleFixWidth,
5555
+ children: [
5556
+ /* @__PURE__ */ jsx(
5557
+ "path",
5558
+ {
5559
+ d: d4,
5560
+ className: styles$4.mainPath
5561
+ }
5562
+ ),
5563
+ /* @__PURE__ */ jsx(
5564
+ "rect",
5565
+ {
5566
+ x: isLeft ? x3 - width - 2 : x3 - 2,
5567
+ y: y3 - 5,
5568
+ width: width + 5,
5569
+ height: height + 5,
5570
+ className: styles$4.clickZone
5571
+ }
5572
+ ),
5573
+ /* @__PURE__ */ jsx("polygon", { points: trianglePoints })
5574
+ ]
5490
5575
  }
5491
5576
  );
5492
5577
  };
5578
+ const BarFixWidth = memo(BarFixWidthInner);
5493
5579
  const barWrapper = "_barWrapper_1kg71_1";
5494
5580
  const barHandle = "_barHandle_1kg71_11";
5495
5581
  const barBackground = "_barBackground_1kg71_43";
5496
- const styles$5 = {
5582
+ const styles$3 = {
5497
5583
  barWrapper,
5498
5584
  barHandle,
5499
5585
  barBackground
@@ -5585,7 +5671,7 @@ const BarDisplay = ({
5585
5671
  ry: barCornerRadius,
5586
5672
  rx: barCornerRadius,
5587
5673
  fill: barColor,
5588
- className: styles$5.barBackground
5674
+ className: styles$3.barBackground
5589
5675
  }
5590
5676
  ),
5591
5677
  /* @__PURE__ */ jsx(
@@ -5621,7 +5707,7 @@ const BarDateHandle = ({
5621
5707
  y: y3,
5622
5708
  width,
5623
5709
  height,
5624
- className: styles$5.barHandle,
5710
+ className: styles$3.barHandle,
5625
5711
  ry: barCornerRadius,
5626
5712
  rx: barCornerRadius,
5627
5713
  onMouseDown: (e2) => {
@@ -5645,7 +5731,7 @@ const BarProgressHandle = ({
5645
5731
  "polygon",
5646
5732
  {
5647
5733
  "data-testid": `task-progress-handle-${taskName2}`,
5648
- className: styles$5.barHandle,
5734
+ className: styles$3.barHandle,
5649
5735
  points: progressPoint,
5650
5736
  onMouseDown: (e2) => {
5651
5737
  startMoveProgress(e2.clientX);
@@ -5662,7 +5748,7 @@ const BarProgressHandle = ({
5662
5748
  const barRelationHandleWrapper = "_barRelationHandleWrapper_1744h_1";
5663
5749
  const barRelationHandle = "_barRelationHandle_1744h_1";
5664
5750
  const barRelationHandle_drawMode = "_barRelationHandle_drawMode_1744h_1";
5665
- const styles$4 = {
5751
+ const stylesRelationHandle = {
5666
5752
  barRelationHandleWrapper,
5667
5753
  barRelationHandle,
5668
5754
  barRelationHandle_drawMode
@@ -5670,7 +5756,7 @@ const styles$4 = {
5670
5756
  const projectWrapper = "_projectWrapper_1maxt_1";
5671
5757
  const projectBackground = "_projectBackground_1maxt_11";
5672
5758
  const projectTop = "_projectTop_1maxt_21";
5673
- const styles$3 = {
5759
+ const styles$2 = {
5674
5760
  projectWrapper,
5675
5761
  projectBackground,
5676
5762
  projectTop
@@ -5745,7 +5831,7 @@ const ProjectDisplay = ({
5745
5831
  }
5746
5832
  },
5747
5833
  tabIndex: 0,
5748
- className: styles$3.projectWrapper,
5834
+ className: styles$2.projectWrapper,
5749
5835
  children: [
5750
5836
  /* @__PURE__ */ jsx(
5751
5837
  "rect",
@@ -5757,7 +5843,7 @@ const ProjectDisplay = ({
5757
5843
  height: taskHeight,
5758
5844
  rx: barCornerRadius,
5759
5845
  ry: barCornerRadius,
5760
- className: styles$3.projectBackground
5846
+ className: styles$2.projectBackground
5761
5847
  }
5762
5848
  ),
5763
5849
  /* @__PURE__ */ jsx(
@@ -5782,13 +5868,13 @@ const ProjectDisplay = ({
5782
5868
  height: taskHalfHeight,
5783
5869
  rx: barCornerRadius,
5784
5870
  ry: barCornerRadius,
5785
- className: styles$3.projectTop
5871
+ className: styles$2.projectTop
5786
5872
  }
5787
5873
  ),
5788
5874
  /* @__PURE__ */ jsx(
5789
5875
  "polygon",
5790
5876
  {
5791
- className: styles$3.projectTop,
5877
+ className: styles$2.projectTop,
5792
5878
  points: projectLeftTriangle,
5793
5879
  fill: barColor
5794
5880
  }
@@ -5796,7 +5882,7 @@ const ProjectDisplay = ({
5796
5882
  /* @__PURE__ */ jsx(
5797
5883
  "polygon",
5798
5884
  {
5799
- className: styles$3.projectTop,
5885
+ className: styles$2.projectTop,
5800
5886
  points: projectRightTriangle,
5801
5887
  fill: barColor
5802
5888
  }
@@ -5901,7 +5987,7 @@ const Bar = ({
5901
5987
  return /* @__PURE__ */ jsxs(
5902
5988
  "g",
5903
5989
  {
5904
- className: `${styles$5.barWrapper} ${styles$4.barRelationHandleWrapper}`,
5990
+ className: `${styles$3.barWrapper} ${stylesRelationHandle.barRelationHandleWrapper}`,
5905
5991
  tabIndex: 0,
5906
5992
  children: [
5907
5993
  barDisplay,
@@ -5942,6 +6028,28 @@ const Bar = ({
5942
6028
  }
5943
6029
  );
5944
6030
  };
6031
+ const BarRelationHandleInner = ({
6032
+ dataTestid,
6033
+ isRelationDrawMode,
6034
+ radius,
6035
+ startDrawRelation,
6036
+ x: x3,
6037
+ y: y3
6038
+ }) => {
6039
+ return /* @__PURE__ */ jsx(
6040
+ "circle",
6041
+ {
6042
+ "data-testid": dataTestid,
6043
+ cx: x3,
6044
+ cy: y3,
6045
+ r: radius,
6046
+ className: `${stylesRelationHandle.barRelationHandle} ${isRelationDrawMode ? stylesRelationHandle.barRelationHandle_drawMode : ""}`,
6047
+ onMouseDown: startDrawRelation,
6048
+ onTouchStart: startDrawRelation
6049
+ }
6050
+ );
6051
+ };
6052
+ const BarRelationHandle = memo(BarRelationHandleInner);
5945
6053
  const BarSmall = ({
5946
6054
  children: relationhandles,
5947
6055
  colorStyles,
@@ -5973,7 +6081,7 @@ const BarSmall = ({
5973
6081
  return /* @__PURE__ */ jsxs(
5974
6082
  "g",
5975
6083
  {
5976
- className: `${styles$5.barWrapper} ${styles$4.barRelationHandleWrapper}`,
6084
+ className: `${styles$3.barWrapper} ${stylesRelationHandle.barRelationHandleWrapper}`,
5977
6085
  tabIndex: 0,
5978
6086
  children: [
5979
6087
  /* @__PURE__ */ jsx(
@@ -6013,7 +6121,7 @@ const BarSmall = ({
6013
6121
  };
6014
6122
  const milestoneWrapper = "_milestoneWrapper_vcirf_1";
6015
6123
  const milestoneBackground = "_milestoneBackground_vcirf_11";
6016
- const styles$2 = {
6124
+ const styles$1 = {
6017
6125
  milestoneWrapper,
6018
6126
  milestoneBackground
6019
6127
  };
@@ -6048,7 +6156,7 @@ const Milestone = ({
6048
6156
  "g",
6049
6157
  {
6050
6158
  tabIndex: 0,
6051
- className: `${styles$2.milestoneWrapper} ${styles$4.barRelationHandleWrapper}`,
6159
+ className: `${styles$1.milestoneWrapper} ${stylesRelationHandle.barRelationHandleWrapper}`,
6052
6160
  children: [
6053
6161
  /* @__PURE__ */ jsx(
6054
6162
  "rect",
@@ -6062,7 +6170,7 @@ const Milestone = ({
6062
6170
  rx: barCornerRadius,
6063
6171
  ry: barCornerRadius,
6064
6172
  transform,
6065
- className: styles$2.milestoneBackground,
6173
+ className: styles$1.milestoneBackground,
6066
6174
  onMouseDown: (e2) => {
6067
6175
  onTaskEventStart("move", e2.clientX);
6068
6176
  },
@@ -6079,6 +6187,12 @@ const Milestone = ({
6079
6187
  }
6080
6188
  );
6081
6189
  };
6190
+ const barLabel = "_barLabel_y0tyg_1";
6191
+ const barLabelOutside = "_barLabelOutside_y0tyg_25";
6192
+ const style = {
6193
+ barLabel,
6194
+ barLabelOutside
6195
+ };
6082
6196
  const TaskWarningInner = ({
6083
6197
  rtl,
6084
6198
  outOfParentWarnings = void 0,
@@ -6150,118 +6264,6 @@ const TaskWarningInner = ({
6150
6264
  ] });
6151
6265
  };
6152
6266
  const TaskWarning = memo(TaskWarningInner);
6153
- const barLabel = "_barLabel_y0tyg_1";
6154
- const barLabelOutside = "_barLabelOutside_y0tyg_25";
6155
- const style = {
6156
- barLabel,
6157
- barLabelOutside
6158
- };
6159
- const hoverVisibleWrapper = "_hoverVisibleWrapper_11ld1_1";
6160
- const wrapper = "_wrapper_11ld1_1";
6161
- const mainPath = "_mainPath_11ld1_17";
6162
- const clickZone = "_clickZone_11ld1_35";
6163
- const styles$1 = {
6164
- hoverVisibleWrapper,
6165
- wrapper,
6166
- mainPath,
6167
- clickZone
6168
- };
6169
- const fixWidthContainerClass = styles$1.hoverVisibleWrapper;
6170
- const BarFixWidthInner = ({
6171
- x: x3,
6172
- y: y3,
6173
- width,
6174
- height,
6175
- isLeft,
6176
- color,
6177
- handleFixWidth
6178
- }) => {
6179
- const halfHeight = useMemo(
6180
- () => Math.round(height / 2),
6181
- [height]
6182
- );
6183
- const d4 = useMemo(() => {
6184
- return `M ${x3} ${y3}
6185
- v ${height}
6186
- M ${x3} ${y3 + halfHeight}
6187
- h ${isLeft ? -width : width}
6188
- `;
6189
- }, [
6190
- x3,
6191
- y3,
6192
- width,
6193
- height,
6194
- halfHeight,
6195
- isLeft
6196
- ]);
6197
- const trianglePoints = useMemo(
6198
- () => generateTrianglePoints(
6199
- isLeft ? x3 - width : x3 + width,
6200
- y3 + halfHeight,
6201
- 5,
6202
- isLeft
6203
- ),
6204
- [
6205
- x3,
6206
- y3,
6207
- width,
6208
- halfHeight,
6209
- isLeft
6210
- ]
6211
- );
6212
- return /* @__PURE__ */ jsxs(
6213
- "g",
6214
- {
6215
- className: styles$1.wrapper,
6216
- fill: color,
6217
- stroke: color,
6218
- onMouseDown: handleFixWidth,
6219
- children: [
6220
- /* @__PURE__ */ jsx(
6221
- "path",
6222
- {
6223
- d: d4,
6224
- className: styles$1.mainPath
6225
- }
6226
- ),
6227
- /* @__PURE__ */ jsx(
6228
- "rect",
6229
- {
6230
- x: isLeft ? x3 - width - 2 : x3 - 2,
6231
- y: y3 - 5,
6232
- width: width + 5,
6233
- height: height + 5,
6234
- className: styles$1.clickZone
6235
- }
6236
- ),
6237
- /* @__PURE__ */ jsx("polygon", { points: trianglePoints })
6238
- ]
6239
- }
6240
- );
6241
- };
6242
- const BarFixWidth = memo(BarFixWidthInner);
6243
- const BarRelationHandleInner = ({
6244
- dataTestid,
6245
- isRelationDrawMode,
6246
- radius,
6247
- startDrawRelation,
6248
- x: x3,
6249
- y: y3
6250
- }) => {
6251
- return /* @__PURE__ */ jsx(
6252
- "circle",
6253
- {
6254
- "data-testid": dataTestid,
6255
- cx: x3,
6256
- cy: y3,
6257
- r: radius,
6258
- className: `${styles$4.barRelationHandle} ${isRelationDrawMode ? styles$4.barRelationHandle_drawMode : ""}`,
6259
- onMouseDown: startDrawRelation,
6260
- onTouchStart: startDrawRelation
6261
- }
6262
- );
6263
- };
6264
- const BarRelationHandle = memo(BarRelationHandleInner);
6265
6267
  const TaskItemInner = (props) => {
6266
6268
  const {
6267
6269
  childOutOfParentWarnings,
@@ -6518,7 +6520,7 @@ const TaskItemInner = (props) => {
6518
6520
  y: taskYOffset + taskHeight * 0.5,
6519
6521
  className: isTextInside ? style.barLabel : style.barLabel && style.barLabelOutside,
6520
6522
  ref: textRef,
6521
- children: task.name
6523
+ children: isTextInside ? task.name : ""
6522
6524
  }
6523
6525
  ),
6524
6526
  (outOfParentWarnings || hasDependencyWarning) && /* @__PURE__ */ jsx(
@@ -6719,7 +6721,12 @@ const TaskGanttContent = ({
6719
6721
  fixStartPosition,
6720
6722
  fixEndPosition,
6721
6723
  handleDeleteTasks,
6722
- colorStyles
6724
+ colorStyles,
6725
+ enableTaskGrouping,
6726
+ getTaskInitials: (task2) => {
6727
+ var _a2;
6728
+ return ((_a2 = task2.name) == null ? void 0 : _a2.split(" ").map((word) => word[0]).join("").toUpperCase()) ?? "";
6729
+ }
6723
6730
  }
6724
6731
  )
6725
6732
  },
@@ -6990,7 +6997,7 @@ const TaskGanttInner = (props) => {
6990
6997
  return /* @__PURE__ */ jsxs(
6991
6998
  "div",
6992
6999
  {
6993
- className: styles$9.ganttTaskRoot,
7000
+ className: styles$8.ganttTaskRoot,
6994
7001
  ref: ganttTaskRootRef,
6995
7002
  onScroll: onVerticalScrollbarScrollX,
6996
7003
  dir: "ltr",
@@ -7000,7 +7007,7 @@ const TaskGanttInner = (props) => {
7000
7007
  "div",
7001
7008
  {
7002
7009
  ref: ganttTaskContentRef,
7003
- className: styles$9.ganttTaskContent,
7010
+ className: styles$8.ganttTaskContent,
7004
7011
  style: containerStyle,
7005
7012
  onScroll: onScrollVertically,
7006
7013
  children: [
@@ -13174,7 +13181,7 @@ const Gantt = ({
13174
13181
  return /* @__PURE__ */ jsxs(
13175
13182
  "div",
13176
13183
  {
13177
- className: styles$9.wrapper,
13184
+ className: styles$8.wrapper,
13178
13185
  onKeyDown: handleKeyDown,
13179
13186
  tabIndex: 0,
13180
13187
  ref: wrapperRef,