gantt-lib 0.129.0 → 0.130.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/core/scheduling/index.d.mts +1 -1
- package/dist/core/scheduling/index.d.ts +1 -1
- package/dist/{index-CIFbOgGc.d.mts → index-CZ_2i1CO.d.mts} +2 -0
- package/dist/{index-CIFbOgGc.d.ts → index-CZ_2i1CO.d.ts} +2 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4026,7 +4026,7 @@ var useTaskDrag = (options) => {
|
|
|
4026
4026
|
}
|
|
4027
4027
|
}
|
|
4028
4028
|
const isParentResize = currentTask && (finalMode === "resize-left" || finalMode === "resize-right") ? isTaskParent(taskId, allTasks) : false;
|
|
4029
|
-
if (!disableConstraints && onCascade && allTasks.length > 0 && !isParentResize) {
|
|
4029
|
+
if (!disableConstraints && onCascade && !onScheduleIntent && allTasks.length > 0 && !isParentResize) {
|
|
4030
4030
|
const draggedTaskData = currentTask;
|
|
4031
4031
|
const movedTask = {
|
|
4032
4032
|
...draggedTaskData ?? { id: taskId, name: "", startDate: "", endDate: "" },
|
|
@@ -14397,7 +14397,8 @@ function TaskGanttChartInner(props, ref) {
|
|
|
14397
14397
|
type: "change_duration",
|
|
14398
14398
|
taskId: updatedTask.id,
|
|
14399
14399
|
duration: targetDuration,
|
|
14400
|
-
anchor: durationEdit?.anchor ?? anchor
|
|
14400
|
+
anchor: durationEdit?.anchor ?? anchor,
|
|
14401
|
+
...durationEdit ? { taskType: updatedTask.type ?? "task" } : {}
|
|
14401
14402
|
});
|
|
14402
14403
|
const scaleResult = scaleTaskSubtreeDuration(updatedTask.id, targetDuration, tasks, {
|
|
14403
14404
|
anchor,
|
|
@@ -14437,7 +14438,8 @@ function TaskGanttChartInner(props, ref) {
|
|
|
14437
14438
|
type: "change_duration",
|
|
14438
14439
|
taskId: updatedTask.id,
|
|
14439
14440
|
duration: durationEdit.duration,
|
|
14440
|
-
anchor: durationEdit.anchor
|
|
14441
|
+
anchor: durationEdit.anchor,
|
|
14442
|
+
taskType: updatedTask.type ?? "task"
|
|
14441
14443
|
});
|
|
14442
14444
|
} else {
|
|
14443
14445
|
onTasksChange?.(cascadedTasks);
|