@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.
Files changed (114) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +197 -0
  3. package/dist/change-metadata/get-dependent-tasks.d.ts +3 -0
  4. package/dist/change-metadata/get-task-indexes.d.ts +9 -0
  5. package/dist/components/calendar/calendar.d.ts +19 -0
  6. package/dist/components/calendar/default-render-bottom-header.d.ts +3 -0
  7. package/dist/components/calendar/default-render-top-header.d.ts +2 -0
  8. package/dist/components/calendar/top-part-of-calendar.d.ts +14 -0
  9. package/dist/components/context-menu/index.d.ts +14 -0
  10. package/dist/components/context-menu/menu-option.d.ts +10 -0
  11. package/dist/components/gantt/default-check-is-holiday.d.ts +2 -0
  12. package/dist/components/gantt/default-get-copied-task-id.d.ts +2 -0
  13. package/dist/components/gantt/default-round-date.d.ts +2 -0
  14. package/dist/components/gantt/default-round-end-date.d.ts +2 -0
  15. package/dist/components/gantt/default-round-start-date.d.ts +2 -0
  16. package/dist/components/gantt/gantt.d.ts +3 -0
  17. package/dist/components/gantt/task-gantt-content.d.ts +49 -0
  18. package/dist/components/gantt/task-gantt.d.ts +23 -0
  19. package/dist/components/gantt/use-context-menu.d.ts +7 -0
  20. package/dist/components/gantt/use-create-relation.d.ts +16 -0
  21. package/dist/components/gantt/use-get-task-current-state.d.ts +14 -0
  22. package/dist/components/gantt/use-handle-action.d.ts +20 -0
  23. package/dist/components/gantt/use-holidays.d.ts +14 -0
  24. package/dist/components/gantt/use-horizontal-scrollbars.d.ts +2 -0
  25. package/dist/components/gantt/use-selection.d.ts +18 -0
  26. package/dist/components/gantt/use-tablelist-resize.d.ts +2 -0
  27. package/dist/components/gantt/use-task-drag.d.ts +25 -0
  28. package/dist/components/gantt/use-vertical-scrollbars.d.ts +2 -0
  29. package/dist/components/grid/grid-body.d.ts +19 -0
  30. package/dist/components/grid/grid.d.ts +4 -0
  31. package/dist/components/other/arrow.d.ts +27 -0
  32. package/dist/components/other/bar-fix-width.d.ts +13 -0
  33. package/dist/components/other/fix-dependency-position.d.ts +14 -0
  34. package/dist/components/other/relation-line.d.ts +9 -0
  35. package/dist/components/other/tooltip.d.ts +24 -0
  36. package/dist/components/task-item/bar/bar-date-handle.d.ts +12 -0
  37. package/dist/components/task-item/bar/bar-display.d.ts +19 -0
  38. package/dist/components/task-item/bar/bar-progress-handle.d.ts +8 -0
  39. package/dist/components/task-item/bar/bar-relation-handle.d.ts +11 -0
  40. package/dist/components/task-item/bar/bar-small.d.ts +6 -0
  41. package/dist/components/task-item/bar/bar.d.ts +6 -0
  42. package/dist/components/task-item/milestone/milestone.d.ts +6 -0
  43. package/dist/components/task-item/project/project-display.d.ts +21 -0
  44. package/dist/components/task-item/task-item.d.ts +41 -0
  45. package/dist/components/task-item/task-warning.d.ts +14 -0
  46. package/dist/components/task-list/TaskListHeaderActions.d.ts +9 -0
  47. package/dist/components/task-list/columns/add-column.d.ts +3 -0
  48. package/dist/components/task-list/columns/date-end-column.d.ts +3 -0
  49. package/dist/components/task-list/columns/date-start-column.d.ts +3 -0
  50. package/dist/components/task-list/columns/delete-column.d.ts +3 -0
  51. package/dist/components/task-list/columns/dependencies-column.d.ts +3 -0
  52. package/dist/components/task-list/columns/edit-column.d.ts +3 -0
  53. package/dist/components/task-list/columns/title-column.d.ts +3 -0
  54. package/dist/components/task-list/task-list-header.d.ts +4 -0
  55. package/dist/components/task-list/task-list-table-row.d.ts +40 -0
  56. package/dist/components/task-list/task-list-table.d.ts +3 -0
  57. package/dist/components/task-list/task-list.d.ts +84 -0
  58. package/dist/constants.d.ts +2 -0
  59. package/dist/context-menu-options/copy.d.ts +2 -0
  60. package/dist/context-menu-options/cut.d.ts +2 -0
  61. package/dist/context-menu-options/delete.d.ts +2 -0
  62. package/dist/context-menu-options/index.d.ts +4 -0
  63. package/dist/context-menu-options/paste.d.ts +2 -0
  64. package/dist/gantt-task-react.es.js +13077 -0
  65. package/dist/gantt-task-react.umd.js +13090 -0
  66. package/dist/helpers/adjust-task-to-working-dates.d.ts +12 -0
  67. package/dist/helpers/bar-helper.d.ts +11 -0
  68. package/dist/helpers/check-has-children.d.ts +2 -0
  69. package/dist/helpers/check-is-descendant.d.ts +2 -0
  70. package/dist/helpers/check-is-real-task.d.ts +2 -0
  71. package/dist/helpers/check-task-has-dependency-warning.d.ts +2 -0
  72. package/dist/helpers/collect-parents.d.ts +2 -0
  73. package/dist/helpers/collect-visible-tasks.d.ts +2 -0
  74. package/dist/helpers/compare-dates.d.ts +1 -0
  75. package/dist/helpers/copy-tasks.d.ts +2 -0
  76. package/dist/helpers/count-holidays.d.ts +2 -0
  77. package/dist/helpers/date-helper.d.ts +4 -0
  78. package/dist/helpers/generate-triangle-points.d.ts +1 -0
  79. package/dist/helpers/get-all-descendants.d.ts +2 -0
  80. package/dist/helpers/get-change-task-metadata.d.ts +13 -0
  81. package/dist/helpers/get-child-out-of-parent-warnings.d.ts +2 -0
  82. package/dist/helpers/get-childs-and-roots.d.ts +5 -0
  83. package/dist/helpers/get-critical-path.d.ts +2 -0
  84. package/dist/helpers/get-date-by-offset.d.ts +2 -0
  85. package/dist/helpers/get-dates-diff.d.ts +2 -0
  86. package/dist/helpers/get-dependency-map-and-warnings.d.ts +2 -0
  87. package/dist/helpers/get-initial-closed-tasks.d.ts +2 -0
  88. package/dist/helpers/get-map-task-to-coordinates.d.ts +7 -0
  89. package/dist/helpers/get-map-task-to-global-index.d.ts +5 -0
  90. package/dist/helpers/get-map-task-to-nested-index.d.ts +2 -0
  91. package/dist/helpers/get-map-task-to-row-index-with-grouping.d.ts +7 -0
  92. package/dist/helpers/get-map-task-to-row-index.d.ts +10 -0
  93. package/dist/helpers/get-previous-next-working-date.d.ts +3 -0
  94. package/dist/helpers/get-relation-circle-by-coordinates.d.ts +2 -0
  95. package/dist/helpers/get-task-coordinates.d.ts +4 -0
  96. package/dist/helpers/get-task-row-index.d.ts +2 -0
  97. package/dist/helpers/get-task-to-has-dependency-warning-map.d.ts +2 -0
  98. package/dist/helpers/get-tasks-map.d.ts +5 -0
  99. package/dist/helpers/round-task-dates.d.ts +7 -0
  100. package/dist/helpers/sort-tasks.d.ts +2 -0
  101. package/dist/helpers/sort-visible-tasks.d.ts +2 -0
  102. package/dist/helpers/use-optimized-list.d.ts +24 -0
  103. package/dist/helpers/use-task-tooltip.d.ts +12 -0
  104. package/dist/index.d.ts +13 -0
  105. package/dist/selected-tasks/get-parent-tasks.d.ts +2 -0
  106. package/dist/selected-tasks/get-selected-tasks.d.ts +2 -0
  107. package/dist/selected-tasks/get-tasks-with-descendants.d.ts +2 -0
  108. package/dist/style.css +563 -0
  109. package/dist/suggestions/change-start-and-end-descendants.d.ts +10 -0
  110. package/dist/test/date-helper.test.d.ts +1 -0
  111. package/dist/test/gant.test.d.ts +1 -0
  112. package/dist/types/gantt-task-actions.d.ts +9 -0
  113. package/dist/types/public-types.d.ts +860 -0
  114. 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,9 @@
1
+ import React from "react";
2
+ type RelationLineProps = {
3
+ x1: number;
4
+ x2: number;
5
+ y1: number;
6
+ y2: number;
7
+ };
8
+ export declare const RelationLine: React.FC<RelationLineProps>;
9
+ 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,8 @@
1
+ import React from "react";
2
+ type BarProgressHandleProps = {
3
+ taskName: string;
4
+ progressPoint: string;
5
+ startMoveProgress: (clientX: number) => void;
6
+ };
7
+ export declare const BarProgressHandle: React.FC<BarProgressHandleProps>;
8
+ 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,3 @@
1
+ import React from "react";
2
+ import { ColumnProps } from "../../../types/public-types";
3
+ export declare const AddColumn: React.FC<ColumnProps>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ColumnProps } from "../../../types/public-types";
3
+ export declare const DateEndColumn: React.FC<ColumnProps>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ColumnProps } from "../../../types/public-types";
3
+ export declare const DateStartColumn: React.FC<ColumnProps>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ColumnProps } from "../../../types/public-types";
3
+ export declare const DeleteColumn: React.FC<ColumnProps>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ColumnProps } from "../../../types/public-types";
3
+ export declare const DependenciesColumn: React.FC<ColumnProps>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ColumnProps } from "../../../types/public-types";
3
+ export declare const EditColumn: React.FC<ColumnProps>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ColumnProps } from "../../../types/public-types";
3
+ export declare const TitleColumn: React.FC<ColumnProps>;
@@ -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,3 @@
1
+ import React from "react";
2
+ import { TaskListTableProps } from "../../types/public-types";
3
+ export declare const TaskListTableDefault: React.NamedExoticComponent<TaskListTableProps>;
@@ -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>;
@@ -0,0 +1,2 @@
1
+ export declare const ROW_DRAG_TYPE = "@@gannt/ROW_DRAG";
2
+ export declare const SCROLL_STEP = 10;
@@ -0,0 +1,2 @@
1
+ import type { ContextMenuOptionType } from "../types/public-types";
2
+ export declare const copyOption: ContextMenuOptionType;
@@ -0,0 +1,2 @@
1
+ import type { ContextMenuOptionType } from "../types/public-types";
2
+ export declare const cutOption: ContextMenuOptionType;
@@ -0,0 +1,2 @@
1
+ import type { ContextMenuOptionType } from "../types/public-types";
2
+ export declare const deleteOption: ContextMenuOptionType;
@@ -0,0 +1,4 @@
1
+ export { copyOption } from './copy';
2
+ export { cutOption } from './cut';
3
+ export { deleteOption } from './delete';
4
+ export { pasteOption } from './paste';
@@ -0,0 +1,2 @@
1
+ import type { ContextMenuOptionType } from '../types/public-types';
2
+ export declare const pasteOption: ContextMenuOptionType;