@thepocman/gantt-task-react 1.0.17 → 1.0.18
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.
|
@@ -1957,13 +1957,19 @@ const useGroupedVirtualization = (_containerRef, rowIndexToTasksMap, taskHeight)
|
|
|
1957
1957
|
}
|
|
1958
1958
|
return [...rowToHeight.entries()].map(([rowIndex, height]) => ({ rowIndex, height })).sort((a4, b3) => a4.rowIndex - b3.rowIndex);
|
|
1959
1959
|
}, [rowIndexToTasksMap, taskHeight]);
|
|
1960
|
-
if (rowEntries.length === 0) {
|
|
1960
|
+
if (!rowEntries || rowEntries.length === 0) {
|
|
1961
1961
|
return [0, 0, true, true, 0];
|
|
1962
1962
|
}
|
|
1963
|
-
const
|
|
1964
|
-
const
|
|
1963
|
+
const first = rowEntries[0];
|
|
1964
|
+
const last = rowEntries[rowEntries.length - 1];
|
|
1965
1965
|
const fullHeight = rowEntries.reduce((sum, r) => sum + r.height, 0);
|
|
1966
|
-
return [
|
|
1966
|
+
return [
|
|
1967
|
+
(first == null ? void 0 : first.rowIndex) ?? 0,
|
|
1968
|
+
(last == null ? void 0 : last.rowIndex) ?? 0,
|
|
1969
|
+
true,
|
|
1970
|
+
true,
|
|
1971
|
+
fullHeight
|
|
1972
|
+
];
|
|
1967
1973
|
};
|
|
1968
1974
|
const button$2 = "_button_1eue5_1";
|
|
1969
1975
|
const styles$i = {
|
|
@@ -1970,13 +1970,19 @@
|
|
|
1970
1970
|
}
|
|
1971
1971
|
return [...rowToHeight.entries()].map(([rowIndex, height]) => ({ rowIndex, height })).sort((a2, b2) => a2.rowIndex - b2.rowIndex);
|
|
1972
1972
|
}, [rowIndexToTasksMap, taskHeight]);
|
|
1973
|
-
if (rowEntries.length === 0) {
|
|
1973
|
+
if (!rowEntries || rowEntries.length === 0) {
|
|
1974
1974
|
return [0, 0, true, true, 0];
|
|
1975
1975
|
}
|
|
1976
|
-
const
|
|
1977
|
-
const
|
|
1976
|
+
const first = rowEntries[0];
|
|
1977
|
+
const last = rowEntries[rowEntries.length - 1];
|
|
1978
1978
|
const fullHeight = rowEntries.reduce((sum, r) => sum + r.height, 0);
|
|
1979
|
-
return [
|
|
1979
|
+
return [
|
|
1980
|
+
(first == null ? void 0 : first.rowIndex) ?? 0,
|
|
1981
|
+
(last == null ? void 0 : last.rowIndex) ?? 0,
|
|
1982
|
+
true,
|
|
1983
|
+
true,
|
|
1984
|
+
fullHeight
|
|
1985
|
+
];
|
|
1980
1986
|
};
|
|
1981
1987
|
const button$2 = "_button_1eue5_1";
|
|
1982
1988
|
const styles$i = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thepocman/gantt-task-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "Fork of gantt-task-react with support for grouped tasks on a single row when collapsed",
|
|
5
5
|
"author": "Adrian Bueno <adrianlbueno@users.noreply.github.com>",
|
|
6
6
|
"homepage": "https://github.com/adrianlbueno/gantt-task-react#readme",
|