@jaeungkim/gantt-chart 0.4.0 → 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 (103) hide show
  1. package/README.md +192 -53
  2. package/dist/Gantt.d.ts +5 -0
  3. package/dist/bars/components/GanttBar.d.ts +20 -0
  4. package/dist/bars/components/GanttBarsLayer.d.ts +24 -0
  5. package/dist/bars/components/GanttDragGuides.d.ts +1 -0
  6. package/dist/bars/hooks/useGanttBarDrag.d.ts +16 -0
  7. package/dist/bars/hooks/useGanttDrawCreate.d.ts +25 -0
  8. package/dist/{hooks → bars/hooks}/useGanttProgressDrag.d.ts +3 -8
  9. package/dist/core/calendar.d.ts +4 -22
  10. package/dist/core/dates.d.ts +5 -21
  11. package/dist/core/index.d.ts +1 -14
  12. package/dist/core/reorder.d.ts +55 -0
  13. package/dist/core/tree.d.ts +4 -12
  14. package/dist/core/types.d.ts +4 -37
  15. package/dist/{components → dependencies/components}/GanttDependencyArrows.d.ts +4 -6
  16. package/dist/{hooks → dependencies/hooks}/useGanttLinkDrag.d.ts +2 -13
  17. package/dist/dependencies/utils/arrowPath.d.ts +20 -0
  18. package/dist/dependencies/utils/link.d.ts +17 -0
  19. package/dist/detail/components/GanttDetailPanel.d.ts +21 -0
  20. package/dist/detail/hooks/useGanttDetail.d.ts +42 -0
  21. package/dist/detail/utils/edit.d.ts +21 -0
  22. package/dist/gantt-chart.css +1 -1
  23. package/dist/index.cjs +1 -4
  24. package/dist/index.d.cts +11 -13
  25. package/dist/index.d.ts +11 -13
  26. package/dist/index.js +4071 -5141
  27. package/dist/interaction/hooks/useGanttInteraction.d.ts +2 -0
  28. package/dist/interaction/hooks/useGanttKeyboardNav.d.ts +33 -0
  29. package/dist/interaction/hooks/useGanttSelection.d.ts +12 -0
  30. package/dist/interaction/utils/a11y.d.ts +84 -0
  31. package/dist/props.d.ts +121 -0
  32. package/dist/rows/components/GanttRowsLayer.d.ts +13 -0
  33. package/dist/rows/hooks/useGanttCollapse.d.ts +18 -0
  34. package/dist/rows/hooks/useGanttRowModel.d.ts +19 -0
  35. package/dist/rows/utils/rows.d.ts +21 -0
  36. package/dist/shared/constants.d.ts +24 -0
  37. package/dist/{stores → shared}/context.d.ts +1 -7
  38. package/dist/shared/hooks/useLatestRef.d.ts +2 -0
  39. package/dist/shared/hooks/useResolvedTheme.d.ts +8 -0
  40. package/dist/shared/store.d.ts +81 -0
  41. package/dist/shared/task.d.ts +55 -0
  42. package/dist/shared/types.d.ts +115 -0
  43. package/dist/shared/utils/holidays.d.ts +12 -0
  44. package/dist/shared/utils/i18n.d.ts +5 -0
  45. package/dist/shared/utils/pointerGesture.d.ts +11 -0
  46. package/dist/shared/virtual/axis.d.ts +13 -0
  47. package/dist/shared/virtual/useVirtualWindow.d.ts +16 -0
  48. package/dist/shared/virtual/window.d.ts +30 -0
  49. package/dist/task-list/components/GanttGridSplitter.d.ts +6 -0
  50. package/dist/task-list/components/GanttTaskAddRow.d.ts +7 -0
  51. package/dist/task-list/components/GanttTaskGrid.d.ts +24 -0
  52. package/dist/task-list/hooks/useGanttRowDrag.d.ts +17 -0
  53. package/dist/task-list/hooks/useGanttTaskListPane.d.ts +11 -0
  54. package/dist/task-list/hooks/useGanttTaskMove.d.ts +16 -0
  55. package/dist/timeline/components/GanttChartHeader.d.ts +10 -0
  56. package/dist/timeline/components/GanttHolidayLabels.d.ts +6 -0
  57. package/dist/timeline/components/GanttNonWorkingLayer.d.ts +6 -0
  58. package/dist/timeline/components/GanttTodayLine.d.ts +6 -0
  59. package/dist/{hooks → timeline/hooks}/useGanttScrollApi.d.ts +22 -23
  60. package/dist/timeline/hooks/useGanttViewport.d.ts +47 -0
  61. package/dist/timeline/hooks/useGanttVirtualization.d.ts +28 -0
  62. package/dist/timeline/utils/geometry.d.ts +52 -0
  63. package/dist/timeline/utils/header.d.ts +8 -0
  64. package/dist/timeline/utils/transform.d.ts +4 -0
  65. package/dist/timeline/utils/viewport.d.ts +31 -0
  66. package/dist/useGanttSelectors.d.ts +11 -0
  67. package/package.json +12 -12
  68. package/dist/components/GanttBar.d.ts +0 -23
  69. package/dist/components/GanttChartHeader.d.ts +0 -17
  70. package/dist/components/GanttDragGuides.d.ts +0 -9
  71. package/dist/components/GanttGridSplitter.d.ts +0 -14
  72. package/dist/components/GanttMarkers.d.ts +0 -18
  73. package/dist/components/GanttTaskGrid.d.ts +0 -42
  74. package/dist/components/ScaleSelector.d.ts +0 -11
  75. package/dist/constants/gantt.d.ts +0 -47
  76. package/dist/core/criticalPath.d.ts +0 -67
  77. package/dist/core/scheduling.d.ts +0 -104
  78. package/dist/hooks/useGanttBarDrag.d.ts +0 -35
  79. package/dist/hooks/useGanttDrawCreate.d.ts +0 -31
  80. package/dist/hooks/useGanttExportApi.d.ts +0 -30
  81. package/dist/hooks/useGanttHistoryApi.d.ts +0 -28
  82. package/dist/hooks/useGanttRowDrag.d.ts +0 -33
  83. package/dist/hooks/useGanttSelectors.d.ts +0 -23
  84. package/dist/hooks/useGanttVirtualization.d.ts +0 -32
  85. package/dist/hooks/useResolvedTheme.d.ts +0 -15
  86. package/dist/pages/Gantt.d.ts +0 -306
  87. package/dist/stores/store.d.ts +0 -118
  88. package/dist/types/gantt.d.ts +0 -283
  89. package/dist/types/task.d.ts +0 -111
  90. package/dist/utils/a11y.d.ts +0 -141
  91. package/dist/utils/arrowPath.d.ts +0 -66
  92. package/dist/utils/dependency.d.ts +0 -42
  93. package/dist/utils/grouping.d.ts +0 -81
  94. package/dist/utils/headerUtils.d.ts +0 -6
  95. package/dist/utils/history.d.ts +0 -56
  96. package/dist/utils/i18n.d.ts +0 -16
  97. package/dist/utils/mutation.d.ts +0 -47
  98. package/dist/utils/pngExport.d.ts +0 -67
  99. package/dist/utils/pointerGesture.d.ts +0 -31
  100. package/dist/utils/rowDrag.d.ts +0 -69
  101. package/dist/utils/timeline.d.ts +0 -161
  102. package/dist/utils/transformData.d.ts +0 -15
  103. package/dist/utils/viewport.d.ts +0 -95
package/dist/index.d.cts CHANGED
@@ -1,13 +1,11 @@
1
- export { default as ReactGanttChart } from './pages/Gantt';
2
- export type { GanttProps } from './pages/Gantt';
3
- export type { GanttHandle, GanttScrollApi, GanttScrollOptions, GanttZoomAnchor, } from './hooks/useGanttScrollApi';
4
- export type { GanttExportApi } from './hooks/useGanttExportApi';
5
- export type { GanttHistoryApi } from './hooks/useGanttHistoryApi';
6
- export type { GanttExportOptions, GanttExportRange, } from './utils/pngExport';
7
- export type { Task, TaskDependency, DependencyType, TaskType, TaskTransformed, GanttInteractionConfig, } from './types/task';
8
- export type { GanttDependencyChange } from './hooks/useGanttLinkDrag';
9
- export type { GanttTaskDraft } from './hooks/useGanttDrawCreate';
10
- export type { GanttColumn, GanttDateRange, GanttFormatOverrides, GanttGroupBy, GanttMarker, GanttRangeBand, GanttReorderChange, GanttScaleFormat, GanttScaleKey, GanttTheme, GanttChangeType, GanttTaskChange, GanttBeforeChangeHandler, GanttBarRenderProps, GanttBarRenderer, GanttTooltipReason, GanttTooltipRenderProps, GanttTooltipRenderer, GanttHeaderCellRenderProps, GanttHeaderCellRenderer, } from './types/gantt';
11
- export type { GanttRow, GanttRowGroup } from './utils/grouping';
12
- export { backwardPass, buildTaskGraph, buildTaskTree, CALENDAR_DAYS, canLink, collectSubtreeIds, computeCriticalPath, createWorkingCalendar, findPath, forwardPass, linkKey, rollUpTasks, scheduleTasks, } from './core';
13
- export type { CriticalPathResult, ScheduleOptions, ScheduleResult, SchedulingLink, SchedulingPolicy, TaskGraph, TaskScheduleMetrics, TaskTree, WorkingCalendar, WorkingCalendarOptions, } from './core';
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';
package/dist/index.d.ts CHANGED
@@ -1,13 +1,11 @@
1
- export { default as ReactGanttChart } from './pages/Gantt';
2
- export type { GanttProps } from './pages/Gantt';
3
- export type { GanttHandle, GanttScrollApi, GanttScrollOptions, GanttZoomAnchor, } from './hooks/useGanttScrollApi';
4
- export type { GanttExportApi } from './hooks/useGanttExportApi';
5
- export type { GanttHistoryApi } from './hooks/useGanttHistoryApi';
6
- export type { GanttExportOptions, GanttExportRange, } from './utils/pngExport';
7
- export type { Task, TaskDependency, DependencyType, TaskType, TaskTransformed, GanttInteractionConfig, } from './types/task';
8
- export type { GanttDependencyChange } from './hooks/useGanttLinkDrag';
9
- export type { GanttTaskDraft } from './hooks/useGanttDrawCreate';
10
- export type { GanttColumn, GanttDateRange, GanttFormatOverrides, GanttGroupBy, GanttMarker, GanttRangeBand, GanttReorderChange, GanttScaleFormat, GanttScaleKey, GanttTheme, GanttChangeType, GanttTaskChange, GanttBeforeChangeHandler, GanttBarRenderProps, GanttBarRenderer, GanttTooltipReason, GanttTooltipRenderProps, GanttTooltipRenderer, GanttHeaderCellRenderProps, GanttHeaderCellRenderer, } from './types/gantt';
11
- export type { GanttRow, GanttRowGroup } from './utils/grouping';
12
- export { backwardPass, buildTaskGraph, buildTaskTree, CALENDAR_DAYS, canLink, collectSubtreeIds, computeCriticalPath, createWorkingCalendar, findPath, forwardPass, linkKey, rollUpTasks, scheduleTasks, } from './core';
13
- export type { CriticalPathResult, ScheduleOptions, ScheduleResult, SchedulingLink, SchedulingPolicy, TaskGraph, TaskScheduleMetrics, TaskTree, WorkingCalendar, WorkingCalendarOptions, } from './core';
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';