gantt-task-react-v 1.5.8 → 1.5.10

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.
@@ -29,7 +29,6 @@ export type TaskListProps = {
29
29
  isShowTaskNumbers?: boolean;
30
30
  mapTaskToNestedIndex: MapTaskToNestedIndex;
31
31
  onClick?: (task: RenderTask) => void;
32
- onDoubleClick?: (task: RenderTask) => void;
33
32
  onExpanderClick: (task: Task) => void;
34
33
  scrollToBottomStep: () => void;
35
34
  scrollToTask: (task: Task) => void;
@@ -10204,7 +10204,6 @@ const TaskListTableRowInner = forwardRef(
10204
10204
  isDragging,
10205
10205
  isShowTaskNumbers,
10206
10206
  onClick,
10207
- onDoubleClick,
10208
10207
  onExpanderClick,
10209
10208
  scrollToTask,
10210
10209
  selectTaskOnMouseDown,
@@ -10215,15 +10214,6 @@ const TaskListTableRowInner = forwardRef(
10215
10214
  moveOverPosition
10216
10215
  } = props;
10217
10216
  const { id, comparisonLevel = 1 } = task;
10218
- const onRowDoubleClick = useCallback(
10219
- (event) => {
10220
- event.preventDefault();
10221
- if (onDoubleClick) {
10222
- onDoubleClick(task);
10223
- }
10224
- },
10225
- [onDoubleClick, task]
10226
- );
10227
10217
  const onRootMouseDown = useCallback(
10228
10218
  (event) => {
10229
10219
  event.preventDefault();
@@ -10356,7 +10346,6 @@ const TaskListTableRowInner = forwardRef(
10356
10346
  ref,
10357
10347
  className: rowClassName,
10358
10348
  onMouseDown: onRootMouseDown,
10359
- onDoubleClick: onRowDoubleClick,
10360
10349
  style: {
10361
10350
  height: fullRowHeight,
10362
10351
  backgroundColor,
@@ -10930,7 +10919,6 @@ const TaskListInner = ({
10930
10919
  mapTaskToNestedIndex,
10931
10920
  onExpanderClick,
10932
10921
  onClick,
10933
- onDoubleClick,
10934
10922
  scrollToTask,
10935
10923
  selectTaskOnMouseDown,
10936
10924
  selectedIdsMirror,
@@ -10998,7 +10986,6 @@ const TaskListInner = ({
10998
10986
  isSelected: selectedIdsMirror[id],
10999
10987
  isShowTaskNumbers,
11000
10988
  onClick,
11001
- onDoubleClick,
11002
10989
  onExpanderClick,
11003
10990
  scrollToTask,
11004
10991
  selectTaskOnMouseDown,
@@ -11023,7 +11010,6 @@ const TaskListInner = ({
11023
11010
  isShowTaskNumbers,
11024
11011
  mapTaskToNestedIndex,
11025
11012
  onClick,
11026
- onDoubleClick,
11027
11013
  onExpanderClick,
11028
11014
  scrollToTask,
11029
11015
  selectTaskOnMouseDown,
@@ -20847,20 +20833,6 @@ const Gantt = (props) => {
20847
20833
  setActiveArrowKey(null);
20848
20834
  setActiveTaskId(null);
20849
20835
  }, []);
20850
- const handleTableRowDoubleClick = useCallback(
20851
- (task) => {
20852
- selectTask(task.id);
20853
- if (enableDrawer && taskList.enableTableRowDoubleClick) {
20854
- setActiveArrowKey(null);
20855
- setActiveTaskId(task.id);
20856
- setDrawerData({ type: "task", task });
20857
- }
20858
- if (taskList.onTableRowDoubleClick) {
20859
- taskList.onTableRowDoubleClick(task);
20860
- }
20861
- },
20862
- [enableDrawer, selectTask, taskList]
20863
- );
20864
20836
  const handleGoToTask = useCallback(
20865
20837
  (taskId) => {
20866
20838
  for (const [comparisonLevel, levelMap] of tasksMap) {
@@ -21201,7 +21173,6 @@ const Gantt = (props) => {
21201
21173
  handleOpenContextMenu: handleOpenContextMenuForRow,
21202
21174
  mapTaskToNestedIndex,
21203
21175
  onExpanderClick,
21204
- onDoubleClick: handleTableRowDoubleClick,
21205
21176
  scrollToBottomStep,
21206
21177
  scrollToTopStep,
21207
21178
  selectTaskOnMouseDown,
@@ -21239,8 +21210,7 @@ const Gantt = (props) => {
21239
21210
  selectedIdsMirror,
21240
21211
  taskList,
21241
21212
  taskListContainerRef,
21242
- visibleTasks,
21243
- handleTableRowDoubleClick
21213
+ visibleTasks
21244
21214
  ]
21245
21215
  );
21246
21216
  return /* @__PURE__ */ jsx(GanttThemeProvider, { theme, children: (cssVars) => /* @__PURE__ */ jsx(GanttLocaleProvider, { locale, children: /* @__PURE__ */ jsxs(
@@ -10221,7 +10221,6 @@
10221
10221
  isDragging,
10222
10222
  isShowTaskNumbers,
10223
10223
  onClick,
10224
- onDoubleClick,
10225
10224
  onExpanderClick,
10226
10225
  scrollToTask,
10227
10226
  selectTaskOnMouseDown,
@@ -10232,15 +10231,6 @@
10232
10231
  moveOverPosition
10233
10232
  } = props;
10234
10233
  const { id, comparisonLevel = 1 } = task;
10235
- const onRowDoubleClick = React.useCallback(
10236
- (event) => {
10237
- event.preventDefault();
10238
- if (onDoubleClick) {
10239
- onDoubleClick(task);
10240
- }
10241
- },
10242
- [onDoubleClick, task]
10243
- );
10244
10234
  const onRootMouseDown = React.useCallback(
10245
10235
  (event) => {
10246
10236
  event.preventDefault();
@@ -10373,7 +10363,6 @@
10373
10363
  ref,
10374
10364
  className: rowClassName,
10375
10365
  onMouseDown: onRootMouseDown,
10376
- onDoubleClick: onRowDoubleClick,
10377
10366
  style: {
10378
10367
  height: fullRowHeight,
10379
10368
  backgroundColor,
@@ -10947,7 +10936,6 @@
10947
10936
  mapTaskToNestedIndex,
10948
10937
  onExpanderClick,
10949
10938
  onClick,
10950
- onDoubleClick,
10951
10939
  scrollToTask,
10952
10940
  selectTaskOnMouseDown,
10953
10941
  selectedIdsMirror,
@@ -11015,7 +11003,6 @@
11015
11003
  isSelected: selectedIdsMirror[id],
11016
11004
  isShowTaskNumbers,
11017
11005
  onClick,
11018
- onDoubleClick,
11019
11006
  onExpanderClick,
11020
11007
  scrollToTask,
11021
11008
  selectTaskOnMouseDown,
@@ -11040,7 +11027,6 @@
11040
11027
  isShowTaskNumbers,
11041
11028
  mapTaskToNestedIndex,
11042
11029
  onClick,
11043
- onDoubleClick,
11044
11030
  onExpanderClick,
11045
11031
  scrollToTask,
11046
11032
  selectTaskOnMouseDown,
@@ -20864,20 +20850,6 @@
20864
20850
  setActiveArrowKey(null);
20865
20851
  setActiveTaskId(null);
20866
20852
  }, []);
20867
- const handleTableRowDoubleClick = React.useCallback(
20868
- (task) => {
20869
- selectTask(task.id);
20870
- if (enableDrawer && taskList.enableTableRowDoubleClick) {
20871
- setActiveArrowKey(null);
20872
- setActiveTaskId(task.id);
20873
- setDrawerData({ type: "task", task });
20874
- }
20875
- if (taskList.onTableRowDoubleClick) {
20876
- taskList.onTableRowDoubleClick(task);
20877
- }
20878
- },
20879
- [enableDrawer, selectTask, taskList]
20880
- );
20881
20853
  const handleGoToTask = React.useCallback(
20882
20854
  (taskId) => {
20883
20855
  for (const [comparisonLevel, levelMap] of tasksMap) {
@@ -21218,7 +21190,6 @@
21218
21190
  handleOpenContextMenu: handleOpenContextMenuForRow,
21219
21191
  mapTaskToNestedIndex,
21220
21192
  onExpanderClick,
21221
- onDoubleClick: handleTableRowDoubleClick,
21222
21193
  scrollToBottomStep,
21223
21194
  scrollToTopStep,
21224
21195
  selectTaskOnMouseDown,
@@ -21256,8 +21227,7 @@
21256
21227
  selectedIdsMirror,
21257
21228
  taskList,
21258
21229
  taskListContainerRef,
21259
- visibleTasks,
21260
- handleTableRowDoubleClick
21230
+ visibleTasks
21261
21231
  ]
21262
21232
  );
21263
21233
  return /* @__PURE__ */ jsxRuntime.jsx(GanttThemeProvider, { theme, children: (cssVars) => /* @__PURE__ */ jsxRuntime.jsx(GanttLocaleProvider, { locale, children: /* @__PURE__ */ jsxRuntime.jsxs(
@@ -184,7 +184,6 @@ export type TaskListTableRowProps = {
184
184
  isSelected: boolean;
185
185
  isShowTaskNumbers: boolean;
186
186
  onClick: (task: RenderTask) => void;
187
- onDoubleClick?: (task: RenderTask) => void;
188
187
  onExpanderClick: (task: Task) => void;
189
188
  scrollToTask: (task: Task) => void;
190
189
  selectTaskOnMouseDown: (taskId: string, event: MouseEvent) => void;
@@ -184,16 +184,6 @@ export interface GanttTaskListProps {
184
184
  * Render bottom table content
185
185
  */
186
186
  tableBottom?: TableRenderBottomProps;
187
- /**
188
- * Enable double-click on task table rows to open the drawer.
189
- * Requires `drawer.enableDrawer` to be true for the drawer to open.
190
- */
191
- enableTableRowDoubleClick?: boolean;
192
- /**
193
- * Callback invoked when a task table row is double-clicked.
194
- * Called regardless of `enableTableRowDoubleClick`; use it to open a custom drawer or panel.
195
- */
196
- onTableRowDoubleClick?: (task: RenderTask) => void;
197
187
  }
198
188
  export interface TableRenderBottomProps {
199
189
  height?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.5.8",
3
+ "version": "1.5.10",
4
4
  "description": "Interactive Gantt Chart for React with TypeScript.",
5
5
  "author": "aguilanbon",
6
6
  "homepage": "https://github.com/aguilanbon/gantt-task-react-v",