@jaeungkim/gantt-chart 0.3.1 → 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 +222 -124
- package/dist/Gantt.d.ts +5 -0
- package/dist/bars/components/GanttBar.d.ts +20 -0
- package/dist/bars/components/GanttBarsLayer.d.ts +24 -0
- package/dist/bars/components/GanttDragGuides.d.ts +1 -0
- package/dist/bars/hooks/useGanttBarDrag.d.ts +16 -0
- package/dist/bars/hooks/useGanttDrawCreate.d.ts +25 -0
- package/dist/bars/hooks/useGanttProgressDrag.d.ts +11 -0
- package/dist/core/calendar.d.ts +27 -0
- package/dist/core/dates.d.ts +16 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/reorder.d.ts +55 -0
- package/dist/core/tree.d.ts +34 -0
- package/dist/core/types.d.ts +43 -0
- package/dist/dependencies/components/GanttDependencyArrows.d.ts +13 -0
- package/dist/dependencies/hooks/useGanttLinkDrag.d.ts +20 -0
- package/dist/dependencies/utils/arrowPath.d.ts +20 -0
- package/dist/dependencies/utils/link.d.ts +17 -0
- package/dist/detail/components/GanttDetailPanel.d.ts +21 -0
- package/dist/detail/hooks/useGanttDetail.d.ts +42 -0
- package/dist/detail/utils/edit.d.ts +21 -0
- package/dist/gantt-chart.css +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -51
- package/dist/index.js +4749 -0
- package/dist/interaction/hooks/useGanttInteraction.d.ts +2 -0
- package/dist/interaction/hooks/useGanttKeyboardNav.d.ts +33 -0
- package/dist/interaction/hooks/useGanttSelection.d.ts +12 -0
- package/dist/interaction/utils/a11y.d.ts +84 -0
- package/dist/props.d.ts +121 -0
- package/dist/rows/components/GanttRowsLayer.d.ts +13 -0
- package/dist/rows/hooks/useGanttCollapse.d.ts +18 -0
- package/dist/rows/hooks/useGanttRowModel.d.ts +19 -0
- package/dist/rows/utils/rows.d.ts +21 -0
- package/dist/shared/constants.d.ts +24 -0
- package/dist/shared/context.d.ts +4 -0
- package/dist/shared/hooks/useLatestRef.d.ts +2 -0
- package/dist/shared/hooks/useResolvedTheme.d.ts +8 -0
- package/dist/shared/store.d.ts +81 -0
- package/dist/shared/task.d.ts +55 -0
- package/dist/shared/types.d.ts +115 -0
- package/dist/shared/utils/holidays.d.ts +12 -0
- package/dist/shared/utils/i18n.d.ts +5 -0
- package/dist/shared/utils/pointerGesture.d.ts +11 -0
- package/dist/shared/virtual/axis.d.ts +13 -0
- package/dist/shared/virtual/useVirtualWindow.d.ts +16 -0
- package/dist/shared/virtual/window.d.ts +30 -0
- package/dist/task-list/components/GanttGridSplitter.d.ts +6 -0
- package/dist/task-list/components/GanttTaskAddRow.d.ts +7 -0
- package/dist/task-list/components/GanttTaskGrid.d.ts +24 -0
- package/dist/task-list/hooks/useGanttRowDrag.d.ts +17 -0
- package/dist/task-list/hooks/useGanttTaskListPane.d.ts +11 -0
- package/dist/task-list/hooks/useGanttTaskMove.d.ts +16 -0
- package/dist/timeline/components/GanttChartHeader.d.ts +10 -0
- package/dist/timeline/components/GanttHolidayLabels.d.ts +6 -0
- package/dist/timeline/components/GanttNonWorkingLayer.d.ts +6 -0
- package/dist/timeline/components/GanttTodayLine.d.ts +6 -0
- package/dist/timeline/hooks/useGanttScrollApi.d.ts +62 -0
- package/dist/timeline/hooks/useGanttViewport.d.ts +47 -0
- package/dist/timeline/hooks/useGanttVirtualization.d.ts +28 -0
- package/dist/timeline/utils/geometry.d.ts +52 -0
- package/dist/timeline/utils/header.d.ts +8 -0
- package/dist/timeline/utils/transform.d.ts +4 -0
- package/dist/timeline/utils/viewport.d.ts +31 -0
- package/dist/useGanttSelectors.d.ts +11 -0
- package/package.json +53 -38
- package/dist/index.cjs.js +0 -4
- package/dist/index.es.js +0 -2394
- package/dist/readmeImg.png +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,51 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
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 { }
|
|
1
|
+
export { default as ReactGanttChart } from './Gantt';
|
|
2
|
+
export type { GanttProps } from './props';
|
|
3
|
+
export type { GanttDetailApi, GanttHandle, GanttTaskCreateApi, GanttScrollApi, GanttScrollOptions, GanttZoomAnchor, } from './timeline/hooks/useGanttScrollApi';
|
|
4
|
+
export type { Task, TaskDependency, DependencyType, TaskTransformed, GanttInteractionConfig, } from './shared/task';
|
|
5
|
+
export type { GanttDependencyChange } from './dependencies/hooks/useGanttLinkDrag';
|
|
6
|
+
export type { GanttMoveRejection, GanttTaskMove, GanttTaskMoveChange, } from './core/reorder';
|
|
7
|
+
export type { GanttTaskDraft } from './bars/hooks/useGanttDrawCreate';
|
|
8
|
+
export type { GanttDateRange, GanttDetailRenderProps, GanttDetailRenderer, GanttFormatOverrides, GanttScaleFormat, GanttScaleKey, GanttTheme, Holiday, } from './shared/types';
|
|
9
|
+
export type { GanttRow } from './rows/utils/rows';
|
|
10
|
+
export { buildTaskTree, CALENDAR_DAYS, collectSubtreeIds, createWorkingCalendar, moveTask, rollUpTasks, sortTasksBySequence, validateMove, } from './core';
|
|
11
|
+
export type { GanttMoveOptions, TaskTree, WorkingCalendar, WorkingCalendarOptions, } from './core';
|