gantt-task-react-v 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 +155 -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 +18 -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 +13 -0
- package/dist/components/context-menu/index.d.ts +13 -0
- package/dist/components/context-menu/menu-option.d.ts +10 -0
- package/dist/components/context-menu-options/copy.d.ts +3 -0
- package/dist/components/context-menu-options/cut.d.ts +2 -0
- package/dist/components/context-menu-options/delete.d.ts +2 -0
- package/dist/components/context-menu-options/edit.d.ts +2 -0
- package/dist/components/context-menu-options/index.d.ts +5 -0
- package/dist/components/context-menu-options/paste.d.ts +2 -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-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 +4 -0
- package/dist/components/gantt/task-gantt-content.d.ts +45 -0
- package/dist/components/gantt/task-gantt.d.ts +21 -0
- package/dist/components/gantt/use-context-menu.d.ts +7 -0
- package/dist/components/gantt/use-create-relation.d.ts +18 -0
- package/dist/components/gantt/use-get-task-current-state.d.ts +15 -0
- package/dist/components/gantt/use-handle-action.d.ts +21 -0
- package/dist/components/gantt/use-holidays.d.ts +12 -0
- package/dist/components/gantt/use-horizontal-scrollbars.d.ts +9 -0
- package/dist/components/gantt/use-selection.d.ts +18 -0
- package/dist/components/gantt/use-tablelist-resize.d.ts +9 -0
- package/dist/components/gantt/use-task-drag.d.ts +28 -0
- package/dist/components/gantt/use-vertical-scrollbars.d.ts +11 -0
- package/dist/components/gantt-loader/index.d.ts +6 -0
- package/dist/components/gantt-locale/index.d.ts +8 -0
- package/dist/components/gantt-theme/default-theme.d.ts +2 -0
- package/dist/components/gantt-theme/gantt-theme-builder.d.ts +2 -0
- package/dist/components/gantt-theme/index.d.ts +9 -0
- package/dist/components/gantt-today/index.d.ts +12 -0
- package/dist/components/icons/add-icon.d.ts +2 -0
- package/dist/components/icons/copy-icon.d.ts +2 -0
- package/dist/components/icons/cut-icon.d.ts +2 -0
- package/dist/components/icons/delete-icon.d.ts +2 -0
- package/dist/components/icons/drag-indicator-icon.d.ts +2 -0
- package/dist/components/icons/edit-icon.d.ts +2 -0
- package/dist/components/icons/expand-less-icon.d.ts +2 -0
- package/dist/components/icons/expand-more-icon.d.ts +2 -0
- package/dist/components/icons/paste-icon.d.ts +2 -0
- package/dist/components/other/arrow.d.ts +22 -0
- package/dist/components/other/relation-line.d.ts +9 -0
- package/dist/components/other/tooltip.d.ts +18 -0
- package/dist/components/other/vertical-scroll.d.ts +11 -0
- package/dist/components/task-item/bar/bar-content-small.d.ts +6 -0
- package/dist/components/task-item/bar/bar-date-handle/index.d.ts +13 -0
- package/dist/components/task-item/bar/bar-default.d.ts +1 -0
- package/dist/components/task-item/bar/bar-display.d.ts +19 -0
- package/dist/components/task-item/bar/bar-progress-handle/index.d.ts +10 -0
- package/dist/components/task-item/bar/index.d.ts +3 -0
- package/dist/components/task-item/bar/types.d.ts +8 -0
- package/dist/components/task-item/bar-comparison/index.d.ts +13 -0
- package/dist/components/task-item/bar-relation/bar-relation-handle.d.ts +11 -0
- package/dist/components/task-item/bar-relation/index.d.ts +6 -0
- package/dist/components/task-item/milestone/index.d.ts +8 -0
- package/dist/components/task-item/project/project-display.d.ts +20 -0
- package/dist/components/task-item/task-item.d.ts +36 -0
- package/dist/components/task-item/task-label/index.d.ts +3 -0
- package/dist/components/task-item/task-label/task-center-label.d.ts +7 -0
- package/dist/components/task-item/task-label/task-outline-label.d.ts +3 -0
- package/dist/components/task-item/task-label/task-responsive-label.d.ts +7 -0
- package/dist/components/task-item/task-label/types.d.ts +11 -0
- package/dist/components/task-list/index.d.ts +42 -0
- package/dist/components/task-list/task-list-sortable-table/index.d.ts +3 -0
- package/dist/components/task-list/task-list-sortable-table/keyboardCoordinates.d.ts +3 -0
- package/dist/components/task-list/task-list-sortable-table/types.d.ts +6 -0
- package/dist/components/task-list/task-list-sortable-table/utilities.d.ts +8 -0
- package/dist/components/task-list/task-list-sortable-table-row/index.d.ts +3 -0
- package/dist/components/task-list/task-list-table/index.d.ts +3 -0
- package/dist/components/task-list/task-list-table-columns/add-column.d.ts +3 -0
- package/dist/components/task-list/task-list-table-columns/date-end-column.d.ts +3 -0
- package/dist/components/task-list/task-list-table-columns/date-start-column.d.ts +3 -0
- package/dist/components/task-list/task-list-table-columns/delete-column.d.ts +3 -0
- package/dist/components/task-list/task-list-table-columns/dependencies-column.d.ts +3 -0
- package/dist/components/task-list/task-list-table-columns/edit-column.d.ts +3 -0
- package/dist/components/task-list/task-list-table-columns/title-column.d.ts +3 -0
- package/dist/components/task-list/task-list-table-columns/use-task-list-columns-builder.d.ts +45 -0
- package/dist/components/task-list/task-list-table-headers/index.d.ts +3 -0
- package/dist/components/task-list/task-list-table-row/index.d.ts +3 -0
- package/dist/constants.d.ts +1 -0
- package/dist/gantt-task-react.es.js +19900 -0
- package/dist/gantt-task-react.umd.js +19917 -0
- package/dist/helpers/adjust-task-to-working-dates.d.ts +12 -0
- package/dist/helpers/bar-helper.d.ts +12 -0
- package/dist/helpers/check-has-children.d.ts +2 -0
- package/dist/helpers/check-is-descendant.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-childs-and-roots.d.ts +2 -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.d.ts +2 -0
- package/dist/helpers/get-map-task-to-coordinates.d.ts +3 -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.d.ts +6 -0
- package/dist/helpers/get-min-and-max-childs-map.d.ts +2 -0
- package/dist/helpers/get-next-working-date.d.ts +2 -0
- package/dist/helpers/get-previous-working-date.d.ts +2 -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-tasks-map.d.ts +5 -0
- package/dist/helpers/move-helper.d.ts +4 -0
- package/dist/helpers/obj-helper.d.ts +1 -0
- package/dist/helpers/round-task-dates.d.ts +2 -0
- package/dist/helpers/sort-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/i18n.d.ts +2 -0
- package/dist/index.d.ts +14 -0
- package/dist/locales/en.d.ts +2 -0
- package/dist/locales/index.d.ts +1 -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 +686 -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/common-types.d.ts +114 -0
- package/dist/types/gantt-task-actions.d.ts +9 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/internal-types.d.ts +222 -0
- package/dist/types/public-types.d.ts +538 -0
- package/dist/types/theme-locale.d.ts +30 -0
- package/dist/types/theme-types.d.ts +84 -0
- package/package.json +113 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Distances, RelationMoveTarget, Task } from "../../types";
|
|
3
|
+
type ArrowProps = {
|
|
4
|
+
distances: Distances;
|
|
5
|
+
taskFrom: Task;
|
|
6
|
+
targetFrom: RelationMoveTarget;
|
|
7
|
+
fromX1: number;
|
|
8
|
+
fromX2: number;
|
|
9
|
+
fromY: number;
|
|
10
|
+
taskTo: Task;
|
|
11
|
+
targetTo: RelationMoveTarget;
|
|
12
|
+
toX1: number;
|
|
13
|
+
toX2: number;
|
|
14
|
+
toY: number;
|
|
15
|
+
fullRowHeight: number;
|
|
16
|
+
taskHeight: number;
|
|
17
|
+
isCritical: boolean;
|
|
18
|
+
rtl: boolean;
|
|
19
|
+
onArrowDoubleClick?: (taskFrom: Task, taskTo: Task) => void;
|
|
20
|
+
};
|
|
21
|
+
export declare const Arrow: React.NamedExoticComponent<ArrowProps>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { ComponentType } from "react";
|
|
2
|
+
import type { Strategy } from "@floating-ui/dom";
|
|
3
|
+
import type { Task } from "../../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
|
+
TooltipContent: ComponentType<{
|
|
12
|
+
task: Task;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
export declare const Tooltip: React.FC<TooltipProps>;
|
|
16
|
+
export declare const StandardTooltipContent: React.FC<{
|
|
17
|
+
task: Task;
|
|
18
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { RefObject, SyntheticEvent } from "react";
|
|
3
|
+
export declare const VerticalScroll: React.FC<{
|
|
4
|
+
ganttHeight: number;
|
|
5
|
+
ganttFullHeight: number;
|
|
6
|
+
headerHeight: number;
|
|
7
|
+
isChangeInProgress: boolean;
|
|
8
|
+
onScroll: (event: SyntheticEvent<HTMLDivElement>) => void;
|
|
9
|
+
rtl: boolean;
|
|
10
|
+
verticalScrollbarRef: RefObject<HTMLDivElement>;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TaskItemProps } from "../task-item";
|
|
3
|
+
import type { TaskBarMoveAction } from "../../../types";
|
|
4
|
+
export declare const BarContentSmall: React.FC<TaskItemProps & {
|
|
5
|
+
onTaskEventStart: (action: TaskBarMoveAction, clientX: number) => void;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type BarDateHandleProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
dataTestId: string;
|
|
5
|
+
barCornerRadius: number;
|
|
6
|
+
height: number;
|
|
7
|
+
startMove: (clientX: number) => void;
|
|
8
|
+
width: number;
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const BarDateHandle: React.FC<BarDateHandleProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
|
+
import { TaskId } from "../../../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
|
+
taskId: TaskId;
|
|
13
|
+
width: number;
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
customStyle?: CSSProperties;
|
|
17
|
+
};
|
|
18
|
+
export declare const BarDisplay: React.FC<BarDisplayProps>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TaskId } from "../../../../types";
|
|
3
|
+
type BarProgressHandleProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
taskId: TaskId;
|
|
6
|
+
progressPoint: string;
|
|
7
|
+
startMoveProgress: (clientX: number) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const BarProgressHandle: React.FC<BarProgressHandleProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TaskItemProps } from "../task-item";
|
|
2
|
+
import { TaskBarMoveAction } from "../../../types";
|
|
3
|
+
import { PropsWithChildren } from "react";
|
|
4
|
+
export interface BarProps extends Omit<TaskItemProps, "renderCustomLabel">, PropsWithChildren {
|
|
5
|
+
onLeftRelationTriggerMouseDown: () => void;
|
|
6
|
+
onRightRelationTriggerMouseDown: () => void;
|
|
7
|
+
onTaskEventStart: (action: TaskBarMoveAction, clientX: number) => void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TaskComparisonDatesCoordinates } from "../../../types";
|
|
3
|
+
interface Props extends Omit<TaskComparisonDatesCoordinates, "x" | "y"> {
|
|
4
|
+
barCornerRadius: number;
|
|
5
|
+
borderHeight: number;
|
|
6
|
+
yOffset: number;
|
|
7
|
+
isWarning?: boolean;
|
|
8
|
+
isPlan?: boolean;
|
|
9
|
+
isCritical?: boolean;
|
|
10
|
+
inProgress?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const BarComparison: React.FC<Props>;
|
|
13
|
+
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 { PropsWithChildren } from "react";
|
|
2
|
+
interface Props extends PropsWithChildren {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const BarRelationWrapper: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<SVGGElement>>>;
|
|
6
|
+
export * from "./bar-relation-handle";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
|
+
import type { TaskItemProps } from "../task-item";
|
|
3
|
+
import type { TaskBarMoveAction } from "../../../types";
|
|
4
|
+
export declare const Milestone: React.FC<TaskItemProps & {
|
|
5
|
+
onLeftRelationTriggerMouseDown: () => void;
|
|
6
|
+
onRightRelationTriggerMouseDown: () => void;
|
|
7
|
+
onTaskEventStart: (action: TaskBarMoveAction, clientX: number) => void;
|
|
8
|
+
} & PropsWithChildren>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
|
+
type ProjectDisplayProps = {
|
|
3
|
+
barCornerRadius: number;
|
|
4
|
+
isCritical: boolean;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
hasChildren: boolean;
|
|
7
|
+
taskHeight: number;
|
|
8
|
+
taskHalfHeight: number;
|
|
9
|
+
taskYOffset: number;
|
|
10
|
+
progressWidth: number;
|
|
11
|
+
progressX: number;
|
|
12
|
+
startMoveFullTask: (clientX: number) => void;
|
|
13
|
+
taskName: string;
|
|
14
|
+
width: number;
|
|
15
|
+
x1: number;
|
|
16
|
+
x2: number;
|
|
17
|
+
customStyle?: CSSProperties;
|
|
18
|
+
};
|
|
19
|
+
export declare const ProjectDisplay: React.FC<ProjectDisplayProps>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { MouseEvent } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Distances, GanttRelationEvent, GanttTaskBarActions, RelationKind, RelationMoveTarget, RenderCustomLabel, Task, TaskBarMoveAction, RenderTask, ViewMode } from "../../types";
|
|
4
|
+
export interface TaskItemProps extends Omit<GanttTaskBarActions, "taskBarMovingAction"> {
|
|
5
|
+
hasChildren: boolean;
|
|
6
|
+
progressWidth: number;
|
|
7
|
+
progressX: number;
|
|
8
|
+
task: Task;
|
|
9
|
+
taskYOffset: number;
|
|
10
|
+
width: number;
|
|
11
|
+
x1: number;
|
|
12
|
+
x2: number;
|
|
13
|
+
distances: Distances;
|
|
14
|
+
taskHeight: number;
|
|
15
|
+
taskHalfHeight: number;
|
|
16
|
+
authorizedRelations: RelationKind[];
|
|
17
|
+
ganttRelationEvent: GanttRelationEvent;
|
|
18
|
+
canDelete: boolean;
|
|
19
|
+
isSelected: boolean;
|
|
20
|
+
isCritical: boolean;
|
|
21
|
+
movingAction: TaskBarMoveAction | null;
|
|
22
|
+
rtl: boolean;
|
|
23
|
+
isRelationChangeable: (task: Task) => boolean;
|
|
24
|
+
isProgressChangeable: (task: Task) => boolean;
|
|
25
|
+
isDateChangeable: (task: Task) => boolean;
|
|
26
|
+
onRelationStart: (target: RelationMoveTarget, selectedTask: Task) => void;
|
|
27
|
+
onDeleteTask: (task: RenderTask) => void;
|
|
28
|
+
onSelectTaskOnMouseDown: (taskId: string, event: MouseEvent) => void;
|
|
29
|
+
onClick?: (task: Task, event: React.MouseEvent<SVGElement>) => void;
|
|
30
|
+
onDoubleClick?: (task: Task) => void;
|
|
31
|
+
onEventStart: (action: TaskBarMoveAction, selectedTask: Task, clientX: number, taskRootNode: Element) => void;
|
|
32
|
+
onTooltipTask: (task: Task | null, element: Element | null) => void;
|
|
33
|
+
renderCustomLabel?: RenderCustomLabel;
|
|
34
|
+
viewMode: ViewMode;
|
|
35
|
+
}
|
|
36
|
+
export declare const TaskItem: React.NamedExoticComponent<TaskItemProps>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { MouseEvent, RefObject } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AllowReorderTask, ChildByLevelMap, Column, DateSetup, DependencyMap, Distances, GanttRenderIconsProps, MapTaskToNestedIndex, OnResizeColumn, Task, RenderTask, TableRenderBottomProps } from "../../types";
|
|
4
|
+
export type TaskListProps = {
|
|
5
|
+
ganttRef: RefObject<HTMLDivElement>;
|
|
6
|
+
allowReorderTask?: AllowReorderTask;
|
|
7
|
+
canReorderTasks?: boolean;
|
|
8
|
+
canResizeColumns?: boolean;
|
|
9
|
+
childTasksMap: ChildByLevelMap;
|
|
10
|
+
columnsProp: readonly Column[];
|
|
11
|
+
cutIdsMirror: Readonly<Record<string, true>>;
|
|
12
|
+
dateSetup: DateSetup;
|
|
13
|
+
dependencyMap: DependencyMap;
|
|
14
|
+
distances: Distances;
|
|
15
|
+
fullRowHeight: number;
|
|
16
|
+
ganttFullHeight: number;
|
|
17
|
+
ganttHeight: number;
|
|
18
|
+
getTaskCurrentState: (task: Task) => Task;
|
|
19
|
+
handleAddTask: (task: Task | null) => void;
|
|
20
|
+
handleDeleteTasks: (task: RenderTask[]) => void;
|
|
21
|
+
handleEditTask: (task: RenderTask) => void;
|
|
22
|
+
handleMoveTaskBefore: (target: RenderTask, taskForMove: RenderTask) => void;
|
|
23
|
+
handleMoveTaskAfter: (target: RenderTask, taskForMove: RenderTask) => void;
|
|
24
|
+
handleMoveTasksInside: (parent: Task, childs: readonly RenderTask[]) => void;
|
|
25
|
+
handleOpenContextMenu: (task: RenderTask, clientX: number, clientY: number) => void;
|
|
26
|
+
icons?: Partial<GanttRenderIconsProps>;
|
|
27
|
+
isShowTaskNumbers?: boolean;
|
|
28
|
+
mapTaskToNestedIndex: MapTaskToNestedIndex;
|
|
29
|
+
onClick?: (task: RenderTask) => void;
|
|
30
|
+
onExpanderClick: (task: Task) => void;
|
|
31
|
+
scrollToBottomStep: () => void;
|
|
32
|
+
scrollToTask: (task: Task) => void;
|
|
33
|
+
scrollToTopStep: () => void;
|
|
34
|
+
selectTaskOnMouseDown: (taskId: string, event: MouseEvent) => void;
|
|
35
|
+
selectedIdsMirror: Readonly<Record<string, true>>;
|
|
36
|
+
taskListContainerRef: RefObject<HTMLDivElement>;
|
|
37
|
+
taskListRef: RefObject<HTMLDivElement>;
|
|
38
|
+
tasks: readonly RenderTask[];
|
|
39
|
+
onResizeColumn?: OnResizeColumn;
|
|
40
|
+
tableBottom?: TableRenderBottomProps;
|
|
41
|
+
};
|
|
42
|
+
export declare const TaskList: React.NamedExoticComponent<TaskListProps>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { KeyboardCoordinateGetter, UniqueIdentifier } from "@dnd-kit/core";
|
|
2
|
+
import type { SensorContext } from "./types";
|
|
3
|
+
export declare const sortableTreeKeyboardCoordinates: (context: SensorContext, indicator: boolean, indentationWidth: number, getTaskDepth: (id: UniqueIdentifier) => number) => KeyboardCoordinateGetter;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { UniqueIdentifier } from "@dnd-kit/core";
|
|
2
|
+
import { RenderTask } from "../../../types";
|
|
3
|
+
export declare function getProjection(items: RenderTask[], activeId: UniqueIdentifier, overId: UniqueIdentifier, dragOffset: number, indentationWidth: number, getTaskDepth: (id: UniqueIdentifier) => number): {
|
|
4
|
+
depth: number;
|
|
5
|
+
maxDepth: number;
|
|
6
|
+
minDepth: number;
|
|
7
|
+
parent: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function useTaskListColumnsBuilder(): {
|
|
3
|
+
createNameColumn: (title: React.ReactNode | null, width?: number) => {
|
|
4
|
+
id: string;
|
|
5
|
+
component: React.FC<import("../../..").ColumnProps>;
|
|
6
|
+
width: number;
|
|
7
|
+
title: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
createStartDateColumn: (title: React.ReactNode | null, width?: number) => {
|
|
10
|
+
id: string;
|
|
11
|
+
component: React.FC<import("../../..").ColumnProps>;
|
|
12
|
+
width: number;
|
|
13
|
+
title: React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
createEndDateColumn: (title: React.ReactNode | null, width?: number) => {
|
|
16
|
+
id: string;
|
|
17
|
+
component: React.FC<import("../../..").ColumnProps>;
|
|
18
|
+
width: number;
|
|
19
|
+
title: React.ReactNode;
|
|
20
|
+
};
|
|
21
|
+
createDependenciesColumn: (title: React.ReactNode | null, width?: number) => {
|
|
22
|
+
id: string;
|
|
23
|
+
component: React.FC<import("../../..").ColumnProps>;
|
|
24
|
+
width: number;
|
|
25
|
+
title: React.ReactNode;
|
|
26
|
+
};
|
|
27
|
+
createDeleteActionColumn: (width?: number) => {
|
|
28
|
+
id: string;
|
|
29
|
+
component: React.FC<import("../../..").ColumnProps>;
|
|
30
|
+
width: number;
|
|
31
|
+
canResize: boolean;
|
|
32
|
+
};
|
|
33
|
+
createEditActionColumn: (width?: number) => {
|
|
34
|
+
id: string;
|
|
35
|
+
component: React.FC<import("../../..").ColumnProps>;
|
|
36
|
+
width: number;
|
|
37
|
+
canResize: boolean;
|
|
38
|
+
};
|
|
39
|
+
createAddActionColumn: (width?: number) => {
|
|
40
|
+
id: string;
|
|
41
|
+
component: React.FC<import("../../..").ColumnProps>;
|
|
42
|
+
width: number;
|
|
43
|
+
canResize: boolean;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TaskListTableRowProps } from "../../../types";
|
|
3
|
+
export declare const TaskListTableRow: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<TaskListTableRowProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SCROLL_STEP = 10;
|