@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.
- package/dist/components/task-item/task-item.d.ts +4 -2
- package/dist/gantt-task-react.es.js +196 -191
- package/dist/gantt-task-react.umd.js +196 -191
- package/dist/style.css +21 -21
- package/package.json +1 -1
|
@@ -1875,7 +1875,7 @@
|
|
|
1875
1875
|
const tooltipDefaultContainerParagraph = "_tooltipDefaultContainerParagraph_qip67_13";
|
|
1876
1876
|
const tooltipDetailsContainer = "_tooltipDetailsContainer_qip67_25";
|
|
1877
1877
|
const tooltipDetailsContainerHidden = "_tooltipDetailsContainerHidden_qip67_49";
|
|
1878
|
-
const styles$
|
|
1878
|
+
const styles$i = {
|
|
1879
1879
|
tooltipDefaultContainer,
|
|
1880
1880
|
tooltipDefaultContainerParagraph,
|
|
1881
1881
|
tooltipDetailsContainer,
|
|
@@ -1915,12 +1915,12 @@
|
|
|
1915
1915
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1916
1916
|
"div",
|
|
1917
1917
|
{
|
|
1918
|
-
className: styles$
|
|
1918
|
+
className: styles$i.tooltipDefaultContainer,
|
|
1919
1919
|
style: style2,
|
|
1920
1920
|
children: [
|
|
1921
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()}` }),
|
|
1922
|
-
task.end.getTime() - task.start.getTime() !== 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles$
|
|
1923
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: styles$
|
|
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} %` })
|
|
1924
1924
|
]
|
|
1925
1925
|
}
|
|
1926
1926
|
);
|
|
@@ -2002,7 +2002,7 @@
|
|
|
2002
2002
|
];
|
|
2003
2003
|
};
|
|
2004
2004
|
const button$2 = "_button_1eue5_1";
|
|
2005
|
-
const styles$
|
|
2005
|
+
const styles$h = {
|
|
2006
2006
|
button: button$2
|
|
2007
2007
|
};
|
|
2008
2008
|
const AddColumn = (props) => {
|
|
@@ -2020,14 +2020,14 @@
|
|
|
2020
2020
|
}
|
|
2021
2021
|
return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick, style: {
|
|
2022
2022
|
"color": colors.barLabelColor
|
|
2023
|
-
}, className: styles$
|
|
2023
|
+
}, className: styles$h.button, children: (icons == null ? void 0 : icons.renderAddIcon) ? icons.renderAddIcon(task) : "+" });
|
|
2024
2024
|
};
|
|
2025
2025
|
const taskListNameWrapper = "_taskListNameWrapper_1un0e_1";
|
|
2026
2026
|
const dragging = "_dragging_1un0e_11";
|
|
2027
2027
|
const taskListExpander = "_taskListExpander_1un0e_19";
|
|
2028
2028
|
const taskListEmptyExpander = "_taskListEmptyExpander_1un0e_35";
|
|
2029
2029
|
const taskName = "_taskName_1un0e_45";
|
|
2030
|
-
const styles$
|
|
2030
|
+
const styles$g = {
|
|
2031
2031
|
taskListNameWrapper,
|
|
2032
2032
|
dragging,
|
|
2033
2033
|
taskListExpander,
|
|
@@ -2070,7 +2070,7 @@
|
|
|
2070
2070
|
"div",
|
|
2071
2071
|
{
|
|
2072
2072
|
"data-testid": `title-table-cell-${name}`,
|
|
2073
|
-
className: `${styles$
|
|
2073
|
+
className: `${styles$g.taskListNameWrapper}`,
|
|
2074
2074
|
style: {
|
|
2075
2075
|
paddingLeft: depth * nestedTaskNameOffset
|
|
2076
2076
|
},
|
|
@@ -2079,7 +2079,7 @@
|
|
|
2079
2079
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2080
2080
|
"div",
|
|
2081
2081
|
{
|
|
2082
|
-
className: `${styles$
|
|
2082
|
+
className: `${styles$g.taskListExpander} ${!hasChildren ? styles$g.taskListEmptyExpander : ""}`,
|
|
2083
2083
|
onClick,
|
|
2084
2084
|
style: {
|
|
2085
2085
|
width: expandIconWidth
|
|
@@ -2089,7 +2089,7 @@
|
|
|
2089
2089
|
),
|
|
2090
2090
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
|
|
2091
2091
|
color: colors.barLabelColor
|
|
2092
|
-
}, className: styles$
|
|
2092
|
+
}, className: styles$g.taskName, children: [
|
|
2093
2093
|
isShowTaskNumbers && /* @__PURE__ */ jsxRuntime.jsxs("b", { children: [
|
|
2094
2094
|
indexStr,
|
|
2095
2095
|
" "
|
|
@@ -3186,7 +3186,7 @@
|
|
|
3186
3186
|
}, children: dependencies.map(({ name }) => name).join(", ") });
|
|
3187
3187
|
};
|
|
3188
3188
|
const button$1 = "_button_1eue5_1";
|
|
3189
|
-
const styles$
|
|
3189
|
+
const styles$f = {
|
|
3190
3190
|
button: button$1
|
|
3191
3191
|
};
|
|
3192
3192
|
const DeleteColumn = (props) => {
|
|
@@ -3198,10 +3198,10 @@
|
|
|
3198
3198
|
}, [task, handleDeleteTasks]);
|
|
3199
3199
|
return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick, style: {
|
|
3200
3200
|
"color": colors.barLabelColor
|
|
3201
|
-
}, className: styles$
|
|
3201
|
+
}, className: styles$f.button, children: (icons == null ? void 0 : icons.renderDeleteIcon) ? icons.renderDeleteIcon(task) : "-" });
|
|
3202
3202
|
};
|
|
3203
3203
|
const button = "_button_ys66g_1";
|
|
3204
|
-
const styles$
|
|
3204
|
+
const styles$e = {
|
|
3205
3205
|
button
|
|
3206
3206
|
};
|
|
3207
3207
|
const EditColumn = (props) => {
|
|
@@ -3213,7 +3213,7 @@
|
|
|
3213
3213
|
}, [task, handleEditTask]);
|
|
3214
3214
|
return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick, style: {
|
|
3215
3215
|
"color": colors.barLabelColor
|
|
3216
|
-
}, className: styles$
|
|
3216
|
+
}, className: styles$e.button, children: (icons == null ? void 0 : icons.renderEditIcon) ? icons.renderEditIcon(task) : "✎" });
|
|
3217
3217
|
};
|
|
3218
3218
|
const useTableListResize = (columnsProp, distances, onResizeColumn) => {
|
|
3219
3219
|
const [columnsState, setColumns] = React.useState(() => {
|
|
@@ -3419,7 +3419,7 @@
|
|
|
3419
3419
|
const taskListResizer = "_taskListResizer_1ogga_79";
|
|
3420
3420
|
const taskListContent = "_taskListContent_1ogga_127";
|
|
3421
3421
|
const hidden = "_hidden_1ogga_147";
|
|
3422
|
-
const styles$
|
|
3422
|
+
const styles$d = {
|
|
3423
3423
|
ganttTableRoot,
|
|
3424
3424
|
ganttTableWrapper,
|
|
3425
3425
|
taskListResizer,
|
|
@@ -3487,11 +3487,11 @@
|
|
|
3487
3487
|
fullRowHeight
|
|
3488
3488
|
);
|
|
3489
3489
|
const renderedIndexes = enableTaskGrouping ? groupedIndexes : optimizedIndexes;
|
|
3490
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$
|
|
3490
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$d.ganttTableRoot, ref: taskListRef, children: [
|
|
3491
3491
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3492
3492
|
"div",
|
|
3493
3493
|
{
|
|
3494
|
-
className: styles$
|
|
3494
|
+
className: styles$d.ganttTableWrapper,
|
|
3495
3495
|
style: {
|
|
3496
3496
|
width: tableWidth
|
|
3497
3497
|
},
|
|
@@ -3514,7 +3514,7 @@
|
|
|
3514
3514
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3515
3515
|
"div",
|
|
3516
3516
|
{
|
|
3517
|
-
className: styles$
|
|
3517
|
+
className: styles$d.taskListContent,
|
|
3518
3518
|
ref: taskListContentRef,
|
|
3519
3519
|
onScroll: onScrollTableListContentVertically,
|
|
3520
3520
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3577,7 +3577,7 @@
|
|
|
3577
3577
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3578
3578
|
"div",
|
|
3579
3579
|
{
|
|
3580
|
-
className: styles$
|
|
3580
|
+
className: styles$d.taskListResizer,
|
|
3581
3581
|
onMouseDown: (event) => {
|
|
3582
3582
|
onTableResizeStart(event.clientX);
|
|
3583
3583
|
},
|
|
@@ -3598,7 +3598,7 @@
|
|
|
3598
3598
|
const ganttTable_HeaderTitle = "_ganttTable_HeaderTitle_1ndeo_41";
|
|
3599
3599
|
const ganttTable_HeaderItem = "_ganttTable_HeaderItem_1ndeo_49";
|
|
3600
3600
|
const resizer = "_resizer_1ndeo_75";
|
|
3601
|
-
const styles$
|
|
3601
|
+
const styles$c = {
|
|
3602
3602
|
ganttTable_Header,
|
|
3603
3603
|
ganttTable_HeaderSeparator,
|
|
3604
3604
|
ganttTable_HeaderContent,
|
|
@@ -3695,7 +3695,7 @@
|
|
|
3695
3695
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3696
3696
|
"div",
|
|
3697
3697
|
{
|
|
3698
|
-
className: styles$
|
|
3698
|
+
className: styles$c.ganttTable_Header,
|
|
3699
3699
|
style: {
|
|
3700
3700
|
height: headerHeight,
|
|
3701
3701
|
fontFamily,
|
|
@@ -3706,7 +3706,7 @@
|
|
|
3706
3706
|
index2 > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3707
3707
|
"div",
|
|
3708
3708
|
{
|
|
3709
|
-
className: styles$
|
|
3709
|
+
className: styles$c.ganttTable_HeaderSeparator,
|
|
3710
3710
|
style: {
|
|
3711
3711
|
height: headerHeight * 0.5,
|
|
3712
3712
|
marginTop: headerHeight * 0.2
|
|
@@ -3717,14 +3717,14 @@
|
|
|
3717
3717
|
"div",
|
|
3718
3718
|
{
|
|
3719
3719
|
"data-testid": `table-column-header-${title}`,
|
|
3720
|
-
className: styles$
|
|
3720
|
+
className: styles$c.ganttTable_HeaderItem,
|
|
3721
3721
|
style: {
|
|
3722
3722
|
minWidth: width,
|
|
3723
3723
|
maxWidth: width
|
|
3724
3724
|
},
|
|
3725
3725
|
children: [
|
|
3726
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$
|
|
3727
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$
|
|
3726
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$c.ganttTable_HeaderContent, children: [
|
|
3727
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$c.ganttTable_HeaderTitle, children: title }),
|
|
3728
3728
|
title === "Name" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3729
3729
|
TaskListHeaderActions,
|
|
3730
3730
|
{
|
|
@@ -3739,7 +3739,7 @@
|
|
|
3739
3739
|
"div",
|
|
3740
3740
|
{
|
|
3741
3741
|
"data-testid": `table-column-header-resize-handle-${title}`,
|
|
3742
|
-
className: styles$
|
|
3742
|
+
className: styles$c.resizer,
|
|
3743
3743
|
onMouseDown: (event) => {
|
|
3744
3744
|
onColumnResizeStart(index2, event.clientX);
|
|
3745
3745
|
},
|
|
@@ -3769,7 +3769,7 @@
|
|
|
3769
3769
|
const dropAfterLighten = "_dropAfterLighten_1e35i_81";
|
|
3770
3770
|
const dropBefore = "_dropBefore_1e35i_105";
|
|
3771
3771
|
const dropBeforeLighten = "_dropBeforeLighten_1e35i_127";
|
|
3772
|
-
const styles$
|
|
3772
|
+
const styles$b = {
|
|
3773
3773
|
taskListTableRow,
|
|
3774
3774
|
taskListTableRowGrabbing,
|
|
3775
3775
|
cut,
|
|
@@ -3981,7 +3981,7 @@
|
|
|
3981
3981
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3982
3982
|
"div",
|
|
3983
3983
|
{
|
|
3984
|
-
className: `${styles$
|
|
3984
|
+
className: `${styles$b.taskListTableRow} ${isCut ? styles$b.cut : ""}`,
|
|
3985
3985
|
onMouseDown: onRootMouseDown,
|
|
3986
3986
|
style: {
|
|
3987
3987
|
height: fullRowHeight,
|
|
@@ -3999,7 +3999,7 @@
|
|
|
3999
3999
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4000
4000
|
"div",
|
|
4001
4001
|
{
|
|
4002
|
-
className: styles$
|
|
4002
|
+
className: styles$b.taskListCell,
|
|
4003
4003
|
style: {
|
|
4004
4004
|
minWidth: width,
|
|
4005
4005
|
maxWidth: width
|
|
@@ -4007,7 +4007,7 @@
|
|
|
4007
4007
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4008
4008
|
"div",
|
|
4009
4009
|
{
|
|
4010
|
-
className: styles$
|
|
4010
|
+
className: styles$b.taskListCellInner,
|
|
4011
4011
|
onDragEnter: () => {
|
|
4012
4012
|
setHoveringState({
|
|
4013
4013
|
hoveringBefore: false,
|
|
@@ -4047,7 +4047,7 @@
|
|
|
4047
4047
|
"div",
|
|
4048
4048
|
{
|
|
4049
4049
|
"data-testid": `table-row-drop-before-${task.name}`,
|
|
4050
|
-
className: `${styles$
|
|
4050
|
+
className: `${styles$b.dropBefore} ${hoveringState.hoveringBefore ? styles$b.dropBeforeLighten : ""}`,
|
|
4051
4051
|
style: {
|
|
4052
4052
|
left: dropPreviewOffset,
|
|
4053
4053
|
backgroundColor: hoveringState.hoveringBefore ? colors.taskDragColor : void 0,
|
|
@@ -4077,7 +4077,7 @@
|
|
|
4077
4077
|
"div",
|
|
4078
4078
|
{
|
|
4079
4079
|
"data-testid": `table-row-drop-after-${task.name}`,
|
|
4080
|
-
className: `${styles$
|
|
4080
|
+
className: `${styles$b.dropAfter} ${hoveringState.hoveringAfter ? styles$b.dropBeforeLighten : ""}`,
|
|
4081
4081
|
style: {
|
|
4082
4082
|
left: dropPreviewOffset,
|
|
4083
4083
|
backgroundColor: hoveringState.hoveringAfter ? colors.taskDragColor : void 0,
|
|
@@ -4119,7 +4119,7 @@
|
|
|
4119
4119
|
return childs.length > 0;
|
|
4120
4120
|
};
|
|
4121
4121
|
const taskListWrapper = "_taskListWrapper_5941j_1";
|
|
4122
|
-
const styles$
|
|
4122
|
+
const styles$a = {
|
|
4123
4123
|
taskListWrapper
|
|
4124
4124
|
};
|
|
4125
4125
|
const TaskListTableDefaultInner = ({
|
|
@@ -4305,7 +4305,7 @@
|
|
|
4305
4305
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4306
4306
|
"div",
|
|
4307
4307
|
{
|
|
4308
|
-
className: styles$
|
|
4308
|
+
className: styles$a.taskListWrapper,
|
|
4309
4309
|
style: { fontFamily, fontSize },
|
|
4310
4310
|
children: renderedListWithOffset
|
|
4311
4311
|
}
|
|
@@ -4459,7 +4459,7 @@
|
|
|
4459
4459
|
const calendarTopTick = "_calendarTopTick_lemhx_35";
|
|
4460
4460
|
const calendarTopText = "_calendarTopText_lemhx_43";
|
|
4461
4461
|
const calendarHeader = "_calendarHeader_lemhx_65";
|
|
4462
|
-
const styles$
|
|
4462
|
+
const styles$9 = {
|
|
4463
4463
|
calendarMain,
|
|
4464
4464
|
calendarBottomText,
|
|
4465
4465
|
calendarTopTick,
|
|
@@ -4483,7 +4483,7 @@
|
|
|
4483
4483
|
y1: y1Line,
|
|
4484
4484
|
x2: x1Line,
|
|
4485
4485
|
y2: y2Line,
|
|
4486
|
-
className: styles$
|
|
4486
|
+
className: styles$9.calendarTopTick
|
|
4487
4487
|
}
|
|
4488
4488
|
),
|
|
4489
4489
|
value !== null && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4491,7 +4491,7 @@
|
|
|
4491
4491
|
{
|
|
4492
4492
|
y: yText,
|
|
4493
4493
|
x: xText,
|
|
4494
|
-
className: styles$
|
|
4494
|
+
className: styles$9.calendarTopText,
|
|
4495
4495
|
style: { fill: colors.barLabelColor },
|
|
4496
4496
|
children: value
|
|
4497
4497
|
}
|
|
@@ -4540,7 +4540,7 @@
|
|
|
4540
4540
|
{
|
|
4541
4541
|
y: headerHeight * 0.8,
|
|
4542
4542
|
x: columnWidth * i + columnWidth * 0.5,
|
|
4543
|
-
className: styles$
|
|
4543
|
+
className: styles$9.calendarBottomText,
|
|
4544
4544
|
style: { fill: colors.barLabelColor },
|
|
4545
4545
|
children: bottomValue
|
|
4546
4546
|
},
|
|
@@ -4581,7 +4581,7 @@
|
|
|
4581
4581
|
{
|
|
4582
4582
|
y: headerHeight * 0.8,
|
|
4583
4583
|
x: additionalLeftSpace + columnWidth * i + columnWidth * 0.5,
|
|
4584
|
-
className: styles$
|
|
4584
|
+
className: styles$9.calendarBottomText,
|
|
4585
4585
|
style: { fill: colors.barLabelColor },
|
|
4586
4586
|
children: halfYear
|
|
4587
4587
|
},
|
|
@@ -4624,7 +4624,7 @@
|
|
|
4624
4624
|
{
|
|
4625
4625
|
y: headerHeight * 0.8,
|
|
4626
4626
|
x: additionalLeftSpace + columnWidth * i + columnWidth * 0.5,
|
|
4627
|
-
className: styles$
|
|
4627
|
+
className: styles$9.calendarBottomText,
|
|
4628
4628
|
style: { fill: colors.barLabelColor },
|
|
4629
4629
|
children: quarter
|
|
4630
4630
|
},
|
|
@@ -4666,7 +4666,7 @@
|
|
|
4666
4666
|
{
|
|
4667
4667
|
y: headerHeight * 0.8,
|
|
4668
4668
|
x: additionalLeftSpace + columnWidth * i + columnWidth * 0.5,
|
|
4669
|
-
className: styles$
|
|
4669
|
+
className: styles$9.calendarBottomText,
|
|
4670
4670
|
style: { fill: colors.barLabelColor },
|
|
4671
4671
|
children: bottomValue
|
|
4672
4672
|
},
|
|
@@ -4721,7 +4721,7 @@
|
|
|
4721
4721
|
{
|
|
4722
4722
|
y: headerHeight * 0.8,
|
|
4723
4723
|
x: additionalLeftSpace + columnWidth * (i + +rtl),
|
|
4724
|
-
className: styles$
|
|
4724
|
+
className: styles$9.calendarBottomText,
|
|
4725
4725
|
style: { fill: colors.barLabelColor },
|
|
4726
4726
|
children: bottomValue
|
|
4727
4727
|
},
|
|
@@ -4766,7 +4766,7 @@
|
|
|
4766
4766
|
{
|
|
4767
4767
|
y: headerHeight * 0.8,
|
|
4768
4768
|
x: additionalLeftSpace + columnWidth * i + columnWidth * 0.5,
|
|
4769
|
-
className: styles$
|
|
4769
|
+
className: styles$9.calendarBottomText,
|
|
4770
4770
|
style: { fill: colors.barLabelColor },
|
|
4771
4771
|
children: bottomValue
|
|
4772
4772
|
},
|
|
@@ -4813,7 +4813,7 @@
|
|
|
4813
4813
|
{
|
|
4814
4814
|
y: headerHeight * 0.8,
|
|
4815
4815
|
x: additionalLeftSpace + columnWidth * (i + +rtl),
|
|
4816
|
-
className: styles$
|
|
4816
|
+
className: styles$9.calendarBottomText,
|
|
4817
4817
|
fontFamily,
|
|
4818
4818
|
style: { fill: colors.barLabelColor },
|
|
4819
4819
|
children: bottomValue
|
|
@@ -4858,7 +4858,7 @@
|
|
|
4858
4858
|
{
|
|
4859
4859
|
y: headerHeight * 0.8,
|
|
4860
4860
|
x: additionalLeftSpace + columnWidth * (i + +rtl),
|
|
4861
|
-
className: styles$
|
|
4861
|
+
className: styles$9.calendarBottomText,
|
|
4862
4862
|
fontFamily,
|
|
4863
4863
|
style: { fill: colors.barLabelColor },
|
|
4864
4864
|
children: bottomValue
|
|
@@ -4922,7 +4922,7 @@
|
|
|
4922
4922
|
case ViewMode.Hour:
|
|
4923
4923
|
[topValues, bottomValues] = getCalendarValuesForHour();
|
|
4924
4924
|
}
|
|
4925
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$
|
|
4925
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$9.calendarMain, style: { width: fullSvgWidth }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4926
4926
|
"svg",
|
|
4927
4927
|
{
|
|
4928
4928
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5177,7 +5177,7 @@
|
|
|
5177
5177
|
const ganttTaskRoot = "_ganttTaskRoot_1mu5y_1";
|
|
5178
5178
|
const ganttTaskContent = "_ganttTaskContent_1mu5y_83";
|
|
5179
5179
|
const wrapper$2 = "_wrapper_1mu5y_111";
|
|
5180
|
-
const styles$
|
|
5180
|
+
const styles$8 = {
|
|
5181
5181
|
ganttTaskRoot,
|
|
5182
5182
|
ganttTaskContent,
|
|
5183
5183
|
wrapper: wrapper$2
|
|
@@ -5207,13 +5207,13 @@
|
|
|
5207
5207
|
const wrapper$1 = "_wrapper_11ld1_1";
|
|
5208
5208
|
const mainPath$2 = "_mainPath_11ld1_17";
|
|
5209
5209
|
const clickZone$2 = "_clickZone_11ld1_35";
|
|
5210
|
-
const styles$
|
|
5210
|
+
const styles$7 = {
|
|
5211
5211
|
hoverVisibleWrapper: hoverVisibleWrapper$1,
|
|
5212
5212
|
wrapper: wrapper$1,
|
|
5213
5213
|
mainPath: mainPath$2,
|
|
5214
5214
|
clickZone: clickZone$2
|
|
5215
5215
|
};
|
|
5216
|
-
const fixPositionContainerClass = styles$
|
|
5216
|
+
const fixPositionContainerClass = styles$7.hoverVisibleWrapper;
|
|
5217
5217
|
const FixDependencyPositionInner = ({
|
|
5218
5218
|
color,
|
|
5219
5219
|
dependencyFixIndent,
|
|
@@ -5260,7 +5260,7 @@
|
|
|
5260
5260
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5261
5261
|
"g",
|
|
5262
5262
|
{
|
|
5263
|
-
className: styles$
|
|
5263
|
+
className: styles$7.wrapper,
|
|
5264
5264
|
fill: color,
|
|
5265
5265
|
stroke: color,
|
|
5266
5266
|
onMouseDown: handleFixPosition,
|
|
@@ -5269,7 +5269,7 @@
|
|
|
5269
5269
|
"path",
|
|
5270
5270
|
{
|
|
5271
5271
|
d: d2,
|
|
5272
|
-
className: styles$
|
|
5272
|
+
className: styles$7.mainPath
|
|
5273
5273
|
}
|
|
5274
5274
|
),
|
|
5275
5275
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5279,7 +5279,7 @@
|
|
|
5279
5279
|
y,
|
|
5280
5280
|
width: width + dependencyFixIndent,
|
|
5281
5281
|
height,
|
|
5282
|
-
className: styles$
|
|
5282
|
+
className: styles$7.clickZone
|
|
5283
5283
|
}
|
|
5284
5284
|
),
|
|
5285
5285
|
/* @__PURE__ */ jsxRuntime.jsx("polygon", { points: trianglePoints })
|
|
@@ -5291,7 +5291,7 @@
|
|
|
5291
5291
|
const arrow_clickable = "_arrow_clickable_1k55i_1";
|
|
5292
5292
|
const mainPath$1 = "_mainPath_1k55i_9";
|
|
5293
5293
|
const clickZone$1 = "_clickZone_1k55i_27";
|
|
5294
|
-
const styles$
|
|
5294
|
+
const styles$6 = {
|
|
5295
5295
|
arrow_clickable,
|
|
5296
5296
|
mainPath: mainPath$1,
|
|
5297
5297
|
clickZone: clickZone$1
|
|
@@ -5428,12 +5428,12 @@
|
|
|
5428
5428
|
"g",
|
|
5429
5429
|
{
|
|
5430
5430
|
"data-testid": `task-arrow-${extremityFrom}-${taskFrom.name}-${extremityTo}-${taskTo.name}`,
|
|
5431
|
-
className: `"arrow" ${styles$
|
|
5431
|
+
className: `"arrow" ${styles$6.arrow_clickable}`,
|
|
5432
5432
|
onDoubleClick,
|
|
5433
5433
|
onClick,
|
|
5434
5434
|
children: [
|
|
5435
|
-
onArrowDoubleClick && /* @__PURE__ */ jsxRuntime.jsx("path", { d: path, className: styles$
|
|
5436
|
-
/* @__PURE__ */ jsxRuntime.jsx("path", { className: styles$
|
|
5435
|
+
onArrowDoubleClick && /* @__PURE__ */ jsxRuntime.jsx("path", { d: path, className: styles$6.clickZone }),
|
|
5436
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { className: styles$6.mainPath, d: path }),
|
|
5437
5437
|
/* @__PURE__ */ jsxRuntime.jsx("polygon", { points: trianglePoints })
|
|
5438
5438
|
]
|
|
5439
5439
|
}
|
|
@@ -5485,7 +5485,7 @@
|
|
|
5485
5485
|
return [path, trianglePoints];
|
|
5486
5486
|
};
|
|
5487
5487
|
const relationLine = "_relationLine_ftzm9_1";
|
|
5488
|
-
const styles$
|
|
5488
|
+
const styles$5 = {
|
|
5489
5489
|
relationLine
|
|
5490
5490
|
};
|
|
5491
5491
|
const RelationLine = ({
|
|
@@ -5501,14 +5501,98 @@
|
|
|
5501
5501
|
x2,
|
|
5502
5502
|
y1,
|
|
5503
5503
|
y2,
|
|
5504
|
-
className: styles$
|
|
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
|
+
]
|
|
5505
5588
|
}
|
|
5506
5589
|
);
|
|
5507
5590
|
};
|
|
5591
|
+
const BarFixWidth = React.memo(BarFixWidthInner);
|
|
5508
5592
|
const barWrapper = "_barWrapper_1kg71_1";
|
|
5509
5593
|
const barHandle = "_barHandle_1kg71_11";
|
|
5510
5594
|
const barBackground = "_barBackground_1kg71_43";
|
|
5511
|
-
const styles$
|
|
5595
|
+
const styles$3 = {
|
|
5512
5596
|
barWrapper,
|
|
5513
5597
|
barHandle,
|
|
5514
5598
|
barBackground
|
|
@@ -5600,7 +5684,7 @@
|
|
|
5600
5684
|
ry: barCornerRadius,
|
|
5601
5685
|
rx: barCornerRadius,
|
|
5602
5686
|
fill: barColor,
|
|
5603
|
-
className: styles$
|
|
5687
|
+
className: styles$3.barBackground
|
|
5604
5688
|
}
|
|
5605
5689
|
),
|
|
5606
5690
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5636,7 +5720,7 @@
|
|
|
5636
5720
|
y,
|
|
5637
5721
|
width,
|
|
5638
5722
|
height,
|
|
5639
|
-
className: styles$
|
|
5723
|
+
className: styles$3.barHandle,
|
|
5640
5724
|
ry: barCornerRadius,
|
|
5641
5725
|
rx: barCornerRadius,
|
|
5642
5726
|
onMouseDown: (e) => {
|
|
@@ -5660,7 +5744,7 @@
|
|
|
5660
5744
|
"polygon",
|
|
5661
5745
|
{
|
|
5662
5746
|
"data-testid": `task-progress-handle-${taskName2}`,
|
|
5663
|
-
className: styles$
|
|
5747
|
+
className: styles$3.barHandle,
|
|
5664
5748
|
points: progressPoint,
|
|
5665
5749
|
onMouseDown: (e) => {
|
|
5666
5750
|
startMoveProgress(e.clientX);
|
|
@@ -5677,7 +5761,7 @@
|
|
|
5677
5761
|
const barRelationHandleWrapper = "_barRelationHandleWrapper_1744h_1";
|
|
5678
5762
|
const barRelationHandle = "_barRelationHandle_1744h_1";
|
|
5679
5763
|
const barRelationHandle_drawMode = "_barRelationHandle_drawMode_1744h_1";
|
|
5680
|
-
const
|
|
5764
|
+
const stylesRelationHandle = {
|
|
5681
5765
|
barRelationHandleWrapper,
|
|
5682
5766
|
barRelationHandle,
|
|
5683
5767
|
barRelationHandle_drawMode
|
|
@@ -5685,7 +5769,7 @@
|
|
|
5685
5769
|
const projectWrapper = "_projectWrapper_1maxt_1";
|
|
5686
5770
|
const projectBackground = "_projectBackground_1maxt_11";
|
|
5687
5771
|
const projectTop = "_projectTop_1maxt_21";
|
|
5688
|
-
const styles$
|
|
5772
|
+
const styles$2 = {
|
|
5689
5773
|
projectWrapper,
|
|
5690
5774
|
projectBackground,
|
|
5691
5775
|
projectTop
|
|
@@ -5760,7 +5844,7 @@
|
|
|
5760
5844
|
}
|
|
5761
5845
|
},
|
|
5762
5846
|
tabIndex: 0,
|
|
5763
|
-
className: styles$
|
|
5847
|
+
className: styles$2.projectWrapper,
|
|
5764
5848
|
children: [
|
|
5765
5849
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5766
5850
|
"rect",
|
|
@@ -5772,7 +5856,7 @@
|
|
|
5772
5856
|
height: taskHeight,
|
|
5773
5857
|
rx: barCornerRadius,
|
|
5774
5858
|
ry: barCornerRadius,
|
|
5775
|
-
className: styles$
|
|
5859
|
+
className: styles$2.projectBackground
|
|
5776
5860
|
}
|
|
5777
5861
|
),
|
|
5778
5862
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5797,13 +5881,13 @@
|
|
|
5797
5881
|
height: taskHalfHeight,
|
|
5798
5882
|
rx: barCornerRadius,
|
|
5799
5883
|
ry: barCornerRadius,
|
|
5800
|
-
className: styles$
|
|
5884
|
+
className: styles$2.projectTop
|
|
5801
5885
|
}
|
|
5802
5886
|
),
|
|
5803
5887
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5804
5888
|
"polygon",
|
|
5805
5889
|
{
|
|
5806
|
-
className: styles$
|
|
5890
|
+
className: styles$2.projectTop,
|
|
5807
5891
|
points: projectLeftTriangle,
|
|
5808
5892
|
fill: barColor
|
|
5809
5893
|
}
|
|
@@ -5811,7 +5895,7 @@
|
|
|
5811
5895
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5812
5896
|
"polygon",
|
|
5813
5897
|
{
|
|
5814
|
-
className: styles$
|
|
5898
|
+
className: styles$2.projectTop,
|
|
5815
5899
|
points: projectRightTriangle,
|
|
5816
5900
|
fill: barColor
|
|
5817
5901
|
}
|
|
@@ -5916,7 +6000,7 @@
|
|
|
5916
6000
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5917
6001
|
"g",
|
|
5918
6002
|
{
|
|
5919
|
-
className: `${styles$
|
|
6003
|
+
className: `${styles$3.barWrapper} ${stylesRelationHandle.barRelationHandleWrapper}`,
|
|
5920
6004
|
tabIndex: 0,
|
|
5921
6005
|
children: [
|
|
5922
6006
|
barDisplay,
|
|
@@ -5957,6 +6041,28 @@
|
|
|
5957
6041
|
}
|
|
5958
6042
|
);
|
|
5959
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);
|
|
5960
6066
|
const BarSmall = ({
|
|
5961
6067
|
children: relationhandles,
|
|
5962
6068
|
colorStyles,
|
|
@@ -5988,7 +6094,7 @@
|
|
|
5988
6094
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5989
6095
|
"g",
|
|
5990
6096
|
{
|
|
5991
|
-
className: `${styles$
|
|
6097
|
+
className: `${styles$3.barWrapper} ${stylesRelationHandle.barRelationHandleWrapper}`,
|
|
5992
6098
|
tabIndex: 0,
|
|
5993
6099
|
children: [
|
|
5994
6100
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6028,7 +6134,7 @@
|
|
|
6028
6134
|
};
|
|
6029
6135
|
const milestoneWrapper = "_milestoneWrapper_vcirf_1";
|
|
6030
6136
|
const milestoneBackground = "_milestoneBackground_vcirf_11";
|
|
6031
|
-
const styles$
|
|
6137
|
+
const styles$1 = {
|
|
6032
6138
|
milestoneWrapper,
|
|
6033
6139
|
milestoneBackground
|
|
6034
6140
|
};
|
|
@@ -6063,7 +6169,7 @@
|
|
|
6063
6169
|
"g",
|
|
6064
6170
|
{
|
|
6065
6171
|
tabIndex: 0,
|
|
6066
|
-
className: `${styles$
|
|
6172
|
+
className: `${styles$1.milestoneWrapper} ${stylesRelationHandle.barRelationHandleWrapper}`,
|
|
6067
6173
|
children: [
|
|
6068
6174
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6069
6175
|
"rect",
|
|
@@ -6077,7 +6183,7 @@
|
|
|
6077
6183
|
rx: barCornerRadius,
|
|
6078
6184
|
ry: barCornerRadius,
|
|
6079
6185
|
transform,
|
|
6080
|
-
className: styles$
|
|
6186
|
+
className: styles$1.milestoneBackground,
|
|
6081
6187
|
onMouseDown: (e) => {
|
|
6082
6188
|
onTaskEventStart("move", e.clientX);
|
|
6083
6189
|
},
|
|
@@ -6094,6 +6200,12 @@
|
|
|
6094
6200
|
}
|
|
6095
6201
|
);
|
|
6096
6202
|
};
|
|
6203
|
+
const barLabel = "_barLabel_y0tyg_1";
|
|
6204
|
+
const barLabelOutside = "_barLabelOutside_y0tyg_25";
|
|
6205
|
+
const style = {
|
|
6206
|
+
barLabel,
|
|
6207
|
+
barLabelOutside
|
|
6208
|
+
};
|
|
6097
6209
|
const TaskWarningInner = ({
|
|
6098
6210
|
rtl,
|
|
6099
6211
|
outOfParentWarnings = void 0,
|
|
@@ -6165,118 +6277,6 @@
|
|
|
6165
6277
|
] });
|
|
6166
6278
|
};
|
|
6167
6279
|
const TaskWarning = React.memo(TaskWarningInner);
|
|
6168
|
-
const barLabel = "_barLabel_y0tyg_1";
|
|
6169
|
-
const barLabelOutside = "_barLabelOutside_y0tyg_25";
|
|
6170
|
-
const style = {
|
|
6171
|
-
barLabel,
|
|
6172
|
-
barLabelOutside
|
|
6173
|
-
};
|
|
6174
|
-
const hoverVisibleWrapper = "_hoverVisibleWrapper_11ld1_1";
|
|
6175
|
-
const wrapper = "_wrapper_11ld1_1";
|
|
6176
|
-
const mainPath = "_mainPath_11ld1_17";
|
|
6177
|
-
const clickZone = "_clickZone_11ld1_35";
|
|
6178
|
-
const styles$1 = {
|
|
6179
|
-
hoverVisibleWrapper,
|
|
6180
|
-
wrapper,
|
|
6181
|
-
mainPath,
|
|
6182
|
-
clickZone
|
|
6183
|
-
};
|
|
6184
|
-
const fixWidthContainerClass = styles$1.hoverVisibleWrapper;
|
|
6185
|
-
const BarFixWidthInner = ({
|
|
6186
|
-
x: x2,
|
|
6187
|
-
y,
|
|
6188
|
-
width,
|
|
6189
|
-
height,
|
|
6190
|
-
isLeft,
|
|
6191
|
-
color,
|
|
6192
|
-
handleFixWidth
|
|
6193
|
-
}) => {
|
|
6194
|
-
const halfHeight = React.useMemo(
|
|
6195
|
-
() => Math.round(height / 2),
|
|
6196
|
-
[height]
|
|
6197
|
-
);
|
|
6198
|
-
const d2 = React.useMemo(() => {
|
|
6199
|
-
return `M ${x2} ${y}
|
|
6200
|
-
v ${height}
|
|
6201
|
-
M ${x2} ${y + halfHeight}
|
|
6202
|
-
h ${isLeft ? -width : width}
|
|
6203
|
-
`;
|
|
6204
|
-
}, [
|
|
6205
|
-
x2,
|
|
6206
|
-
y,
|
|
6207
|
-
width,
|
|
6208
|
-
height,
|
|
6209
|
-
halfHeight,
|
|
6210
|
-
isLeft
|
|
6211
|
-
]);
|
|
6212
|
-
const trianglePoints = React.useMemo(
|
|
6213
|
-
() => generateTrianglePoints(
|
|
6214
|
-
isLeft ? x2 - width : x2 + width,
|
|
6215
|
-
y + halfHeight,
|
|
6216
|
-
5,
|
|
6217
|
-
isLeft
|
|
6218
|
-
),
|
|
6219
|
-
[
|
|
6220
|
-
x2,
|
|
6221
|
-
y,
|
|
6222
|
-
width,
|
|
6223
|
-
halfHeight,
|
|
6224
|
-
isLeft
|
|
6225
|
-
]
|
|
6226
|
-
);
|
|
6227
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6228
|
-
"g",
|
|
6229
|
-
{
|
|
6230
|
-
className: styles$1.wrapper,
|
|
6231
|
-
fill: color,
|
|
6232
|
-
stroke: color,
|
|
6233
|
-
onMouseDown: handleFixWidth,
|
|
6234
|
-
children: [
|
|
6235
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6236
|
-
"path",
|
|
6237
|
-
{
|
|
6238
|
-
d: d2,
|
|
6239
|
-
className: styles$1.mainPath
|
|
6240
|
-
}
|
|
6241
|
-
),
|
|
6242
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6243
|
-
"rect",
|
|
6244
|
-
{
|
|
6245
|
-
x: isLeft ? x2 - width - 2 : x2 - 2,
|
|
6246
|
-
y: y - 5,
|
|
6247
|
-
width: width + 5,
|
|
6248
|
-
height: height + 5,
|
|
6249
|
-
className: styles$1.clickZone
|
|
6250
|
-
}
|
|
6251
|
-
),
|
|
6252
|
-
/* @__PURE__ */ jsxRuntime.jsx("polygon", { points: trianglePoints })
|
|
6253
|
-
]
|
|
6254
|
-
}
|
|
6255
|
-
);
|
|
6256
|
-
};
|
|
6257
|
-
const BarFixWidth = React.memo(BarFixWidthInner);
|
|
6258
|
-
const BarRelationHandleInner = ({
|
|
6259
|
-
dataTestid,
|
|
6260
|
-
isRelationDrawMode,
|
|
6261
|
-
radius,
|
|
6262
|
-
startDrawRelation,
|
|
6263
|
-
x: x2,
|
|
6264
|
-
y
|
|
6265
|
-
}) => {
|
|
6266
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6267
|
-
"circle",
|
|
6268
|
-
{
|
|
6269
|
-
"data-testid": dataTestid,
|
|
6270
|
-
cx: x2,
|
|
6271
|
-
cy: y,
|
|
6272
|
-
r: radius,
|
|
6273
|
-
className: `${styles$4.barRelationHandle} ${isRelationDrawMode ? styles$4.barRelationHandle_drawMode : ""}`,
|
|
6274
|
-
onMouseDown: startDrawRelation,
|
|
6275
|
-
onTouchStart: startDrawRelation
|
|
6276
|
-
}
|
|
6277
|
-
);
|
|
6278
|
-
};
|
|
6279
|
-
const BarRelationHandle = React.memo(BarRelationHandleInner);
|
|
6280
6280
|
const TaskItemInner = (props) => {
|
|
6281
6281
|
const {
|
|
6282
6282
|
childOutOfParentWarnings,
|
|
@@ -6533,7 +6533,7 @@
|
|
|
6533
6533
|
y: taskYOffset + taskHeight * 0.5,
|
|
6534
6534
|
className: isTextInside ? style.barLabel : style.barLabel && style.barLabelOutside,
|
|
6535
6535
|
ref: textRef,
|
|
6536
|
-
children: task.name
|
|
6536
|
+
children: isTextInside ? task.name : ""
|
|
6537
6537
|
}
|
|
6538
6538
|
),
|
|
6539
6539
|
(outOfParentWarnings || hasDependencyWarning) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6734,7 +6734,12 @@
|
|
|
6734
6734
|
fixStartPosition,
|
|
6735
6735
|
fixEndPosition,
|
|
6736
6736
|
handleDeleteTasks,
|
|
6737
|
-
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
|
+
}
|
|
6738
6743
|
}
|
|
6739
6744
|
)
|
|
6740
6745
|
},
|
|
@@ -7005,7 +7010,7 @@
|
|
|
7005
7010
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7006
7011
|
"div",
|
|
7007
7012
|
{
|
|
7008
|
-
className: styles$
|
|
7013
|
+
className: styles$8.ganttTaskRoot,
|
|
7009
7014
|
ref: ganttTaskRootRef,
|
|
7010
7015
|
onScroll: onVerticalScrollbarScrollX,
|
|
7011
7016
|
dir: "ltr",
|
|
@@ -7015,7 +7020,7 @@
|
|
|
7015
7020
|
"div",
|
|
7016
7021
|
{
|
|
7017
7022
|
ref: ganttTaskContentRef,
|
|
7018
|
-
className: styles$
|
|
7023
|
+
className: styles$8.ganttTaskContent,
|
|
7019
7024
|
style: containerStyle,
|
|
7020
7025
|
onScroll: onScrollVertically,
|
|
7021
7026
|
children: [
|
|
@@ -13189,7 +13194,7 @@
|
|
|
13189
13194
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13190
13195
|
"div",
|
|
13191
13196
|
{
|
|
13192
|
-
className: styles$
|
|
13197
|
+
className: styles$8.wrapper,
|
|
13193
13198
|
onKeyDown: handleKeyDown,
|
|
13194
13199
|
tabIndex: 0,
|
|
13195
13200
|
ref: wrapperRef,
|