@thepocman/gantt-task-react 1.0.0
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/LICENSE +21 -0
- package/README.md +197 -0
- package/dist/change-metadata/get-dependent-tasks.d.ts +3 -0
- package/dist/change-metadata/get-task-indexes.d.ts +9 -0
- package/dist/components/calendar/calendar.d.ts +19 -0
- package/dist/components/calendar/default-render-bottom-header.d.ts +3 -0
- package/dist/components/calendar/default-render-top-header.d.ts +2 -0
- package/dist/components/calendar/top-part-of-calendar.d.ts +14 -0
- package/dist/components/context-menu/index.d.ts +14 -0
- package/dist/components/context-menu/menu-option.d.ts +10 -0
- package/dist/components/gantt/default-check-is-holiday.d.ts +2 -0
- package/dist/components/gantt/default-get-copied-task-id.d.ts +2 -0
- package/dist/components/gantt/default-round-date.d.ts +2 -0
- package/dist/components/gantt/default-round-end-date.d.ts +2 -0
- package/dist/components/gantt/default-round-start-date.d.ts +2 -0
- package/dist/components/gantt/gantt.d.ts +3 -0
- package/dist/components/gantt/task-gantt-content.d.ts +49 -0
- package/dist/components/gantt/task-gantt.d.ts +23 -0
- package/dist/components/gantt/use-context-menu.d.ts +7 -0
- package/dist/components/gantt/use-create-relation.d.ts +16 -0
- package/dist/components/gantt/use-get-task-current-state.d.ts +14 -0
- package/dist/components/gantt/use-handle-action.d.ts +20 -0
- package/dist/components/gantt/use-holidays.d.ts +14 -0
- package/dist/components/gantt/use-horizontal-scrollbars.d.ts +2 -0
- package/dist/components/gantt/use-selection.d.ts +18 -0
- package/dist/components/gantt/use-tablelist-resize.d.ts +2 -0
- package/dist/components/gantt/use-task-drag.d.ts +25 -0
- package/dist/components/gantt/use-vertical-scrollbars.d.ts +2 -0
- package/dist/components/grid/grid-body.d.ts +19 -0
- package/dist/components/grid/grid.d.ts +4 -0
- package/dist/components/other/arrow.d.ts +27 -0
- package/dist/components/other/bar-fix-width.d.ts +13 -0
- package/dist/components/other/fix-dependency-position.d.ts +14 -0
- package/dist/components/other/relation-line.d.ts +9 -0
- package/dist/components/other/tooltip.d.ts +24 -0
- package/dist/components/task-item/bar/bar-date-handle.d.ts +12 -0
- package/dist/components/task-item/bar/bar-display.d.ts +19 -0
- package/dist/components/task-item/bar/bar-progress-handle.d.ts +8 -0
- package/dist/components/task-item/bar/bar-relation-handle.d.ts +11 -0
- package/dist/components/task-item/bar/bar-small.d.ts +6 -0
- package/dist/components/task-item/bar/bar.d.ts +6 -0
- package/dist/components/task-item/milestone/milestone.d.ts +6 -0
- package/dist/components/task-item/project/project-display.d.ts +21 -0
- package/dist/components/task-item/task-item.d.ts +41 -0
- package/dist/components/task-item/task-warning.d.ts +14 -0
- package/dist/components/task-list/TaskListHeaderActions.d.ts +9 -0
- package/dist/components/task-list/columns/add-column.d.ts +3 -0
- package/dist/components/task-list/columns/date-end-column.d.ts +3 -0
- package/dist/components/task-list/columns/date-start-column.d.ts +3 -0
- package/dist/components/task-list/columns/delete-column.d.ts +3 -0
- package/dist/components/task-list/columns/dependencies-column.d.ts +3 -0
- package/dist/components/task-list/columns/edit-column.d.ts +3 -0
- package/dist/components/task-list/columns/title-column.d.ts +3 -0
- package/dist/components/task-list/task-list-header.d.ts +4 -0
- package/dist/components/task-list/task-list-table-row.d.ts +40 -0
- package/dist/components/task-list/task-list-table.d.ts +3 -0
- package/dist/components/task-list/task-list.d.ts +84 -0
- package/dist/constants.d.ts +2 -0
- package/dist/context-menu-options/copy.d.ts +2 -0
- package/dist/context-menu-options/cut.d.ts +2 -0
- package/dist/context-menu-options/delete.d.ts +2 -0
- package/dist/context-menu-options/index.d.ts +4 -0
- package/dist/context-menu-options/paste.d.ts +2 -0
- package/dist/gantt-task-react.es.js +13077 -0
- package/dist/gantt-task-react.umd.js +13090 -0
- package/dist/helpers/adjust-task-to-working-dates.d.ts +12 -0
- package/dist/helpers/bar-helper.d.ts +11 -0
- package/dist/helpers/check-has-children.d.ts +2 -0
- package/dist/helpers/check-is-descendant.d.ts +2 -0
- package/dist/helpers/check-is-real-task.d.ts +2 -0
- package/dist/helpers/check-task-has-dependency-warning.d.ts +2 -0
- package/dist/helpers/collect-parents.d.ts +2 -0
- package/dist/helpers/collect-visible-tasks.d.ts +2 -0
- package/dist/helpers/compare-dates.d.ts +1 -0
- package/dist/helpers/copy-tasks.d.ts +2 -0
- package/dist/helpers/count-holidays.d.ts +2 -0
- package/dist/helpers/date-helper.d.ts +4 -0
- package/dist/helpers/generate-triangle-points.d.ts +1 -0
- package/dist/helpers/get-all-descendants.d.ts +2 -0
- package/dist/helpers/get-change-task-metadata.d.ts +13 -0
- package/dist/helpers/get-child-out-of-parent-warnings.d.ts +2 -0
- package/dist/helpers/get-childs-and-roots.d.ts +5 -0
- package/dist/helpers/get-critical-path.d.ts +2 -0
- package/dist/helpers/get-date-by-offset.d.ts +2 -0
- package/dist/helpers/get-dates-diff.d.ts +2 -0
- package/dist/helpers/get-dependency-map-and-warnings.d.ts +2 -0
- package/dist/helpers/get-initial-closed-tasks.d.ts +2 -0
- package/dist/helpers/get-map-task-to-coordinates.d.ts +7 -0
- package/dist/helpers/get-map-task-to-global-index.d.ts +5 -0
- package/dist/helpers/get-map-task-to-nested-index.d.ts +2 -0
- package/dist/helpers/get-map-task-to-row-index-with-grouping.d.ts +7 -0
- package/dist/helpers/get-map-task-to-row-index.d.ts +10 -0
- package/dist/helpers/get-previous-next-working-date.d.ts +3 -0
- package/dist/helpers/get-relation-circle-by-coordinates.d.ts +2 -0
- package/dist/helpers/get-task-coordinates.d.ts +4 -0
- package/dist/helpers/get-task-row-index.d.ts +2 -0
- package/dist/helpers/get-task-to-has-dependency-warning-map.d.ts +2 -0
- package/dist/helpers/get-tasks-map.d.ts +5 -0
- package/dist/helpers/round-task-dates.d.ts +7 -0
- package/dist/helpers/sort-tasks.d.ts +2 -0
- package/dist/helpers/sort-visible-tasks.d.ts +2 -0
- package/dist/helpers/use-optimized-list.d.ts +24 -0
- package/dist/helpers/use-task-tooltip.d.ts +12 -0
- package/dist/index.d.ts +13 -0
- package/dist/selected-tasks/get-parent-tasks.d.ts +2 -0
- package/dist/selected-tasks/get-selected-tasks.d.ts +2 -0
- package/dist/selected-tasks/get-tasks-with-descendants.d.ts +2 -0
- package/dist/style.css +563 -0
- package/dist/suggestions/change-start-and-end-descendants.d.ts +10 -0
- package/dist/test/date-helper.test.d.ts +1 -0
- package/dist/test/gant.test.d.ts +1 -0
- package/dist/types/gantt-task-actions.d.ts +9 -0
- package/dist/types/public-types.d.ts +860 -0
- package/package.json +133 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const fixPositionContainerClass: string;
|
|
3
|
+
type FixDependencyPositionProps = {
|
|
4
|
+
color: string;
|
|
5
|
+
dependencyFixIndent: number;
|
|
6
|
+
handleFixPosition: () => void;
|
|
7
|
+
height: number;
|
|
8
|
+
isLeft: boolean;
|
|
9
|
+
width: number;
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const FixDependencyPosition: React.NamedExoticComponent<FixDependencyPositionProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { ComponentType } from "react";
|
|
2
|
+
import type { Strategy } from "@floating-ui/dom";
|
|
3
|
+
import type { Task } from "../../types/public-types";
|
|
4
|
+
export type TooltipProps = {
|
|
5
|
+
tooltipX: number | null;
|
|
6
|
+
tooltipY: number | null;
|
|
7
|
+
tooltipStrategy: Strategy;
|
|
8
|
+
setFloatingRef: (node: HTMLElement | null) => void;
|
|
9
|
+
getFloatingProps: () => Record<string, unknown>;
|
|
10
|
+
task: Task;
|
|
11
|
+
fontSize: string;
|
|
12
|
+
fontFamily: string;
|
|
13
|
+
TooltipContent: ComponentType<{
|
|
14
|
+
task: Task;
|
|
15
|
+
fontSize: string;
|
|
16
|
+
fontFamily: string;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
export declare const Tooltip: React.FC<TooltipProps>;
|
|
20
|
+
export declare const StandardTooltipContent: React.FC<{
|
|
21
|
+
task: Task;
|
|
22
|
+
fontSize: string;
|
|
23
|
+
fontFamily: string;
|
|
24
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type BarDateHandleProps = {
|
|
3
|
+
dataTestid: string;
|
|
4
|
+
barCornerRadius: number;
|
|
5
|
+
height: number;
|
|
6
|
+
startMove: (clientX: number) => void;
|
|
7
|
+
width: number;
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const BarDateHandle: React.FC<BarDateHandleProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ColorStyles } from "../../../types/public-types";
|
|
3
|
+
type BarDisplayProps = {
|
|
4
|
+
barCornerRadius: number;
|
|
5
|
+
isCritical: boolean;
|
|
6
|
+
isSelected: boolean;
|
|
7
|
+
hasChildren: boolean;
|
|
8
|
+
height: number;
|
|
9
|
+
progressWidth: number;
|
|
10
|
+
progressX: number;
|
|
11
|
+
startMoveFullTask: (clientX: number) => void;
|
|
12
|
+
styles: ColorStyles;
|
|
13
|
+
taskName: string;
|
|
14
|
+
width: number;
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const BarDisplay: React.FC<BarDisplayProps>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type BarRelationHandleProps = {
|
|
3
|
+
dataTestid: string;
|
|
4
|
+
isRelationDrawMode: boolean;
|
|
5
|
+
radius: number;
|
|
6
|
+
startDrawRelation: () => void;
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const BarRelationHandle: React.NamedExoticComponent<BarRelationHandleProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TaskItemProps } from "../task-item";
|
|
3
|
+
import { BarMoveAction } from "../../../types/public-types";
|
|
4
|
+
export declare const BarSmall: React.FC<TaskItemProps & {
|
|
5
|
+
onTaskEventStart: (action: BarMoveAction, clientX: number) => void;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TaskItemProps } from "../task-item";
|
|
3
|
+
import { BarMoveAction } from "../../../types/public-types";
|
|
4
|
+
export declare const Bar: React.FC<TaskItemProps & {
|
|
5
|
+
onTaskEventStart: (action: BarMoveAction, clientX: number) => void;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TaskItemProps } from "../task-item";
|
|
3
|
+
import { BarMoveAction } from "../../../types/public-types";
|
|
4
|
+
export declare const Milestone: React.FC<TaskItemProps & {
|
|
5
|
+
onTaskEventStart: (action: BarMoveAction, clientX: number) => void;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ColorStyles } from "../../../types/public-types";
|
|
3
|
+
type ProjectDisplayProps = {
|
|
4
|
+
barCornerRadius: number;
|
|
5
|
+
isCritical: boolean;
|
|
6
|
+
isSelected: boolean;
|
|
7
|
+
hasChildren: boolean;
|
|
8
|
+
taskHeight: number;
|
|
9
|
+
taskHalfHeight: number;
|
|
10
|
+
taskYOffset: number;
|
|
11
|
+
progressWidth: number;
|
|
12
|
+
progressX: number;
|
|
13
|
+
startMoveFullTask: (clientX: number) => void;
|
|
14
|
+
taskName: string;
|
|
15
|
+
colorStyles: ColorStyles;
|
|
16
|
+
width: number;
|
|
17
|
+
x1: number;
|
|
18
|
+
x2: number;
|
|
19
|
+
};
|
|
20
|
+
export declare const ProjectDisplay: React.FC<ProjectDisplayProps>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { MouseEvent } from "react";
|
|
3
|
+
import { GanttRelationEvent } from "../../types/gantt-task-actions";
|
|
4
|
+
import { ChildOutOfParentWarnings, FixPosition, Task, ColorStyles, TaskOrEmpty, Distances, RelationKind, BarMoveAction, DateExtremity } from "../../types/public-types";
|
|
5
|
+
export type TaskItemProps = {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
getTaskGlobalIndexByRef: (task: Task) => number;
|
|
8
|
+
hasChildren: boolean;
|
|
9
|
+
hasDependencyWarning: boolean;
|
|
10
|
+
progressWidth: number;
|
|
11
|
+
progressX: number;
|
|
12
|
+
selectTaskOnMouseDown: (taskId: string, event: MouseEvent) => void;
|
|
13
|
+
task: Task;
|
|
14
|
+
taskYOffset: number;
|
|
15
|
+
width: number;
|
|
16
|
+
x1: number;
|
|
17
|
+
x2: number;
|
|
18
|
+
childOutOfParentWarnings: ChildOutOfParentWarnings | null;
|
|
19
|
+
distances: Distances;
|
|
20
|
+
taskHeight: number;
|
|
21
|
+
taskHalfHeight: number;
|
|
22
|
+
isProgressChangeable: boolean;
|
|
23
|
+
isDateChangeable: boolean;
|
|
24
|
+
authorizedRelations: RelationKind[];
|
|
25
|
+
isRelationChangeable: boolean;
|
|
26
|
+
ganttRelationEvent: GanttRelationEvent;
|
|
27
|
+
isDelete: boolean;
|
|
28
|
+
isSelected: boolean;
|
|
29
|
+
isCritical: boolean;
|
|
30
|
+
rtl: boolean;
|
|
31
|
+
onDoubleClick?: (task: Task) => void;
|
|
32
|
+
onClick?: (task: Task, event: React.MouseEvent<SVGElement>) => void;
|
|
33
|
+
setTooltipTask: (task: Task | null, element: Element | null) => void;
|
|
34
|
+
onEventStart: (action: BarMoveAction, selectedTask: Task, clientX: number, taskRootNode: Element) => any;
|
|
35
|
+
onRelationStart: (target: DateExtremity, selectedTask: Task) => void;
|
|
36
|
+
fixStartPosition?: FixPosition;
|
|
37
|
+
fixEndPosition?: FixPosition;
|
|
38
|
+
handleDeleteTasks: (task: TaskOrEmpty[]) => void;
|
|
39
|
+
colorStyles: ColorStyles;
|
|
40
|
+
};
|
|
41
|
+
export declare const TaskItem: React.NamedExoticComponent<TaskItemProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TaskOutOfParentWarnings } from '../../types/public-types';
|
|
3
|
+
type TaskWarningProps = {
|
|
4
|
+
rtl: boolean;
|
|
5
|
+
outOfParentWarnings?: TaskOutOfParentWarnings;
|
|
6
|
+
hasDependencyWarning: boolean;
|
|
7
|
+
taskWarningOffset: number;
|
|
8
|
+
taskHalfHeight: number;
|
|
9
|
+
taskYOffset: number;
|
|
10
|
+
x1: number;
|
|
11
|
+
x2: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const TaskWarning: React.NamedExoticComponent<TaskWarningProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ColorStyles } from "../../types/public-types";
|
|
3
|
+
export type TaskListHeaderActionsProps = {
|
|
4
|
+
onCollapseAll: () => void;
|
|
5
|
+
onExpandFirstLevel: () => void;
|
|
6
|
+
onExpandAll: () => void;
|
|
7
|
+
colors: Partial<ColorStyles>;
|
|
8
|
+
};
|
|
9
|
+
export declare const TaskListHeaderActions: React.FC<TaskListHeaderActionsProps>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TaskListHeaderProps } from "../../types/public-types";
|
|
3
|
+
import { TaskListHeaderActionsProps } from "./TaskListHeaderActions";
|
|
4
|
+
export declare const TaskListHeaderDefault: React.NamedExoticComponent<TaskListHeaderProps & TaskListHeaderActionsProps>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { CSSProperties, MouseEvent } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ColorStyles, Column, DateSetup, DependencyMap, Distances, Icons, Task, TaskOrEmpty } from "../../types/public-types";
|
|
4
|
+
type TaskListTableRowProps = {
|
|
5
|
+
canMoveTasks: boolean;
|
|
6
|
+
colors: ColorStyles;
|
|
7
|
+
columns: readonly Column[];
|
|
8
|
+
dateSetup: DateSetup;
|
|
9
|
+
dependencyMap: DependencyMap;
|
|
10
|
+
depth: number;
|
|
11
|
+
distances: Distances;
|
|
12
|
+
fullRowHeight: number;
|
|
13
|
+
getTaskCurrentState: (task: Task) => Task;
|
|
14
|
+
handleAddTask: (task: Task) => void;
|
|
15
|
+
handleDeleteTasks: (task: TaskOrEmpty[]) => void;
|
|
16
|
+
handleEditTask: (task: TaskOrEmpty) => void;
|
|
17
|
+
handleMoveTaskBefore: (target: TaskOrEmpty, taskForMove: TaskOrEmpty) => void;
|
|
18
|
+
handleMoveTaskAfter: (target: TaskOrEmpty, taskForMove: TaskOrEmpty) => void;
|
|
19
|
+
handleMoveTasksInside: (parent: Task, childs: readonly TaskOrEmpty[]) => void;
|
|
20
|
+
handleOpenContextMenu: (task: TaskOrEmpty, clientX: number, clientY: number) => void;
|
|
21
|
+
hasChildren: boolean;
|
|
22
|
+
icons?: Partial<Icons>;
|
|
23
|
+
indexStr: string;
|
|
24
|
+
isClosed: boolean;
|
|
25
|
+
isCut: boolean;
|
|
26
|
+
isEven: boolean;
|
|
27
|
+
isSelected: boolean;
|
|
28
|
+
isShowTaskNumbers: boolean;
|
|
29
|
+
onClick: (task: TaskOrEmpty) => void;
|
|
30
|
+
onExpanderClick: (task: Task) => void;
|
|
31
|
+
scrollToTask: (task: Task) => void;
|
|
32
|
+
selectTaskOnMouseDown: (taskId: string, event: MouseEvent) => void;
|
|
33
|
+
style?: CSSProperties;
|
|
34
|
+
task: TaskOrEmpty;
|
|
35
|
+
tasks: readonly TaskOrEmpty[];
|
|
36
|
+
draggedTask: TaskOrEmpty;
|
|
37
|
+
setDraggedTask: React.Dispatch<any>;
|
|
38
|
+
};
|
|
39
|
+
export declare const TaskListTableRow: React.NamedExoticComponent<TaskListTableRowProps>;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { ComponentType, MouseEvent, RefObject, SyntheticEvent } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ChildByLevelMap, ColorStyles, Column, DateSetup, DependencyMap, Distances, Icons, MapTaskToNestedIndex, OnResizeColumn, Task, TaskListHeaderProps, TaskListTableProps, TaskOrEmpty } from "../../types/public-types";
|
|
4
|
+
import { TaskListHeaderActionsProps } from "./TaskListHeaderActions";
|
|
5
|
+
export type TaskListProps = {
|
|
6
|
+
canMoveTasks: boolean;
|
|
7
|
+
canResizeColumns: boolean;
|
|
8
|
+
childTasksMap: ChildByLevelMap;
|
|
9
|
+
enableTaskGrouping: boolean;
|
|
10
|
+
colors: ColorStyles;
|
|
11
|
+
columnsProp: readonly Column[];
|
|
12
|
+
cutIdsMirror: Readonly<Record<string, true>>;
|
|
13
|
+
dateSetup: DateSetup;
|
|
14
|
+
dependencyMap: DependencyMap;
|
|
15
|
+
nableTaskGrouping?: boolean;
|
|
16
|
+
distances: Distances;
|
|
17
|
+
fontFamily: string;
|
|
18
|
+
fontSize: string;
|
|
19
|
+
fullRowHeight: number;
|
|
20
|
+
ganttFullHeight: number;
|
|
21
|
+
getTaskCurrentState: (task: Task) => Task;
|
|
22
|
+
handleAddTask: (task: Task) => void;
|
|
23
|
+
handleDeleteTasks: (task: TaskOrEmpty[]) => void;
|
|
24
|
+
handleEditTask: (task: TaskOrEmpty) => void;
|
|
25
|
+
handleMoveTaskBefore: (target: TaskOrEmpty, taskForMove: TaskOrEmpty) => void;
|
|
26
|
+
handleMoveTaskAfter: (target: TaskOrEmpty, taskForMove: TaskOrEmpty) => void;
|
|
27
|
+
handleMoveTasksInside: (parent: Task, childs: readonly TaskOrEmpty[]) => void;
|
|
28
|
+
handleOpenContextMenu: (task: TaskOrEmpty, clientX: number, clientY: number) => void;
|
|
29
|
+
icons?: Partial<Icons>;
|
|
30
|
+
isShowTaskNumbers: boolean;
|
|
31
|
+
mapTaskToNestedIndex: MapTaskToNestedIndex;
|
|
32
|
+
onClick?: (task: TaskOrEmpty) => void;
|
|
33
|
+
onExpanderClick: (task: Task) => void;
|
|
34
|
+
scrollToTask: (task: Task) => void;
|
|
35
|
+
selectTaskOnMouseDown: (taskId: string, event: MouseEvent) => void;
|
|
36
|
+
selectedIdsMirror: Readonly<Record<string, true>>;
|
|
37
|
+
taskListContentRef: RefObject<HTMLDivElement>;
|
|
38
|
+
taskListRef: RefObject<HTMLDivElement>;
|
|
39
|
+
tasks: readonly TaskOrEmpty[];
|
|
40
|
+
TaskListHeader: ComponentType<TaskListHeaderProps>;
|
|
41
|
+
TaskListTable: ComponentType<TaskListTableProps>;
|
|
42
|
+
onResizeColumn?: OnResizeColumn;
|
|
43
|
+
onScrollTableListContentVertically: (event: SyntheticEvent<HTMLDivElement>) => void;
|
|
44
|
+
} & TaskListHeaderActionsProps;
|
|
45
|
+
export declare const TaskList: React.NamedExoticComponent<{
|
|
46
|
+
canMoveTasks: boolean;
|
|
47
|
+
canResizeColumns: boolean;
|
|
48
|
+
childTasksMap: ChildByLevelMap;
|
|
49
|
+
enableTaskGrouping: boolean;
|
|
50
|
+
colors: ColorStyles;
|
|
51
|
+
columnsProp: readonly Column[];
|
|
52
|
+
cutIdsMirror: Readonly<Record<string, true>>;
|
|
53
|
+
dateSetup: DateSetup;
|
|
54
|
+
dependencyMap: DependencyMap;
|
|
55
|
+
nableTaskGrouping?: boolean;
|
|
56
|
+
distances: Distances;
|
|
57
|
+
fontFamily: string;
|
|
58
|
+
fontSize: string;
|
|
59
|
+
fullRowHeight: number;
|
|
60
|
+
ganttFullHeight: number;
|
|
61
|
+
getTaskCurrentState: (task: Task) => Task;
|
|
62
|
+
handleAddTask: (task: Task) => void;
|
|
63
|
+
handleDeleteTasks: (task: TaskOrEmpty[]) => void;
|
|
64
|
+
handleEditTask: (task: TaskOrEmpty) => void;
|
|
65
|
+
handleMoveTaskBefore: (target: TaskOrEmpty, taskForMove: TaskOrEmpty) => void;
|
|
66
|
+
handleMoveTaskAfter: (target: TaskOrEmpty, taskForMove: TaskOrEmpty) => void;
|
|
67
|
+
handleMoveTasksInside: (parent: Task, childs: readonly TaskOrEmpty[]) => void;
|
|
68
|
+
handleOpenContextMenu: (task: TaskOrEmpty, clientX: number, clientY: number) => void;
|
|
69
|
+
icons?: Partial<Icons>;
|
|
70
|
+
isShowTaskNumbers: boolean;
|
|
71
|
+
mapTaskToNestedIndex: MapTaskToNestedIndex;
|
|
72
|
+
onClick?: (task: TaskOrEmpty) => void;
|
|
73
|
+
onExpanderClick: (task: Task) => void;
|
|
74
|
+
scrollToTask: (task: Task) => void;
|
|
75
|
+
selectTaskOnMouseDown: (taskId: string, event: MouseEvent) => void;
|
|
76
|
+
selectedIdsMirror: Readonly<Record<string, true>>;
|
|
77
|
+
taskListContentRef: RefObject<HTMLDivElement>;
|
|
78
|
+
taskListRef: RefObject<HTMLDivElement>;
|
|
79
|
+
tasks: readonly TaskOrEmpty[];
|
|
80
|
+
TaskListHeader: ComponentType<TaskListHeaderProps>;
|
|
81
|
+
TaskListTable: ComponentType<TaskListTableProps>;
|
|
82
|
+
onResizeColumn?: OnResizeColumn;
|
|
83
|
+
onScrollTableListContentVertically: (event: SyntheticEvent<HTMLDivElement>) => void;
|
|
84
|
+
} & TaskListHeaderActionsProps>;
|