gantt-task-react-v 1.4.6 → 1.4.8

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.
@@ -22,6 +22,9 @@ export interface TaskGanttContentProps extends GanttTaskBarActions {
22
22
  onTaskBarDragStart: (action: TaskBarMoveAction, task: Task, clientX: number, taskRootNode: Element) => void;
23
23
  mapGlobalRowIndexToTask: GlobalRowIndexToTaskMap;
24
24
  onArrowDoubleClick: (taskFrom: Task, taskTo: Task) => void;
25
+ onArrowClick?: (taskFrom: Task, taskTo: Task) => void;
26
+ activeArrowKey?: string | null;
27
+ activeTaskId?: string | null;
25
28
  onClick?: (task: Task, event: React.MouseEvent<SVGElement>) => void;
26
29
  onDoubleClick?: (task: Task) => void;
27
30
  renderedRowIndexes: OptimizedListParams | null;
@@ -43,11 +46,5 @@ export interface TaskGanttContentProps extends GanttTaskBarActions {
43
46
  viewMode: ViewMode;
44
47
  showProgress?: boolean;
45
48
  progressColor?: string;
46
- onArrowClick?: (taskFrom: Task, taskTo: Task) => void;
47
- selectedArrow?: {
48
- taskId?: string;
49
- fromId?: string;
50
- toId?: string;
51
- } | null;
52
49
  }
53
50
  export declare const TaskGanttContent: React.NamedExoticComponent<TaskGanttContentProps>;
@@ -18,6 +18,7 @@ type ArrowProps = {
18
18
  rtl: boolean;
19
19
  onArrowDoubleClick?: (taskFrom: Task, taskTo: Task) => void;
20
20
  onArrowClick?: (taskFrom: Task, taskTo: Task) => void;
21
+ isActive?: boolean;
21
22
  fromConnectionIndex?: number;
22
23
  fromTotalConnections?: number;
23
24
  toConnectionIndex?: number;
@@ -1,17 +1,11 @@
1
- import React, { ReactNode } from "react";
2
- import { Task } from "../../types";
3
- export interface GanttDrawerData {
4
- type: "task" | "connection";
5
- task?: Task;
6
- taskFrom?: Task;
7
- taskTo?: Task;
8
- }
9
- interface GanttDrawerProps {
10
- open: boolean;
11
- width: number;
1
+ import React from "react";
2
+ import type { GanttDrawerData, RenderDrawerContent } from "../../types";
3
+ interface GanttDrawerInternalProps {
12
4
  data: GanttDrawerData | null;
5
+ width: number;
13
6
  onClose: () => void;
14
- renderContent?: (data: GanttDrawerData) => ReactNode;
7
+ onGoToTask?: (taskId: string) => void;
8
+ renderContent?: RenderDrawerContent;
15
9
  }
16
- export declare const GanttDrawer: React.FC<GanttDrawerProps>;
10
+ export declare const GanttDrawer: React.NamedExoticComponent<GanttDrawerInternalProps>;
17
11
  export {};