@thepocman/gantt-task-react 1.0.24 → 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.
@@ -1862,7 +1862,7 @@ const tooltipDefaultContainer = "_tooltipDefaultContainer_qip67_1";
1862
1862
  const tooltipDefaultContainerParagraph = "_tooltipDefaultContainerParagraph_qip67_13";
1863
1863
  const tooltipDetailsContainer = "_tooltipDetailsContainer_qip67_25";
1864
1864
  const tooltipDetailsContainerHidden = "_tooltipDetailsContainerHidden_qip67_49";
1865
- const styles$j = {
1865
+ const styles$i = {
1866
1866
  tooltipDefaultContainer,
1867
1867
  tooltipDefaultContainerParagraph,
1868
1868
  tooltipDetailsContainer,
@@ -1902,12 +1902,12 @@ const StandardTooltipContent = ({ task, fontSize, fontFamily }) => {
1902
1902
  return /* @__PURE__ */ jsxs(
1903
1903
  "div",
1904
1904
  {
1905
- className: styles$j.tooltipDefaultContainer,
1905
+ className: styles$i.tooltipDefaultContainer,
1906
1906
  style: style2,
1907
1907
  children: [
1908
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()}` }),
1909
- 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)` }),
1910
- /* @__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} %` })
1911
1911
  ]
1912
1912
  }
1913
1913
  );
@@ -1989,7 +1989,7 @@ const useGroupedVirtualization = (_containerRef, rowIndexToTasksMap, taskHeight)
1989
1989
  ];
1990
1990
  };
1991
1991
  const button$2 = "_button_1eue5_1";
1992
- const styles$i = {
1992
+ const styles$h = {
1993
1993
  button: button$2
1994
1994
  };
1995
1995
  const AddColumn = (props) => {
@@ -2007,14 +2007,14 @@ const AddColumn = (props) => {
2007
2007
  }
2008
2008
  return /* @__PURE__ */ jsx("button", { type: "button", onClick, style: {
2009
2009
  "color": colors.barLabelColor
2010
- }, 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) : "+" });
2011
2011
  };
2012
2012
  const taskListNameWrapper = "_taskListNameWrapper_1un0e_1";
2013
2013
  const dragging = "_dragging_1un0e_11";
2014
2014
  const taskListExpander = "_taskListExpander_1un0e_19";
2015
2015
  const taskListEmptyExpander = "_taskListEmptyExpander_1un0e_35";
2016
2016
  const taskName = "_taskName_1un0e_45";
2017
- const styles$h = {
2017
+ const styles$g = {
2018
2018
  taskListNameWrapper,
2019
2019
  dragging,
2020
2020
  taskListExpander,
@@ -2057,7 +2057,7 @@ const TitleColumn = (props) => {
2057
2057
  "div",
2058
2058
  {
2059
2059
  "data-testid": `title-table-cell-${name}`,
2060
- className: `${styles$h.taskListNameWrapper}`,
2060
+ className: `${styles$g.taskListNameWrapper}`,
2061
2061
  style: {
2062
2062
  paddingLeft: depth * nestedTaskNameOffset
2063
2063
  },
@@ -2066,7 +2066,7 @@ const TitleColumn = (props) => {
2066
2066
  /* @__PURE__ */ jsx(
2067
2067
  "div",
2068
2068
  {
2069
- className: `${styles$h.taskListExpander} ${!hasChildren ? styles$h.taskListEmptyExpander : ""}`,
2069
+ className: `${styles$g.taskListExpander} ${!hasChildren ? styles$g.taskListEmptyExpander : ""}`,
2070
2070
  onClick,
2071
2071
  style: {
2072
2072
  width: expandIconWidth
@@ -2076,7 +2076,7 @@ const TitleColumn = (props) => {
2076
2076
  ),
2077
2077
  /* @__PURE__ */ jsxs("div", { style: {
2078
2078
  color: colors.barLabelColor
2079
- }, className: styles$h.taskName, children: [
2079
+ }, className: styles$g.taskName, children: [
2080
2080
  isShowTaskNumbers && /* @__PURE__ */ jsxs("b", { children: [
2081
2081
  indexStr,
2082
2082
  " "
@@ -3173,7 +3173,7 @@ const DependenciesColumn = ({
3173
3173
  }, children: dependencies.map(({ name }) => name).join(", ") });
3174
3174
  };
3175
3175
  const button$1 = "_button_1eue5_1";
3176
- const styles$g = {
3176
+ const styles$f = {
3177
3177
  button: button$1
3178
3178
  };
3179
3179
  const DeleteColumn = (props) => {
@@ -3185,10 +3185,10 @@ const DeleteColumn = (props) => {
3185
3185
  }, [task, handleDeleteTasks]);
3186
3186
  return /* @__PURE__ */ jsx("button", { type: "button", onClick, style: {
3187
3187
  "color": colors.barLabelColor
3188
- }, 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) : "-" });
3189
3189
  };
3190
3190
  const button = "_button_ys66g_1";
3191
- const styles$f = {
3191
+ const styles$e = {
3192
3192
  button
3193
3193
  };
3194
3194
  const EditColumn = (props) => {
@@ -3200,7 +3200,7 @@ const EditColumn = (props) => {
3200
3200
  }, [task, handleEditTask]);
3201
3201
  return /* @__PURE__ */ jsx("button", { type: "button", onClick, style: {
3202
3202
  "color": colors.barLabelColor
3203
- }, 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) : "✎" });
3204
3204
  };
3205
3205
  const useTableListResize = (columnsProp, distances, onResizeColumn) => {
3206
3206
  const [columnsState, setColumns] = useState(() => {
@@ -3406,7 +3406,7 @@ const ganttTableWrapper = "_ganttTableWrapper_1ogga_15";
3406
3406
  const taskListResizer = "_taskListResizer_1ogga_79";
3407
3407
  const taskListContent = "_taskListContent_1ogga_127";
3408
3408
  const hidden = "_hidden_1ogga_147";
3409
- const styles$e = {
3409
+ const styles$d = {
3410
3410
  ganttTableRoot,
3411
3411
  ganttTableWrapper,
3412
3412
  taskListResizer,
@@ -3474,11 +3474,11 @@ const TaskListInner = ({
3474
3474
  fullRowHeight
3475
3475
  );
3476
3476
  const renderedIndexes = enableTaskGrouping ? groupedIndexes : optimizedIndexes;
3477
- return /* @__PURE__ */ jsxs("div", { className: styles$e.ganttTableRoot, ref: taskListRef, children: [
3477
+ return /* @__PURE__ */ jsxs("div", { className: styles$d.ganttTableRoot, ref: taskListRef, children: [
3478
3478
  /* @__PURE__ */ jsxs(
3479
3479
  "div",
3480
3480
  {
3481
- className: styles$e.ganttTableWrapper,
3481
+ className: styles$d.ganttTableWrapper,
3482
3482
  style: {
3483
3483
  width: tableWidth
3484
3484
  },
@@ -3501,7 +3501,7 @@ const TaskListInner = ({
3501
3501
  /* @__PURE__ */ jsx(
3502
3502
  "div",
3503
3503
  {
3504
- className: styles$e.taskListContent,
3504
+ className: styles$d.taskListContent,
3505
3505
  ref: taskListContentRef,
3506
3506
  onScroll: onScrollTableListContentVertically,
3507
3507
  children: /* @__PURE__ */ jsx(
@@ -3564,7 +3564,7 @@ const TaskListInner = ({
3564
3564
  /* @__PURE__ */ jsx(
3565
3565
  "div",
3566
3566
  {
3567
- className: styles$e.taskListResizer,
3567
+ className: styles$d.taskListResizer,
3568
3568
  onMouseDown: (event) => {
3569
3569
  onTableResizeStart(event.clientX);
3570
3570
  },
@@ -3585,7 +3585,7 @@ const ganttTable_HeaderContent = "_ganttTable_HeaderContent_1ndeo_29";
3585
3585
  const ganttTable_HeaderTitle = "_ganttTable_HeaderTitle_1ndeo_41";
3586
3586
  const ganttTable_HeaderItem = "_ganttTable_HeaderItem_1ndeo_49";
3587
3587
  const resizer = "_resizer_1ndeo_75";
3588
- const styles$d = {
3588
+ const styles$c = {
3589
3589
  ganttTable_Header,
3590
3590
  ganttTable_HeaderSeparator,
3591
3591
  ganttTable_HeaderContent,
@@ -3682,7 +3682,7 @@ const TaskListHeaderDefaultInner = (props) => {
3682
3682
  return /* @__PURE__ */ jsx(
3683
3683
  "div",
3684
3684
  {
3685
- className: styles$d.ganttTable_Header,
3685
+ className: styles$c.ganttTable_Header,
3686
3686
  style: {
3687
3687
  height: headerHeight,
3688
3688
  fontFamily,
@@ -3693,7 +3693,7 @@ const TaskListHeaderDefaultInner = (props) => {
3693
3693
  index2 > 0 && /* @__PURE__ */ jsx(
3694
3694
  "div",
3695
3695
  {
3696
- className: styles$d.ganttTable_HeaderSeparator,
3696
+ className: styles$c.ganttTable_HeaderSeparator,
3697
3697
  style: {
3698
3698
  height: headerHeight * 0.5,
3699
3699
  marginTop: headerHeight * 0.2
@@ -3704,14 +3704,14 @@ const TaskListHeaderDefaultInner = (props) => {
3704
3704
  "div",
3705
3705
  {
3706
3706
  "data-testid": `table-column-header-${title}`,
3707
- className: styles$d.ganttTable_HeaderItem,
3707
+ className: styles$c.ganttTable_HeaderItem,
3708
3708
  style: {
3709
3709
  minWidth: width,
3710
3710
  maxWidth: width
3711
3711
  },
3712
3712
  children: [
3713
- /* @__PURE__ */ jsxs("div", { className: styles$d.ganttTable_HeaderContent, children: [
3714
- /* @__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 }),
3715
3715
  title === "Name" && /* @__PURE__ */ jsx(
3716
3716
  TaskListHeaderActions,
3717
3717
  {
@@ -3726,7 +3726,7 @@ const TaskListHeaderDefaultInner = (props) => {
3726
3726
  "div",
3727
3727
  {
3728
3728
  "data-testid": `table-column-header-resize-handle-${title}`,
3729
- className: styles$d.resizer,
3729
+ className: styles$c.resizer,
3730
3730
  onMouseDown: (event) => {
3731
3731
  onColumnResizeStart(index2, event.clientX);
3732
3732
  },
@@ -3756,7 +3756,7 @@ const dropAfter = "_dropAfter_1e35i_57";
3756
3756
  const dropAfterLighten = "_dropAfterLighten_1e35i_81";
3757
3757
  const dropBefore = "_dropBefore_1e35i_105";
3758
3758
  const dropBeforeLighten = "_dropBeforeLighten_1e35i_127";
3759
- const styles$c = {
3759
+ const styles$b = {
3760
3760
  taskListTableRow,
3761
3761
  taskListTableRowGrabbing,
3762
3762
  cut,
@@ -3968,7 +3968,7 @@ const TaskListTableRowInner = ({
3968
3968
  return /* @__PURE__ */ jsxs(
3969
3969
  "div",
3970
3970
  {
3971
- className: `${styles$c.taskListTableRow} ${isCut ? styles$c.cut : ""}`,
3971
+ className: `${styles$b.taskListTableRow} ${isCut ? styles$b.cut : ""}`,
3972
3972
  onMouseDown: onRootMouseDown,
3973
3973
  style: {
3974
3974
  height: fullRowHeight,
@@ -3986,7 +3986,7 @@ const TaskListTableRowInner = ({
3986
3986
  return /* @__PURE__ */ jsx(
3987
3987
  "div",
3988
3988
  {
3989
- className: styles$c.taskListCell,
3989
+ className: styles$b.taskListCell,
3990
3990
  style: {
3991
3991
  minWidth: width,
3992
3992
  maxWidth: width
@@ -3994,7 +3994,7 @@ const TaskListTableRowInner = ({
3994
3994
  children: /* @__PURE__ */ jsx(
3995
3995
  "div",
3996
3996
  {
3997
- className: styles$c.taskListCellInner,
3997
+ className: styles$b.taskListCellInner,
3998
3998
  onDragEnter: () => {
3999
3999
  setHoveringState({
4000
4000
  hoveringBefore: false,
@@ -4034,7 +4034,7 @@ const TaskListTableRowInner = ({
4034
4034
  "div",
4035
4035
  {
4036
4036
  "data-testid": `table-row-drop-before-${task.name}`,
4037
- className: `${styles$c.dropBefore} ${hoveringState.hoveringBefore ? styles$c.dropBeforeLighten : ""}`,
4037
+ className: `${styles$b.dropBefore} ${hoveringState.hoveringBefore ? styles$b.dropBeforeLighten : ""}`,
4038
4038
  style: {
4039
4039
  left: dropPreviewOffset,
4040
4040
  backgroundColor: hoveringState.hoveringBefore ? colors.taskDragColor : void 0,
@@ -4064,7 +4064,7 @@ const TaskListTableRowInner = ({
4064
4064
  "div",
4065
4065
  {
4066
4066
  "data-testid": `table-row-drop-after-${task.name}`,
4067
- className: `${styles$c.dropAfter} ${hoveringState.hoveringAfter ? styles$c.dropBeforeLighten : ""}`,
4067
+ className: `${styles$b.dropAfter} ${hoveringState.hoveringAfter ? styles$b.dropBeforeLighten : ""}`,
4068
4068
  style: {
4069
4069
  left: dropPreviewOffset,
4070
4070
  backgroundColor: hoveringState.hoveringAfter ? colors.taskDragColor : void 0,
@@ -4106,7 +4106,7 @@ const checkHasChildren = (task, childTasksMap) => {
4106
4106
  return childs.length > 0;
4107
4107
  };
4108
4108
  const taskListWrapper = "_taskListWrapper_5941j_1";
4109
- const styles$b = {
4109
+ const styles$a = {
4110
4110
  taskListWrapper
4111
4111
  };
4112
4112
  const TaskListTableDefaultInner = ({
@@ -4292,7 +4292,7 @@ const TaskListTableDefaultInner = ({
4292
4292
  return /* @__PURE__ */ jsx(
4293
4293
  "div",
4294
4294
  {
4295
- className: styles$b.taskListWrapper,
4295
+ className: styles$a.taskListWrapper,
4296
4296
  style: { fontFamily, fontSize },
4297
4297
  children: renderedListWithOffset
4298
4298
  }
@@ -4446,7 +4446,7 @@ const calendarBottomText = "_calendarBottomText_lemhx_13";
4446
4446
  const calendarTopTick = "_calendarTopTick_lemhx_35";
4447
4447
  const calendarTopText = "_calendarTopText_lemhx_43";
4448
4448
  const calendarHeader = "_calendarHeader_lemhx_65";
4449
- const styles$a = {
4449
+ const styles$9 = {
4450
4450
  calendarMain,
4451
4451
  calendarBottomText,
4452
4452
  calendarTopTick,
@@ -4470,7 +4470,7 @@ const TopPartOfCalendar = ({
4470
4470
  y1: y1Line,
4471
4471
  x2: x1Line,
4472
4472
  y2: y2Line,
4473
- className: styles$a.calendarTopTick
4473
+ className: styles$9.calendarTopTick
4474
4474
  }
4475
4475
  ),
4476
4476
  value !== null && /* @__PURE__ */ jsx(
@@ -4478,7 +4478,7 @@ const TopPartOfCalendar = ({
4478
4478
  {
4479
4479
  y: yText,
4480
4480
  x: xText,
4481
- className: styles$a.calendarTopText,
4481
+ className: styles$9.calendarTopText,
4482
4482
  style: { fill: colors.barLabelColor },
4483
4483
  children: value
4484
4484
  }
@@ -4527,7 +4527,7 @@ const Calendar = ({
4527
4527
  {
4528
4528
  y: headerHeight * 0.8,
4529
4529
  x: columnWidth * i2 + columnWidth * 0.5,
4530
- className: styles$a.calendarBottomText,
4530
+ className: styles$9.calendarBottomText,
4531
4531
  style: { fill: colors.barLabelColor },
4532
4532
  children: bottomValue
4533
4533
  },
@@ -4568,7 +4568,7 @@ const Calendar = ({
4568
4568
  {
4569
4569
  y: headerHeight * 0.8,
4570
4570
  x: additionalLeftSpace + columnWidth * i2 + columnWidth * 0.5,
4571
- className: styles$a.calendarBottomText,
4571
+ className: styles$9.calendarBottomText,
4572
4572
  style: { fill: colors.barLabelColor },
4573
4573
  children: halfYear
4574
4574
  },
@@ -4611,7 +4611,7 @@ const Calendar = ({
4611
4611
  {
4612
4612
  y: headerHeight * 0.8,
4613
4613
  x: additionalLeftSpace + columnWidth * i2 + columnWidth * 0.5,
4614
- className: styles$a.calendarBottomText,
4614
+ className: styles$9.calendarBottomText,
4615
4615
  style: { fill: colors.barLabelColor },
4616
4616
  children: quarter
4617
4617
  },
@@ -4653,7 +4653,7 @@ const Calendar = ({
4653
4653
  {
4654
4654
  y: headerHeight * 0.8,
4655
4655
  x: additionalLeftSpace + columnWidth * i2 + columnWidth * 0.5,
4656
- className: styles$a.calendarBottomText,
4656
+ className: styles$9.calendarBottomText,
4657
4657
  style: { fill: colors.barLabelColor },
4658
4658
  children: bottomValue
4659
4659
  },
@@ -4708,7 +4708,7 @@ const Calendar = ({
4708
4708
  {
4709
4709
  y: headerHeight * 0.8,
4710
4710
  x: additionalLeftSpace + columnWidth * (i2 + +rtl),
4711
- className: styles$a.calendarBottomText,
4711
+ className: styles$9.calendarBottomText,
4712
4712
  style: { fill: colors.barLabelColor },
4713
4713
  children: bottomValue
4714
4714
  },
@@ -4753,7 +4753,7 @@ const Calendar = ({
4753
4753
  {
4754
4754
  y: headerHeight * 0.8,
4755
4755
  x: additionalLeftSpace + columnWidth * i2 + columnWidth * 0.5,
4756
- className: styles$a.calendarBottomText,
4756
+ className: styles$9.calendarBottomText,
4757
4757
  style: { fill: colors.barLabelColor },
4758
4758
  children: bottomValue
4759
4759
  },
@@ -4800,7 +4800,7 @@ const Calendar = ({
4800
4800
  {
4801
4801
  y: headerHeight * 0.8,
4802
4802
  x: additionalLeftSpace + columnWidth * (i2 + +rtl),
4803
- className: styles$a.calendarBottomText,
4803
+ className: styles$9.calendarBottomText,
4804
4804
  fontFamily,
4805
4805
  style: { fill: colors.barLabelColor },
4806
4806
  children: bottomValue
@@ -4845,7 +4845,7 @@ const Calendar = ({
4845
4845
  {
4846
4846
  y: headerHeight * 0.8,
4847
4847
  x: additionalLeftSpace + columnWidth * (i2 + +rtl),
4848
- className: styles$a.calendarBottomText,
4848
+ className: styles$9.calendarBottomText,
4849
4849
  fontFamily,
4850
4850
  style: { fill: colors.barLabelColor },
4851
4851
  children: bottomValue
@@ -4909,7 +4909,7 @@ const Calendar = ({
4909
4909
  case ViewMode.Hour:
4910
4910
  [topValues, bottomValues] = getCalendarValuesForHour();
4911
4911
  }
4912
- 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(
4913
4913
  "svg",
4914
4914
  {
4915
4915
  xmlns: "http://www.w3.org/2000/svg",
@@ -5164,7 +5164,7 @@ const Grid = (props) => {
5164
5164
  const ganttTaskRoot = "_ganttTaskRoot_1mu5y_1";
5165
5165
  const ganttTaskContent = "_ganttTaskContent_1mu5y_83";
5166
5166
  const wrapper$2 = "_wrapper_1mu5y_111";
5167
- const styles$9 = {
5167
+ const styles$8 = {
5168
5168
  ganttTaskRoot,
5169
5169
  ganttTaskContent,
5170
5170
  wrapper: wrapper$2
@@ -5194,13 +5194,13 @@ const hoverVisibleWrapper$1 = "_hoverVisibleWrapper_11ld1_1";
5194
5194
  const wrapper$1 = "_wrapper_11ld1_1";
5195
5195
  const mainPath$2 = "_mainPath_11ld1_17";
5196
5196
  const clickZone$2 = "_clickZone_11ld1_35";
5197
- const styles$8 = {
5197
+ const styles$7 = {
5198
5198
  hoverVisibleWrapper: hoverVisibleWrapper$1,
5199
5199
  wrapper: wrapper$1,
5200
5200
  mainPath: mainPath$2,
5201
5201
  clickZone: clickZone$2
5202
5202
  };
5203
- const fixPositionContainerClass = styles$8.hoverVisibleWrapper;
5203
+ const fixPositionContainerClass = styles$7.hoverVisibleWrapper;
5204
5204
  const FixDependencyPositionInner = ({
5205
5205
  color,
5206
5206
  dependencyFixIndent,
@@ -5247,7 +5247,7 @@ const FixDependencyPositionInner = ({
5247
5247
  return /* @__PURE__ */ jsxs(
5248
5248
  "g",
5249
5249
  {
5250
- className: styles$8.wrapper,
5250
+ className: styles$7.wrapper,
5251
5251
  fill: color,
5252
5252
  stroke: color,
5253
5253
  onMouseDown: handleFixPosition,
@@ -5256,7 +5256,7 @@ const FixDependencyPositionInner = ({
5256
5256
  "path",
5257
5257
  {
5258
5258
  d: d4,
5259
- className: styles$8.mainPath
5259
+ className: styles$7.mainPath
5260
5260
  }
5261
5261
  ),
5262
5262
  /* @__PURE__ */ jsx(
@@ -5266,7 +5266,7 @@ const FixDependencyPositionInner = ({
5266
5266
  y: y3,
5267
5267
  width: width + dependencyFixIndent,
5268
5268
  height,
5269
- className: styles$8.clickZone
5269
+ className: styles$7.clickZone
5270
5270
  }
5271
5271
  ),
5272
5272
  /* @__PURE__ */ jsx("polygon", { points: trianglePoints })
@@ -5278,7 +5278,7 @@ const FixDependencyPosition = memo(FixDependencyPositionInner);
5278
5278
  const arrow_clickable = "_arrow_clickable_1k55i_1";
5279
5279
  const mainPath$1 = "_mainPath_1k55i_9";
5280
5280
  const clickZone$1 = "_clickZone_1k55i_27";
5281
- const styles$7 = {
5281
+ const styles$6 = {
5282
5282
  arrow_clickable,
5283
5283
  mainPath: mainPath$1,
5284
5284
  clickZone: clickZone$1
@@ -5415,12 +5415,12 @@ const ArrowInner = ({
5415
5415
  "g",
5416
5416
  {
5417
5417
  "data-testid": `task-arrow-${extremityFrom}-${taskFrom.name}-${extremityTo}-${taskTo.name}`,
5418
- className: `"arrow" ${styles$7.arrow_clickable}`,
5418
+ className: `"arrow" ${styles$6.arrow_clickable}`,
5419
5419
  onDoubleClick,
5420
5420
  onClick,
5421
5421
  children: [
5422
- onArrowDoubleClick && /* @__PURE__ */ jsx("path", { d: path, className: styles$7.clickZone }),
5423
- /* @__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 }),
5424
5424
  /* @__PURE__ */ jsx("polygon", { points: trianglePoints })
5425
5425
  ]
5426
5426
  }
@@ -5472,7 +5472,7 @@ const drownPathAndTriangle = (indexForm, fromX1, fromX2, fromY, isTaskFromLeftSi
5472
5472
  return [path, trianglePoints];
5473
5473
  };
5474
5474
  const relationLine = "_relationLine_ftzm9_1";
5475
- const styles$6 = {
5475
+ const styles$5 = {
5476
5476
  relationLine
5477
5477
  };
5478
5478
  const RelationLine = ({
@@ -5488,14 +5488,98 @@ const RelationLine = ({
5488
5488
  x2: x22,
5489
5489
  y1,
5490
5490
  y2: y22,
5491
- 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
+ ]
5492
5575
  }
5493
5576
  );
5494
5577
  };
5578
+ const BarFixWidth = memo(BarFixWidthInner);
5495
5579
  const barWrapper = "_barWrapper_1kg71_1";
5496
5580
  const barHandle = "_barHandle_1kg71_11";
5497
5581
  const barBackground = "_barBackground_1kg71_43";
5498
- const styles$5 = {
5582
+ const styles$3 = {
5499
5583
  barWrapper,
5500
5584
  barHandle,
5501
5585
  barBackground
@@ -5587,7 +5671,7 @@ const BarDisplay = ({
5587
5671
  ry: barCornerRadius,
5588
5672
  rx: barCornerRadius,
5589
5673
  fill: barColor,
5590
- className: styles$5.barBackground
5674
+ className: styles$3.barBackground
5591
5675
  }
5592
5676
  ),
5593
5677
  /* @__PURE__ */ jsx(
@@ -5623,7 +5707,7 @@ const BarDateHandle = ({
5623
5707
  y: y3,
5624
5708
  width,
5625
5709
  height,
5626
- className: styles$5.barHandle,
5710
+ className: styles$3.barHandle,
5627
5711
  ry: barCornerRadius,
5628
5712
  rx: barCornerRadius,
5629
5713
  onMouseDown: (e2) => {
@@ -5647,7 +5731,7 @@ const BarProgressHandle = ({
5647
5731
  "polygon",
5648
5732
  {
5649
5733
  "data-testid": `task-progress-handle-${taskName2}`,
5650
- className: styles$5.barHandle,
5734
+ className: styles$3.barHandle,
5651
5735
  points: progressPoint,
5652
5736
  onMouseDown: (e2) => {
5653
5737
  startMoveProgress(e2.clientX);
@@ -5664,7 +5748,7 @@ const BarProgressHandle = ({
5664
5748
  const barRelationHandleWrapper = "_barRelationHandleWrapper_1744h_1";
5665
5749
  const barRelationHandle = "_barRelationHandle_1744h_1";
5666
5750
  const barRelationHandle_drawMode = "_barRelationHandle_drawMode_1744h_1";
5667
- const styles$4 = {
5751
+ const stylesRelationHandle = {
5668
5752
  barRelationHandleWrapper,
5669
5753
  barRelationHandle,
5670
5754
  barRelationHandle_drawMode
@@ -5672,7 +5756,7 @@ const styles$4 = {
5672
5756
  const projectWrapper = "_projectWrapper_1maxt_1";
5673
5757
  const projectBackground = "_projectBackground_1maxt_11";
5674
5758
  const projectTop = "_projectTop_1maxt_21";
5675
- const styles$3 = {
5759
+ const styles$2 = {
5676
5760
  projectWrapper,
5677
5761
  projectBackground,
5678
5762
  projectTop
@@ -5747,7 +5831,7 @@ const ProjectDisplay = ({
5747
5831
  }
5748
5832
  },
5749
5833
  tabIndex: 0,
5750
- className: styles$3.projectWrapper,
5834
+ className: styles$2.projectWrapper,
5751
5835
  children: [
5752
5836
  /* @__PURE__ */ jsx(
5753
5837
  "rect",
@@ -5759,7 +5843,7 @@ const ProjectDisplay = ({
5759
5843
  height: taskHeight,
5760
5844
  rx: barCornerRadius,
5761
5845
  ry: barCornerRadius,
5762
- className: styles$3.projectBackground
5846
+ className: styles$2.projectBackground
5763
5847
  }
5764
5848
  ),
5765
5849
  /* @__PURE__ */ jsx(
@@ -5784,13 +5868,13 @@ const ProjectDisplay = ({
5784
5868
  height: taskHalfHeight,
5785
5869
  rx: barCornerRadius,
5786
5870
  ry: barCornerRadius,
5787
- className: styles$3.projectTop
5871
+ className: styles$2.projectTop
5788
5872
  }
5789
5873
  ),
5790
5874
  /* @__PURE__ */ jsx(
5791
5875
  "polygon",
5792
5876
  {
5793
- className: styles$3.projectTop,
5877
+ className: styles$2.projectTop,
5794
5878
  points: projectLeftTriangle,
5795
5879
  fill: barColor
5796
5880
  }
@@ -5798,7 +5882,7 @@ const ProjectDisplay = ({
5798
5882
  /* @__PURE__ */ jsx(
5799
5883
  "polygon",
5800
5884
  {
5801
- className: styles$3.projectTop,
5885
+ className: styles$2.projectTop,
5802
5886
  points: projectRightTriangle,
5803
5887
  fill: barColor
5804
5888
  }
@@ -5903,7 +5987,7 @@ const Bar = ({
5903
5987
  return /* @__PURE__ */ jsxs(
5904
5988
  "g",
5905
5989
  {
5906
- className: `${styles$5.barWrapper} ${styles$4.barRelationHandleWrapper}`,
5990
+ className: `${styles$3.barWrapper} ${stylesRelationHandle.barRelationHandleWrapper}`,
5907
5991
  tabIndex: 0,
5908
5992
  children: [
5909
5993
  barDisplay,
@@ -5944,6 +6028,28 @@ const Bar = ({
5944
6028
  }
5945
6029
  );
5946
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);
5947
6053
  const BarSmall = ({
5948
6054
  children: relationhandles,
5949
6055
  colorStyles,
@@ -5975,7 +6081,7 @@ const BarSmall = ({
5975
6081
  return /* @__PURE__ */ jsxs(
5976
6082
  "g",
5977
6083
  {
5978
- className: `${styles$5.barWrapper} ${styles$4.barRelationHandleWrapper}`,
6084
+ className: `${styles$3.barWrapper} ${stylesRelationHandle.barRelationHandleWrapper}`,
5979
6085
  tabIndex: 0,
5980
6086
  children: [
5981
6087
  /* @__PURE__ */ jsx(
@@ -6015,7 +6121,7 @@ const BarSmall = ({
6015
6121
  };
6016
6122
  const milestoneWrapper = "_milestoneWrapper_vcirf_1";
6017
6123
  const milestoneBackground = "_milestoneBackground_vcirf_11";
6018
- const styles$2 = {
6124
+ const styles$1 = {
6019
6125
  milestoneWrapper,
6020
6126
  milestoneBackground
6021
6127
  };
@@ -6050,7 +6156,7 @@ const Milestone = ({
6050
6156
  "g",
6051
6157
  {
6052
6158
  tabIndex: 0,
6053
- className: `${styles$2.milestoneWrapper} ${styles$4.barRelationHandleWrapper}`,
6159
+ className: `${styles$1.milestoneWrapper} ${stylesRelationHandle.barRelationHandleWrapper}`,
6054
6160
  children: [
6055
6161
  /* @__PURE__ */ jsx(
6056
6162
  "rect",
@@ -6064,7 +6170,7 @@ const Milestone = ({
6064
6170
  rx: barCornerRadius,
6065
6171
  ry: barCornerRadius,
6066
6172
  transform,
6067
- className: styles$2.milestoneBackground,
6173
+ className: styles$1.milestoneBackground,
6068
6174
  onMouseDown: (e2) => {
6069
6175
  onTaskEventStart("move", e2.clientX);
6070
6176
  },
@@ -6081,6 +6187,12 @@ const Milestone = ({
6081
6187
  }
6082
6188
  );
6083
6189
  };
6190
+ const barLabel = "_barLabel_y0tyg_1";
6191
+ const barLabelOutside = "_barLabelOutside_y0tyg_25";
6192
+ const style = {
6193
+ barLabel,
6194
+ barLabelOutside
6195
+ };
6084
6196
  const TaskWarningInner = ({
6085
6197
  rtl,
6086
6198
  outOfParentWarnings = void 0,
@@ -6152,118 +6264,6 @@ const TaskWarningInner = ({
6152
6264
  ] });
6153
6265
  };
6154
6266
  const TaskWarning = memo(TaskWarningInner);
6155
- const barLabel = "_barLabel_y0tyg_1";
6156
- const barLabelOutside = "_barLabelOutside_y0tyg_25";
6157
- const style = {
6158
- barLabel,
6159
- barLabelOutside
6160
- };
6161
- const hoverVisibleWrapper = "_hoverVisibleWrapper_11ld1_1";
6162
- const wrapper = "_wrapper_11ld1_1";
6163
- const mainPath = "_mainPath_11ld1_17";
6164
- const clickZone = "_clickZone_11ld1_35";
6165
- const styles$1 = {
6166
- hoverVisibleWrapper,
6167
- wrapper,
6168
- mainPath,
6169
- clickZone
6170
- };
6171
- const fixWidthContainerClass = styles$1.hoverVisibleWrapper;
6172
- const BarFixWidthInner = ({
6173
- x: x3,
6174
- y: y3,
6175
- width,
6176
- height,
6177
- isLeft,
6178
- color,
6179
- handleFixWidth
6180
- }) => {
6181
- const halfHeight = useMemo(
6182
- () => Math.round(height / 2),
6183
- [height]
6184
- );
6185
- const d4 = useMemo(() => {
6186
- return `M ${x3} ${y3}
6187
- v ${height}
6188
- M ${x3} ${y3 + halfHeight}
6189
- h ${isLeft ? -width : width}
6190
- `;
6191
- }, [
6192
- x3,
6193
- y3,
6194
- width,
6195
- height,
6196
- halfHeight,
6197
- isLeft
6198
- ]);
6199
- const trianglePoints = useMemo(
6200
- () => generateTrianglePoints(
6201
- isLeft ? x3 - width : x3 + width,
6202
- y3 + halfHeight,
6203
- 5,
6204
- isLeft
6205
- ),
6206
- [
6207
- x3,
6208
- y3,
6209
- width,
6210
- halfHeight,
6211
- isLeft
6212
- ]
6213
- );
6214
- return /* @__PURE__ */ jsxs(
6215
- "g",
6216
- {
6217
- className: styles$1.wrapper,
6218
- fill: color,
6219
- stroke: color,
6220
- onMouseDown: handleFixWidth,
6221
- children: [
6222
- /* @__PURE__ */ jsx(
6223
- "path",
6224
- {
6225
- d: d4,
6226
- className: styles$1.mainPath
6227
- }
6228
- ),
6229
- /* @__PURE__ */ jsx(
6230
- "rect",
6231
- {
6232
- x: isLeft ? x3 - width - 2 : x3 - 2,
6233
- y: y3 - 5,
6234
- width: width + 5,
6235
- height: height + 5,
6236
- className: styles$1.clickZone
6237
- }
6238
- ),
6239
- /* @__PURE__ */ jsx("polygon", { points: trianglePoints })
6240
- ]
6241
- }
6242
- );
6243
- };
6244
- const BarFixWidth = memo(BarFixWidthInner);
6245
- const BarRelationHandleInner = ({
6246
- dataTestid,
6247
- isRelationDrawMode,
6248
- radius,
6249
- startDrawRelation,
6250
- x: x3,
6251
- y: y3
6252
- }) => {
6253
- return /* @__PURE__ */ jsx(
6254
- "circle",
6255
- {
6256
- "data-testid": dataTestid,
6257
- cx: x3,
6258
- cy: y3,
6259
- r: radius,
6260
- className: `${styles$4.barRelationHandle} ${isRelationDrawMode ? styles$4.barRelationHandle_drawMode : ""}`,
6261
- onMouseDown: startDrawRelation,
6262
- onTouchStart: startDrawRelation
6263
- }
6264
- );
6265
- };
6266
- const BarRelationHandle = memo(BarRelationHandleInner);
6267
6267
  const TaskItemInner = (props) => {
6268
6268
  const {
6269
6269
  childOutOfParentWarnings,
@@ -6520,7 +6520,7 @@ const TaskItemInner = (props) => {
6520
6520
  y: taskYOffset + taskHeight * 0.5,
6521
6521
  className: isTextInside ? style.barLabel : style.barLabel && style.barLabelOutside,
6522
6522
  ref: textRef,
6523
- children: task.name
6523
+ children: isTextInside ? task.name : ""
6524
6524
  }
6525
6525
  ),
6526
6526
  (outOfParentWarnings || hasDependencyWarning) && /* @__PURE__ */ jsx(
@@ -6721,7 +6721,12 @@ const TaskGanttContent = ({
6721
6721
  fixStartPosition,
6722
6722
  fixEndPosition,
6723
6723
  handleDeleteTasks,
6724
- 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
+ }
6725
6730
  }
6726
6731
  )
6727
6732
  },
@@ -6992,7 +6997,7 @@ const TaskGanttInner = (props) => {
6992
6997
  return /* @__PURE__ */ jsxs(
6993
6998
  "div",
6994
6999
  {
6995
- className: styles$9.ganttTaskRoot,
7000
+ className: styles$8.ganttTaskRoot,
6996
7001
  ref: ganttTaskRootRef,
6997
7002
  onScroll: onVerticalScrollbarScrollX,
6998
7003
  dir: "ltr",
@@ -7002,7 +7007,7 @@ const TaskGanttInner = (props) => {
7002
7007
  "div",
7003
7008
  {
7004
7009
  ref: ganttTaskContentRef,
7005
- className: styles$9.ganttTaskContent,
7010
+ className: styles$8.ganttTaskContent,
7006
7011
  style: containerStyle,
7007
7012
  onScroll: onScrollVertically,
7008
7013
  children: [
@@ -13176,7 +13181,7 @@ const Gantt = ({
13176
13181
  return /* @__PURE__ */ jsxs(
13177
13182
  "div",
13178
13183
  {
13179
- className: styles$9.wrapper,
13184
+ className: styles$8.wrapper,
13180
13185
  onKeyDown: handleKeyDown,
13181
13186
  tabIndex: 0,
13182
13187
  ref: wrapperRef,