gantt-task-react-v 1.0.16 → 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.
@@ -1,4 +1,4 @@
1
- import type { MouseEvent, RefObject, SyntheticEvent } from "react";
1
+ import type { MouseEvent, RefObject } 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,6 +37,5 @@ export type TaskListProps = {
37
37
  tasks: readonly RenderTask[];
38
38
  onResizeColumn?: OnResizeColumn;
39
39
  tableBottom?: TableRenderBottomProps;
40
- onVerticalScrollbarScrollY?: (event: SyntheticEvent<HTMLDivElement>) => void;
41
40
  };
42
41
  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 = "_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";
10660
+ const taskListRoot = "_taskListRoot_xeaio_1";
10661
+ const taskListHorizontalScroll = "_taskListHorizontalScroll_xeaio_21";
10662
+ const taskListResizer = "_taskListResizer_xeaio_85";
10663
+ const horizontalContainer$1 = "_horizontalContainer_xeaio_149";
10664
+ const tableWrapper = "_tableWrapper_xeaio_167";
10665
+ const scrollToTop = "_scrollToTop_xeaio_179";
10666
+ const scrollToBottom = "_scrollToBottom_xeaio_195";
10667
+ const hidden = "_hidden_xeaio_211";
10668
10668
  const styles$d = {
10669
10669
  taskListRoot,
10670
10670
  taskListHorizontalScroll,
@@ -10720,8 +10720,7 @@ const TaskListInner = ({
10720
10720
  tasks,
10721
10721
  onResizeColumn,
10722
10722
  canReorderTasks,
10723
- tableBottom,
10724
- onVerticalScrollbarScrollY
10723
+ tableBottom
10725
10724
  }) => {
10726
10725
  const [
10727
10726
  columns,
@@ -10831,7 +10830,6 @@ const TaskListInner = ({
10831
10830
  style: {
10832
10831
  width: taskListWidth
10833
10832
  },
10834
- onScroll: onVerticalScrollbarScrollY,
10835
10833
  children: /* @__PURE__ */ jsx(
10836
10834
  "div",
10837
10835
  {
@@ -13149,12 +13147,12 @@ const TaskGanttContentInner = (props) => {
13149
13147
  ] });
13150
13148
  };
13151
13149
  const TaskGanttContent = memo(TaskGanttContentInner);
13152
- const ganttVerticalContainer = "_ganttVerticalContainer_7rmhe_1";
13153
- const horizontalContainer = "_horizontalContainer_7rmhe_79";
13154
- const ganttHeader = "_ganttHeader_7rmhe_95";
13155
- const ganttBodyScroll = "_ganttBodyScroll_7rmhe_105";
13156
- const wrapper = "_wrapper_7rmhe_121";
13157
- const calendarDragging = "_calendarDragging_7rmhe_147";
13150
+ const ganttVerticalContainer = "_ganttVerticalContainer_15txg_1";
13151
+ const horizontalContainer = "_horizontalContainer_15txg_79";
13152
+ const ganttHeader = "_ganttHeader_15txg_143";
13153
+ const ganttBodyScroll = "_ganttBodyScroll_15txg_153";
13154
+ const wrapper = "_wrapper_15txg_217";
13155
+ const calendarDragging = "_calendarDragging_15txg_243";
13158
13156
  const styles$2 = {
13159
13157
  ganttVerticalContainer,
13160
13158
  horizontalContainer,
@@ -19846,8 +19844,7 @@ const Gantt = (props) => {
19846
19844
  taskListContainerRef,
19847
19845
  taskListRef,
19848
19846
  tasks: visibleTasks,
19849
- ganttRef: wrapperRef,
19850
- onVerticalScrollbarScrollY
19847
+ ganttRef: wrapperRef
19851
19848
  }),
19852
19849
  [
19853
19850
  childTasksMap,
@@ -19875,8 +19872,7 @@ const Gantt = (props) => {
19875
19872
  selectedIdsMirror,
19876
19873
  taskList,
19877
19874
  taskListContainerRef,
19878
- visibleTasks,
19879
- onVerticalScrollbarScrollY
19875
+ visibleTasks
19880
19876
  ]
19881
19877
  );
19882
19878
  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 = "_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";
10677
+ const taskListRoot = "_taskListRoot_xeaio_1";
10678
+ const taskListHorizontalScroll = "_taskListHorizontalScroll_xeaio_21";
10679
+ const taskListResizer = "_taskListResizer_xeaio_85";
10680
+ const horizontalContainer$1 = "_horizontalContainer_xeaio_149";
10681
+ const tableWrapper = "_tableWrapper_xeaio_167";
10682
+ const scrollToTop = "_scrollToTop_xeaio_179";
10683
+ const scrollToBottom = "_scrollToBottom_xeaio_195";
10684
+ const hidden = "_hidden_xeaio_211";
10685
10685
  const styles$d = {
10686
10686
  taskListRoot,
10687
10687
  taskListHorizontalScroll,
@@ -10737,8 +10737,7 @@
10737
10737
  tasks,
10738
10738
  onResizeColumn,
10739
10739
  canReorderTasks,
10740
- tableBottom,
10741
- onVerticalScrollbarScrollY
10740
+ tableBottom
10742
10741
  }) => {
10743
10742
  const [
10744
10743
  columns,
@@ -10848,7 +10847,6 @@
10848
10847
  style: {
10849
10848
  width: taskListWidth
10850
10849
  },
10851
- onScroll: onVerticalScrollbarScrollY,
10852
10850
  children: /* @__PURE__ */ jsxRuntime.jsx(
10853
10851
  "div",
10854
10852
  {
@@ -13166,12 +13164,12 @@
13166
13164
  ] });
13167
13165
  };
13168
13166
  const TaskGanttContent = React.memo(TaskGanttContentInner);
13169
- const ganttVerticalContainer = "_ganttVerticalContainer_7rmhe_1";
13170
- const horizontalContainer = "_horizontalContainer_7rmhe_79";
13171
- const ganttHeader = "_ganttHeader_7rmhe_95";
13172
- const ganttBodyScroll = "_ganttBodyScroll_7rmhe_105";
13173
- const wrapper = "_wrapper_7rmhe_121";
13174
- const calendarDragging = "_calendarDragging_7rmhe_147";
13167
+ const ganttVerticalContainer = "_ganttVerticalContainer_15txg_1";
13168
+ const horizontalContainer = "_horizontalContainer_15txg_79";
13169
+ const ganttHeader = "_ganttHeader_15txg_143";
13170
+ const ganttBodyScroll = "_ganttBodyScroll_15txg_153";
13171
+ const wrapper = "_wrapper_15txg_217";
13172
+ const calendarDragging = "_calendarDragging_15txg_243";
13175
13173
  const styles$2 = {
13176
13174
  ganttVerticalContainer,
13177
13175
  horizontalContainer,
@@ -19863,8 +19861,7 @@
19863
19861
  taskListContainerRef,
19864
19862
  taskListRef,
19865
19863
  tasks: visibleTasks,
19866
- ganttRef: wrapperRef,
19867
- onVerticalScrollbarScrollY
19864
+ ganttRef: wrapperRef
19868
19865
  }),
19869
19866
  [
19870
19867
  childTasksMap,
@@ -19892,8 +19889,7 @@
19892
19889
  selectedIdsMirror,
19893
19890
  taskList,
19894
19891
  taskListContainerRef,
19895
- visibleTasks,
19896
- onVerticalScrollbarScrollY
19892
+ visibleTasks
19897
19893
  ]
19898
19894
  );
19899
19895
  return /* @__PURE__ */ jsxRuntime.jsx(GanttThemeProvider, { theme, children: (cssVars) => /* @__PURE__ */ jsxRuntime.jsx(GanttLocaleProvider, { locale, children: /* @__PURE__ */ jsxRuntime.jsxs(
package/dist/style.css CHANGED
@@ -282,29 +282,34 @@
282
282
  border-bottom: 1px solid var(--gantt-divider-color);
283
283
  table-layout: fixed;
284
284
  }
285
- ._taskListRoot_1rzqg_1 {
285
+ ._taskListRoot_xeaio_1 {
286
286
  position: relative;
287
287
  /*noinspection CssUnresolvedCustomProperty*/
288
288
  border-left: 1px solid var(--gantt-table-divider-color, var(--gantt-divider-color));
289
289
  height: 100%;
290
290
  display: flex;
291
291
  flex-direction: column;
292
+ overflow: hidden;
292
293
  }
293
294
 
294
- ._taskListHorizontalScroll_1rzqg_19 {
295
- overflow-x: scroll;
295
+ ._taskListHorizontalScroll_xeaio_21 {
296
+ overflow-x: auto;
297
+ overflow-y: hidden;
298
+ flex: 1;
299
+ display: flex;
300
+ flex-direction: column;
296
301
  }
297
302
 
298
- ._taskListHorizontalScroll_1rzqg_19::-webkit-scrollbar {
303
+ ._taskListHorizontalScroll_xeaio_21::-webkit-scrollbar {
299
304
  width: 1rem;
300
305
  height: 1rem;
301
306
  }
302
307
 
303
- ._taskListHorizontalScroll_1rzqg_19::-webkit-scrollbar-corner {
308
+ ._taskListHorizontalScroll_xeaio_21::-webkit-scrollbar-corner {
304
309
  background: transparent;
305
310
  }
306
311
 
307
- ._taskListHorizontalScroll_1rzqg_19::-webkit-scrollbar-thumb {
312
+ ._taskListHorizontalScroll_xeaio_21::-webkit-scrollbar-thumb {
308
313
  border: 4px solid transparent;
309
314
  /*noinspection CssUnresolvedCustomProperty*/
310
315
  background: var(--gantt-scrollbar-thumb-color);
@@ -312,14 +317,14 @@
312
317
  background-clip: padding-box;
313
318
  }
314
319
 
315
- ._taskListHorizontalScroll_1rzqg_19::-webkit-scrollbar-thumb:hover {
320
+ ._taskListHorizontalScroll_xeaio_21::-webkit-scrollbar-thumb:hover {
316
321
  border: 2px solid transparent;
317
322
  /*noinspection CssUnresolvedCustomProperty*/
318
323
  background: var(--gantt-scrollbar-thumb-color);
319
324
  background-clip: padding-box;
320
325
  }
321
326
 
322
- ._taskListResizer_1rzqg_75 {
327
+ ._taskListResizer_xeaio_85 {
323
328
  position: absolute;
324
329
  top: 0;
325
330
  right: -3px;
@@ -331,16 +336,16 @@
331
336
  }
332
337
 
333
338
  /*noinspection CssUnresolvedCustomProperty*/
334
- ._taskListResizer_1rzqg_75:hover {
339
+ ._taskListResizer_xeaio_85:hover {
335
340
  background-color: var(--gantt-table-hover-action-color);
336
341
  filter: var(--gantt-hover-filter);
337
342
  }
338
343
 
339
- ._taskListResizer_1rzqg_75:hover::before {
344
+ ._taskListResizer_xeaio_85:hover::before {
340
345
  display: none;
341
346
  }
342
347
 
343
- ._taskListResizer_1rzqg_75::before {
348
+ ._taskListResizer_xeaio_85::before {
344
349
  content: "";
345
350
  position: absolute;
346
351
  top: 0;
@@ -351,21 +356,22 @@
351
356
  background-color: var(--gantt-table-resize-color, var(--gantt-divider-color));
352
357
  }
353
358
 
354
- ._horizontalContainer_1rzqg_139 {
359
+ ._horizontalContainer_xeaio_149 {
355
360
  margin: 0;
356
361
  padding: 0;
357
362
  overflow-y: auto;
358
363
  overflow-x: hidden;
359
364
  height: 100%;
365
+ min-height: 0;
360
366
  }
361
367
 
362
- ._tableWrapper_1rzqg_155 {
368
+ ._tableWrapper_xeaio_167 {
363
369
  position: relative;
364
370
  flex: 1;
365
- overflow: hidden;
371
+ min-height: 0;
366
372
  }
367
373
 
368
- ._scrollToTop_1rzqg_167 {
374
+ ._scrollToTop_xeaio_179 {
369
375
  position: absolute;
370
376
  top: 0;
371
377
  left: 0;
@@ -373,7 +379,7 @@
373
379
  height: 20px;
374
380
  }
375
381
 
376
- ._scrollToBottom_1rzqg_183 {
382
+ ._scrollToBottom_xeaio_195 {
377
383
  position: absolute;
378
384
  bottom: 0;
379
385
  left: 0;
@@ -381,7 +387,7 @@
381
387
  height: 20px;
382
388
  }
383
389
 
384
- ._hidden_1rzqg_199 {
390
+ ._hidden_xeaio_211 {
385
391
  display: none;
386
392
  }
387
393
  ._ganttToday_1oyhk_1 {
@@ -575,10 +581,10 @@
575
581
  user-select: none;
576
582
  stroke-width: 0;
577
583
  }
578
- ._ganttVerticalContainer_7rmhe_1 {
584
+ ._ganttVerticalContainer_15txg_1 {
579
585
  display: flex;
580
586
  flex-direction: column;
581
- overflow-x: hidden;
587
+ overflow-x: auto;
582
588
  overflow-y: hidden;
583
589
  font-size: 0;
584
590
  margin: 0;
@@ -590,16 +596,16 @@
590
596
  min-height: 0;
591
597
  }
592
598
 
593
- ._ganttVerticalContainer_7rmhe_1::-webkit-scrollbar {
599
+ ._ganttVerticalContainer_15txg_1::-webkit-scrollbar {
594
600
  width: 1rem;
595
601
  height: 1rem;
596
602
  }
597
603
 
598
- ._ganttVerticalContainer_7rmhe_1::-webkit-scrollbar-corner {
604
+ ._ganttVerticalContainer_15txg_1::-webkit-scrollbar-corner {
599
605
  background: transparent;
600
606
  }
601
607
 
602
- ._ganttVerticalContainer_7rmhe_1::-webkit-scrollbar-thumb {
608
+ ._ganttVerticalContainer_15txg_1::-webkit-scrollbar-thumb {
603
609
  border: 4px solid transparent;
604
610
  /*noinspection CssUnresolvedCustomProperty*/
605
611
  background: var(--gantt-scrollbar-thumb-color);
@@ -607,27 +613,51 @@
607
613
  background-clip: padding-box;
608
614
  }
609
615
 
610
- ._ganttVerticalContainer_7rmhe_1::-webkit-scrollbar-thumb:hover {
616
+ ._ganttVerticalContainer_15txg_1::-webkit-scrollbar-thumb:hover {
611
617
  border: 2px solid transparent;
612
618
  /*noinspection CssUnresolvedCustomProperty*/
613
619
  background: var(--gantt-scrollbar-thumb-color);
614
620
  background-clip: padding-box;
615
621
  }
616
622
 
617
- ._horizontalContainer_7rmhe_79 {
623
+ ._horizontalContainer_15txg_79 {
618
624
  margin: 0;
619
625
  padding: 0;
620
- overflow: hidden;
626
+ overflow: auto;
621
627
  height: 100%;
622
628
  min-height: 0;
623
629
  }
624
630
 
625
- ._ganttHeader_7rmhe_95 {
631
+ ._horizontalContainer_15txg_79::-webkit-scrollbar {
632
+ width: 1rem;
633
+ height: 1rem;
634
+ }
635
+
636
+ ._horizontalContainer_15txg_79::-webkit-scrollbar-corner {
637
+ background: transparent;
638
+ }
639
+
640
+ ._horizontalContainer_15txg_79::-webkit-scrollbar-thumb {
641
+ border: 4px solid transparent;
642
+ /*noinspection CssUnresolvedCustomProperty*/
643
+ background: var(--gantt-scrollbar-thumb-color);
644
+ border-radius: 12px;
645
+ background-clip: padding-box;
646
+ }
647
+
648
+ ._horizontalContainer_15txg_79::-webkit-scrollbar-thumb:hover {
649
+ border: 2px solid transparent;
650
+ /*noinspection CssUnresolvedCustomProperty*/
651
+ background: var(--gantt-scrollbar-thumb-color);
652
+ background-clip: padding-box;
653
+ }
654
+
655
+ ._ganttHeader_15txg_143 {
626
656
  flex: 0 0 auto;
627
657
  z-index: 3;
628
658
  }
629
659
 
630
- ._ganttBodyScroll_7rmhe_105 {
660
+ ._ganttBodyScroll_15txg_153 {
631
661
  flex: 1 1 auto;
632
662
  overflow-y: auto;
633
663
  overflow-x: hidden;
@@ -635,7 +665,31 @@
635
665
  height: 100%;
636
666
  }
637
667
 
638
- ._wrapper_7rmhe_121 {
668
+ ._ganttBodyScroll_15txg_153::-webkit-scrollbar {
669
+ width: 1rem;
670
+ height: 1rem;
671
+ }
672
+
673
+ ._ganttBodyScroll_15txg_153::-webkit-scrollbar-corner {
674
+ background: transparent;
675
+ }
676
+
677
+ ._ganttBodyScroll_15txg_153::-webkit-scrollbar-thumb {
678
+ border: 4px solid transparent;
679
+ /*noinspection CssUnresolvedCustomProperty*/
680
+ background: var(--gantt-scrollbar-thumb-color);
681
+ border-radius: 12px;
682
+ background-clip: padding-box;
683
+ }
684
+
685
+ ._ganttBodyScroll_15txg_153::-webkit-scrollbar-thumb:hover {
686
+ border: 2px solid transparent;
687
+ /*noinspection CssUnresolvedCustomProperty*/
688
+ background: var(--gantt-scrollbar-thumb-color);
689
+ background-clip: padding-box;
690
+ }
691
+
692
+ ._wrapper_15txg_217 {
639
693
  display: flex;
640
694
  padding: 0;
641
695
  margin: 0;
@@ -648,7 +702,7 @@
648
702
  min-height: 0;
649
703
  }
650
704
 
651
- ._calendarDragging_7rmhe_147 {
705
+ ._calendarDragging_15txg_243 {
652
706
  cursor: grabbing;
653
707
  }
654
708
  /*noinspection CssUnresolvedCustomProperty*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "Interactive Gantt Chart for React with TypeScript.",
5
5
  "author": "aguilanbon",
6
6
  "homepage": "https://github.com/aguilanbon/gantt-task-react-v",