@classic-homes/gantt-core 0.3.4 → 0.3.5
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.cjs +5 -3
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1950,9 +1950,11 @@ function outdentOperations(tasks, id) {
|
|
|
1950
1950
|
const below = siblings.slice(siblings.indexOf(id) + 1);
|
|
1951
1951
|
return [
|
|
1952
1952
|
{ type: "update-task", id, patch: { parentId: grand ?? void 0 } },
|
|
1953
|
-
...below.map(
|
|
1954
|
-
|
|
1955
|
-
|
|
1953
|
+
...below.map((s) => ({
|
|
1954
|
+
type: "update-task",
|
|
1955
|
+
id: s,
|
|
1956
|
+
patch: { parentId: id }
|
|
1957
|
+
}))
|
|
1956
1958
|
];
|
|
1957
1959
|
}
|
|
1958
1960
|
function insertTaskOperation(tasks, afterId, task) {
|
package/dist/index.js
CHANGED
|
@@ -678,9 +678,11 @@ function outdentOperations(tasks, id) {
|
|
|
678
678
|
const below = siblings.slice(siblings.indexOf(id) + 1);
|
|
679
679
|
return [
|
|
680
680
|
{ type: "update-task", id, patch: { parentId: grand ?? void 0 } },
|
|
681
|
-
...below.map(
|
|
682
|
-
|
|
683
|
-
|
|
681
|
+
...below.map((s) => ({
|
|
682
|
+
type: "update-task",
|
|
683
|
+
id: s,
|
|
684
|
+
patch: { parentId: id }
|
|
685
|
+
}))
|
|
684
686
|
];
|
|
685
687
|
}
|
|
686
688
|
function insertTaskOperation(tasks, afterId, task) {
|
package/package.json
CHANGED