@thepocman/gantt-task-react 1.0.29 → 1.0.30
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/gantt-task-react.es.js +14 -13
- package/dist/gantt-task-react.umd.js +14 -13
- package/dist/style.css +5 -6
- package/package.json +1 -1
|
@@ -3504,17 +3504,20 @@ const TaskListInner = ({
|
|
|
3504
3504
|
className: styles$d.taskListContent,
|
|
3505
3505
|
ref: taskListContentRef,
|
|
3506
3506
|
onScroll: onScrollTableListContentVertically,
|
|
3507
|
+
style: {
|
|
3508
|
+
height: Math.min(
|
|
3509
|
+
ganttFullHeight,
|
|
3510
|
+
distances.minimumRowDisplayed * distances.rowHeight
|
|
3511
|
+
),
|
|
3512
|
+
overflowY: "auto"
|
|
3513
|
+
},
|
|
3507
3514
|
children: /* @__PURE__ */ jsx(
|
|
3508
3515
|
"div",
|
|
3509
3516
|
{
|
|
3510
3517
|
style: {
|
|
3511
|
-
height:
|
|
3512
|
-
ganttFullHeight,
|
|
3513
|
-
distances.minimumRowDisplayed * distances.rowHeight
|
|
3514
|
-
),
|
|
3518
|
+
height: ganttFullHeight,
|
|
3515
3519
|
backgroundSize: `100% ${fullRowHeight * 2}px`,
|
|
3516
|
-
backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)
|
|
3517
|
-
overflow: "hidden"
|
|
3520
|
+
backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)`
|
|
3518
3521
|
},
|
|
3519
3522
|
children: /* @__PURE__ */ jsx(
|
|
3520
3523
|
TaskListTable,
|
|
@@ -4604,7 +4607,6 @@ const Calendar = ({
|
|
|
4604
4607
|
for (let i2 = startColumnIndex; i2 <= endColumnIndex; i2++) {
|
|
4605
4608
|
const date = getDate(i2);
|
|
4606
4609
|
const quarter = "Q" + Math.ceil((date.getMonth() + 1) / 3);
|
|
4607
|
-
console.log("quarter :>> ", quarter);
|
|
4608
4610
|
bottomValues2.push(
|
|
4609
4611
|
/* @__PURE__ */ jsx(
|
|
4610
4612
|
"text",
|
|
@@ -5239,9 +5241,9 @@ const Grid = (props) => {
|
|
|
5239
5241
|
/* @__PURE__ */ jsx(GridBody, { ...props })
|
|
5240
5242
|
] });
|
|
5241
5243
|
};
|
|
5242
|
-
const ganttTaskRoot = "
|
|
5243
|
-
const ganttTaskContent = "
|
|
5244
|
-
const wrapper$2 = "
|
|
5244
|
+
const ganttTaskRoot = "_ganttTaskRoot_1lwsd_1";
|
|
5245
|
+
const ganttTaskContent = "_ganttTaskContent_1lwsd_83";
|
|
5246
|
+
const wrapper$2 = "_wrapper_1lwsd_111";
|
|
5245
5247
|
const styles$8 = {
|
|
5246
5248
|
ganttTaskRoot,
|
|
5247
5249
|
ganttTaskContent,
|
|
@@ -6868,7 +6870,6 @@ const TaskGanttContent = ({
|
|
|
6868
6870
|
const dependentsByTask = dependentsAtLevel == null ? void 0 : dependentsAtLevel.get(taskId);
|
|
6869
6871
|
dependentsByTask == null ? void 0 : dependentsByTask.filter(({ dependent }) => visibleTasksMirror[dependent.id]).forEach((dep) => {
|
|
6870
6872
|
var _a2, _b;
|
|
6871
|
-
console.log("dependent", dep);
|
|
6872
6873
|
const addedDepsForDep = addedDependenciesAtLevel[_a2 = dep.dependent.id] ?? (addedDependenciesAtLevel[_a2] = {});
|
|
6873
6874
|
if (addedDepsForDep[taskId])
|
|
6874
6875
|
return;
|
|
@@ -6980,12 +6981,12 @@ const TaskGanttInner = (props) => {
|
|
|
6980
6981
|
const containerStyle = {
|
|
6981
6982
|
// In order to see the vertical scrollbar of the gantt content,
|
|
6982
6983
|
// we resize dynamically the width of the gantt content
|
|
6983
|
-
height: Math.
|
|
6984
|
+
height: Math.min(ganttFullHeight, minimumRowDisplayed * rowHeight),
|
|
6984
6985
|
width: (ganttTaskRootRef == null ? void 0 : ganttTaskRootRef.current) ? ganttTaskRootRef.current.clientWidth + ganttTaskRootRef.current.scrollLeft : fullSvgWidth
|
|
6985
6986
|
};
|
|
6986
6987
|
const gridStyle = useMemo(
|
|
6987
6988
|
() => ({
|
|
6988
|
-
height:
|
|
6989
|
+
height: ganttFullHeight,
|
|
6989
6990
|
width: fullSvgWidth,
|
|
6990
6991
|
backgroundSize: `${columnWidth}px ${fullRowHeight * 2}px`,
|
|
6991
6992
|
backgroundPositionX: additionalLeftSpace || void 0,
|
|
@@ -3517,17 +3517,20 @@
|
|
|
3517
3517
|
className: styles$d.taskListContent,
|
|
3518
3518
|
ref: taskListContentRef,
|
|
3519
3519
|
onScroll: onScrollTableListContentVertically,
|
|
3520
|
+
style: {
|
|
3521
|
+
height: Math.min(
|
|
3522
|
+
ganttFullHeight,
|
|
3523
|
+
distances.minimumRowDisplayed * distances.rowHeight
|
|
3524
|
+
),
|
|
3525
|
+
overflowY: "auto"
|
|
3526
|
+
},
|
|
3520
3527
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3521
3528
|
"div",
|
|
3522
3529
|
{
|
|
3523
3530
|
style: {
|
|
3524
|
-
height:
|
|
3525
|
-
ganttFullHeight,
|
|
3526
|
-
distances.minimumRowDisplayed * distances.rowHeight
|
|
3527
|
-
),
|
|
3531
|
+
height: ganttFullHeight,
|
|
3528
3532
|
backgroundSize: `100% ${fullRowHeight * 2}px`,
|
|
3529
|
-
backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)
|
|
3530
|
-
overflow: "hidden"
|
|
3533
|
+
backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)`
|
|
3531
3534
|
},
|
|
3532
3535
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3533
3536
|
TaskListTable,
|
|
@@ -4617,7 +4620,6 @@
|
|
|
4617
4620
|
for (let i = startColumnIndex; i <= endColumnIndex; i++) {
|
|
4618
4621
|
const date = getDate(i);
|
|
4619
4622
|
const quarter = "Q" + Math.ceil((date.getMonth() + 1) / 3);
|
|
4620
|
-
console.log("quarter :>> ", quarter);
|
|
4621
4623
|
bottomValues2.push(
|
|
4622
4624
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4623
4625
|
"text",
|
|
@@ -5252,9 +5254,9 @@
|
|
|
5252
5254
|
/* @__PURE__ */ jsxRuntime.jsx(GridBody, { ...props })
|
|
5253
5255
|
] });
|
|
5254
5256
|
};
|
|
5255
|
-
const ganttTaskRoot = "
|
|
5256
|
-
const ganttTaskContent = "
|
|
5257
|
-
const wrapper$2 = "
|
|
5257
|
+
const ganttTaskRoot = "_ganttTaskRoot_1lwsd_1";
|
|
5258
|
+
const ganttTaskContent = "_ganttTaskContent_1lwsd_83";
|
|
5259
|
+
const wrapper$2 = "_wrapper_1lwsd_111";
|
|
5258
5260
|
const styles$8 = {
|
|
5259
5261
|
ganttTaskRoot,
|
|
5260
5262
|
ganttTaskContent,
|
|
@@ -6881,7 +6883,6 @@
|
|
|
6881
6883
|
const dependentsByTask = dependentsAtLevel == null ? void 0 : dependentsAtLevel.get(taskId);
|
|
6882
6884
|
dependentsByTask == null ? void 0 : dependentsByTask.filter(({ dependent }) => visibleTasksMirror[dependent.id]).forEach((dep) => {
|
|
6883
6885
|
var _a2, _b;
|
|
6884
|
-
console.log("dependent", dep);
|
|
6885
6886
|
const addedDepsForDep = addedDependenciesAtLevel[_a2 = dep.dependent.id] ?? (addedDependenciesAtLevel[_a2] = {});
|
|
6886
6887
|
if (addedDepsForDep[taskId])
|
|
6887
6888
|
return;
|
|
@@ -6993,12 +6994,12 @@
|
|
|
6993
6994
|
const containerStyle = {
|
|
6994
6995
|
// In order to see the vertical scrollbar of the gantt content,
|
|
6995
6996
|
// we resize dynamically the width of the gantt content
|
|
6996
|
-
height: Math.
|
|
6997
|
+
height: Math.min(ganttFullHeight, minimumRowDisplayed * rowHeight),
|
|
6997
6998
|
width: (ganttTaskRootRef == null ? void 0 : ganttTaskRootRef.current) ? ganttTaskRootRef.current.clientWidth + ganttTaskRootRef.current.scrollLeft : fullSvgWidth
|
|
6998
6999
|
};
|
|
6999
7000
|
const gridStyle = React.useMemo(
|
|
7000
7001
|
() => ({
|
|
7001
|
-
height:
|
|
7002
|
+
height: ganttFullHeight,
|
|
7002
7003
|
width: fullSvgWidth,
|
|
7003
7004
|
backgroundSize: `${columnWidth}px ${fullRowHeight * 2}px`,
|
|
7004
7005
|
backgroundPositionX: additionalLeftSpace || void 0,
|
package/dist/style.css
CHANGED
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
stroke: #e0e0e0;
|
|
333
333
|
stroke-width: 1.4;
|
|
334
334
|
}
|
|
335
|
-
.
|
|
335
|
+
._ganttTaskRoot_1lwsd_1 {
|
|
336
336
|
display: flex;
|
|
337
337
|
flex-direction: column;
|
|
338
338
|
overflow-x: scroll;
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
|
|
345
345
|
/* Only chrome otherwise the firefox scrollbar has no edge*/
|
|
346
346
|
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
|
|
347
|
-
.
|
|
347
|
+
._ganttTaskRoot_1lwsd_1 {
|
|
348
348
|
scrollbar-width: thin;
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
background-clip: padding-box;
|
|
374
374
|
} */
|
|
375
375
|
|
|
376
|
-
.
|
|
376
|
+
._ganttTaskContent_1lwsd_83 {
|
|
377
377
|
margin: 0;
|
|
378
378
|
padding: 0;
|
|
379
379
|
overflow-x: hidden;
|
|
@@ -382,12 +382,12 @@
|
|
|
382
382
|
|
|
383
383
|
/* Only chrome otherwise the firefox scrollbar has no edges*/
|
|
384
384
|
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
|
|
385
|
-
.
|
|
385
|
+
._ganttTaskContent_1lwsd_83 {
|
|
386
386
|
scrollbar-width: thin;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
-
.
|
|
390
|
+
._wrapper_1lwsd_111 {
|
|
391
391
|
display: grid;
|
|
392
392
|
overflow-x: hidden;
|
|
393
393
|
overflow-y: auto;
|
|
@@ -396,7 +396,6 @@
|
|
|
396
396
|
list-style: none;
|
|
397
397
|
outline: none;
|
|
398
398
|
position: relative;
|
|
399
|
-
height: 600px;
|
|
400
399
|
}._hoverVisibleWrapper_11ld1_1:hover ._wrapper_11ld1_1 {
|
|
401
400
|
display: initial;
|
|
402
401
|
}
|
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.30",
|
|
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",
|