gantt-task-react-v 1.1.6 → 1.1.7
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.
|
@@ -3,6 +3,8 @@ import React from "react";
|
|
|
3
3
|
import { AllowReorderTask, ChildByLevelMap, Column, DateSetup, DependencyMap, Distances, GanttRenderIconsProps, MapTaskToNestedIndex, OnResizeColumn, Task, RenderTask, TableRenderBottomProps } from "../../types";
|
|
4
4
|
export type TaskListProps = {
|
|
5
5
|
ganttRef: RefObject<HTMLDivElement>;
|
|
6
|
+
/** Ref to the horizontal scroll wrapper (used for containing popups) */
|
|
7
|
+
taskListHorizontalScrollRef?: RefObject<HTMLDivElement>;
|
|
6
8
|
allowReorderTask?: AllowReorderTask;
|
|
7
9
|
canReorderTasks?: boolean;
|
|
8
10
|
canResizeColumns?: boolean;
|
|
@@ -10697,6 +10697,7 @@ const TaskListInner = ({
|
|
|
10697
10697
|
selectedIdsMirror,
|
|
10698
10698
|
ganttRef,
|
|
10699
10699
|
taskListContainerRef,
|
|
10700
|
+
taskListHorizontalScrollRef,
|
|
10700
10701
|
taskListRef,
|
|
10701
10702
|
tasks,
|
|
10702
10703
|
onResizeColumn,
|
|
@@ -10787,6 +10788,7 @@ const TaskListInner = ({
|
|
|
10787
10788
|
/* @__PURE__ */ jsxs(
|
|
10788
10789
|
"div",
|
|
10789
10790
|
{
|
|
10791
|
+
ref: taskListHorizontalScrollRef,
|
|
10790
10792
|
className: styles$d.taskListHorizontalScroll,
|
|
10791
10793
|
style: {
|
|
10792
10794
|
width: tableWidth
|
|
@@ -18801,6 +18803,7 @@ const Gantt = (props) => {
|
|
|
18801
18803
|
const ganttSVGRef = useRef(null);
|
|
18802
18804
|
const wrapperRef = useRef(null);
|
|
18803
18805
|
const taskListRef = useRef(null);
|
|
18806
|
+
const taskListHorizontalScrollRef = useRef(null);
|
|
18804
18807
|
const locale = useMemo(() => clientLocale ?? GANTT_EN_LOCALE, [clientLocale]);
|
|
18805
18808
|
const theme = useMemo(() => buildGanttTheme(clientTheme), [clientTheme]);
|
|
18806
18809
|
const { dateFormats: dateFormats2, rtl } = theme;
|
|
@@ -20177,7 +20180,13 @@ const Gantt = (props) => {
|
|
|
20177
20180
|
ref: wrapperRef,
|
|
20178
20181
|
"data-testid": "gantt",
|
|
20179
20182
|
children: [
|
|
20180
|
-
(!columnsProp || columnsProp.length > 0) && /* @__PURE__ */ jsx(
|
|
20183
|
+
(!columnsProp || columnsProp.length > 0) && /* @__PURE__ */ jsx(
|
|
20184
|
+
TaskList,
|
|
20185
|
+
{
|
|
20186
|
+
...renderTaskListProps,
|
|
20187
|
+
taskListHorizontalScrollRef
|
|
20188
|
+
}
|
|
20189
|
+
),
|
|
20181
20190
|
/* @__PURE__ */ jsx(
|
|
20182
20191
|
TaskGantt,
|
|
20183
20192
|
{
|
|
@@ -20233,7 +20242,7 @@ const Gantt = (props) => {
|
|
|
20233
20242
|
handleAction,
|
|
20234
20243
|
handleCloseContextMenu,
|
|
20235
20244
|
options: contextMenuOptions,
|
|
20236
|
-
boundaryElement:
|
|
20245
|
+
boundaryElement: taskListHorizontalScrollRef
|
|
20237
20246
|
}
|
|
20238
20247
|
),
|
|
20239
20248
|
ganttContextMenu.task && !waitCommitTasks && /* @__PURE__ */ jsx(
|
|
@@ -10714,6 +10714,7 @@
|
|
|
10714
10714
|
selectedIdsMirror,
|
|
10715
10715
|
ganttRef,
|
|
10716
10716
|
taskListContainerRef,
|
|
10717
|
+
taskListHorizontalScrollRef,
|
|
10717
10718
|
taskListRef,
|
|
10718
10719
|
tasks,
|
|
10719
10720
|
onResizeColumn,
|
|
@@ -10804,6 +10805,7 @@
|
|
|
10804
10805
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
10805
10806
|
"div",
|
|
10806
10807
|
{
|
|
10808
|
+
ref: taskListHorizontalScrollRef,
|
|
10807
10809
|
className: styles$d.taskListHorizontalScroll,
|
|
10808
10810
|
style: {
|
|
10809
10811
|
width: tableWidth
|
|
@@ -18818,6 +18820,7 @@
|
|
|
18818
18820
|
const ganttSVGRef = React.useRef(null);
|
|
18819
18821
|
const wrapperRef = React.useRef(null);
|
|
18820
18822
|
const taskListRef = React.useRef(null);
|
|
18823
|
+
const taskListHorizontalScrollRef = React.useRef(null);
|
|
18821
18824
|
const locale = React.useMemo(() => clientLocale ?? GANTT_EN_LOCALE, [clientLocale]);
|
|
18822
18825
|
const theme = React.useMemo(() => buildGanttTheme(clientTheme), [clientTheme]);
|
|
18823
18826
|
const { dateFormats: dateFormats2, rtl } = theme;
|
|
@@ -20194,7 +20197,13 @@
|
|
|
20194
20197
|
ref: wrapperRef,
|
|
20195
20198
|
"data-testid": "gantt",
|
|
20196
20199
|
children: [
|
|
20197
|
-
(!columnsProp || columnsProp.length > 0) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
20200
|
+
(!columnsProp || columnsProp.length > 0) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
20201
|
+
TaskList,
|
|
20202
|
+
{
|
|
20203
|
+
...renderTaskListProps,
|
|
20204
|
+
taskListHorizontalScrollRef
|
|
20205
|
+
}
|
|
20206
|
+
),
|
|
20198
20207
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
20199
20208
|
TaskGantt,
|
|
20200
20209
|
{
|
|
@@ -20250,7 +20259,7 @@
|
|
|
20250
20259
|
handleAction,
|
|
20251
20260
|
handleCloseContextMenu,
|
|
20252
20261
|
options: contextMenuOptions,
|
|
20253
|
-
boundaryElement:
|
|
20262
|
+
boundaryElement: taskListHorizontalScrollRef
|
|
20254
20263
|
}
|
|
20255
20264
|
),
|
|
20256
20265
|
ganttContextMenu.task && !waitCommitTasks && /* @__PURE__ */ jsxRuntime.jsx(
|
package/package.json
CHANGED