@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.
@@ -1429,6 +1429,8 @@
1429
1429
  return addWeeks(startDate, offset2);
1430
1430
  case ViewMode.QuarterYear:
1431
1431
  return addQuarters(startDate, offset2);
1432
+ case ViewMode.HalfYear:
1433
+ return addMonths(startDate, offset2 * 6);
1432
1434
  case ViewMode.Year:
1433
1435
  return addYears(startDate, offset2);
1434
1436
  default:
@@ -1873,7 +1875,7 @@
1873
1875
  const tooltipDefaultContainerParagraph = "_tooltipDefaultContainerParagraph_qip67_13";
1874
1876
  const tooltipDetailsContainer = "_tooltipDetailsContainer_qip67_25";
1875
1877
  const tooltipDetailsContainerHidden = "_tooltipDetailsContainerHidden_qip67_49";
1876
- const styles$j = {
1878
+ const styles$i = {
1877
1879
  tooltipDefaultContainer,
1878
1880
  tooltipDefaultContainerParagraph,
1879
1881
  tooltipDetailsContainer,
@@ -1913,12 +1915,12 @@
1913
1915
  return /* @__PURE__ */ jsxRuntime.jsxs(
1914
1916
  "div",
1915
1917
  {
1916
- className: styles$j.tooltipDefaultContainer,
1918
+ className: styles$i.tooltipDefaultContainer,
1917
1919
  style: style2,
1918
1920
  children: [
1919
1921
  /* @__PURE__ */ jsxRuntime.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()}` }),
1920
- task.end.getTime() - task.start.getTime() !== 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles$j.tooltipDefaultContainerParagraph, children: `Duration: ${~~((task.end.getTime() - task.start.getTime()) / (1e3 * 60 * 60 * 24))} day(s)` }),
1921
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles$j.tooltipDefaultContainerParagraph, children: !!task.progress && `Progress: ${task.progress} %` })
1922
+ task.end.getTime() - task.start.getTime() !== 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles$i.tooltipDefaultContainerParagraph, children: `Duration: ${~~((task.end.getTime() - task.start.getTime()) / (1e3 * 60 * 60 * 24))} day(s)` }),
1923
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles$i.tooltipDefaultContainerParagraph, children: !!task.progress && `Progress: ${task.progress} %` })
1922
1924
  ]
1923
1925
  }
1924
1926
  );
@@ -2000,7 +2002,7 @@
2000
2002
  ];
2001
2003
  };
2002
2004
  const button$2 = "_button_1eue5_1";
2003
- const styles$i = {
2005
+ const styles$h = {
2004
2006
  button: button$2
2005
2007
  };
2006
2008
  const AddColumn = (props) => {
@@ -2018,14 +2020,14 @@
2018
2020
  }
2019
2021
  return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick, style: {
2020
2022
  "color": colors.barLabelColor
2021
- }, className: styles$i.button, children: (icons == null ? void 0 : icons.renderAddIcon) ? icons.renderAddIcon(task) : "+" });
2023
+ }, className: styles$h.button, children: (icons == null ? void 0 : icons.renderAddIcon) ? icons.renderAddIcon(task) : "+" });
2022
2024
  };
2023
2025
  const taskListNameWrapper = "_taskListNameWrapper_1un0e_1";
2024
2026
  const dragging = "_dragging_1un0e_11";
2025
2027
  const taskListExpander = "_taskListExpander_1un0e_19";
2026
2028
  const taskListEmptyExpander = "_taskListEmptyExpander_1un0e_35";
2027
2029
  const taskName = "_taskName_1un0e_45";
2028
- const styles$h = {
2030
+ const styles$g = {
2029
2031
  taskListNameWrapper,
2030
2032
  dragging,
2031
2033
  taskListExpander,
@@ -2068,7 +2070,7 @@
2068
2070
  "div",
2069
2071
  {
2070
2072
  "data-testid": `title-table-cell-${name}`,
2071
- className: `${styles$h.taskListNameWrapper}`,
2073
+ className: `${styles$g.taskListNameWrapper}`,
2072
2074
  style: {
2073
2075
  paddingLeft: depth * nestedTaskNameOffset
2074
2076
  },
@@ -2077,7 +2079,7 @@
2077
2079
  /* @__PURE__ */ jsxRuntime.jsx(
2078
2080
  "div",
2079
2081
  {
2080
- className: `${styles$h.taskListExpander} ${!hasChildren ? styles$h.taskListEmptyExpander : ""}`,
2082
+ className: `${styles$g.taskListExpander} ${!hasChildren ? styles$g.taskListEmptyExpander : ""}`,
2081
2083
  onClick,
2082
2084
  style: {
2083
2085
  width: expandIconWidth
@@ -2087,7 +2089,7 @@
2087
2089
  ),
2088
2090
  /* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
2089
2091
  color: colors.barLabelColor
2090
- }, className: styles$h.taskName, children: [
2092
+ }, className: styles$g.taskName, children: [
2091
2093
  isShowTaskNumbers && /* @__PURE__ */ jsxRuntime.jsxs("b", { children: [
2092
2094
  indexStr,
2093
2095
  " "
@@ -3184,7 +3186,7 @@
3184
3186
  }, children: dependencies.map(({ name }) => name).join(", ") });
3185
3187
  };
3186
3188
  const button$1 = "_button_1eue5_1";
3187
- const styles$g = {
3189
+ const styles$f = {
3188
3190
  button: button$1
3189
3191
  };
3190
3192
  const DeleteColumn = (props) => {
@@ -3196,10 +3198,10 @@
3196
3198
  }, [task, handleDeleteTasks]);
3197
3199
  return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick, style: {
3198
3200
  "color": colors.barLabelColor
3199
- }, className: styles$g.button, children: (icons == null ? void 0 : icons.renderDeleteIcon) ? icons.renderDeleteIcon(task) : "-" });
3201
+ }, className: styles$f.button, children: (icons == null ? void 0 : icons.renderDeleteIcon) ? icons.renderDeleteIcon(task) : "-" });
3200
3202
  };
3201
3203
  const button = "_button_ys66g_1";
3202
- const styles$f = {
3204
+ const styles$e = {
3203
3205
  button
3204
3206
  };
3205
3207
  const EditColumn = (props) => {
@@ -3211,7 +3213,7 @@
3211
3213
  }, [task, handleEditTask]);
3212
3214
  return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick, style: {
3213
3215
  "color": colors.barLabelColor
3214
- }, className: styles$f.button, children: (icons == null ? void 0 : icons.renderEditIcon) ? icons.renderEditIcon(task) : "✎" });
3216
+ }, className: styles$e.button, children: (icons == null ? void 0 : icons.renderEditIcon) ? icons.renderEditIcon(task) : "✎" });
3215
3217
  };
3216
3218
  const useTableListResize = (columnsProp, distances, onResizeColumn) => {
3217
3219
  const [columnsState, setColumns] = React.useState(() => {
@@ -3417,7 +3419,7 @@
3417
3419
  const taskListResizer = "_taskListResizer_1ogga_79";
3418
3420
  const taskListContent = "_taskListContent_1ogga_127";
3419
3421
  const hidden = "_hidden_1ogga_147";
3420
- const styles$e = {
3422
+ const styles$d = {
3421
3423
  ganttTableRoot,
3422
3424
  ganttTableWrapper,
3423
3425
  taskListResizer,
@@ -3485,11 +3487,11 @@
3485
3487
  fullRowHeight
3486
3488
  );
3487
3489
  const renderedIndexes = enableTaskGrouping ? groupedIndexes : optimizedIndexes;
3488
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$e.ganttTableRoot, ref: taskListRef, children: [
3490
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$d.ganttTableRoot, ref: taskListRef, children: [
3489
3491
  /* @__PURE__ */ jsxRuntime.jsxs(
3490
3492
  "div",
3491
3493
  {
3492
- className: styles$e.ganttTableWrapper,
3494
+ className: styles$d.ganttTableWrapper,
3493
3495
  style: {
3494
3496
  width: tableWidth
3495
3497
  },
@@ -3512,7 +3514,7 @@
3512
3514
  /* @__PURE__ */ jsxRuntime.jsx(
3513
3515
  "div",
3514
3516
  {
3515
- className: styles$e.taskListContent,
3517
+ className: styles$d.taskListContent,
3516
3518
  ref: taskListContentRef,
3517
3519
  onScroll: onScrollTableListContentVertically,
3518
3520
  children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -3575,7 +3577,7 @@
3575
3577
  /* @__PURE__ */ jsxRuntime.jsx(
3576
3578
  "div",
3577
3579
  {
3578
- className: styles$e.taskListResizer,
3580
+ className: styles$d.taskListResizer,
3579
3581
  onMouseDown: (event) => {
3580
3582
  onTableResizeStart(event.clientX);
3581
3583
  },
@@ -3596,7 +3598,7 @@
3596
3598
  const ganttTable_HeaderTitle = "_ganttTable_HeaderTitle_1ndeo_41";
3597
3599
  const ganttTable_HeaderItem = "_ganttTable_HeaderItem_1ndeo_49";
3598
3600
  const resizer = "_resizer_1ndeo_75";
3599
- const styles$d = {
3601
+ const styles$c = {
3600
3602
  ganttTable_Header,
3601
3603
  ganttTable_HeaderSeparator,
3602
3604
  ganttTable_HeaderContent,
@@ -3693,7 +3695,7 @@
3693
3695
  return /* @__PURE__ */ jsxRuntime.jsx(
3694
3696
  "div",
3695
3697
  {
3696
- className: styles$d.ganttTable_Header,
3698
+ className: styles$c.ganttTable_Header,
3697
3699
  style: {
3698
3700
  height: headerHeight,
3699
3701
  fontFamily,
@@ -3704,7 +3706,7 @@
3704
3706
  index2 > 0 && /* @__PURE__ */ jsxRuntime.jsx(
3705
3707
  "div",
3706
3708
  {
3707
- className: styles$d.ganttTable_HeaderSeparator,
3709
+ className: styles$c.ganttTable_HeaderSeparator,
3708
3710
  style: {
3709
3711
  height: headerHeight * 0.5,
3710
3712
  marginTop: headerHeight * 0.2
@@ -3715,14 +3717,14 @@
3715
3717
  "div",
3716
3718
  {
3717
3719
  "data-testid": `table-column-header-${title}`,
3718
- className: styles$d.ganttTable_HeaderItem,
3720
+ className: styles$c.ganttTable_HeaderItem,
3719
3721
  style: {
3720
3722
  minWidth: width,
3721
3723
  maxWidth: width
3722
3724
  },
3723
3725
  children: [
3724
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$d.ganttTable_HeaderContent, children: [
3725
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$d.ganttTable_HeaderTitle, children: title }),
3726
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$c.ganttTable_HeaderContent, children: [
3727
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$c.ganttTable_HeaderTitle, children: title }),
3726
3728
  title === "Name" && /* @__PURE__ */ jsxRuntime.jsx(
3727
3729
  TaskListHeaderActions,
3728
3730
  {
@@ -3737,7 +3739,7 @@
3737
3739
  "div",
3738
3740
  {
3739
3741
  "data-testid": `table-column-header-resize-handle-${title}`,
3740
- className: styles$d.resizer,
3742
+ className: styles$c.resizer,
3741
3743
  onMouseDown: (event) => {
3742
3744
  onColumnResizeStart(index2, event.clientX);
3743
3745
  },
@@ -3767,7 +3769,7 @@
3767
3769
  const dropAfterLighten = "_dropAfterLighten_1e35i_81";
3768
3770
  const dropBefore = "_dropBefore_1e35i_105";
3769
3771
  const dropBeforeLighten = "_dropBeforeLighten_1e35i_127";
3770
- const styles$c = {
3772
+ const styles$b = {
3771
3773
  taskListTableRow,
3772
3774
  taskListTableRowGrabbing,
3773
3775
  cut,
@@ -3979,7 +3981,7 @@
3979
3981
  return /* @__PURE__ */ jsxRuntime.jsxs(
3980
3982
  "div",
3981
3983
  {
3982
- className: `${styles$c.taskListTableRow} ${isCut ? styles$c.cut : ""}`,
3984
+ className: `${styles$b.taskListTableRow} ${isCut ? styles$b.cut : ""}`,
3983
3985
  onMouseDown: onRootMouseDown,
3984
3986
  style: {
3985
3987
  height: fullRowHeight,
@@ -3997,7 +3999,7 @@
3997
3999
  return /* @__PURE__ */ jsxRuntime.jsx(
3998
4000
  "div",
3999
4001
  {
4000
- className: styles$c.taskListCell,
4002
+ className: styles$b.taskListCell,
4001
4003
  style: {
4002
4004
  minWidth: width,
4003
4005
  maxWidth: width
@@ -4005,7 +4007,7 @@
4005
4007
  children: /* @__PURE__ */ jsxRuntime.jsx(
4006
4008
  "div",
4007
4009
  {
4008
- className: styles$c.taskListCellInner,
4010
+ className: styles$b.taskListCellInner,
4009
4011
  onDragEnter: () => {
4010
4012
  setHoveringState({
4011
4013
  hoveringBefore: false,
@@ -4045,7 +4047,7 @@
4045
4047
  "div",
4046
4048
  {
4047
4049
  "data-testid": `table-row-drop-before-${task.name}`,
4048
- className: `${styles$c.dropBefore} ${hoveringState.hoveringBefore ? styles$c.dropBeforeLighten : ""}`,
4050
+ className: `${styles$b.dropBefore} ${hoveringState.hoveringBefore ? styles$b.dropBeforeLighten : ""}`,
4049
4051
  style: {
4050
4052
  left: dropPreviewOffset,
4051
4053
  backgroundColor: hoveringState.hoveringBefore ? colors.taskDragColor : void 0,
@@ -4075,7 +4077,7 @@
4075
4077
  "div",
4076
4078
  {
4077
4079
  "data-testid": `table-row-drop-after-${task.name}`,
4078
- className: `${styles$c.dropAfter} ${hoveringState.hoveringAfter ? styles$c.dropBeforeLighten : ""}`,
4080
+ className: `${styles$b.dropAfter} ${hoveringState.hoveringAfter ? styles$b.dropBeforeLighten : ""}`,
4079
4081
  style: {
4080
4082
  left: dropPreviewOffset,
4081
4083
  backgroundColor: hoveringState.hoveringAfter ? colors.taskDragColor : void 0,
@@ -4117,7 +4119,7 @@
4117
4119
  return childs.length > 0;
4118
4120
  };
4119
4121
  const taskListWrapper = "_taskListWrapper_5941j_1";
4120
- const styles$b = {
4122
+ const styles$a = {
4121
4123
  taskListWrapper
4122
4124
  };
4123
4125
  const TaskListTableDefaultInner = ({
@@ -4303,7 +4305,7 @@
4303
4305
  return /* @__PURE__ */ jsxRuntime.jsx(
4304
4306
  "div",
4305
4307
  {
4306
- className: styles$b.taskListWrapper,
4308
+ className: styles$a.taskListWrapper,
4307
4309
  style: { fontFamily, fontSize },
4308
4310
  children: renderedListWithOffset
4309
4311
  }
@@ -4457,7 +4459,7 @@
4457
4459
  const calendarTopTick = "_calendarTopTick_lemhx_35";
4458
4460
  const calendarTopText = "_calendarTopText_lemhx_43";
4459
4461
  const calendarHeader = "_calendarHeader_lemhx_65";
4460
- const styles$a = {
4462
+ const styles$9 = {
4461
4463
  calendarMain,
4462
4464
  calendarBottomText,
4463
4465
  calendarTopTick,
@@ -4481,7 +4483,7 @@
4481
4483
  y1: y1Line,
4482
4484
  x2: x1Line,
4483
4485
  y2: y2Line,
4484
- className: styles$a.calendarTopTick
4486
+ className: styles$9.calendarTopTick
4485
4487
  }
4486
4488
  ),
4487
4489
  value !== null && /* @__PURE__ */ jsxRuntime.jsx(
@@ -4489,7 +4491,7 @@
4489
4491
  {
4490
4492
  y: yText,
4491
4493
  x: xText,
4492
- className: styles$a.calendarTopText,
4494
+ className: styles$9.calendarTopText,
4493
4495
  style: { fill: colors.barLabelColor },
4494
4496
  children: value
4495
4497
  }
@@ -4538,7 +4540,7 @@
4538
4540
  {
4539
4541
  y: headerHeight * 0.8,
4540
4542
  x: columnWidth * i + columnWidth * 0.5,
4541
- className: styles$a.calendarBottomText,
4543
+ className: styles$9.calendarBottomText,
4542
4544
  style: { fill: colors.barLabelColor },
4543
4545
  children: bottomValue
4544
4546
  },
@@ -4579,7 +4581,7 @@
4579
4581
  {
4580
4582
  y: headerHeight * 0.8,
4581
4583
  x: additionalLeftSpace + columnWidth * i + columnWidth * 0.5,
4582
- className: styles$a.calendarBottomText,
4584
+ className: styles$9.calendarBottomText,
4583
4585
  style: { fill: colors.barLabelColor },
4584
4586
  children: halfYear
4585
4587
  },
@@ -4622,7 +4624,7 @@
4622
4624
  {
4623
4625
  y: headerHeight * 0.8,
4624
4626
  x: additionalLeftSpace + columnWidth * i + columnWidth * 0.5,
4625
- className: styles$a.calendarBottomText,
4627
+ className: styles$9.calendarBottomText,
4626
4628
  style: { fill: colors.barLabelColor },
4627
4629
  children: quarter
4628
4630
  },
@@ -4664,7 +4666,7 @@
4664
4666
  {
4665
4667
  y: headerHeight * 0.8,
4666
4668
  x: additionalLeftSpace + columnWidth * i + columnWidth * 0.5,
4667
- className: styles$a.calendarBottomText,
4669
+ className: styles$9.calendarBottomText,
4668
4670
  style: { fill: colors.barLabelColor },
4669
4671
  children: bottomValue
4670
4672
  },
@@ -4719,7 +4721,7 @@
4719
4721
  {
4720
4722
  y: headerHeight * 0.8,
4721
4723
  x: additionalLeftSpace + columnWidth * (i + +rtl),
4722
- className: styles$a.calendarBottomText,
4724
+ className: styles$9.calendarBottomText,
4723
4725
  style: { fill: colors.barLabelColor },
4724
4726
  children: bottomValue
4725
4727
  },
@@ -4764,7 +4766,7 @@
4764
4766
  {
4765
4767
  y: headerHeight * 0.8,
4766
4768
  x: additionalLeftSpace + columnWidth * i + columnWidth * 0.5,
4767
- className: styles$a.calendarBottomText,
4769
+ className: styles$9.calendarBottomText,
4768
4770
  style: { fill: colors.barLabelColor },
4769
4771
  children: bottomValue
4770
4772
  },
@@ -4811,7 +4813,7 @@
4811
4813
  {
4812
4814
  y: headerHeight * 0.8,
4813
4815
  x: additionalLeftSpace + columnWidth * (i + +rtl),
4814
- className: styles$a.calendarBottomText,
4816
+ className: styles$9.calendarBottomText,
4815
4817
  fontFamily,
4816
4818
  style: { fill: colors.barLabelColor },
4817
4819
  children: bottomValue
@@ -4856,7 +4858,7 @@
4856
4858
  {
4857
4859
  y: headerHeight * 0.8,
4858
4860
  x: additionalLeftSpace + columnWidth * (i + +rtl),
4859
- className: styles$a.calendarBottomText,
4861
+ className: styles$9.calendarBottomText,
4860
4862
  fontFamily,
4861
4863
  style: { fill: colors.barLabelColor },
4862
4864
  children: bottomValue
@@ -4920,7 +4922,7 @@
4920
4922
  case ViewMode.Hour:
4921
4923
  [topValues, bottomValues] = getCalendarValuesForHour();
4922
4924
  }
4923
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$a.calendarMain, style: { width: fullSvgWidth }, children: /* @__PURE__ */ jsxRuntime.jsx(
4925
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$9.calendarMain, style: { width: fullSvgWidth }, children: /* @__PURE__ */ jsxRuntime.jsx(
4924
4926
  "svg",
4925
4927
  {
4926
4928
  xmlns: "http://www.w3.org/2000/svg",
@@ -5175,7 +5177,7 @@
5175
5177
  const ganttTaskRoot = "_ganttTaskRoot_1mu5y_1";
5176
5178
  const ganttTaskContent = "_ganttTaskContent_1mu5y_83";
5177
5179
  const wrapper$2 = "_wrapper_1mu5y_111";
5178
- const styles$9 = {
5180
+ const styles$8 = {
5179
5181
  ganttTaskRoot,
5180
5182
  ganttTaskContent,
5181
5183
  wrapper: wrapper$2
@@ -5205,13 +5207,13 @@
5205
5207
  const wrapper$1 = "_wrapper_11ld1_1";
5206
5208
  const mainPath$2 = "_mainPath_11ld1_17";
5207
5209
  const clickZone$2 = "_clickZone_11ld1_35";
5208
- const styles$8 = {
5210
+ const styles$7 = {
5209
5211
  hoverVisibleWrapper: hoverVisibleWrapper$1,
5210
5212
  wrapper: wrapper$1,
5211
5213
  mainPath: mainPath$2,
5212
5214
  clickZone: clickZone$2
5213
5215
  };
5214
- const fixPositionContainerClass = styles$8.hoverVisibleWrapper;
5216
+ const fixPositionContainerClass = styles$7.hoverVisibleWrapper;
5215
5217
  const FixDependencyPositionInner = ({
5216
5218
  color,
5217
5219
  dependencyFixIndent,
@@ -5258,7 +5260,7 @@
5258
5260
  return /* @__PURE__ */ jsxRuntime.jsxs(
5259
5261
  "g",
5260
5262
  {
5261
- className: styles$8.wrapper,
5263
+ className: styles$7.wrapper,
5262
5264
  fill: color,
5263
5265
  stroke: color,
5264
5266
  onMouseDown: handleFixPosition,
@@ -5267,7 +5269,7 @@
5267
5269
  "path",
5268
5270
  {
5269
5271
  d: d2,
5270
- className: styles$8.mainPath
5272
+ className: styles$7.mainPath
5271
5273
  }
5272
5274
  ),
5273
5275
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -5277,7 +5279,7 @@
5277
5279
  y,
5278
5280
  width: width + dependencyFixIndent,
5279
5281
  height,
5280
- className: styles$8.clickZone
5282
+ className: styles$7.clickZone
5281
5283
  }
5282
5284
  ),
5283
5285
  /* @__PURE__ */ jsxRuntime.jsx("polygon", { points: trianglePoints })
@@ -5289,7 +5291,7 @@
5289
5291
  const arrow_clickable = "_arrow_clickable_1k55i_1";
5290
5292
  const mainPath$1 = "_mainPath_1k55i_9";
5291
5293
  const clickZone$1 = "_clickZone_1k55i_27";
5292
- const styles$7 = {
5294
+ const styles$6 = {
5293
5295
  arrow_clickable,
5294
5296
  mainPath: mainPath$1,
5295
5297
  clickZone: clickZone$1
@@ -5426,12 +5428,12 @@
5426
5428
  "g",
5427
5429
  {
5428
5430
  "data-testid": `task-arrow-${extremityFrom}-${taskFrom.name}-${extremityTo}-${taskTo.name}`,
5429
- className: `"arrow" ${styles$7.arrow_clickable}`,
5431
+ className: `"arrow" ${styles$6.arrow_clickable}`,
5430
5432
  onDoubleClick,
5431
5433
  onClick,
5432
5434
  children: [
5433
- onArrowDoubleClick && /* @__PURE__ */ jsxRuntime.jsx("path", { d: path, className: styles$7.clickZone }),
5434
- /* @__PURE__ */ jsxRuntime.jsx("path", { className: styles$7.mainPath, d: path }),
5435
+ onArrowDoubleClick && /* @__PURE__ */ jsxRuntime.jsx("path", { d: path, className: styles$6.clickZone }),
5436
+ /* @__PURE__ */ jsxRuntime.jsx("path", { className: styles$6.mainPath, d: path }),
5435
5437
  /* @__PURE__ */ jsxRuntime.jsx("polygon", { points: trianglePoints })
5436
5438
  ]
5437
5439
  }
@@ -5483,7 +5485,7 @@
5483
5485
  return [path, trianglePoints];
5484
5486
  };
5485
5487
  const relationLine = "_relationLine_ftzm9_1";
5486
- const styles$6 = {
5488
+ const styles$5 = {
5487
5489
  relationLine
5488
5490
  };
5489
5491
  const RelationLine = ({
@@ -5499,14 +5501,98 @@
5499
5501
  x2,
5500
5502
  y1,
5501
5503
  y2,
5502
- className: styles$6.relationLine
5504
+ className: styles$5.relationLine
5505
+ }
5506
+ );
5507
+ };
5508
+ const hoverVisibleWrapper = "_hoverVisibleWrapper_11ld1_1";
5509
+ const wrapper = "_wrapper_11ld1_1";
5510
+ const mainPath = "_mainPath_11ld1_17";
5511
+ const clickZone = "_clickZone_11ld1_35";
5512
+ const styles$4 = {
5513
+ hoverVisibleWrapper,
5514
+ wrapper,
5515
+ mainPath,
5516
+ clickZone
5517
+ };
5518
+ const fixWidthContainerClass = styles$4.hoverVisibleWrapper;
5519
+ const BarFixWidthInner = ({
5520
+ x: x2,
5521
+ y,
5522
+ width,
5523
+ height,
5524
+ isLeft,
5525
+ color,
5526
+ handleFixWidth
5527
+ }) => {
5528
+ const halfHeight = React.useMemo(
5529
+ () => Math.round(height / 2),
5530
+ [height]
5531
+ );
5532
+ const d2 = React.useMemo(() => {
5533
+ return `M ${x2} ${y}
5534
+ v ${height}
5535
+ M ${x2} ${y + halfHeight}
5536
+ h ${isLeft ? -width : width}
5537
+ `;
5538
+ }, [
5539
+ x2,
5540
+ y,
5541
+ width,
5542
+ height,
5543
+ halfHeight,
5544
+ isLeft
5545
+ ]);
5546
+ const trianglePoints = React.useMemo(
5547
+ () => generateTrianglePoints(
5548
+ isLeft ? x2 - width : x2 + width,
5549
+ y + halfHeight,
5550
+ 5,
5551
+ isLeft
5552
+ ),
5553
+ [
5554
+ x2,
5555
+ y,
5556
+ width,
5557
+ halfHeight,
5558
+ isLeft
5559
+ ]
5560
+ );
5561
+ return /* @__PURE__ */ jsxRuntime.jsxs(
5562
+ "g",
5563
+ {
5564
+ className: styles$4.wrapper,
5565
+ fill: color,
5566
+ stroke: color,
5567
+ onMouseDown: handleFixWidth,
5568
+ children: [
5569
+ /* @__PURE__ */ jsxRuntime.jsx(
5570
+ "path",
5571
+ {
5572
+ d: d2,
5573
+ className: styles$4.mainPath
5574
+ }
5575
+ ),
5576
+ /* @__PURE__ */ jsxRuntime.jsx(
5577
+ "rect",
5578
+ {
5579
+ x: isLeft ? x2 - width - 2 : x2 - 2,
5580
+ y: y - 5,
5581
+ width: width + 5,
5582
+ height: height + 5,
5583
+ className: styles$4.clickZone
5584
+ }
5585
+ ),
5586
+ /* @__PURE__ */ jsxRuntime.jsx("polygon", { points: trianglePoints })
5587
+ ]
5503
5588
  }
5504
5589
  );
5505
5590
  };
5591
+ const BarFixWidth = React.memo(BarFixWidthInner);
5506
5592
  const barWrapper = "_barWrapper_1kg71_1";
5507
5593
  const barHandle = "_barHandle_1kg71_11";
5508
5594
  const barBackground = "_barBackground_1kg71_43";
5509
- const styles$5 = {
5595
+ const styles$3 = {
5510
5596
  barWrapper,
5511
5597
  barHandle,
5512
5598
  barBackground
@@ -5598,7 +5684,7 @@
5598
5684
  ry: barCornerRadius,
5599
5685
  rx: barCornerRadius,
5600
5686
  fill: barColor,
5601
- className: styles$5.barBackground
5687
+ className: styles$3.barBackground
5602
5688
  }
5603
5689
  ),
5604
5690
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -5634,7 +5720,7 @@
5634
5720
  y,
5635
5721
  width,
5636
5722
  height,
5637
- className: styles$5.barHandle,
5723
+ className: styles$3.barHandle,
5638
5724
  ry: barCornerRadius,
5639
5725
  rx: barCornerRadius,
5640
5726
  onMouseDown: (e) => {
@@ -5658,7 +5744,7 @@
5658
5744
  "polygon",
5659
5745
  {
5660
5746
  "data-testid": `task-progress-handle-${taskName2}`,
5661
- className: styles$5.barHandle,
5747
+ className: styles$3.barHandle,
5662
5748
  points: progressPoint,
5663
5749
  onMouseDown: (e) => {
5664
5750
  startMoveProgress(e.clientX);
@@ -5675,7 +5761,7 @@
5675
5761
  const barRelationHandleWrapper = "_barRelationHandleWrapper_1744h_1";
5676
5762
  const barRelationHandle = "_barRelationHandle_1744h_1";
5677
5763
  const barRelationHandle_drawMode = "_barRelationHandle_drawMode_1744h_1";
5678
- const styles$4 = {
5764
+ const stylesRelationHandle = {
5679
5765
  barRelationHandleWrapper,
5680
5766
  barRelationHandle,
5681
5767
  barRelationHandle_drawMode
@@ -5683,7 +5769,7 @@
5683
5769
  const projectWrapper = "_projectWrapper_1maxt_1";
5684
5770
  const projectBackground = "_projectBackground_1maxt_11";
5685
5771
  const projectTop = "_projectTop_1maxt_21";
5686
- const styles$3 = {
5772
+ const styles$2 = {
5687
5773
  projectWrapper,
5688
5774
  projectBackground,
5689
5775
  projectTop
@@ -5758,7 +5844,7 @@
5758
5844
  }
5759
5845
  },
5760
5846
  tabIndex: 0,
5761
- className: styles$3.projectWrapper,
5847
+ className: styles$2.projectWrapper,
5762
5848
  children: [
5763
5849
  /* @__PURE__ */ jsxRuntime.jsx(
5764
5850
  "rect",
@@ -5770,7 +5856,7 @@
5770
5856
  height: taskHeight,
5771
5857
  rx: barCornerRadius,
5772
5858
  ry: barCornerRadius,
5773
- className: styles$3.projectBackground
5859
+ className: styles$2.projectBackground
5774
5860
  }
5775
5861
  ),
5776
5862
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -5795,13 +5881,13 @@
5795
5881
  height: taskHalfHeight,
5796
5882
  rx: barCornerRadius,
5797
5883
  ry: barCornerRadius,
5798
- className: styles$3.projectTop
5884
+ className: styles$2.projectTop
5799
5885
  }
5800
5886
  ),
5801
5887
  /* @__PURE__ */ jsxRuntime.jsx(
5802
5888
  "polygon",
5803
5889
  {
5804
- className: styles$3.projectTop,
5890
+ className: styles$2.projectTop,
5805
5891
  points: projectLeftTriangle,
5806
5892
  fill: barColor
5807
5893
  }
@@ -5809,7 +5895,7 @@
5809
5895
  /* @__PURE__ */ jsxRuntime.jsx(
5810
5896
  "polygon",
5811
5897
  {
5812
- className: styles$3.projectTop,
5898
+ className: styles$2.projectTop,
5813
5899
  points: projectRightTriangle,
5814
5900
  fill: barColor
5815
5901
  }
@@ -5914,7 +6000,7 @@
5914
6000
  return /* @__PURE__ */ jsxRuntime.jsxs(
5915
6001
  "g",
5916
6002
  {
5917
- className: `${styles$5.barWrapper} ${styles$4.barRelationHandleWrapper}`,
6003
+ className: `${styles$3.barWrapper} ${stylesRelationHandle.barRelationHandleWrapper}`,
5918
6004
  tabIndex: 0,
5919
6005
  children: [
5920
6006
  barDisplay,
@@ -5955,6 +6041,28 @@
5955
6041
  }
5956
6042
  );
5957
6043
  };
6044
+ const BarRelationHandleInner = ({
6045
+ dataTestid,
6046
+ isRelationDrawMode,
6047
+ radius,
6048
+ startDrawRelation,
6049
+ x: x2,
6050
+ y
6051
+ }) => {
6052
+ return /* @__PURE__ */ jsxRuntime.jsx(
6053
+ "circle",
6054
+ {
6055
+ "data-testid": dataTestid,
6056
+ cx: x2,
6057
+ cy: y,
6058
+ r: radius,
6059
+ className: `${stylesRelationHandle.barRelationHandle} ${isRelationDrawMode ? stylesRelationHandle.barRelationHandle_drawMode : ""}`,
6060
+ onMouseDown: startDrawRelation,
6061
+ onTouchStart: startDrawRelation
6062
+ }
6063
+ );
6064
+ };
6065
+ const BarRelationHandle = React.memo(BarRelationHandleInner);
5958
6066
  const BarSmall = ({
5959
6067
  children: relationhandles,
5960
6068
  colorStyles,
@@ -5986,7 +6094,7 @@
5986
6094
  return /* @__PURE__ */ jsxRuntime.jsxs(
5987
6095
  "g",
5988
6096
  {
5989
- className: `${styles$5.barWrapper} ${styles$4.barRelationHandleWrapper}`,
6097
+ className: `${styles$3.barWrapper} ${stylesRelationHandle.barRelationHandleWrapper}`,
5990
6098
  tabIndex: 0,
5991
6099
  children: [
5992
6100
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -6026,7 +6134,7 @@
6026
6134
  };
6027
6135
  const milestoneWrapper = "_milestoneWrapper_vcirf_1";
6028
6136
  const milestoneBackground = "_milestoneBackground_vcirf_11";
6029
- const styles$2 = {
6137
+ const styles$1 = {
6030
6138
  milestoneWrapper,
6031
6139
  milestoneBackground
6032
6140
  };
@@ -6061,7 +6169,7 @@
6061
6169
  "g",
6062
6170
  {
6063
6171
  tabIndex: 0,
6064
- className: `${styles$2.milestoneWrapper} ${styles$4.barRelationHandleWrapper}`,
6172
+ className: `${styles$1.milestoneWrapper} ${stylesRelationHandle.barRelationHandleWrapper}`,
6065
6173
  children: [
6066
6174
  /* @__PURE__ */ jsxRuntime.jsx(
6067
6175
  "rect",
@@ -6075,7 +6183,7 @@
6075
6183
  rx: barCornerRadius,
6076
6184
  ry: barCornerRadius,
6077
6185
  transform,
6078
- className: styles$2.milestoneBackground,
6186
+ className: styles$1.milestoneBackground,
6079
6187
  onMouseDown: (e) => {
6080
6188
  onTaskEventStart("move", e.clientX);
6081
6189
  },
@@ -6092,6 +6200,12 @@
6092
6200
  }
6093
6201
  );
6094
6202
  };
6203
+ const barLabel = "_barLabel_y0tyg_1";
6204
+ const barLabelOutside = "_barLabelOutside_y0tyg_25";
6205
+ const style = {
6206
+ barLabel,
6207
+ barLabelOutside
6208
+ };
6095
6209
  const TaskWarningInner = ({
6096
6210
  rtl,
6097
6211
  outOfParentWarnings = void 0,
@@ -6163,118 +6277,6 @@
6163
6277
  ] });
6164
6278
  };
6165
6279
  const TaskWarning = React.memo(TaskWarningInner);
6166
- const barLabel = "_barLabel_y0tyg_1";
6167
- const barLabelOutside = "_barLabelOutside_y0tyg_25";
6168
- const style = {
6169
- barLabel,
6170
- barLabelOutside
6171
- };
6172
- const hoverVisibleWrapper = "_hoverVisibleWrapper_11ld1_1";
6173
- const wrapper = "_wrapper_11ld1_1";
6174
- const mainPath = "_mainPath_11ld1_17";
6175
- const clickZone = "_clickZone_11ld1_35";
6176
- const styles$1 = {
6177
- hoverVisibleWrapper,
6178
- wrapper,
6179
- mainPath,
6180
- clickZone
6181
- };
6182
- const fixWidthContainerClass = styles$1.hoverVisibleWrapper;
6183
- const BarFixWidthInner = ({
6184
- x: x2,
6185
- y,
6186
- width,
6187
- height,
6188
- isLeft,
6189
- color,
6190
- handleFixWidth
6191
- }) => {
6192
- const halfHeight = React.useMemo(
6193
- () => Math.round(height / 2),
6194
- [height]
6195
- );
6196
- const d2 = React.useMemo(() => {
6197
- return `M ${x2} ${y}
6198
- v ${height}
6199
- M ${x2} ${y + halfHeight}
6200
- h ${isLeft ? -width : width}
6201
- `;
6202
- }, [
6203
- x2,
6204
- y,
6205
- width,
6206
- height,
6207
- halfHeight,
6208
- isLeft
6209
- ]);
6210
- const trianglePoints = React.useMemo(
6211
- () => generateTrianglePoints(
6212
- isLeft ? x2 - width : x2 + width,
6213
- y + halfHeight,
6214
- 5,
6215
- isLeft
6216
- ),
6217
- [
6218
- x2,
6219
- y,
6220
- width,
6221
- halfHeight,
6222
- isLeft
6223
- ]
6224
- );
6225
- return /* @__PURE__ */ jsxRuntime.jsxs(
6226
- "g",
6227
- {
6228
- className: styles$1.wrapper,
6229
- fill: color,
6230
- stroke: color,
6231
- onMouseDown: handleFixWidth,
6232
- children: [
6233
- /* @__PURE__ */ jsxRuntime.jsx(
6234
- "path",
6235
- {
6236
- d: d2,
6237
- className: styles$1.mainPath
6238
- }
6239
- ),
6240
- /* @__PURE__ */ jsxRuntime.jsx(
6241
- "rect",
6242
- {
6243
- x: isLeft ? x2 - width - 2 : x2 - 2,
6244
- y: y - 5,
6245
- width: width + 5,
6246
- height: height + 5,
6247
- className: styles$1.clickZone
6248
- }
6249
- ),
6250
- /* @__PURE__ */ jsxRuntime.jsx("polygon", { points: trianglePoints })
6251
- ]
6252
- }
6253
- );
6254
- };
6255
- const BarFixWidth = React.memo(BarFixWidthInner);
6256
- const BarRelationHandleInner = ({
6257
- dataTestid,
6258
- isRelationDrawMode,
6259
- radius,
6260
- startDrawRelation,
6261
- x: x2,
6262
- y
6263
- }) => {
6264
- return /* @__PURE__ */ jsxRuntime.jsx(
6265
- "circle",
6266
- {
6267
- "data-testid": dataTestid,
6268
- cx: x2,
6269
- cy: y,
6270
- r: radius,
6271
- className: `${styles$4.barRelationHandle} ${isRelationDrawMode ? styles$4.barRelationHandle_drawMode : ""}`,
6272
- onMouseDown: startDrawRelation,
6273
- onTouchStart: startDrawRelation
6274
- }
6275
- );
6276
- };
6277
- const BarRelationHandle = React.memo(BarRelationHandleInner);
6278
6280
  const TaskItemInner = (props) => {
6279
6281
  const {
6280
6282
  childOutOfParentWarnings,
@@ -6531,7 +6533,7 @@
6531
6533
  y: taskYOffset + taskHeight * 0.5,
6532
6534
  className: isTextInside ? style.barLabel : style.barLabel && style.barLabelOutside,
6533
6535
  ref: textRef,
6534
- children: task.name
6536
+ children: isTextInside ? task.name : ""
6535
6537
  }
6536
6538
  ),
6537
6539
  (outOfParentWarnings || hasDependencyWarning) && /* @__PURE__ */ jsxRuntime.jsx(
@@ -6732,7 +6734,12 @@
6732
6734
  fixStartPosition,
6733
6735
  fixEndPosition,
6734
6736
  handleDeleteTasks,
6735
- colorStyles
6737
+ colorStyles,
6738
+ enableTaskGrouping,
6739
+ getTaskInitials: (task2) => {
6740
+ var _a2;
6741
+ return ((_a2 = task2.name) == null ? void 0 : _a2.split(" ").map((word) => word[0]).join("").toUpperCase()) ?? "";
6742
+ }
6736
6743
  }
6737
6744
  )
6738
6745
  },
@@ -7003,7 +7010,7 @@
7003
7010
  return /* @__PURE__ */ jsxRuntime.jsxs(
7004
7011
  "div",
7005
7012
  {
7006
- className: styles$9.ganttTaskRoot,
7013
+ className: styles$8.ganttTaskRoot,
7007
7014
  ref: ganttTaskRootRef,
7008
7015
  onScroll: onVerticalScrollbarScrollX,
7009
7016
  dir: "ltr",
@@ -7013,7 +7020,7 @@
7013
7020
  "div",
7014
7021
  {
7015
7022
  ref: ganttTaskContentRef,
7016
- className: styles$9.ganttTaskContent,
7023
+ className: styles$8.ganttTaskContent,
7017
7024
  style: containerStyle,
7018
7025
  onScroll: onScrollVertically,
7019
7026
  children: [
@@ -13187,7 +13194,7 @@
13187
13194
  return /* @__PURE__ */ jsxRuntime.jsxs(
13188
13195
  "div",
13189
13196
  {
13190
- className: styles$9.wrapper,
13197
+ className: styles$8.wrapper,
13191
13198
  onKeyDown: handleKeyDown,
13192
13199
  tabIndex: 0,
13193
13200
  ref: wrapperRef,