mantine-gantt 0.0.4 → 0.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/dist/cjs/Gantt/DependencyLinks.cjs +17 -6
- package/dist/cjs/Gantt/DependencyLinks.cjs.map +1 -1
- package/dist/cjs/Gantt/Gantt.cjs +136 -143
- package/dist/cjs/Gantt/Gantt.cjs.map +1 -1
- package/dist/cjs/Gantt/TaskBar.cjs +37 -116
- package/dist/cjs/Gantt/TaskBar.cjs.map +1 -1
- package/dist/cjs/Gantt/TaskList.cjs +30 -2
- package/dist/cjs/Gantt/TaskList.cjs.map +1 -1
- package/dist/cjs/Gantt/TimelineGrid.cjs +7 -18
- package/dist/cjs/Gantt/TimelineGrid.cjs.map +1 -1
- package/dist/cjs/Gantt/TimelineHeader.cjs +13 -19
- package/dist/cjs/Gantt/TimelineHeader.cjs.map +1 -1
- package/dist/cjs/Gantt/use-gantt-drag.cjs +243 -0
- package/dist/cjs/Gantt/use-gantt-drag.cjs.map +1 -0
- package/dist/esm/Gantt/DependencyLinks.mjs +17 -6
- package/dist/esm/Gantt/DependencyLinks.mjs.map +1 -1
- package/dist/esm/Gantt/Gantt.mjs +139 -146
- package/dist/esm/Gantt/Gantt.mjs.map +1 -1
- package/dist/esm/Gantt/TaskBar.mjs +39 -118
- package/dist/esm/Gantt/TaskBar.mjs.map +1 -1
- package/dist/esm/Gantt/TaskList.mjs +30 -2
- package/dist/esm/Gantt/TaskList.mjs.map +1 -1
- package/dist/esm/Gantt/TimelineGrid.mjs +7 -18
- package/dist/esm/Gantt/TimelineGrid.mjs.map +1 -1
- package/dist/esm/Gantt/TimelineHeader.mjs +13 -19
- package/dist/esm/Gantt/TimelineHeader.mjs.map +1 -1
- package/dist/esm/Gantt/use-gantt-drag.mjs +241 -0
- package/dist/esm/Gantt/use-gantt-drag.mjs.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/styles.layer.css +1 -1
- package/dist/types/Gantt/DependencyLinks.d.ts +13 -3
- package/dist/types/Gantt/TaskBar.d.ts +11 -4
- package/dist/types/Gantt/TaskList.d.ts +3 -2
- package/dist/types/Gantt/TimelineGrid.d.ts +1 -1
- package/dist/types/Gantt/TimelineHeader.d.ts +1 -1
- package/dist/types/Gantt/index.d.ts +1 -1
- package/dist/types/Gantt/types.d.ts +15 -7
- package/dist/types/Gantt/use-gantt-drag.d.ts +46 -0
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -3
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
|
+
import { useState, useRef, useCallback } from 'react';
|
|
4
|
+
import { snapToGrid } from './utils.mjs';
|
|
5
|
+
|
|
6
|
+
const EDGE_THRESHOLD = 50;
|
|
7
|
+
const MAX_SCROLL_SPEED = 12;
|
|
8
|
+
const DRAG_ACTIVATION_DISTANCE = 5;
|
|
9
|
+
function useGanttDrag(options) {
|
|
10
|
+
const [state, setState] = useState(null);
|
|
11
|
+
const optsRef = useRef(options);
|
|
12
|
+
optsRef.current = options;
|
|
13
|
+
const dragRef = useRef(null);
|
|
14
|
+
const rafRef = useRef(null);
|
|
15
|
+
const scrollVec = useRef({ x: 0, y: 0 });
|
|
16
|
+
const didDragRef = useRef(false);
|
|
17
|
+
const stopAutoScroll = useCallback(() => {
|
|
18
|
+
if (rafRef.current !== null) {
|
|
19
|
+
cancelAnimationFrame(rafRef.current);
|
|
20
|
+
rafRef.current = null;
|
|
21
|
+
}
|
|
22
|
+
scrollVec.current = { x: 0, y: 0 };
|
|
23
|
+
}, []);
|
|
24
|
+
const recompute = useCallback(() => {
|
|
25
|
+
const drag = dragRef.current;
|
|
26
|
+
const body = optsRef.current.bodyRef.current;
|
|
27
|
+
const content = optsRef.current.contentRef.current;
|
|
28
|
+
if (!drag || !body) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (drag.type === "link") {
|
|
32
|
+
const rect = content?.getBoundingClientRect();
|
|
33
|
+
const x = rect ? drag.lastClientX - rect.left : 0;
|
|
34
|
+
const y = rect ? drag.lastClientY - rect.top : 0;
|
|
35
|
+
const el = document.elementFromPoint(drag.lastClientX, drag.lastClientY);
|
|
36
|
+
const targetEl = el?.closest("[data-task-id]");
|
|
37
|
+
const targetId = targetEl?.dataset.taskId ?? null;
|
|
38
|
+
setState({
|
|
39
|
+
type: "link",
|
|
40
|
+
taskId: drag.taskId,
|
|
41
|
+
deltaX: 0,
|
|
42
|
+
linkCursor: { x, y },
|
|
43
|
+
dropTargetId: targetId && targetId !== drag.taskId ? targetId : null
|
|
44
|
+
});
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const deltaX = drag.lastClientX - drag.startClientX + (body.scrollLeft - drag.startScrollLeft);
|
|
48
|
+
setState({
|
|
49
|
+
type: drag.type,
|
|
50
|
+
taskId: drag.taskId,
|
|
51
|
+
deltaX,
|
|
52
|
+
linkCursor: null,
|
|
53
|
+
dropTargetId: null
|
|
54
|
+
});
|
|
55
|
+
}, []);
|
|
56
|
+
const autoScrollTick = useCallback(() => {
|
|
57
|
+
const body = optsRef.current.bodyRef.current;
|
|
58
|
+
const v = scrollVec.current;
|
|
59
|
+
if (!body || v.x === 0 && v.y === 0) {
|
|
60
|
+
rafRef.current = null;
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
body.scrollLeft += v.x;
|
|
64
|
+
body.scrollTop += v.y;
|
|
65
|
+
recompute();
|
|
66
|
+
rafRef.current = requestAnimationFrame(autoScrollTick);
|
|
67
|
+
}, [recompute]);
|
|
68
|
+
const updateAutoScroll = useCallback(
|
|
69
|
+
(clientX, clientY, allowVertical) => {
|
|
70
|
+
const body = optsRef.current.bodyRef.current;
|
|
71
|
+
if (!body) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const rect = body.getBoundingClientRect();
|
|
75
|
+
let vx = 0;
|
|
76
|
+
let vy = 0;
|
|
77
|
+
const fromLeft = clientX - rect.left;
|
|
78
|
+
const fromRight = rect.right - clientX;
|
|
79
|
+
if (fromLeft < EDGE_THRESHOLD) {
|
|
80
|
+
vx = -Math.ceil((1 - fromLeft / EDGE_THRESHOLD) * MAX_SCROLL_SPEED);
|
|
81
|
+
} else if (fromRight < EDGE_THRESHOLD) {
|
|
82
|
+
vx = Math.ceil((1 - fromRight / EDGE_THRESHOLD) * MAX_SCROLL_SPEED);
|
|
83
|
+
}
|
|
84
|
+
if (allowVertical) {
|
|
85
|
+
const fromTop = clientY - rect.top;
|
|
86
|
+
const fromBottom = rect.bottom - clientY;
|
|
87
|
+
if (fromTop < EDGE_THRESHOLD) {
|
|
88
|
+
vy = -Math.ceil((1 - fromTop / EDGE_THRESHOLD) * MAX_SCROLL_SPEED);
|
|
89
|
+
} else if (fromBottom < EDGE_THRESHOLD) {
|
|
90
|
+
vy = Math.ceil((1 - fromBottom / EDGE_THRESHOLD) * MAX_SCROLL_SPEED);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
scrollVec.current = { x: vx, y: vy };
|
|
94
|
+
if ((vx !== 0 || vy !== 0) && rafRef.current === null) {
|
|
95
|
+
rafRef.current = requestAnimationFrame(autoScrollTick);
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
[autoScrollTick]
|
|
99
|
+
);
|
|
100
|
+
const handlePointerMove = useCallback(
|
|
101
|
+
(e) => {
|
|
102
|
+
const drag = dragRef.current;
|
|
103
|
+
if (!drag) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
if (!drag.moved) {
|
|
107
|
+
if (Math.abs(e.clientX - drag.startClientX) < DRAG_ACTIVATION_DISTANCE) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
drag.moved = true;
|
|
111
|
+
didDragRef.current = true;
|
|
112
|
+
document.body.style.userSelect = "none";
|
|
113
|
+
document.body.style.cursor = drag.type === "link" ? "crosshair" : "grabbing";
|
|
114
|
+
}
|
|
115
|
+
e.preventDefault();
|
|
116
|
+
drag.lastClientX = e.clientX;
|
|
117
|
+
drag.lastClientY = e.clientY;
|
|
118
|
+
updateAutoScroll(e.clientX, e.clientY, drag.type === "link");
|
|
119
|
+
recompute();
|
|
120
|
+
},
|
|
121
|
+
[recompute, updateAutoScroll]
|
|
122
|
+
);
|
|
123
|
+
const commit = useCallback((drag) => {
|
|
124
|
+
const { setTasks, columnWidth, onTaskUpdate, onLinkCreate, announce, bodyRef } = optsRef.current;
|
|
125
|
+
if (drag.type === "link") {
|
|
126
|
+
const el = document.elementFromPoint(drag.lastClientX, drag.lastClientY);
|
|
127
|
+
const targetEl = el?.closest("[data-task-id]");
|
|
128
|
+
const toTaskId = targetEl?.dataset.taskId;
|
|
129
|
+
if (toTaskId && toTaskId !== drag.taskId) {
|
|
130
|
+
setTasks(
|
|
131
|
+
(current) => current.map((task) => {
|
|
132
|
+
if (task.id !== toTaskId) {
|
|
133
|
+
return task;
|
|
134
|
+
}
|
|
135
|
+
const deps = task.dependencies || [];
|
|
136
|
+
return deps.includes(drag.taskId) ? task : { ...task, dependencies: [...deps, drag.taskId] };
|
|
137
|
+
})
|
|
138
|
+
);
|
|
139
|
+
onLinkCreate?.(drag.taskId, toTaskId);
|
|
140
|
+
}
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
const body = bodyRef.current;
|
|
144
|
+
const deltaX = drag.lastClientX - drag.startClientX + (body ? body.scrollLeft - drag.startScrollLeft : 0);
|
|
145
|
+
const days = Math.round(snapToGrid(deltaX, columnWidth) / columnWidth);
|
|
146
|
+
if (days === 0) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
setTasks((current) => {
|
|
150
|
+
const next = current.map((task) => {
|
|
151
|
+
if (task.id !== drag.taskId) {
|
|
152
|
+
return task;
|
|
153
|
+
}
|
|
154
|
+
if (drag.type === "move") {
|
|
155
|
+
return {
|
|
156
|
+
...task,
|
|
157
|
+
startDate: dayjs(task.startDate).add(days, "day").format("YYYY-MM-DD")
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
if (drag.type === "resize-end") {
|
|
161
|
+
return { ...task, duration: Math.max(1, task.duration + days) };
|
|
162
|
+
}
|
|
163
|
+
return {
|
|
164
|
+
...task,
|
|
165
|
+
startDate: dayjs(task.startDate).add(days, "day").format("YYYY-MM-DD"),
|
|
166
|
+
duration: Math.max(1, task.duration - days)
|
|
167
|
+
};
|
|
168
|
+
});
|
|
169
|
+
const updated = next.find((t) => t.id === drag.taskId);
|
|
170
|
+
if (updated) {
|
|
171
|
+
onTaskUpdate?.(updated);
|
|
172
|
+
announce?.(`${updated.label} ${updated.startDate}, ${updated.duration} day duration`);
|
|
173
|
+
}
|
|
174
|
+
return next;
|
|
175
|
+
});
|
|
176
|
+
}, []);
|
|
177
|
+
const handlePointerUp = useCallback(() => {
|
|
178
|
+
const drag = dragRef.current;
|
|
179
|
+
document.removeEventListener("pointermove", handlePointerMove);
|
|
180
|
+
document.removeEventListener("pointerup", handlePointerUp);
|
|
181
|
+
stopAutoScroll();
|
|
182
|
+
document.body.style.userSelect = "";
|
|
183
|
+
document.body.style.cursor = "";
|
|
184
|
+
if (drag && drag.moved) {
|
|
185
|
+
commit(drag);
|
|
186
|
+
requestAnimationFrame(() => {
|
|
187
|
+
didDragRef.current = false;
|
|
188
|
+
});
|
|
189
|
+
} else {
|
|
190
|
+
didDragRef.current = false;
|
|
191
|
+
}
|
|
192
|
+
dragRef.current = null;
|
|
193
|
+
setState(null);
|
|
194
|
+
}, [commit, handlePointerMove, stopAutoScroll]);
|
|
195
|
+
const startDrag = useCallback(
|
|
196
|
+
(type, taskId, event) => {
|
|
197
|
+
event.stopPropagation();
|
|
198
|
+
const body = optsRef.current.bodyRef.current;
|
|
199
|
+
dragRef.current = {
|
|
200
|
+
type,
|
|
201
|
+
taskId,
|
|
202
|
+
startClientX: event.clientX,
|
|
203
|
+
startScrollLeft: body ? body.scrollLeft : 0,
|
|
204
|
+
lastClientX: event.clientX,
|
|
205
|
+
lastClientY: event.clientY,
|
|
206
|
+
moved: false
|
|
207
|
+
};
|
|
208
|
+
document.addEventListener("pointermove", handlePointerMove);
|
|
209
|
+
document.addEventListener("pointerup", handlePointerUp);
|
|
210
|
+
},
|
|
211
|
+
[handlePointerMove, handlePointerUp]
|
|
212
|
+
);
|
|
213
|
+
const didDrag = useCallback(() => didDragRef.current, []);
|
|
214
|
+
const nudge = useCallback((taskId, action, days) => {
|
|
215
|
+
const { setTasks, onTaskUpdate, announce } = optsRef.current;
|
|
216
|
+
setTasks((current) => {
|
|
217
|
+
const next = current.map((task) => {
|
|
218
|
+
if (task.id !== taskId) {
|
|
219
|
+
return task;
|
|
220
|
+
}
|
|
221
|
+
if (action === "move") {
|
|
222
|
+
return {
|
|
223
|
+
...task,
|
|
224
|
+
startDate: dayjs(task.startDate).add(days, "day").format("YYYY-MM-DD")
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
return { ...task, duration: Math.max(1, task.duration + days) };
|
|
228
|
+
});
|
|
229
|
+
const updated = next.find((t) => t.id === taskId);
|
|
230
|
+
if (updated) {
|
|
231
|
+
onTaskUpdate?.(updated);
|
|
232
|
+
announce?.(`${updated.label} ${updated.startDate}, ${updated.duration} day duration`);
|
|
233
|
+
}
|
|
234
|
+
return next;
|
|
235
|
+
});
|
|
236
|
+
}, []);
|
|
237
|
+
return { state, startDrag, didDrag, nudge };
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export { useGanttDrag };
|
|
241
|
+
//# sourceMappingURL=use-gantt-drag.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-gantt-drag.mjs","sources":["../../../src/Gantt/use-gantt-drag.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport { useCallback, useRef, useState } from 'react';\nimport type { GanttDragType, GanttTask } from './types';\nimport { snapToGrid } from './utils';\n\n// Auto-scroll tuning (mirrors @mantine/schedule's use-auto-scroll-on-drag).\nconst EDGE_THRESHOLD = 50;\nconst MAX_SCROLL_SPEED = 12;\n// Pointer must travel this far before a drag begins, so a plain click still fires onTaskClick.\nconst DRAG_ACTIVATION_DISTANCE = 5;\n\n/** Live drag state, shared with TaskBar (bar geometry) and DependencyLinks (arrows + link line). */\nexport interface GanttDragState {\n type: GanttDragType;\n taskId: string;\n /** Scroll-adjusted continuous px delta since drag start (not snapped until release). */\n deltaX: number;\n /** For a `link` drag: cursor position in timelineContent coordinates. */\n linkCursor: { x: number; y: number } | null;\n /** For a `link` drag: id of the task currently under the cursor (never the source). */\n dropTargetId: string | null;\n}\n\nexport interface UseGanttDragOptions {\n tasks: GanttTask[];\n setTasks: React.Dispatch<React.SetStateAction<GanttTask[]>>;\n /** Effective column width in px (already adjusted for viewMode). */\n columnWidth: number;\n /** Scroll container — drives scroll-adjusted delta and auto-scroll. */\n bodyRef: React.RefObject<HTMLDivElement | null>;\n /** Positioned content — its rect maps client coords to timeline pixels. */\n contentRef: React.RefObject<HTMLDivElement | null>;\n onTaskUpdate?: (task: GanttTask) => void;\n onLinkCreate?: (fromTaskId: string, toTaskId: string) => void;\n /** Push a message to the aria-live region (drag/keyboard commits). */\n announce?: (message: string) => void;\n}\n\ninterface DragRef {\n type: GanttDragType;\n taskId: string;\n startClientX: number;\n startScrollLeft: number;\n lastClientX: number;\n lastClientY: number;\n moved: boolean;\n}\n\nexport interface UseGanttDragReturn {\n state: GanttDragState | null;\n /** Begin a drag from a pointerdown on the bar / a resize handle / the link connector. */\n startDrag: (type: GanttDragType, taskId: string, event: React.PointerEvent) => void;\n /** True for one frame after a real drag, so the trailing click doesn't fire onTaskClick. */\n didDrag: () => boolean;\n /** Keyboard nudge: move / resize a task by whole days and announce it. */\n nudge: (taskId: string, action: 'move' | 'resize', days: number) => void;\n}\n\n/**\n * Owns every drag interaction (move / resize-start / resize-end / link) on plain pointer\n * events — no @dnd-kit. pointerdown → document pointermove → pointerup, snapping to whole\n * days only on release. Auto-scrolls the viewport near its edges and keeps delta correct\n * across that scroll, so the bar follows the cursor. Modeled on @mantine/schedule's\n * use-horizontal-event-resize + use-auto-scroll-on-drag.\n */\nexport function useGanttDrag(options: UseGanttDragOptions): UseGanttDragReturn {\n const [state, setState] = useState<GanttDragState | null>(null);\n\n // Latest options, read inside document listeners that outlive a single render.\n const optsRef = useRef(options);\n optsRef.current = options;\n\n const dragRef = useRef<DragRef | null>(null);\n const rafRef = useRef<number | null>(null);\n const scrollVec = useRef({ x: 0, y: 0 });\n const didDragRef = useRef(false);\n\n const stopAutoScroll = useCallback(() => {\n if (rafRef.current !== null) {\n cancelAnimationFrame(rafRef.current);\n rafRef.current = null;\n }\n scrollVec.current = { x: 0, y: 0 };\n }, []);\n\n // Rebuild live state from the last pointer position and the current scroll offset.\n const recompute = useCallback(() => {\n const drag = dragRef.current;\n const body = optsRef.current.bodyRef.current;\n const content = optsRef.current.contentRef.current;\n if (!drag || !body) {\n return;\n }\n\n if (drag.type === 'link') {\n const rect = content?.getBoundingClientRect();\n const x = rect ? drag.lastClientX - rect.left : 0;\n const y = rect ? drag.lastClientY - rect.top : 0;\n // Hit-test the task under the cursor via the DOM (O(1) per move).\n // ponytail: elementFromPoint is fine here; cache row rects on drag start if it ever shows up hot.\n const el = document.elementFromPoint(drag.lastClientX, drag.lastClientY);\n const targetEl = el?.closest('[data-task-id]') as HTMLElement | null;\n const targetId = targetEl?.dataset.taskId ?? null;\n setState({\n type: 'link',\n taskId: drag.taskId,\n deltaX: 0,\n linkCursor: { x, y },\n dropTargetId: targetId && targetId !== drag.taskId ? targetId : null,\n });\n return;\n }\n\n const deltaX = drag.lastClientX - drag.startClientX + (body.scrollLeft - drag.startScrollLeft);\n setState({\n type: drag.type,\n taskId: drag.taskId,\n deltaX,\n linkCursor: null,\n dropTargetId: null,\n });\n }, []);\n\n const autoScrollTick = useCallback(() => {\n const body = optsRef.current.bodyRef.current;\n const v = scrollVec.current;\n if (!body || (v.x === 0 && v.y === 0)) {\n rafRef.current = null;\n return;\n }\n body.scrollLeft += v.x;\n body.scrollTop += v.y;\n recompute();\n rafRef.current = requestAnimationFrame(autoScrollTick);\n }, [recompute]);\n\n // Update auto-scroll velocity from the pointer's proximity to the viewport edges.\n const updateAutoScroll = useCallback(\n (clientX: number, clientY: number, allowVertical: boolean) => {\n const body = optsRef.current.bodyRef.current;\n if (!body) {\n return;\n }\n const rect = body.getBoundingClientRect();\n let vx = 0;\n let vy = 0;\n\n const fromLeft = clientX - rect.left;\n const fromRight = rect.right - clientX;\n if (fromLeft < EDGE_THRESHOLD) {\n vx = -Math.ceil((1 - fromLeft / EDGE_THRESHOLD) * MAX_SCROLL_SPEED);\n } else if (fromRight < EDGE_THRESHOLD) {\n vx = Math.ceil((1 - fromRight / EDGE_THRESHOLD) * MAX_SCROLL_SPEED);\n }\n\n if (allowVertical) {\n const fromTop = clientY - rect.top;\n const fromBottom = rect.bottom - clientY;\n if (fromTop < EDGE_THRESHOLD) {\n vy = -Math.ceil((1 - fromTop / EDGE_THRESHOLD) * MAX_SCROLL_SPEED);\n } else if (fromBottom < EDGE_THRESHOLD) {\n vy = Math.ceil((1 - fromBottom / EDGE_THRESHOLD) * MAX_SCROLL_SPEED);\n }\n }\n\n scrollVec.current = { x: vx, y: vy };\n if ((vx !== 0 || vy !== 0) && rafRef.current === null) {\n rafRef.current = requestAnimationFrame(autoScrollTick);\n }\n },\n [autoScrollTick]\n );\n\n const handlePointerMove = useCallback(\n (e: PointerEvent) => {\n const drag = dragRef.current;\n if (!drag) {\n return;\n }\n // Enforce the activation threshold so a click without real movement is not a drag.\n if (!drag.moved) {\n if (Math.abs(e.clientX - drag.startClientX) < DRAG_ACTIVATION_DISTANCE) {\n return;\n }\n drag.moved = true;\n didDragRef.current = true;\n document.body.style.userSelect = 'none';\n document.body.style.cursor = drag.type === 'link' ? 'crosshair' : 'grabbing';\n }\n e.preventDefault();\n drag.lastClientX = e.clientX;\n drag.lastClientY = e.clientY;\n updateAutoScroll(e.clientX, e.clientY, drag.type === 'link');\n recompute();\n },\n [recompute, updateAutoScroll]\n );\n\n const commit = useCallback((drag: DragRef) => {\n const { setTasks, columnWidth, onTaskUpdate, onLinkCreate, announce, bodyRef } =\n optsRef.current;\n\n if (drag.type === 'link') {\n const el = document.elementFromPoint(drag.lastClientX, drag.lastClientY);\n const targetEl = el?.closest('[data-task-id]') as HTMLElement | null;\n const toTaskId = targetEl?.dataset.taskId;\n if (toTaskId && toTaskId !== drag.taskId) {\n setTasks((current) =>\n current.map((task) => {\n if (task.id !== toTaskId) {\n return task;\n }\n const deps = task.dependencies || [];\n return deps.includes(drag.taskId)\n ? task\n : { ...task, dependencies: [...deps, drag.taskId] };\n })\n );\n onLinkCreate?.(drag.taskId, toTaskId);\n }\n return;\n }\n\n const body = bodyRef.current;\n const deltaX =\n drag.lastClientX - drag.startClientX + (body ? body.scrollLeft - drag.startScrollLeft : 0);\n const days = Math.round(snapToGrid(deltaX, columnWidth) / columnWidth);\n if (days === 0) {\n return;\n }\n\n setTasks((current) => {\n const next = current.map((task) => {\n if (task.id !== drag.taskId) {\n return task;\n }\n if (drag.type === 'move') {\n return {\n ...task,\n startDate: dayjs(task.startDate).add(days, 'day').format('YYYY-MM-DD'),\n };\n }\n if (drag.type === 'resize-end') {\n return { ...task, duration: Math.max(1, task.duration + days) };\n }\n // resize-start: shift start, keep the right edge (duration shrinks/grows by -days).\n return {\n ...task,\n startDate: dayjs(task.startDate).add(days, 'day').format('YYYY-MM-DD'),\n duration: Math.max(1, task.duration - days),\n };\n });\n const updated = next.find((t) => t.id === drag.taskId);\n if (updated) {\n onTaskUpdate?.(updated);\n announce?.(`${updated.label} ${updated.startDate}, ${updated.duration} day duration`);\n }\n return next;\n });\n }, []);\n\n const handlePointerUp = useCallback(() => {\n const drag = dragRef.current;\n document.removeEventListener('pointermove', handlePointerMove);\n document.removeEventListener('pointerup', handlePointerUp);\n stopAutoScroll();\n document.body.style.userSelect = '';\n document.body.style.cursor = '';\n\n if (drag && drag.moved) {\n commit(drag);\n // Swallow the click that follows a real drag (see didDrag).\n requestAnimationFrame(() => {\n didDragRef.current = false;\n });\n } else {\n didDragRef.current = false;\n }\n\n dragRef.current = null;\n setState(null);\n }, [commit, handlePointerMove, stopAutoScroll]);\n\n const startDrag = useCallback(\n (type: GanttDragType, taskId: string, event: React.PointerEvent) => {\n event.stopPropagation();\n const body = optsRef.current.bodyRef.current;\n dragRef.current = {\n type,\n taskId,\n startClientX: event.clientX,\n startScrollLeft: body ? body.scrollLeft : 0,\n lastClientX: event.clientX,\n lastClientY: event.clientY,\n moved: false,\n };\n document.addEventListener('pointermove', handlePointerMove);\n document.addEventListener('pointerup', handlePointerUp);\n },\n [handlePointerMove, handlePointerUp]\n );\n\n const didDrag = useCallback(() => didDragRef.current, []);\n\n const nudge = useCallback((taskId: string, action: 'move' | 'resize', days: number) => {\n const { setTasks, onTaskUpdate, announce } = optsRef.current;\n setTasks((current) => {\n const next = current.map((task) => {\n if (task.id !== taskId) {\n return task;\n }\n if (action === 'move') {\n return {\n ...task,\n startDate: dayjs(task.startDate).add(days, 'day').format('YYYY-MM-DD'),\n };\n }\n return { ...task, duration: Math.max(1, task.duration + days) };\n });\n const updated = next.find((t) => t.id === taskId);\n if (updated) {\n onTaskUpdate?.(updated);\n announce?.(`${updated.label} ${updated.startDate}, ${updated.duration} day duration`);\n }\n return next;\n });\n }, []);\n\n return { state, startDrag, didDrag, nudge };\n}\n"],"names":[],"mappings":";;;;;AAGA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,GAAG,CAAE,CAAA,CAAA;AACzB,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,GAAG,CAAE,CAAA,CAAA;AAC3B,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA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,CAAA,CAAA,CAAA,CAAE,EAAE,CAAC,CAAA;AACR,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,EAAE,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,SAAS,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAE,CAAA,CAAA;AAC7C,CAAA;;"}
|
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.me_d2025adb{border:1px solid var(--mantine-color-default-border);border-radius:var(--mantine-radius-md);font-size:var(--mantine-font-size-sm);height:100%;min-height:400px;overflow:hidden}.me_d2025adb,.me_f2f7453c{background-color:var(--mantine-color-body);display:flex}.me_f2f7453c{border-right:1px solid var(--mantine-color-default-border);flex-direction:column;min-width:var(--gantt-task-list-width,320px);width:var(--gantt-task-list-width,320px)}.me_923f36e9{background-color:var(--mantine-color-gray-0);display:grid;
|
|
1
|
+
.me_d2025adb{border:1px solid var(--mantine-color-default-border);border-radius:var(--mantine-radius-md);font-size:var(--mantine-font-size-sm);height:100%;min-height:400px;overflow:hidden}.me_d2025adb,.me_f2f7453c{background-color:var(--mantine-color-body);display:flex}.me_f2f7453c{border-right:1px solid var(--mantine-color-default-border);flex-direction:column;min-width:var(--gantt-task-list-width,320px);width:var(--gantt-task-list-width,320px)}.me_923f36e9{background-color:var(--mantine-color-gray-0);display:grid;height:var(--gantt-header-height,50px)}[data-mantine-color-scheme=dark] .me_923f36e9{background-color:var(--mantine-color-dark-6)}.me_923f36e9{border-bottom:1px solid var(--mantine-color-default-border);font-weight:600;position:sticky;top:0;z-index:10}.me_60a797eb{align-items:center;border-right:1px solid var(--mantine-color-default-border);color:var(--mantine-color-gray-7);display:flex;padding:0 var(--mantine-spacing-sm)}[data-mantine-color-scheme=dark] .me_60a797eb{color:var(--mantine-color-dark-1)}.me_60a797eb:last-child{border-right:none}.me_6f39f4fe{flex:1;overflow-y:auto;scrollbar-width:none}.me_6f39f4fe::-webkit-scrollbar{display:none}.me_352322fe{border-bottom:1px solid var(--mantine-color-default-border);display:grid;height:var(--gantt-row-height,44px);transition:background-color .15s ease}.me_352322fe:hover{background-color:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .me_352322fe:hover{background-color:var(--mantine-color-dark-6)}.me_6f3a44be{align-items:center;border-right:1px solid var(--mantine-color-default-border);display:flex;overflow:hidden;padding:0 var(--mantine-spacing-sm);text-overflow:ellipsis;white-space:nowrap}.me_6f3a44be:last-child{border-right:none}.me_6f3a44be:first-child{color:var(--mantine-color-gray-8);font-weight:500}[data-mantine-color-scheme=dark] .me_6f3a44be:first-child{color:var(--mantine-color-dark-0)}.me_6f3a44be:not(:first-child){color:var(--mantine-color-gray-6);font-size:var(--mantine-font-size-xs)}[data-mantine-color-scheme=dark] .me_6f3a44be:not(:first-child){color:var(--mantine-color-dark-2)}.me_8fa609ba{display:flex;flex:1;flex-direction:column;overflow:hidden;position:relative}.me_c31c24e7{background-color:var(--mantine-color-gray-0);height:var(--gantt-header-height,50px)}[data-mantine-color-scheme=dark] .me_c31c24e7{background-color:var(--mantine-color-dark-6)}.me_c31c24e7{border-bottom:1px solid var(--mantine-color-default-border);flex-shrink:0;overflow-x:hidden;overflow-y:hidden}.me_cb4231af{display:flex;flex-direction:column;height:100%}.me_282b9f73{display:flex;flex:1}.me_dd4156e9{align-items:center;border-right:1px solid var(--mantine-color-default-border);color:var(--mantine-color-gray-6);display:flex;font-size:var(--mantine-font-size-xs);font-weight:500;justify-content:center;min-width:var(--gantt-column-width,40px);width:var(--gantt-column-width,40px)}[data-mantine-color-scheme=dark] .me_dd4156e9{color:var(--mantine-color-dark-2)}.me_dd4156e9:last-child{border-right:none}.me_dd4156e9[data-weekend]{background-color:var(--mantine-color-gray-1)}[data-mantine-color-scheme=dark] .me_dd4156e9[data-weekend]{background-color:var(--mantine-color-dark-7)}.me_dd4156e9[data-today],[data-mantine-color-scheme=dark] .me_dd4156e9[data-today]{background-color:var(--mantine-primary-color-light)}.me_dd4156e9[data-today]{color:var(--mantine-primary-color-filled);font-weight:600}.me_8ac462da{background-color:var(--mantine-color-gray-1);border-bottom:1px solid var(--mantine-color-default-border);display:flex}[data-mantine-color-scheme=dark] .me_8ac462da{background-color:var(--mantine-color-dark-7)}.me_f9e3635c{align-items:center;border-right:1px solid var(--mantine-color-default-border);color:var(--mantine-color-gray-7);display:flex;font-size:var(--mantine-font-size-xs);font-weight:600;justify-content:center}[data-mantine-color-scheme=dark] .me_f9e3635c{color:var(--mantine-color-dark-1)}.me_f9e3635c{min-width:0;overflow:hidden;padding:2px var(--mantine-spacing-xs);text-overflow:ellipsis;white-space:nowrap}.me_f9e3635c:last-child{border-right:none}.me_d5d64a7c{cursor:grab;flex:1;overflow-x:auto;overflow-y:scroll;position:relative;scrollbar-width:none}.me_d5d64a7c::-webkit-scrollbar{height:12px;width:0}.me_d5d64a7c::-webkit-scrollbar-track{background:var(--mantine-color-gray-1)}[data-mantine-color-scheme=dark] .me_d5d64a7c::-webkit-scrollbar-track{background:var(--mantine-color-dark-6)}.me_d5d64a7c::-webkit-scrollbar-thumb{background:var(--mantine-color-gray-4)}[data-mantine-color-scheme=dark] .me_d5d64a7c::-webkit-scrollbar-thumb{background:var(--mantine-color-dark-4)}.me_d5d64a7c::-webkit-scrollbar-thumb{border-radius:6px}.me_d5d64a7c::-webkit-scrollbar-thumb:hover{background:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .me_d5d64a7c::-webkit-scrollbar-thumb:hover{background:var(--mantine-color-dark-3)}.me_a9b83d5f{min-height:100%;position:relative}.me_d5d89c20{left:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0}.me_3be2739c{background-color:rgba(0,0,0,.03);position:absolute;top:0}[data-mantine-color-scheme=dark] .me_3be2739c{background-color:hsla(0,0%,100%,.02)}.me_1e5ed1d3{background-color:rgba(0,0,0,.08);position:absolute;top:0;width:1px}[data-mantine-color-scheme=dark] .me_1e5ed1d3{background-color:hsla(0,0%,100%,.08)}.me_77ef3b5a{background-color:rgba(0,0,0,.2);position:absolute;top:0;width:1px}[data-mantine-color-scheme=dark] .me_77ef3b5a{background-color:hsla(0,0%,100%,.15)}.me_6b1855{background-color:var(--mantine-color-default-border);height:1px}.me_6b1855,.me_8b0725c0{left:0;position:absolute;right:0}.me_8b0725c0{border-bottom:1px solid var(--mantine-color-default-border);height:var(--gantt-row-height,44px)}.me_8b0725c0:last-child{border-bottom:none}.me_5228dbb5{align-items:center;background-color:var(--task-bar-color,var(--mantine-primary-color-filled));border-radius:var(--mantine-radius-sm);box-shadow:var(--mantine-shadow-xs);cursor:grab;display:flex;height:calc(var(--gantt-row-height) - 16px);overflow:visible;position:absolute;top:8px;touch-action:none;user-select:none;will-change:left,width,transform;z-index:10}.me_5228dbb5:hover{box-shadow:var(--mantine-shadow-sm)}.me_5228dbb5:focus-visible{outline:2px solid var(--mantine-primary-color-filled);outline-offset:2px}.me_5228dbb5[data-dragging]{box-shadow:var(--mantine-shadow-md);cursor:grabbing;opacity:.9;transition:box-shadow .15s ease;z-index:100}.me_d1af7d02{background-color:rgba(0,0,0,.15);border-radius:var(--mantine-radius-sm) 0 0 var(--mantine-radius-sm);height:100%;left:0;pointer-events:none;position:absolute;top:0}.me_b561bc3f{color:var(--mantine-color-white);font-size:var(--mantine-font-size-xs);font-weight:500;overflow:hidden;padding:0 var(--mantine-spacing-xs);position:relative;text-overflow:ellipsis;white-space:nowrap;z-index:1}.me_176570f5{align-items:center;background:linear-gradient(90deg,transparent,rgba(0,0,0,.1));cursor:ew-resize;display:flex;height:100%;justify-content:center;opacity:0;position:absolute;right:0;top:0;touch-action:none;transition:opacity .15s ease;width:10px}.me_5228dbb5:hover .me_176570f5{opacity:1}.me_176570f5:after{border-left:1px solid hsla(0,0%,100%,.5);border-right:1px solid hsla(0,0%,100%,.5);content:"";height:14px;width:3px}.me_14ce029c{align-items:center;background:linear-gradient(270deg,transparent,rgba(0,0,0,.1));cursor:ew-resize;display:flex;height:100%;justify-content:center;left:0;opacity:0;position:absolute;top:0;touch-action:none;transition:opacity .15s ease;width:10px;z-index:2}.me_5228dbb5:hover .me_14ce029c{opacity:1}.me_14ce029c:after{border-left:1px solid hsla(0,0%,100%,.5);border-right:1px solid hsla(0,0%,100%,.5);content:"";height:14px;width:3px}.me_810d0b9a{background-color:var(--mantine-primary-color-filled);border:2px solid var(--mantine-color-white);border-radius:50%;height:14px;position:absolute;right:-18px;top:50%;transform:translateY(-50%);width:14px}[data-mantine-color-scheme=dark] .me_810d0b9a{border:2px solid var(--mantine-color-dark-6)}.me_810d0b9a{cursor:crosshair;opacity:0;touch-action:none;transition:opacity .15s ease,transform .15s ease;z-index:30}.me_5228dbb5:hover .me_810d0b9a{opacity:1}.me_810d0b9a:hover{background-color:var(--mantine-primary-color-filled);transform:translateY(-50%) scale(1.2)}.me_5228dbb5[data-link-target]{outline:2px dashed var(--mantine-primary-color-filled);outline-offset:2px}.me_f220b47c{bottom:0;pointer-events:none;width:2px;z-index:50}.me_f220b47c,.me_f220b47c:before{background-color:var(--mantine-color-red-6);position:absolute;top:0}.me_f220b47c:before{border-radius:50%;content:"";height:10px;left:-4px;width:10px}.me_d0e44395{height:100%;left:0;overflow:visible;pointer-events:none;position:absolute;top:0;width:100%;z-index:1}.me_69d5d098{fill:none;stroke:var(--mantine-color-gray-6)}[data-mantine-color-scheme=dark] .me_69d5d098{stroke:var(--mantine-color-gray-5)}.me_69d5d098{stroke-width:1.5;pointer-events:stroke}.me_69d5d098:hover{stroke:var(--mantine-color-gray-8)}[data-mantine-color-scheme=dark] .me_69d5d098:hover{stroke:var(--mantine-color-gray-3)}.me_ffc139d6{fill:var(--mantine-color-gray-6)}[data-mantine-color-scheme=dark] .me_ffc139d6{fill:var(--mantine-color-gray-5)}
|
package/dist/styles.layer.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer mantine {.me_d2025adb{border:1px solid var(--mantine-color-default-border);border-radius:var(--mantine-radius-md);font-size:var(--mantine-font-size-sm);height:100%;min-height:400px;overflow:hidden}.me_d2025adb,.me_f2f7453c{background-color:var(--mantine-color-body);display:flex}.me_f2f7453c{border-right:1px solid var(--mantine-color-default-border);flex-direction:column;min-width:var(--gantt-task-list-width,320px);width:var(--gantt-task-list-width,320px)}.me_923f36e9{background-color:var(--mantine-color-gray-0);display:grid;
|
|
1
|
+
@layer mantine {.me_d2025adb{border:1px solid var(--mantine-color-default-border);border-radius:var(--mantine-radius-md);font-size:var(--mantine-font-size-sm);height:100%;min-height:400px;overflow:hidden}.me_d2025adb,.me_f2f7453c{background-color:var(--mantine-color-body);display:flex}.me_f2f7453c{border-right:1px solid var(--mantine-color-default-border);flex-direction:column;min-width:var(--gantt-task-list-width,320px);width:var(--gantt-task-list-width,320px)}.me_923f36e9{background-color:var(--mantine-color-gray-0);display:grid;height:var(--gantt-header-height,50px)}[data-mantine-color-scheme=dark] .me_923f36e9{background-color:var(--mantine-color-dark-6)}.me_923f36e9{border-bottom:1px solid var(--mantine-color-default-border);font-weight:600;position:sticky;top:0;z-index:10}.me_60a797eb{align-items:center;border-right:1px solid var(--mantine-color-default-border);color:var(--mantine-color-gray-7);display:flex;padding:0 var(--mantine-spacing-sm)}[data-mantine-color-scheme=dark] .me_60a797eb{color:var(--mantine-color-dark-1)}.me_60a797eb:last-child{border-right:none}.me_6f39f4fe{flex:1;overflow-y:auto;scrollbar-width:none}.me_6f39f4fe::-webkit-scrollbar{display:none}.me_352322fe{border-bottom:1px solid var(--mantine-color-default-border);display:grid;height:var(--gantt-row-height,44px);transition:background-color .15s ease}.me_352322fe:hover{background-color:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .me_352322fe:hover{background-color:var(--mantine-color-dark-6)}.me_6f3a44be{align-items:center;border-right:1px solid var(--mantine-color-default-border);display:flex;overflow:hidden;padding:0 var(--mantine-spacing-sm);text-overflow:ellipsis;white-space:nowrap}.me_6f3a44be:last-child{border-right:none}.me_6f3a44be:first-child{color:var(--mantine-color-gray-8);font-weight:500}[data-mantine-color-scheme=dark] .me_6f3a44be:first-child{color:var(--mantine-color-dark-0)}.me_6f3a44be:not(:first-child){color:var(--mantine-color-gray-6);font-size:var(--mantine-font-size-xs)}[data-mantine-color-scheme=dark] .me_6f3a44be:not(:first-child){color:var(--mantine-color-dark-2)}.me_8fa609ba{display:flex;flex:1;flex-direction:column;overflow:hidden;position:relative}.me_c31c24e7{background-color:var(--mantine-color-gray-0);height:var(--gantt-header-height,50px)}[data-mantine-color-scheme=dark] .me_c31c24e7{background-color:var(--mantine-color-dark-6)}.me_c31c24e7{border-bottom:1px solid var(--mantine-color-default-border);flex-shrink:0;overflow-x:hidden;overflow-y:hidden}.me_cb4231af{display:flex;flex-direction:column;height:100%}.me_282b9f73{display:flex;flex:1}.me_dd4156e9{align-items:center;border-right:1px solid var(--mantine-color-default-border);color:var(--mantine-color-gray-6);display:flex;font-size:var(--mantine-font-size-xs);font-weight:500;justify-content:center;min-width:var(--gantt-column-width,40px);width:var(--gantt-column-width,40px)}[data-mantine-color-scheme=dark] .me_dd4156e9{color:var(--mantine-color-dark-2)}.me_dd4156e9:last-child{border-right:none}.me_dd4156e9[data-weekend]{background-color:var(--mantine-color-gray-1)}[data-mantine-color-scheme=dark] .me_dd4156e9[data-weekend]{background-color:var(--mantine-color-dark-7)}.me_dd4156e9[data-today],[data-mantine-color-scheme=dark] .me_dd4156e9[data-today]{background-color:var(--mantine-primary-color-light)}.me_dd4156e9[data-today]{color:var(--mantine-primary-color-filled);font-weight:600}.me_8ac462da{background-color:var(--mantine-color-gray-1);border-bottom:1px solid var(--mantine-color-default-border);display:flex}[data-mantine-color-scheme=dark] .me_8ac462da{background-color:var(--mantine-color-dark-7)}.me_f9e3635c{align-items:center;border-right:1px solid var(--mantine-color-default-border);color:var(--mantine-color-gray-7);display:flex;font-size:var(--mantine-font-size-xs);font-weight:600;justify-content:center}[data-mantine-color-scheme=dark] .me_f9e3635c{color:var(--mantine-color-dark-1)}.me_f9e3635c{min-width:0;overflow:hidden;padding:2px var(--mantine-spacing-xs);text-overflow:ellipsis;white-space:nowrap}.me_f9e3635c:last-child{border-right:none}.me_d5d64a7c{cursor:grab;flex:1;overflow-x:auto;overflow-y:scroll;position:relative;scrollbar-width:none}.me_d5d64a7c::-webkit-scrollbar{height:12px;width:0}.me_d5d64a7c::-webkit-scrollbar-track{background:var(--mantine-color-gray-1)}[data-mantine-color-scheme=dark] .me_d5d64a7c::-webkit-scrollbar-track{background:var(--mantine-color-dark-6)}.me_d5d64a7c::-webkit-scrollbar-thumb{background:var(--mantine-color-gray-4)}[data-mantine-color-scheme=dark] .me_d5d64a7c::-webkit-scrollbar-thumb{background:var(--mantine-color-dark-4)}.me_d5d64a7c::-webkit-scrollbar-thumb{border-radius:6px}.me_d5d64a7c::-webkit-scrollbar-thumb:hover{background:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .me_d5d64a7c::-webkit-scrollbar-thumb:hover{background:var(--mantine-color-dark-3)}.me_a9b83d5f{min-height:100%;position:relative}.me_d5d89c20{left:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0}.me_3be2739c{background-color:rgba(0,0,0,.03);position:absolute;top:0}[data-mantine-color-scheme=dark] .me_3be2739c{background-color:hsla(0,0%,100%,.02)}.me_1e5ed1d3{background-color:rgba(0,0,0,.08);position:absolute;top:0;width:1px}[data-mantine-color-scheme=dark] .me_1e5ed1d3{background-color:hsla(0,0%,100%,.08)}.me_77ef3b5a{background-color:rgba(0,0,0,.2);position:absolute;top:0;width:1px}[data-mantine-color-scheme=dark] .me_77ef3b5a{background-color:hsla(0,0%,100%,.15)}.me_6b1855{background-color:var(--mantine-color-default-border);height:1px}.me_6b1855,.me_8b0725c0{left:0;position:absolute;right:0}.me_8b0725c0{border-bottom:1px solid var(--mantine-color-default-border);height:var(--gantt-row-height,44px)}.me_8b0725c0:last-child{border-bottom:none}.me_5228dbb5{align-items:center;background-color:var(--task-bar-color,var(--mantine-primary-color-filled));border-radius:var(--mantine-radius-sm);box-shadow:var(--mantine-shadow-xs);cursor:grab;display:flex;height:calc(var(--gantt-row-height) - 16px);overflow:visible;position:absolute;top:8px;touch-action:none;user-select:none;will-change:left,width,transform;z-index:10}.me_5228dbb5:hover{box-shadow:var(--mantine-shadow-sm)}.me_5228dbb5:focus-visible{outline:2px solid var(--mantine-primary-color-filled);outline-offset:2px}.me_5228dbb5[data-dragging]{box-shadow:var(--mantine-shadow-md);cursor:grabbing;opacity:.9;transition:box-shadow .15s ease;z-index:100}.me_d1af7d02{background-color:rgba(0,0,0,.15);border-radius:var(--mantine-radius-sm) 0 0 var(--mantine-radius-sm);height:100%;left:0;pointer-events:none;position:absolute;top:0}.me_b561bc3f{color:var(--mantine-color-white);font-size:var(--mantine-font-size-xs);font-weight:500;overflow:hidden;padding:0 var(--mantine-spacing-xs);position:relative;text-overflow:ellipsis;white-space:nowrap;z-index:1}.me_176570f5{align-items:center;background:linear-gradient(90deg,transparent,rgba(0,0,0,.1));cursor:ew-resize;display:flex;height:100%;justify-content:center;opacity:0;position:absolute;right:0;top:0;touch-action:none;transition:opacity .15s ease;width:10px}.me_5228dbb5:hover .me_176570f5{opacity:1}.me_176570f5:after{border-left:1px solid hsla(0,0%,100%,.5);border-right:1px solid hsla(0,0%,100%,.5);content:"";height:14px;width:3px}.me_14ce029c{align-items:center;background:linear-gradient(270deg,transparent,rgba(0,0,0,.1));cursor:ew-resize;display:flex;height:100%;justify-content:center;left:0;opacity:0;position:absolute;top:0;touch-action:none;transition:opacity .15s ease;width:10px;z-index:2}.me_5228dbb5:hover .me_14ce029c{opacity:1}.me_14ce029c:after{border-left:1px solid hsla(0,0%,100%,.5);border-right:1px solid hsla(0,0%,100%,.5);content:"";height:14px;width:3px}.me_810d0b9a{background-color:var(--mantine-primary-color-filled);border:2px solid var(--mantine-color-white);border-radius:50%;height:14px;position:absolute;right:-18px;top:50%;transform:translateY(-50%);width:14px}[data-mantine-color-scheme=dark] .me_810d0b9a{border:2px solid var(--mantine-color-dark-6)}.me_810d0b9a{cursor:crosshair;opacity:0;touch-action:none;transition:opacity .15s ease,transform .15s ease;z-index:30}.me_5228dbb5:hover .me_810d0b9a{opacity:1}.me_810d0b9a:hover{background-color:var(--mantine-primary-color-filled);transform:translateY(-50%) scale(1.2)}.me_5228dbb5[data-link-target]{outline:2px dashed var(--mantine-primary-color-filled);outline-offset:2px}.me_f220b47c{bottom:0;pointer-events:none;width:2px;z-index:50}.me_f220b47c,.me_f220b47c:before{background-color:var(--mantine-color-red-6);position:absolute;top:0}.me_f220b47c:before{border-radius:50%;content:"";height:10px;left:-4px;width:10px}.me_d0e44395{height:100%;left:0;overflow:visible;pointer-events:none;position:absolute;top:0;width:100%;z-index:1}.me_69d5d098{fill:none;stroke:var(--mantine-color-gray-6)}[data-mantine-color-scheme=dark] .me_69d5d098{stroke:var(--mantine-color-gray-5)}.me_69d5d098{stroke-width:1.5;pointer-events:stroke}.me_69d5d098:hover{stroke:var(--mantine-color-gray-8)}[data-mantine-color-scheme=dark] .me_69d5d098:hover{stroke:var(--mantine-color-gray-3)}.me_ffc139d6{fill:var(--mantine-color-gray-6)}[data-mantine-color-scheme=dark] .me_ffc139d6{fill:var(--mantine-color-gray-5)}}
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
import type { Dayjs } from 'dayjs';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type {
|
|
3
|
+
import type { GetStylesApi } from '@mantine/core';
|
|
4
|
+
import type { GanttDragType, GanttFactory, GanttTask } from './types';
|
|
4
5
|
interface DependencyLinksProps {
|
|
5
6
|
tasks: GanttTask[];
|
|
6
7
|
startDate: Dayjs;
|
|
7
8
|
columnWidth: number;
|
|
8
9
|
rowHeight: number;
|
|
10
|
+
getStyles: GetStylesApi<GanttFactory>;
|
|
9
11
|
activeDragId?: string | null;
|
|
10
|
-
activeDragType?:
|
|
12
|
+
activeDragType?: GanttDragType | null;
|
|
13
|
+
/** Continuous, scroll-adjusted px delta of the active move/resize drag. */
|
|
11
14
|
dragDelta?: number;
|
|
15
|
+
/** Live link-creation line, in timelineContent coordinates. */
|
|
16
|
+
linkPreview?: {
|
|
17
|
+
x1: number;
|
|
18
|
+
y1: number;
|
|
19
|
+
x2: number;
|
|
20
|
+
y2: number;
|
|
21
|
+
} | null;
|
|
12
22
|
}
|
|
13
|
-
export declare function DependencyLinks({ tasks, startDate, columnWidth, rowHeight, activeDragId, activeDragType, dragDelta, }: DependencyLinksProps): React.JSX.Element;
|
|
23
|
+
export declare function DependencyLinks({ tasks, startDate, columnWidth, rowHeight, getStyles, activeDragId, activeDragType, dragDelta, linkPreview, }: DependencyLinksProps): React.JSX.Element;
|
|
14
24
|
export declare namespace DependencyLinks {
|
|
15
25
|
var displayName: string;
|
|
16
26
|
}
|
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
import type { Dayjs } from 'dayjs';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type GetStylesApi } from '@mantine/core';
|
|
4
|
-
import type { GanttFactory, GanttTask } from './types';
|
|
4
|
+
import type { GanttDragType, GanttFactory, GanttTask } from './types';
|
|
5
5
|
interface TaskBarProps {
|
|
6
6
|
task: GanttTask;
|
|
7
7
|
startDate: Dayjs;
|
|
8
8
|
columnWidth: number;
|
|
9
9
|
getStyles: GetStylesApi<GanttFactory>;
|
|
10
10
|
isDragging?: boolean;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/** True when this bar is the current link drop target (highlight it). */
|
|
12
|
+
isLinkTarget?: boolean;
|
|
13
|
+
/** Active drag type when THIS bar is the one being dragged, else null. */
|
|
14
|
+
dragType?: GanttDragType | null;
|
|
15
|
+
/** Continuous, scroll-adjusted px delta for the active drag of THIS bar. */
|
|
16
|
+
dragDeltaX?: number;
|
|
17
|
+
startDrag: (type: GanttDragType, taskId: string, event: React.PointerEvent) => void;
|
|
18
|
+
didDrag: () => boolean;
|
|
19
|
+
nudge: (taskId: string, action: 'move' | 'resize', days: number) => void;
|
|
13
20
|
onClick?: () => void;
|
|
14
21
|
}
|
|
15
|
-
declare function TaskBarComponent({ task, startDate, columnWidth, getStyles, isDragging,
|
|
22
|
+
declare function TaskBarComponent({ task, startDate, columnWidth, getStyles, isDragging, isLinkTarget, dragType, dragDeltaX, startDrag, didDrag, nudge, onClick, }: TaskBarProps): React.JSX.Element;
|
|
16
23
|
export declare const TaskBar: React.MemoExoticComponent<typeof TaskBarComponent>;
|
|
17
24
|
export {};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { GetStylesApi } from '@mantine/core';
|
|
3
|
-
import type { GanttFactory, GanttTask } from './types';
|
|
3
|
+
import type { GanttColumn, GanttFactory, GanttTask } from './types';
|
|
4
4
|
interface TaskListProps {
|
|
5
5
|
tasks: GanttTask[];
|
|
6
|
+
columns?: GanttColumn[];
|
|
6
7
|
getStyles: GetStylesApi<GanttFactory>;
|
|
7
8
|
bodyRef: React.RefObject<HTMLDivElement | null>;
|
|
8
9
|
onScroll: () => void;
|
|
9
10
|
}
|
|
10
|
-
export declare function TaskList({ tasks, getStyles, bodyRef, onScroll }: TaskListProps): React.JSX.Element;
|
|
11
|
+
export declare function TaskList({ tasks, columns, getStyles, bodyRef, onScroll, }: TaskListProps): React.JSX.Element;
|
|
11
12
|
export declare namespace TaskList {
|
|
12
13
|
var displayName: string;
|
|
13
14
|
}
|
|
@@ -11,7 +11,7 @@ interface TimelineGridProps {
|
|
|
11
11
|
getStyles: GetStylesApi<GanttFactory>;
|
|
12
12
|
viewMode: 'day' | 'week' | 'month';
|
|
13
13
|
}
|
|
14
|
-
export declare function TimelineGrid({ startDate, endDate, columnWidth, rowCount, rowHeight, viewMode, }: TimelineGridProps): React.JSX.Element;
|
|
14
|
+
export declare function TimelineGrid({ startDate, endDate, columnWidth, rowCount, rowHeight, getStyles, viewMode, }: TimelineGridProps): React.JSX.Element;
|
|
15
15
|
export declare namespace TimelineGrid {
|
|
16
16
|
var displayName: string;
|
|
17
17
|
}
|
|
@@ -10,7 +10,7 @@ interface TimelineHeaderProps {
|
|
|
10
10
|
totalWidth: number;
|
|
11
11
|
viewMode: 'day' | 'week' | 'month';
|
|
12
12
|
}
|
|
13
|
-
export declare function TimelineHeader({ startDate, endDate, columnWidth, totalWidth, viewMode, }: TimelineHeaderProps): React.JSX.Element;
|
|
13
|
+
export declare function TimelineHeader({ startDate, endDate, columnWidth, getStyles, totalWidth, viewMode, }: TimelineHeaderProps): React.JSX.Element;
|
|
14
14
|
export declare namespace TimelineHeader {
|
|
15
15
|
var displayName: string;
|
|
16
16
|
}
|
|
@@ -3,5 +3,5 @@ export { TaskBar } from './TaskBar';
|
|
|
3
3
|
export { TaskList } from './TaskList';
|
|
4
4
|
export { TimelineGrid } from './TimelineGrid';
|
|
5
5
|
export { TimelineHeader } from './TimelineHeader';
|
|
6
|
-
export type { GanttProps, GanttTask, GanttStylesNames, GanttCssVariables, GanttFactory,
|
|
6
|
+
export type { GanttProps, GanttTask, GanttColumn, GanttStylesNames, GanttCssVariables, GanttFactory, GanttDragType, } from './types';
|
|
7
7
|
export { dateToPixel, pixelToDate, snapToGrid, durationToPixels, pixelsToDuration, formatTaskDate, getTaskEndDate, calculateTimelineBounds, generateDayHeaders, generateWeekHeaders, } from './utils';
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
1
2
|
import type { BoxProps, ElementProps, Factory, MantineColor, StylesApiProps } from '@mantine/core';
|
|
3
|
+
/** A column in the left-hand task list */
|
|
4
|
+
export interface GanttColumn {
|
|
5
|
+
/** Header label */
|
|
6
|
+
header: ReactNode;
|
|
7
|
+
/** Cell content for a given task */
|
|
8
|
+
render: (task: GanttTask) => ReactNode;
|
|
9
|
+
/** Fixed column width in px; omit to flex (1fr) */
|
|
10
|
+
width?: number;
|
|
11
|
+
}
|
|
2
12
|
/** Represents a single task in the Gantt chart */
|
|
3
13
|
export interface GanttTask {
|
|
4
14
|
/** Unique identifier for the task */
|
|
@@ -16,13 +26,15 @@ export interface GanttTask {
|
|
|
16
26
|
/** Custom color for the task bar */
|
|
17
27
|
color?: MantineColor;
|
|
18
28
|
}
|
|
19
|
-
export type GanttStylesNames = 'root' | 'taskList' | 'taskListHeader' | 'taskListBody' | 'taskListRow' | 'taskListCell' | 'timeline' | 'timelineHeader' | 'timelineHeaderRow' | 'timelineHeaderCell' | 'weekHeader' | 'weekHeaderCell' | 'timelineBody' | 'timelineContent' | 'timelineRow' | 'timelineGrid' | 'gridLine' | 'taskBar' | 'taskBarLabel' | 'taskBarProgress' | 'resizeHandle' | 'resizeHandleLeft' | 'linkConnector';
|
|
29
|
+
export type GanttStylesNames = 'root' | 'taskList' | 'taskListHeader' | 'taskListBody' | 'taskListRow' | 'taskListCell' | 'timeline' | 'timelineHeader' | 'timelineHeaderInner' | 'timelineHeaderRow' | 'timelineHeaderCell' | 'weekHeader' | 'weekHeaderCell' | 'timelineBody' | 'timelineContent' | 'timelineRow' | 'timelineGrid' | 'gridLine' | 'majorGridLine' | 'weekendBackground' | 'todayLine' | 'taskBar' | 'taskBarLabel' | 'taskBarProgress' | 'resizeHandle' | 'resizeHandleLeft' | 'linkConnector' | 'dependencyLinks' | 'dependencyLine' | 'linkArrow';
|
|
20
30
|
export type GanttCssVariables = {
|
|
21
31
|
root: '--gantt-column-width' | '--gantt-row-height' | '--gantt-header-height' | '--gantt-task-list-width';
|
|
22
32
|
};
|
|
23
33
|
export interface GanttBaseProps {
|
|
24
34
|
/** Array of tasks to display */
|
|
25
35
|
tasks: GanttTask[];
|
|
36
|
+
/** Columns shown in the left task list. Defaults to Name / Start / End / Duration. */
|
|
37
|
+
columns?: GanttColumn[];
|
|
26
38
|
/** Callback when a task is updated (moved or resized) */
|
|
27
39
|
onTaskUpdate?: (task: GanttTask) => void;
|
|
28
40
|
/** Callback when a task is clicked */
|
|
@@ -54,9 +66,5 @@ export type GanttFactory = Factory<{
|
|
|
54
66
|
}>;
|
|
55
67
|
export interface GanttProps extends BoxProps, StylesApiProps<GanttFactory>, ElementProps<'div', 'onChange'>, GanttBaseProps {
|
|
56
68
|
}
|
|
57
|
-
/**
|
|
58
|
-
export
|
|
59
|
-
type: 'move' | 'resize';
|
|
60
|
-
taskId: string;
|
|
61
|
-
initialX: number;
|
|
62
|
-
}
|
|
69
|
+
/** Kind of drag interaction driven by useGanttDrag */
|
|
70
|
+
export type GanttDragType = 'move' | 'resize-end' | 'resize-start' | 'link';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { GanttDragType, GanttTask } from './types';
|
|
2
|
+
/** Live drag state, shared with TaskBar (bar geometry) and DependencyLinks (arrows + link line). */
|
|
3
|
+
export interface GanttDragState {
|
|
4
|
+
type: GanttDragType;
|
|
5
|
+
taskId: string;
|
|
6
|
+
/** Scroll-adjusted continuous px delta since drag start (not snapped until release). */
|
|
7
|
+
deltaX: number;
|
|
8
|
+
/** For a `link` drag: cursor position in timelineContent coordinates. */
|
|
9
|
+
linkCursor: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
} | null;
|
|
13
|
+
/** For a `link` drag: id of the task currently under the cursor (never the source). */
|
|
14
|
+
dropTargetId: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface UseGanttDragOptions {
|
|
17
|
+
tasks: GanttTask[];
|
|
18
|
+
setTasks: React.Dispatch<React.SetStateAction<GanttTask[]>>;
|
|
19
|
+
/** Effective column width in px (already adjusted for viewMode). */
|
|
20
|
+
columnWidth: number;
|
|
21
|
+
/** Scroll container — drives scroll-adjusted delta and auto-scroll. */
|
|
22
|
+
bodyRef: React.RefObject<HTMLDivElement | null>;
|
|
23
|
+
/** Positioned content — its rect maps client coords to timeline pixels. */
|
|
24
|
+
contentRef: React.RefObject<HTMLDivElement | null>;
|
|
25
|
+
onTaskUpdate?: (task: GanttTask) => void;
|
|
26
|
+
onLinkCreate?: (fromTaskId: string, toTaskId: string) => void;
|
|
27
|
+
/** Push a message to the aria-live region (drag/keyboard commits). */
|
|
28
|
+
announce?: (message: string) => void;
|
|
29
|
+
}
|
|
30
|
+
export interface UseGanttDragReturn {
|
|
31
|
+
state: GanttDragState | null;
|
|
32
|
+
/** Begin a drag from a pointerdown on the bar / a resize handle / the link connector. */
|
|
33
|
+
startDrag: (type: GanttDragType, taskId: string, event: React.PointerEvent) => void;
|
|
34
|
+
/** True for one frame after a real drag, so the trailing click doesn't fire onTaskClick. */
|
|
35
|
+
didDrag: () => boolean;
|
|
36
|
+
/** Keyboard nudge: move / resize a task by whole days and announce it. */
|
|
37
|
+
nudge: (taskId: string, action: 'move' | 'resize', days: number) => void;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Owns every drag interaction (move / resize-start / resize-end / link) on plain pointer
|
|
41
|
+
* events — no @dnd-kit. pointerdown → document pointermove → pointerup, snapping to whole
|
|
42
|
+
* days only on release. Auto-scrolls the viewport near its edges and keeps delta correct
|
|
43
|
+
* across that scroll, so the bar follows the cursor. Modeled on @mantine/schedule's
|
|
44
|
+
* use-horizontal-event-resize + use-auto-scroll-on-drag.
|
|
45
|
+
*/
|
|
46
|
+
export declare function useGanttDrag(options: UseGanttDragOptions): UseGanttDragReturn;
|