@itcase/gantt-old 0.0.0-stage → 1.2.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/README.md +0 -3
- package/dist/css/components/Chart/Chart.css +15 -0
- package/dist/css/components/Dependencies/Dependence.css +6 -0
- package/dist/css/components/Divider/Divider.css +94 -0
- package/dist/css/components/EmployeesList/EmployeesList.css +41 -0
- package/dist/css/components/GroupBar/GroupBar.css +20 -0
- package/dist/css/components/Header/Header.css +55 -0
- package/dist/css/components/InvalidTaskBar/InvalidTaskBar.css +23 -0
- package/dist/css/components/Scale/Scale.css +62 -0
- package/dist/css/components/ScrollBar/ScrollBar.css +16 -0
- package/dist/css/components/ScrollTop/ScrollTop.css +16 -0
- package/dist/css/components/SelectionIndicator/SelectionIndicator.css +7 -0
- package/dist/css/components/TableBody/RowToggler.css +25 -0
- package/dist/css/components/TableInterval/TableInterval.css +65 -0
- package/dist/css/components/TableTask/TableTask.css +41 -0
- package/dist/css/components/TaskBar/TaskBar.css +96 -0
- package/dist/css/components/TaskBarThumb/TaskBarThumb.css +35 -0
- package/dist/css/components/TimeIndicator/TimeIndicator.css +18 -0
- package/dist/css/components/Today/Today.css +13 -0
- package/dist/css/styles/main.css +758 -0
- package/dist/css/styles/mediaqueries.css +66 -0
- package/dist/css/styles/mixin_elevation.css +33 -0
- package/dist/css/styles/mixin_fill-gradient.css +23 -0
- package/dist/css/styles/mixin_global.css +54 -0
- package/dist/esm/index.js +3592 -0
- package/dist/types/components/BarList/BarList.d.ts +3 -0
- package/dist/types/components/BarList/index.d.ts +2 -0
- package/dist/types/components/BarThumbList/BarThumbList.d.ts +3 -0
- package/dist/types/components/BarThumbList/index.d.ts +2 -0
- package/dist/types/components/Chart/Chart.d.ts +3 -0
- package/dist/types/components/Chart/index.d.ts +2 -0
- package/dist/types/components/ContextMenu/index.d.ts +2 -0
- package/dist/types/components/Dependencies/Dependence.d.ts +7 -0
- package/dist/types/components/Dependencies/Dependencies.d.ts +3 -0
- package/dist/types/components/Dependencies/index.d.ts +2 -0
- package/dist/types/components/Divider/Divider.d.ts +3 -0
- package/dist/types/components/Divider/index.d.ts +2 -0
- package/dist/types/components/DragGroupOverlay/DragGroupOverlay.d.ts +6 -0
- package/dist/types/components/DragGroupOverlay/dragGroupOverlay.interface.d.ts +8 -0
- package/dist/types/components/DragGroupOverlay/index.d.ts +2 -0
- package/dist/types/components/DragPlaceOverlay/DragPlaceOverlay.d.ts +6 -0
- package/dist/types/components/DragPlaceOverlay/dragPlaceOverlay.interface.d.ts +6 -0
- package/dist/types/components/DragPlaceOverlay/index.d.ts +2 -0
- package/dist/types/components/DragPresent/DragPresent.d.ts +3 -0
- package/dist/types/components/DragPresent/index.d.ts +2 -0
- package/dist/types/components/DragResize/AutoScroller.d.ts +22 -0
- package/dist/types/components/DragResize/DragResize.d.ts +30 -0
- package/dist/types/components/DragResize/index.d.ts +2 -0
- package/dist/types/components/DragTaskOverlay/DragTaskOverlay.d.ts +6 -0
- package/dist/types/components/DragTaskOverlay/DragTaskOverlay.interface.d.ts +7 -0
- package/dist/types/components/DragTaskOverlay/index.d.ts +2 -0
- package/dist/types/components/Draggable/Draggable.d.ts +21 -0
- package/dist/types/components/Draggable/DraggableOverlay.d.ts +9 -0
- package/dist/types/components/Draggable/draggable-svg.d.ts +9 -0
- package/dist/types/components/Draggable/index.d.ts +3 -0
- package/dist/types/components/EmployeesList/EmployeesList.d.ts +6 -0
- package/dist/types/components/EmployeesList/EmployeesList.interface.d.ts +13 -0
- package/dist/types/components/EmployeesList/index.d.ts +2 -0
- package/dist/types/components/Gantt/Gantt.d.ts +59 -0
- package/dist/types/components/GroupBar/GroupBar.d.ts +7 -0
- package/dist/types/components/GroupBar/index.d.ts +2 -0
- package/dist/types/components/GroupContainer/GroupContainer.d.ts +14 -0
- package/dist/types/components/GroupContainer/index.d.ts +3 -0
- package/dist/types/components/Header/Header.d.ts +3 -0
- package/dist/types/components/Header/index.d.ts +2 -0
- package/dist/types/components/InvalidTaskBar/InvalidTaskBar.d.ts +7 -0
- package/dist/types/components/InvalidTaskBar/index.d.ts +2 -0
- package/dist/types/components/Item/Item.d.ts +37 -0
- package/dist/types/components/Item/components/Action/Action.d.ts +9 -0
- package/dist/types/components/Item/components/Action/index.d.ts +2 -0
- package/dist/types/components/Item/components/Handle/Handle.d.ts +3 -0
- package/dist/types/components/Item/components/Handle/index.d.ts +1 -0
- package/dist/types/components/Item/components/Remove/Remove.d.ts +2 -0
- package/dist/types/components/Item/components/Remove/index.d.ts +1 -0
- package/dist/types/components/Item/components/index.d.ts +3 -0
- package/dist/types/components/Item/index.d.ts +3 -0
- package/dist/types/components/MultipleContainers/MultipleContainers.d.ts +5 -0
- package/dist/types/components/MultipleContainers/index.d.ts +2 -0
- package/dist/types/components/MultipleContainers/multipleContainers.interface.d.ts +26 -0
- package/dist/types/components/MultipleContainers/multipleContainersKeyboardCoordinates.d.ts +2 -0
- package/dist/types/components/PlaceContainer/PlaceContainer.d.ts +15 -0
- package/dist/types/components/PlaceContainer/index.d.ts +3 -0
- package/dist/types/components/Scale/Scale.d.ts +6 -0
- package/dist/types/components/Scale/index.d.ts +2 -0
- package/dist/types/components/ScrollBar/ScrollBar.d.ts +3 -0
- package/dist/types/components/ScrollBar/index.d.ts +2 -0
- package/dist/types/components/ScrollTop/ScrollTop.d.ts +3 -0
- package/dist/types/components/ScrollTop/index.d.ts +2 -0
- package/dist/types/components/SelectionIndicator/SelectionIndicator.d.ts +3 -0
- package/dist/types/components/SelectionIndicator/index.d.ts +2 -0
- package/dist/types/components/SortableContainer/SortableContainer.d.ts +13 -0
- package/dist/types/components/SortableContainer/index.d.ts +2 -0
- package/dist/types/components/SortableItem/SortableItem.d.ts +3 -0
- package/dist/types/components/SortableItem/index.d.ts +2 -0
- package/dist/types/components/SortableItem/sortableItem.interface.d.ts +20 -0
- package/dist/types/components/SortablePlace/SortablePlace.d.ts +16 -0
- package/dist/types/components/SortablePlace/index.d.ts +2 -0
- package/dist/types/components/Table/Table.d.ts +5 -0
- package/dist/types/components/Table/index.d.ts +2 -0
- package/dist/types/components/TableBody/RowToggler.d.ts +9 -0
- package/dist/types/components/TableBody/TableBody.d.ts +3 -0
- package/dist/types/components/TableBody/index.d.ts +2 -0
- package/dist/types/components/TableInterval/TableInterval.d.ts +3 -0
- package/dist/types/components/TableInterval/index.d.ts +2 -0
- package/dist/types/components/TableTask/TableTask.d.ts +3 -0
- package/dist/types/components/TableTask/index.d.ts +2 -0
- package/dist/types/components/TaskBar/TaskBar.d.ts +7 -0
- package/dist/types/components/TaskBar/index.d.ts +2 -0
- package/dist/types/components/TaskBarThumb/TaskBarThumb.d.ts +7 -0
- package/dist/types/components/TaskBarThumb/index.d.ts +2 -0
- package/dist/types/components/TimeIndicator/TimeIndicator.d.ts +3 -0
- package/dist/types/components/TimeIndicator/index.d.ts +2 -0
- package/dist/types/components/Today/Today.d.ts +3 -0
- package/dist/types/components/Today/index.d.ts +2 -0
- package/dist/types/config/constants.d.ts +7 -0
- package/dist/types/context/GanttContext.d.ts +44 -0
- package/dist/types/hooks/useDragResize.d.ts +10 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/locales/index.d.ts +1 -0
- package/dist/types/locales/ru-ru.d.ts +2 -0
- package/dist/types/locales/types.d.ts +31 -0
- package/dist/types/providers/TasksPropsProvider.d.ts +3 -0
- package/dist/types/store/GanttStore.d.ts +181 -0
- package/dist/types/types/types.d.ts +262 -0
- package/dist/types/utils/index.d.ts +12 -0
- package/package.json +106 -4
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DragOverlayProps } from './dragGroupOverlay.interface';
|
|
2
|
+
declare function DragGroupOverlay(props: DragOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const _default: typeof DragGroupOverlay & {
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DragPlaceOverlayProps } from './dragPlaceOverlay.interface';
|
|
2
|
+
declare function DragPlaceOverlay(props: DragPlaceOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const _default: typeof DragPlaceOverlay & {
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare class AutoScroller {
|
|
2
|
+
constructor({ scroller, rate, space, onAutoScroll, reachEdge, }: {
|
|
3
|
+
scroller?: HTMLElement;
|
|
4
|
+
rate?: number;
|
|
5
|
+
space?: number;
|
|
6
|
+
onAutoScroll: (delta: number) => void;
|
|
7
|
+
reachEdge: (position: 'left' | 'right') => boolean;
|
|
8
|
+
});
|
|
9
|
+
rate: number;
|
|
10
|
+
space: number;
|
|
11
|
+
scroller: HTMLElement | null;
|
|
12
|
+
autoScrollPos: number;
|
|
13
|
+
clientX: number | null;
|
|
14
|
+
scrollTimer: number | null;
|
|
15
|
+
onAutoScroll: (delta: number) => void;
|
|
16
|
+
reachEdge: (position: 'left' | 'right') => boolean;
|
|
17
|
+
handleDraggingMouseMove: (event: MouseEvent) => void;
|
|
18
|
+
handleScroll: (position: "left" | "right") => void;
|
|
19
|
+
start: () => void;
|
|
20
|
+
stop: () => void;
|
|
21
|
+
}
|
|
22
|
+
export default AutoScroller;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface DragResizeProps extends React.HTMLProps<HTMLDivElement> {
|
|
3
|
+
autoScroll?: boolean;
|
|
4
|
+
clickStart?: boolean;
|
|
5
|
+
defaultSize: {
|
|
6
|
+
width: number;
|
|
7
|
+
x: number;
|
|
8
|
+
};
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
grid?: number;
|
|
11
|
+
minWidth?: number;
|
|
12
|
+
reachEdge?: (position: 'left' | 'right') => boolean;
|
|
13
|
+
scroller?: HTMLElement;
|
|
14
|
+
type: 'left' | 'move' | 'right';
|
|
15
|
+
onAutoScroll?: (delta: number) => void;
|
|
16
|
+
onBeforeResize?: ({ width, x }: {
|
|
17
|
+
width: number;
|
|
18
|
+
x: number;
|
|
19
|
+
}) => any;
|
|
20
|
+
onResize: ({ width, x }: {
|
|
21
|
+
width: number;
|
|
22
|
+
x: number;
|
|
23
|
+
}) => void;
|
|
24
|
+
onResizeEnd?: ({ width, x }: {
|
|
25
|
+
width: number;
|
|
26
|
+
x: number;
|
|
27
|
+
}) => void;
|
|
28
|
+
}
|
|
29
|
+
declare const _default: React.FunctionComponent<DragResizeProps>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DragOverlayProps } from './DragTaskOverlay.interface';
|
|
2
|
+
declare function DragTaskOverlay(props: DragOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const _default: typeof DragTaskOverlay & {
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DraggableSyntheticListeners } from '@dnd-kit/core';
|
|
3
|
+
import type { Transform } from '@dnd-kit/utilities';
|
|
4
|
+
export declare enum Axis {
|
|
5
|
+
All = 0,
|
|
6
|
+
Vertical = 1,
|
|
7
|
+
Horizontal = 2
|
|
8
|
+
}
|
|
9
|
+
interface Props {
|
|
10
|
+
axis?: Axis;
|
|
11
|
+
dragOverlay?: boolean;
|
|
12
|
+
dragging?: boolean;
|
|
13
|
+
handle?: boolean;
|
|
14
|
+
label?: string;
|
|
15
|
+
listeners?: DraggableSyntheticListeners;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
buttonStyle?: React.CSSProperties;
|
|
18
|
+
transform?: Transform | null;
|
|
19
|
+
}
|
|
20
|
+
declare const Draggable: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLButtonElement>>;
|
|
21
|
+
export default Draggable;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { ComponentProps } from 'react';
|
|
2
|
+
import type { DropAnimation } from '@dnd-kit/core';
|
|
3
|
+
import Draggable from './Draggable';
|
|
4
|
+
interface Props {
|
|
5
|
+
axis?: ComponentProps<typeof Draggable>['axis'];
|
|
6
|
+
dropAnimation?: DropAnimation | null;
|
|
7
|
+
}
|
|
8
|
+
declare function DraggableOverlay({ axis, dropAnimation }: Props): React.ReactPortal;
|
|
9
|
+
export default DraggableOverlay;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const draggable: import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const draggableVertical: import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const draggableHorizontal: import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
draggable: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
draggableVertical: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
draggableHorizontal: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IEmployeesListProps } from './EmployeesList.interface';
|
|
2
|
+
declare function EmployeesList(props: IEmployeesListProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const _default: typeof EmployeesList & {
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface IEmployeesListProps {
|
|
2
|
+
avatarChars?: string;
|
|
3
|
+
onClickAddAssignee?: () => void;
|
|
4
|
+
showCountUsers?: number;
|
|
5
|
+
src?: string;
|
|
6
|
+
users: {
|
|
7
|
+
id: number;
|
|
8
|
+
avatar: string;
|
|
9
|
+
last_name: string;
|
|
10
|
+
first_name: string;
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
13
|
+
export type { IEmployeesListProps };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Dayjs } from 'dayjs';
|
|
3
|
+
import type { GanttContext } from '../../context/GanttContext';
|
|
4
|
+
import type { DefaultRecordType, Gantt, iTasksGroup } from '../../types/types';
|
|
5
|
+
export interface GanttRef {
|
|
6
|
+
backToday: () => void;
|
|
7
|
+
getWidthByDate: (dt_begin: Dayjs, dt_end: Dayjs) => number;
|
|
8
|
+
}
|
|
9
|
+
export interface GanttProps<RecordType = DefaultRecordType> {
|
|
10
|
+
alwaysShowTaskBar?: boolean;
|
|
11
|
+
columns: any;
|
|
12
|
+
/**
|
|
13
|
+
* Custom date filter dimension
|
|
14
|
+
*/
|
|
15
|
+
customSights?: Gantt.ISightConfig[];
|
|
16
|
+
data: Gantt.Record<RecordType>[];
|
|
17
|
+
dependencies?: Gantt.Dependence[];
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
endDateKey?: string;
|
|
20
|
+
expandIcon?: GanttContext<RecordType>['expandIcon'];
|
|
21
|
+
getBarColor?: GanttContext<RecordType>['getBarColor'];
|
|
22
|
+
/**
|
|
23
|
+
* Hide the left table
|
|
24
|
+
*/
|
|
25
|
+
hideTable?: boolean;
|
|
26
|
+
innerRef?: React.MutableRefObject<GanttRef>;
|
|
27
|
+
maxDateLimit?: string | null;
|
|
28
|
+
mediaUrl?: string;
|
|
29
|
+
minDateLimit?: string | null;
|
|
30
|
+
renderBar?: GanttContext<RecordType>['renderBar'];
|
|
31
|
+
renderBarThumb?: GanttContext<RecordType>['renderBarThumb'];
|
|
32
|
+
renderGroupBar?: GanttContext<RecordType>['renderGroupBar'];
|
|
33
|
+
renderInvalidBar?: GanttContext<RecordType>['renderInvalidBar'];
|
|
34
|
+
renderLeftText?: GanttContext<RecordType>['renderLeftText'];
|
|
35
|
+
renderRightText?: GanttContext<RecordType>['renderLeftText'];
|
|
36
|
+
rowHeight?: number;
|
|
37
|
+
scrollTop?: GanttContext<RecordType>['scrollTop'];
|
|
38
|
+
showBackToday?: GanttContext<RecordType>['showBackToday'];
|
|
39
|
+
showUnitSwitch?: GanttContext<RecordType>['showUnitSwitch'];
|
|
40
|
+
startDateKey?: string;
|
|
41
|
+
tableCollapseAble?: GanttContext<RecordType>['tableCollapseAble'];
|
|
42
|
+
tableIndent?: GanttContext<RecordType>['tableIndent'];
|
|
43
|
+
unit?: Gantt.Sight;
|
|
44
|
+
isRestDay?: (date: string) => boolean;
|
|
45
|
+
onAddTaskAssignee?: (taskId: number) => any;
|
|
46
|
+
onBarClick?: GanttContext<RecordType>['onBarClick'];
|
|
47
|
+
onClickTaskItem?: GanttContext<RecordType>['onClickTaskItem'];
|
|
48
|
+
onCreateNewTask?: (newTaskData: any, groupId: number | string) => void;
|
|
49
|
+
onDoubleClickTaskItem?: GanttContext<RecordType>['onDoubleClickTaskItem'];
|
|
50
|
+
onExpand?: GanttContext<RecordType>['onExpand'];
|
|
51
|
+
onGroupSortingChange?: (updatedGroupsList: any[], placeId: number) => void;
|
|
52
|
+
onMoveTaskToAnotherGroup?: (newGroup: any, oldGroup: any, movedTask: any) => Promise<boolean>;
|
|
53
|
+
onPlaceSortingChange?: (updatedPlacesList: any[]) => void;
|
|
54
|
+
onRow?: GanttContext<RecordType>['onRow'];
|
|
55
|
+
onSortingChange?: (updatedGroup: iTasksGroup) => Promise<boolean>;
|
|
56
|
+
onUpdate: (record: any, dt_begin: string, dt_end: string) => Promise<boolean>;
|
|
57
|
+
}
|
|
58
|
+
declare const GanttComponent: <RecordType extends DefaultRecordType>(props: GanttProps<RecordType>) => import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export default GanttComponent;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface iProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
columns?: number;
|
|
5
|
+
groupData?: unknown;
|
|
6
|
+
handleProps?: React.HTMLAttributes<unknown>;
|
|
7
|
+
handleToggleCollapse?(): void;
|
|
8
|
+
placeholder?: boolean;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
onClick?(): void;
|
|
11
|
+
onRemove?(): void;
|
|
12
|
+
}
|
|
13
|
+
declare const GroupContainer: React.ForwardRefExoticComponent<iProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export default GroupContainer;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DraggableSyntheticListeners } from '@dnd-kit/core';
|
|
3
|
+
import { SyntheticListenerMap } from '@dnd-kit/core/dist/hooks/utilities';
|
|
4
|
+
import type { Transform } from '@dnd-kit/utilities';
|
|
5
|
+
export interface Props {
|
|
6
|
+
dragOverlay?: boolean;
|
|
7
|
+
color?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
dragging?: boolean;
|
|
10
|
+
handle?: boolean;
|
|
11
|
+
handleProps?: SyntheticListenerMap | SyntheticListenerMap;
|
|
12
|
+
height?: number;
|
|
13
|
+
index?: number;
|
|
14
|
+
fadeIn?: boolean;
|
|
15
|
+
transform?: Transform | null;
|
|
16
|
+
listeners?: DraggableSyntheticListeners;
|
|
17
|
+
sorting?: boolean;
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
transition?: string | null;
|
|
20
|
+
wrapperStyle?: React.CSSProperties;
|
|
21
|
+
onRemove?(): void;
|
|
22
|
+
renderItem?(args: {
|
|
23
|
+
dragOverlay: boolean;
|
|
24
|
+
dragging: boolean;
|
|
25
|
+
sorting: boolean;
|
|
26
|
+
index: number | undefined;
|
|
27
|
+
fadeIn: boolean;
|
|
28
|
+
listeners: DraggableSyntheticListeners;
|
|
29
|
+
ref: React.Ref<HTMLElement>;
|
|
30
|
+
style: React.CSSProperties | undefined;
|
|
31
|
+
transform: Props['transform'];
|
|
32
|
+
transition: Props['transition'];
|
|
33
|
+
}): React.ReactElement;
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
declare const Item: React.MemoExoticComponent<React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLLIElement>>>;
|
|
37
|
+
export default Item;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
export interface Props extends React.HTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
active?: {
|
|
4
|
+
fill: string;
|
|
5
|
+
background: string;
|
|
6
|
+
};
|
|
7
|
+
cursor?: CSSProperties['cursor'];
|
|
8
|
+
}
|
|
9
|
+
export declare const Action: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Handle } from './Handle';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Remove } from './Remove';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CancelDrop, KeyboardCoordinateGetter, Modifiers, UniqueIdentifier } from '@dnd-kit/core';
|
|
2
|
+
import { SortingStrategy } from '@dnd-kit/sortable';
|
|
3
|
+
import { iTaskPlace } from '../../types/types';
|
|
4
|
+
export type Items = Record<UniqueIdentifier, any[]>;
|
|
5
|
+
export interface iMultipleContainersProps {
|
|
6
|
+
adjustScale?: boolean;
|
|
7
|
+
cancelDrop?: CancelDrop;
|
|
8
|
+
containerStyle?: React.CSSProperties;
|
|
9
|
+
updateTasksSorting?: (updatedData: any, overContainer?: any) => Promise<boolean>;
|
|
10
|
+
updateGroupsSorting?: (updatedData: any) => void;
|
|
11
|
+
updatePlacesSorting?: (updatedPlacesList: iTaskPlace[]) => Promise<boolean>;
|
|
12
|
+
moveTaskToAnotherGroup?: (updatedData: any, newGroupId: number, oldGroupId: number, placeId: number, movedTask: any) => Promise<boolean>;
|
|
13
|
+
coordinateGetter?: KeyboardCoordinateGetter;
|
|
14
|
+
wrapperStyle?(args: {
|
|
15
|
+
index: number;
|
|
16
|
+
}): React.CSSProperties;
|
|
17
|
+
initialPlacesData?: any;
|
|
18
|
+
createNewTask?: (newTaskData: any, groupId: number | string) => void;
|
|
19
|
+
handle?: boolean;
|
|
20
|
+
renderItem?: () => any;
|
|
21
|
+
strategy?: SortingStrategy;
|
|
22
|
+
modifiers?: Modifiers;
|
|
23
|
+
minimal?: boolean;
|
|
24
|
+
scrollable?: boolean;
|
|
25
|
+
vertical?: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface iProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
columns?: number;
|
|
5
|
+
handleProps?: React.HTMLAttributes<unknown>;
|
|
6
|
+
handleToggleCollapse?(): void;
|
|
7
|
+
label?: string;
|
|
8
|
+
placeData?: unknown;
|
|
9
|
+
placeholder?: boolean;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
onClick?(): void;
|
|
12
|
+
onRemove?(): void;
|
|
13
|
+
}
|
|
14
|
+
declare const PlaceContainer: React.ForwardRefExoticComponent<iProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export default PlaceContainer;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
3
|
+
import { ContainerProps } from '../GroupContainer';
|
|
4
|
+
interface iSortableContainerProps extends ContainerProps {
|
|
5
|
+
id: UniqueIdentifier;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
groupData: any;
|
|
8
|
+
items: UniqueIdentifier[];
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
toggleCollapseGroup: (groupId: number | string) => void;
|
|
11
|
+
}
|
|
12
|
+
declare function SortableContainer(props: iSortableContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { SortableContainer };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface iSortableItemProps {
|
|
4
|
+
containerId: UniqueIdentifier;
|
|
5
|
+
id: UniqueIdentifier;
|
|
6
|
+
index: number;
|
|
7
|
+
handle: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
style(args: any): React.CSSProperties;
|
|
10
|
+
getIndex(id: UniqueIdentifier): number;
|
|
11
|
+
renderItem(): React.ReactElement;
|
|
12
|
+
wrapperStyle({ index }: {
|
|
13
|
+
index: number;
|
|
14
|
+
}): React.CSSProperties;
|
|
15
|
+
taskName?: string;
|
|
16
|
+
taskPriority?: string;
|
|
17
|
+
taskStatus?: string;
|
|
18
|
+
taskTime?: string;
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
}
|