gantt-task-react-v 1.0.14 → 1.0.16
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/components/task-list/index.d.ts +2 -1
- package/dist/gantt-task-react.es.js +17 -20
- package/dist/gantt-task-react.umd.js +17 -20
- package/dist/style.css +19 -23
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MouseEvent, RefObject } from "react";
|
|
1
|
+
import type { MouseEvent, RefObject, SyntheticEvent } from "react";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { AllowReorderTask, ChildByLevelMap, Column, DateSetup, DependencyMap, Distances, GanttRenderIconsProps, MapTaskToNestedIndex, OnResizeColumn, Task, RenderTask, TableRenderBottomProps } from "../../types";
|
|
4
4
|
export type TaskListProps = {
|
|
@@ -37,5 +37,6 @@ export type TaskListProps = {
|
|
|
37
37
|
tasks: readonly RenderTask[];
|
|
38
38
|
onResizeColumn?: OnResizeColumn;
|
|
39
39
|
tableBottom?: TableRenderBottomProps;
|
|
40
|
+
onVerticalScrollbarScrollY?: (event: SyntheticEvent<HTMLDivElement>) => void;
|
|
40
41
|
};
|
|
41
42
|
export declare const TaskList: React.NamedExoticComponent<TaskListProps>;
|
|
@@ -10657,14 +10657,14 @@ const TaskListTableDefaultInner = ({
|
|
|
10657
10657
|
);
|
|
10658
10658
|
};
|
|
10659
10659
|
const TaskListTable = memo(TaskListTableDefaultInner);
|
|
10660
|
-
const taskListRoot = "
|
|
10661
|
-
const taskListHorizontalScroll = "
|
|
10662
|
-
const taskListResizer = "
|
|
10663
|
-
const horizontalContainer$1 = "
|
|
10664
|
-
const tableWrapper = "
|
|
10665
|
-
const scrollToTop = "
|
|
10666
|
-
const scrollToBottom = "
|
|
10667
|
-
const hidden = "
|
|
10660
|
+
const taskListRoot = "_taskListRoot_1rzqg_1";
|
|
10661
|
+
const taskListHorizontalScroll = "_taskListHorizontalScroll_1rzqg_19";
|
|
10662
|
+
const taskListResizer = "_taskListResizer_1rzqg_75";
|
|
10663
|
+
const horizontalContainer$1 = "_horizontalContainer_1rzqg_139";
|
|
10664
|
+
const tableWrapper = "_tableWrapper_1rzqg_155";
|
|
10665
|
+
const scrollToTop = "_scrollToTop_1rzqg_167";
|
|
10666
|
+
const scrollToBottom = "_scrollToBottom_1rzqg_183";
|
|
10667
|
+
const hidden = "_hidden_1rzqg_199";
|
|
10668
10668
|
const styles$d = {
|
|
10669
10669
|
taskListRoot,
|
|
10670
10670
|
taskListHorizontalScroll,
|
|
@@ -10720,7 +10720,8 @@ const TaskListInner = ({
|
|
|
10720
10720
|
tasks,
|
|
10721
10721
|
onResizeColumn,
|
|
10722
10722
|
canReorderTasks,
|
|
10723
|
-
tableBottom
|
|
10723
|
+
tableBottom,
|
|
10724
|
+
onVerticalScrollbarScrollY
|
|
10724
10725
|
}) => {
|
|
10725
10726
|
const [
|
|
10726
10727
|
columns,
|
|
@@ -10828,22 +10829,16 @@ const TaskListInner = ({
|
|
|
10828
10829
|
ref: taskListContainerRef,
|
|
10829
10830
|
className: styles$d.horizontalContainer,
|
|
10830
10831
|
style: {
|
|
10831
|
-
height: Math.min(
|
|
10832
|
-
ganttFullHeight,
|
|
10833
|
-
distances.minimumRowDisplayed * distances.rowHeight
|
|
10834
|
-
),
|
|
10835
10832
|
width: taskListWidth
|
|
10836
10833
|
},
|
|
10834
|
+
onScroll: onVerticalScrollbarScrollY,
|
|
10837
10835
|
children: /* @__PURE__ */ jsx(
|
|
10838
10836
|
"div",
|
|
10839
10837
|
{
|
|
10840
10838
|
style: {
|
|
10841
|
-
height: Math.max(
|
|
10842
|
-
ganttFullHeight,
|
|
10843
|
-
distances.minimumRowDisplayed * distances.rowHeight
|
|
10844
|
-
),
|
|
10845
10839
|
backgroundSize: `100% ${fullRowHeight * 2}px`,
|
|
10846
|
-
backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)
|
|
10840
|
+
backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)`,
|
|
10841
|
+
height: "100%"
|
|
10847
10842
|
},
|
|
10848
10843
|
children: /* @__PURE__ */ jsx(
|
|
10849
10844
|
RenderTaskListTable,
|
|
@@ -19851,7 +19846,8 @@ const Gantt = (props) => {
|
|
|
19851
19846
|
taskListContainerRef,
|
|
19852
19847
|
taskListRef,
|
|
19853
19848
|
tasks: visibleTasks,
|
|
19854
|
-
ganttRef: wrapperRef
|
|
19849
|
+
ganttRef: wrapperRef,
|
|
19850
|
+
onVerticalScrollbarScrollY
|
|
19855
19851
|
}),
|
|
19856
19852
|
[
|
|
19857
19853
|
childTasksMap,
|
|
@@ -19879,7 +19875,8 @@ const Gantt = (props) => {
|
|
|
19879
19875
|
selectedIdsMirror,
|
|
19880
19876
|
taskList,
|
|
19881
19877
|
taskListContainerRef,
|
|
19882
|
-
visibleTasks
|
|
19878
|
+
visibleTasks,
|
|
19879
|
+
onVerticalScrollbarScrollY
|
|
19883
19880
|
]
|
|
19884
19881
|
);
|
|
19885
19882
|
return /* @__PURE__ */ jsx(GanttThemeProvider, { theme, children: (cssVars) => /* @__PURE__ */ jsx(GanttLocaleProvider, { locale, children: /* @__PURE__ */ jsxs(
|
|
@@ -10674,14 +10674,14 @@
|
|
|
10674
10674
|
);
|
|
10675
10675
|
};
|
|
10676
10676
|
const TaskListTable = React.memo(TaskListTableDefaultInner);
|
|
10677
|
-
const taskListRoot = "
|
|
10678
|
-
const taskListHorizontalScroll = "
|
|
10679
|
-
const taskListResizer = "
|
|
10680
|
-
const horizontalContainer$1 = "
|
|
10681
|
-
const tableWrapper = "
|
|
10682
|
-
const scrollToTop = "
|
|
10683
|
-
const scrollToBottom = "
|
|
10684
|
-
const hidden = "
|
|
10677
|
+
const taskListRoot = "_taskListRoot_1rzqg_1";
|
|
10678
|
+
const taskListHorizontalScroll = "_taskListHorizontalScroll_1rzqg_19";
|
|
10679
|
+
const taskListResizer = "_taskListResizer_1rzqg_75";
|
|
10680
|
+
const horizontalContainer$1 = "_horizontalContainer_1rzqg_139";
|
|
10681
|
+
const tableWrapper = "_tableWrapper_1rzqg_155";
|
|
10682
|
+
const scrollToTop = "_scrollToTop_1rzqg_167";
|
|
10683
|
+
const scrollToBottom = "_scrollToBottom_1rzqg_183";
|
|
10684
|
+
const hidden = "_hidden_1rzqg_199";
|
|
10685
10685
|
const styles$d = {
|
|
10686
10686
|
taskListRoot,
|
|
10687
10687
|
taskListHorizontalScroll,
|
|
@@ -10737,7 +10737,8 @@
|
|
|
10737
10737
|
tasks,
|
|
10738
10738
|
onResizeColumn,
|
|
10739
10739
|
canReorderTasks,
|
|
10740
|
-
tableBottom
|
|
10740
|
+
tableBottom,
|
|
10741
|
+
onVerticalScrollbarScrollY
|
|
10741
10742
|
}) => {
|
|
10742
10743
|
const [
|
|
10743
10744
|
columns,
|
|
@@ -10845,22 +10846,16 @@
|
|
|
10845
10846
|
ref: taskListContainerRef,
|
|
10846
10847
|
className: styles$d.horizontalContainer,
|
|
10847
10848
|
style: {
|
|
10848
|
-
height: Math.min(
|
|
10849
|
-
ganttFullHeight,
|
|
10850
|
-
distances.minimumRowDisplayed * distances.rowHeight
|
|
10851
|
-
),
|
|
10852
10849
|
width: taskListWidth
|
|
10853
10850
|
},
|
|
10851
|
+
onScroll: onVerticalScrollbarScrollY,
|
|
10854
10852
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
10855
10853
|
"div",
|
|
10856
10854
|
{
|
|
10857
10855
|
style: {
|
|
10858
|
-
height: Math.max(
|
|
10859
|
-
ganttFullHeight,
|
|
10860
|
-
distances.minimumRowDisplayed * distances.rowHeight
|
|
10861
|
-
),
|
|
10862
10856
|
backgroundSize: `100% ${fullRowHeight * 2}px`,
|
|
10863
|
-
backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)
|
|
10857
|
+
backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)`,
|
|
10858
|
+
height: "100%"
|
|
10864
10859
|
},
|
|
10865
10860
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
10866
10861
|
RenderTaskListTable,
|
|
@@ -19868,7 +19863,8 @@
|
|
|
19868
19863
|
taskListContainerRef,
|
|
19869
19864
|
taskListRef,
|
|
19870
19865
|
tasks: visibleTasks,
|
|
19871
|
-
ganttRef: wrapperRef
|
|
19866
|
+
ganttRef: wrapperRef,
|
|
19867
|
+
onVerticalScrollbarScrollY
|
|
19872
19868
|
}),
|
|
19873
19869
|
[
|
|
19874
19870
|
childTasksMap,
|
|
@@ -19896,7 +19892,8 @@
|
|
|
19896
19892
|
selectedIdsMirror,
|
|
19897
19893
|
taskList,
|
|
19898
19894
|
taskListContainerRef,
|
|
19899
|
-
visibleTasks
|
|
19895
|
+
visibleTasks,
|
|
19896
|
+
onVerticalScrollbarScrollY
|
|
19900
19897
|
]
|
|
19901
19898
|
);
|
|
19902
19899
|
return /* @__PURE__ */ jsxRuntime.jsx(GanttThemeProvider, { theme, children: (cssVars) => /* @__PURE__ */ jsxRuntime.jsx(GanttLocaleProvider, { locale, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
package/dist/style.css
CHANGED
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
border-bottom: 1px solid var(--gantt-divider-color);
|
|
283
283
|
table-layout: fixed;
|
|
284
284
|
}
|
|
285
|
-
.
|
|
285
|
+
._taskListRoot_1rzqg_1 {
|
|
286
286
|
position: relative;
|
|
287
287
|
/*noinspection CssUnresolvedCustomProperty*/
|
|
288
288
|
border-left: 1px solid var(--gantt-table-divider-color, var(--gantt-divider-color));
|
|
@@ -291,23 +291,20 @@
|
|
|
291
291
|
flex-direction: column;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
.
|
|
294
|
+
._taskListHorizontalScroll_1rzqg_19 {
|
|
295
295
|
overflow-x: scroll;
|
|
296
|
-
flex: 1 1 auto;
|
|
297
|
-
display: flex;
|
|
298
|
-
flex-direction: column;
|
|
299
296
|
}
|
|
300
297
|
|
|
301
|
-
.
|
|
298
|
+
._taskListHorizontalScroll_1rzqg_19::-webkit-scrollbar {
|
|
302
299
|
width: 1rem;
|
|
303
300
|
height: 1rem;
|
|
304
301
|
}
|
|
305
302
|
|
|
306
|
-
.
|
|
303
|
+
._taskListHorizontalScroll_1rzqg_19::-webkit-scrollbar-corner {
|
|
307
304
|
background: transparent;
|
|
308
305
|
}
|
|
309
306
|
|
|
310
|
-
.
|
|
307
|
+
._taskListHorizontalScroll_1rzqg_19::-webkit-scrollbar-thumb {
|
|
311
308
|
border: 4px solid transparent;
|
|
312
309
|
/*noinspection CssUnresolvedCustomProperty*/
|
|
313
310
|
background: var(--gantt-scrollbar-thumb-color);
|
|
@@ -315,14 +312,14 @@
|
|
|
315
312
|
background-clip: padding-box;
|
|
316
313
|
}
|
|
317
314
|
|
|
318
|
-
.
|
|
315
|
+
._taskListHorizontalScroll_1rzqg_19::-webkit-scrollbar-thumb:hover {
|
|
319
316
|
border: 2px solid transparent;
|
|
320
317
|
/*noinspection CssUnresolvedCustomProperty*/
|
|
321
318
|
background: var(--gantt-scrollbar-thumb-color);
|
|
322
319
|
background-clip: padding-box;
|
|
323
320
|
}
|
|
324
321
|
|
|
325
|
-
.
|
|
322
|
+
._taskListResizer_1rzqg_75 {
|
|
326
323
|
position: absolute;
|
|
327
324
|
top: 0;
|
|
328
325
|
right: -3px;
|
|
@@ -334,16 +331,16 @@
|
|
|
334
331
|
}
|
|
335
332
|
|
|
336
333
|
/*noinspection CssUnresolvedCustomProperty*/
|
|
337
|
-
.
|
|
334
|
+
._taskListResizer_1rzqg_75:hover {
|
|
338
335
|
background-color: var(--gantt-table-hover-action-color);
|
|
339
336
|
filter: var(--gantt-hover-filter);
|
|
340
337
|
}
|
|
341
338
|
|
|
342
|
-
.
|
|
339
|
+
._taskListResizer_1rzqg_75:hover::before {
|
|
343
340
|
display: none;
|
|
344
341
|
}
|
|
345
342
|
|
|
346
|
-
.
|
|
343
|
+
._taskListResizer_1rzqg_75::before {
|
|
347
344
|
content: "";
|
|
348
345
|
position: absolute;
|
|
349
346
|
top: 0;
|
|
@@ -354,22 +351,21 @@
|
|
|
354
351
|
background-color: var(--gantt-table-resize-color, var(--gantt-divider-color));
|
|
355
352
|
}
|
|
356
353
|
|
|
357
|
-
.
|
|
354
|
+
._horizontalContainer_1rzqg_139 {
|
|
358
355
|
margin: 0;
|
|
359
356
|
padding: 0;
|
|
360
|
-
overflow:
|
|
357
|
+
overflow-y: auto;
|
|
358
|
+
overflow-x: hidden;
|
|
361
359
|
height: 100%;
|
|
362
|
-
min-height: 0;
|
|
363
360
|
}
|
|
364
361
|
|
|
365
|
-
.
|
|
362
|
+
._tableWrapper_1rzqg_155 {
|
|
366
363
|
position: relative;
|
|
367
|
-
flex: 1
|
|
368
|
-
|
|
369
|
-
flex-direction: column;
|
|
364
|
+
flex: 1;
|
|
365
|
+
overflow: hidden;
|
|
370
366
|
}
|
|
371
367
|
|
|
372
|
-
.
|
|
368
|
+
._scrollToTop_1rzqg_167 {
|
|
373
369
|
position: absolute;
|
|
374
370
|
top: 0;
|
|
375
371
|
left: 0;
|
|
@@ -377,7 +373,7 @@
|
|
|
377
373
|
height: 20px;
|
|
378
374
|
}
|
|
379
375
|
|
|
380
|
-
.
|
|
376
|
+
._scrollToBottom_1rzqg_183 {
|
|
381
377
|
position: absolute;
|
|
382
378
|
bottom: 0;
|
|
383
379
|
left: 0;
|
|
@@ -385,7 +381,7 @@
|
|
|
385
381
|
height: 20px;
|
|
386
382
|
}
|
|
387
383
|
|
|
388
|
-
.
|
|
384
|
+
._hidden_1rzqg_199 {
|
|
389
385
|
display: none;
|
|
390
386
|
}
|
|
391
387
|
._ganttToday_1oyhk_1 {
|
package/package.json
CHANGED