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
|
@@ -799,6 +799,7 @@ function universalCascade(movedTask, newStart, newEnd, allTasks, businessDays =
|
|
|
799
799
|
const dependents = dependentsByPredecessorId.get(currentId) ?? [];
|
|
800
800
|
for (const { task, dependencyIndex } of dependents) {
|
|
801
801
|
if (task.locked || !task.dependencies) continue;
|
|
802
|
+
if (childShifted.has(task.id)) continue;
|
|
802
803
|
const dep = task.dependencies[dependencyIndex];
|
|
803
804
|
if (!dep) continue;
|
|
804
805
|
const origStart = new Date(task.startDate);
|
|
@@ -1296,7 +1297,6 @@ function recalculateProjectSchedule(snapshot, options) {
|
|
|
1296
1297
|
|
|
1297
1298
|
// src/core/scheduling/modeSwitch.ts
|
|
1298
1299
|
function reflowTasksOnModeSwitch(sourceTasks, toBusinessDays, weekendPredicate) {
|
|
1299
|
-
const fromBusinessDays = !toBusinessDays;
|
|
1300
1300
|
let tasks = sourceTasks.map((task) => ({
|
|
1301
1301
|
...task,
|
|
1302
1302
|
dependencies: task.dependencies?.map((dependency) => ({ ...dependency }))
|
|
@@ -1305,7 +1305,7 @@ function reflowTasksOnModeSwitch(sourceTasks, toBusinessDays, weekendPredicate)
|
|
|
1305
1305
|
for (const task of tasks) {
|
|
1306
1306
|
if (isTaskParent(task.id, tasks)) continue;
|
|
1307
1307
|
const start = normalizeUTCDate(/* @__PURE__ */ new Date(`${task.startDate}T00:00:00.000Z`));
|
|
1308
|
-
const duration = getTaskDuration(task.startDate, task.endDate,
|
|
1308
|
+
const duration = getTaskDuration(task.startDate, task.endDate, toBusinessDays, weekendPredicate);
|
|
1309
1309
|
const range = toBusinessDays ? buildTaskRangeFromStart(
|
|
1310
1310
|
alignToWorkingDay(start, 1, weekendPredicate),
|
|
1311
1311
|
duration,
|