gantt-lib 0.128.0 → 0.128.2
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.js +2 -2
- package/dist/core/scheduling/index.js.map +1 -1
- package/dist/core/scheduling/index.mjs +2 -2
- package/dist/core/scheduling/index.mjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -726,6 +726,7 @@ function universalCascade(movedTask, newStart, newEnd, allTasks, businessDays =
|
|
|
726
726
|
const dependents = dependentsByPredecessorId.get(currentId) ?? [];
|
|
727
727
|
for (const { task, dependencyIndex } of dependents) {
|
|
728
728
|
if (task.locked || !task.dependencies) continue;
|
|
729
|
+
if (childShifted.has(task.id)) continue;
|
|
729
730
|
const dep = task.dependencies[dependencyIndex];
|
|
730
731
|
if (!dep) continue;
|
|
731
732
|
const origStart = new Date(task.startDate);
|
|
@@ -1223,7 +1224,6 @@ function recalculateProjectSchedule(snapshot, options) {
|
|
|
1223
1224
|
|
|
1224
1225
|
// src/core/scheduling/modeSwitch.ts
|
|
1225
1226
|
function reflowTasksOnModeSwitch(sourceTasks, toBusinessDays, weekendPredicate) {
|
|
1226
|
-
const fromBusinessDays = !toBusinessDays;
|
|
1227
1227
|
let tasks = sourceTasks.map((task) => ({
|
|
1228
1228
|
...task,
|
|
1229
1229
|
dependencies: task.dependencies?.map((dependency) => ({ ...dependency }))
|
|
@@ -1232,7 +1232,7 @@ function reflowTasksOnModeSwitch(sourceTasks, toBusinessDays, weekendPredicate)
|
|
|
1232
1232
|
for (const task of tasks) {
|
|
1233
1233
|
if (isTaskParent(task.id, tasks)) continue;
|
|
1234
1234
|
const start = normalizeUTCDate(/* @__PURE__ */ new Date(`${task.startDate}T00:00:00.000Z`));
|
|
1235
|
-
const duration = getTaskDuration(task.startDate, task.endDate,
|
|
1235
|
+
const duration = getTaskDuration(task.startDate, task.endDate, toBusinessDays, weekendPredicate);
|
|
1236
1236
|
const range = toBusinessDays ? buildTaskRangeFromStart(
|
|
1237
1237
|
alignToWorkingDay(start, 1, weekendPredicate),
|
|
1238
1238
|
duration,
|