gantt-lib 0.141.0 → 0.141.1
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/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16168,6 +16168,9 @@ function TaskGanttChartInner(props, ref) {
|
|
|
16168
16168
|
const newStart = new Date(updatedTask.startDate);
|
|
16169
16169
|
const newEnd = new Date(updatedTask.endDate);
|
|
16170
16170
|
const datesChanged = origStart.getTime() !== newStart.getTime() || origEnd.getTime() !== newEnd.getTime();
|
|
16171
|
+
if (datesChanged && onScheduleIntent && JSON.stringify(originalTask.dependencies ?? []) !== JSON.stringify(updatedTask.dependencies ?? [])) {
|
|
16172
|
+
onTasksChange?.([{ ...updatedTask, startDate: originalTask.startDate, endDate: originalTask.endDate }]);
|
|
16173
|
+
}
|
|
16171
16174
|
const isCompositeDetail = datesChanged && tasks.some((task) => task.id === updatedTask.parentId && task.composite);
|
|
16172
16175
|
if (isCompositeDetail) updatedTask = { ...updatedTask, synced: false };
|
|
16173
16176
|
if (!datesChanged) {
|