@jaeungkim/gantt-chart 0.2.3 → 0.3.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 +110 -122
- package/dist/gantt-chart.css +1 -0
- package/dist/index.cjs.js +4 -31
- package/dist/index.d.ts +51 -0
- package/dist/index.es.js +2101 -1727
- package/dist/readmeImg.png +0 -0
- package/package.json +13 -23
- package/dist/index.css +0 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { GanttScaleKey as GanttScaleKey_2 } from 'types/gantt';
|
|
2
|
+
import { GanttTheme as GanttTheme_2 } from 'types/gantt';
|
|
3
|
+
import { JSX } from 'react/jsx-runtime';
|
|
4
|
+
import { Task as Task_2 } from 'types/task';
|
|
5
|
+
|
|
6
|
+
export declare type DependencyType = 'FS' | 'SS' | 'FF' | 'SF';
|
|
7
|
+
|
|
8
|
+
export declare interface GanttProps {
|
|
9
|
+
/** 태스크 데이터 배열 */
|
|
10
|
+
tasks?: Task_2[];
|
|
11
|
+
/** 태스크 변경 시 호출되는 콜백 */
|
|
12
|
+
onTasksChange?: (updatedTasks: Task_2[]) => void;
|
|
13
|
+
/** 차트 높이 (px 또는 CSS 값) */
|
|
14
|
+
height?: number | string;
|
|
15
|
+
/** 차트 너비 (px 또는 CSS 값) */
|
|
16
|
+
width?: number | string;
|
|
17
|
+
/** 테마 설정 - 'light', 'dark', 또는 'system' */
|
|
18
|
+
theme?: GanttTheme_2;
|
|
19
|
+
/** 기본 스케일 설정 */
|
|
20
|
+
defaultScale?: GanttScaleKey_2;
|
|
21
|
+
/** 추가 CSS 클래스명 */
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export declare type GanttScaleKey = 'day' | 'week' | 'month' | 'year';
|
|
26
|
+
|
|
27
|
+
/** 테마 타입 - 'light', 'dark', 또는 'system' (시스템 설정 따름) */
|
|
28
|
+
export declare type GanttTheme = 'light' | 'dark' | 'system';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Gantt 차트 메인 컴포넌트
|
|
32
|
+
* 가상화를 사용하여 대량의 태스크를 효율적으로 렌더링
|
|
33
|
+
*/
|
|
34
|
+
export declare function ReactGanttChart({ tasks, onTasksChange, height, width, theme, defaultScale, className, }: GanttProps): JSX.Element;
|
|
35
|
+
|
|
36
|
+
export declare interface Task {
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
startDate: string;
|
|
40
|
+
endDate: string;
|
|
41
|
+
parentId: string | null;
|
|
42
|
+
sequence: string;
|
|
43
|
+
dependencies?: TaskDependency[];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export declare interface TaskDependency {
|
|
47
|
+
targetId: string;
|
|
48
|
+
type: DependencyType;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { }
|