gantt-task-react-v 1.0.32 → 1.0.33

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.
@@ -10656,14 +10656,14 @@ const TaskListTableDefaultInner = ({
10656
10656
  );
10657
10657
  };
10658
10658
  const TaskListTable = memo(TaskListTableDefaultInner);
10659
- const taskListRoot = "_taskListRoot_1x5nq_1";
10660
- const taskListHorizontalScroll = "_taskListHorizontalScroll_1x5nq_25";
10661
- const taskListResizer = "_taskListResizer_1x5nq_89";
10662
- const horizontalContainer$1 = "_horizontalContainer_1x5nq_153";
10663
- const tableWrapper = "_tableWrapper_1x5nq_171";
10664
- const scrollToTop = "_scrollToTop_1x5nq_183";
10665
- const scrollToBottom = "_scrollToBottom_1x5nq_199";
10666
- const hidden = "_hidden_1x5nq_215";
10659
+ const taskListRoot = "_taskListRoot_ycl6i_1";
10660
+ const taskListHorizontalScroll = "_taskListHorizontalScroll_ycl6i_27";
10661
+ const taskListResizer = "_taskListResizer_ycl6i_91";
10662
+ const horizontalContainer$1 = "_horizontalContainer_ycl6i_155";
10663
+ const tableWrapper = "_tableWrapper_ycl6i_173";
10664
+ const scrollToTop = "_scrollToTop_ycl6i_185";
10665
+ const scrollToBottom = "_scrollToBottom_ycl6i_201";
10666
+ const hidden = "_hidden_ycl6i_217";
10667
10667
  const styles$d = {
10668
10668
  taskListRoot,
10669
10669
  taskListHorizontalScroll,
@@ -13146,12 +13146,12 @@ const TaskGanttContentInner = (props) => {
13146
13146
  ] });
13147
13147
  };
13148
13148
  const TaskGanttContent = memo(TaskGanttContentInner);
13149
- const ganttVerticalContainer = "_ganttVerticalContainer_68nax_1";
13150
- const horizontalContainer = "_horizontalContainer_68nax_81";
13151
- const ganttHeader = "_ganttHeader_68nax_97";
13152
- const ganttBodyScroll = "_ganttBodyScroll_68nax_107";
13153
- const wrapper = "_wrapper_68nax_121";
13154
- const calendarDragging = "_calendarDragging_68nax_149";
13149
+ const ganttVerticalContainer = "_ganttVerticalContainer_1khem_1";
13150
+ const horizontalContainer = "_horizontalContainer_1khem_81";
13151
+ const ganttHeader = "_ganttHeader_1khem_103";
13152
+ const ganttBodyScroll = "_ganttBodyScroll_1khem_113";
13153
+ const wrapper = "_wrapper_1khem_131";
13154
+ const calendarDragging = "_calendarDragging_1khem_163";
13155
13155
  const styles$2 = {
13156
13156
  ganttVerticalContainer,
13157
13157
  horizontalContainer,
@@ -13184,7 +13184,8 @@ const TaskGanttInner = (props) => {
13184
13184
  const moveStateScrollRef = useRef(null);
13185
13185
  const containerStyle = useMemo(
13186
13186
  () => ({
13187
- height: "100%"
13187
+ height: "100%",
13188
+ width: "100%"
13188
13189
  }),
13189
13190
  []
13190
13191
  );
@@ -10673,14 +10673,14 @@
10673
10673
  );
10674
10674
  };
10675
10675
  const TaskListTable = React.memo(TaskListTableDefaultInner);
10676
- const taskListRoot = "_taskListRoot_1x5nq_1";
10677
- const taskListHorizontalScroll = "_taskListHorizontalScroll_1x5nq_25";
10678
- const taskListResizer = "_taskListResizer_1x5nq_89";
10679
- const horizontalContainer$1 = "_horizontalContainer_1x5nq_153";
10680
- const tableWrapper = "_tableWrapper_1x5nq_171";
10681
- const scrollToTop = "_scrollToTop_1x5nq_183";
10682
- const scrollToBottom = "_scrollToBottom_1x5nq_199";
10683
- const hidden = "_hidden_1x5nq_215";
10676
+ const taskListRoot = "_taskListRoot_ycl6i_1";
10677
+ const taskListHorizontalScroll = "_taskListHorizontalScroll_ycl6i_27";
10678
+ const taskListResizer = "_taskListResizer_ycl6i_91";
10679
+ const horizontalContainer$1 = "_horizontalContainer_ycl6i_155";
10680
+ const tableWrapper = "_tableWrapper_ycl6i_173";
10681
+ const scrollToTop = "_scrollToTop_ycl6i_185";
10682
+ const scrollToBottom = "_scrollToBottom_ycl6i_201";
10683
+ const hidden = "_hidden_ycl6i_217";
10684
10684
  const styles$d = {
10685
10685
  taskListRoot,
10686
10686
  taskListHorizontalScroll,
@@ -13163,12 +13163,12 @@
13163
13163
  ] });
13164
13164
  };
13165
13165
  const TaskGanttContent = React.memo(TaskGanttContentInner);
13166
- const ganttVerticalContainer = "_ganttVerticalContainer_68nax_1";
13167
- const horizontalContainer = "_horizontalContainer_68nax_81";
13168
- const ganttHeader = "_ganttHeader_68nax_97";
13169
- const ganttBodyScroll = "_ganttBodyScroll_68nax_107";
13170
- const wrapper = "_wrapper_68nax_121";
13171
- const calendarDragging = "_calendarDragging_68nax_149";
13166
+ const ganttVerticalContainer = "_ganttVerticalContainer_1khem_1";
13167
+ const horizontalContainer = "_horizontalContainer_1khem_81";
13168
+ const ganttHeader = "_ganttHeader_1khem_103";
13169
+ const ganttBodyScroll = "_ganttBodyScroll_1khem_113";
13170
+ const wrapper = "_wrapper_1khem_131";
13171
+ const calendarDragging = "_calendarDragging_1khem_163";
13172
13172
  const styles$2 = {
13173
13173
  ganttVerticalContainer,
13174
13174
  horizontalContainer,
@@ -13201,7 +13201,8 @@
13201
13201
  const moveStateScrollRef = React.useRef(null);
13202
13202
  const containerStyle = React.useMemo(
13203
13203
  () => ({
13204
- height: "100%"
13204
+ height: "100%",
13205
+ width: "100%"
13205
13206
  }),
13206
13207
  []
13207
13208
  );
package/dist/style.css CHANGED
@@ -282,19 +282,20 @@
282
282
  border-bottom: 1px solid var(--gantt-divider-color);
283
283
  table-layout: fixed;
284
284
  }
285
- ._taskListRoot_1x5nq_1 {
285
+ ._taskListRoot_ycl6i_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;
293
- max-width: 100%;
292
+ /* allow the gantt area to control horizontal scrolling rather than clipping here */
293
+ overflow: visible;
294
+ max-width: none;
294
295
  flex-shrink: 0;
295
296
  }
296
297
 
297
- ._taskListHorizontalScroll_1x5nq_25 {
298
+ ._taskListHorizontalScroll_ycl6i_27 {
298
299
  overflow-x: auto;
299
300
  overflow-y: hidden;
300
301
  flex: 1;
@@ -302,16 +303,16 @@
302
303
  flex-direction: column;
303
304
  }
304
305
 
305
- ._taskListHorizontalScroll_1x5nq_25::-webkit-scrollbar {
306
+ ._taskListHorizontalScroll_ycl6i_27::-webkit-scrollbar {
306
307
  width: 1rem;
307
308
  height: 1rem;
308
309
  }
309
310
 
310
- ._taskListHorizontalScroll_1x5nq_25::-webkit-scrollbar-corner {
311
+ ._taskListHorizontalScroll_ycl6i_27::-webkit-scrollbar-corner {
311
312
  background: transparent;
312
313
  }
313
314
 
314
- ._taskListHorizontalScroll_1x5nq_25::-webkit-scrollbar-thumb {
315
+ ._taskListHorizontalScroll_ycl6i_27::-webkit-scrollbar-thumb {
315
316
  border: 4px solid transparent;
316
317
  /*noinspection CssUnresolvedCustomProperty*/
317
318
  background: var(--gantt-scrollbar-thumb-color);
@@ -319,14 +320,14 @@
319
320
  background-clip: padding-box;
320
321
  }
321
322
 
322
- ._taskListHorizontalScroll_1x5nq_25::-webkit-scrollbar-thumb:hover {
323
+ ._taskListHorizontalScroll_ycl6i_27::-webkit-scrollbar-thumb:hover {
323
324
  border: 2px solid transparent;
324
325
  /*noinspection CssUnresolvedCustomProperty*/
325
326
  background: var(--gantt-scrollbar-thumb-color);
326
327
  background-clip: padding-box;
327
328
  }
328
329
 
329
- ._taskListResizer_1x5nq_89 {
330
+ ._taskListResizer_ycl6i_91 {
330
331
  position: absolute;
331
332
  top: 0;
332
333
  right: -3px;
@@ -338,16 +339,16 @@
338
339
  }
339
340
 
340
341
  /*noinspection CssUnresolvedCustomProperty*/
341
- ._taskListResizer_1x5nq_89:hover {
342
+ ._taskListResizer_ycl6i_91:hover {
342
343
  background-color: var(--gantt-table-hover-action-color);
343
344
  filter: var(--gantt-hover-filter);
344
345
  }
345
346
 
346
- ._taskListResizer_1x5nq_89:hover::before {
347
+ ._taskListResizer_ycl6i_91:hover::before {
347
348
  display: none;
348
349
  }
349
350
 
350
- ._taskListResizer_1x5nq_89::before {
351
+ ._taskListResizer_ycl6i_91::before {
351
352
  content: "";
352
353
  position: absolute;
353
354
  top: 0;
@@ -358,7 +359,7 @@
358
359
  background-color: var(--gantt-table-resize-color, var(--gantt-divider-color));
359
360
  }
360
361
 
361
- ._horizontalContainer_1x5nq_153 {
362
+ ._horizontalContainer_ycl6i_155 {
362
363
  margin: 0;
363
364
  padding: 0;
364
365
  overflow-y: auto;
@@ -367,13 +368,13 @@
367
368
  min-height: 0;
368
369
  }
369
370
 
370
- ._tableWrapper_1x5nq_171 {
371
+ ._tableWrapper_ycl6i_173 {
371
372
  position: relative;
372
373
  flex: 1;
373
374
  min-height: 0;
374
375
  }
375
376
 
376
- ._scrollToTop_1x5nq_183 {
377
+ ._scrollToTop_ycl6i_185 {
377
378
  position: absolute;
378
379
  top: 0;
379
380
  left: 0;
@@ -381,7 +382,7 @@
381
382
  height: 20px;
382
383
  }
383
384
 
384
- ._scrollToBottom_1x5nq_199 {
385
+ ._scrollToBottom_ycl6i_201 {
385
386
  position: absolute;
386
387
  bottom: 0;
387
388
  left: 0;
@@ -389,7 +390,7 @@
389
390
  height: 20px;
390
391
  }
391
392
 
392
- ._hidden_1x5nq_215 {
393
+ ._hidden_ycl6i_217 {
393
394
  display: none;
394
395
  }
395
396
  ._ganttToday_1oyhk_1 {
@@ -583,7 +584,7 @@
583
584
  user-select: none;
584
585
  stroke-width: 0;
585
586
  }
586
- ._ganttVerticalContainer_68nax_1 {
587
+ ._ganttVerticalContainer_1khem_1 {
587
588
  display: flex;
588
589
  flex-direction: column;
589
590
  overflow-x: auto;
@@ -596,19 +597,19 @@
596
597
  flex-grow: 1;
597
598
  height: 100%;
598
599
  min-height: 0;
599
- width: 100%;
600
+ max-width: 100%;
600
601
  }
601
602
 
602
- ._ganttVerticalContainer_68nax_1::-webkit-scrollbar {
603
+ ._ganttVerticalContainer_1khem_1::-webkit-scrollbar {
603
604
  width: 1rem;
604
605
  height: 1rem;
605
606
  }
606
607
 
607
- ._ganttVerticalContainer_68nax_1::-webkit-scrollbar-corner {
608
+ ._ganttVerticalContainer_1khem_1::-webkit-scrollbar-corner {
608
609
  background: transparent;
609
610
  }
610
611
 
611
- ._ganttVerticalContainer_68nax_1::-webkit-scrollbar-thumb {
612
+ ._ganttVerticalContainer_1khem_1::-webkit-scrollbar-thumb {
612
613
  border: 4px solid transparent;
613
614
  /*noinspection CssUnresolvedCustomProperty*/
614
615
  background: var(--gantt-scrollbar-thumb-color);
@@ -616,34 +617,39 @@
616
617
  background-clip: padding-box;
617
618
  }
618
619
 
619
- ._ganttVerticalContainer_68nax_1::-webkit-scrollbar-thumb:hover {
620
+ ._ganttVerticalContainer_1khem_1::-webkit-scrollbar-thumb:hover {
620
621
  border: 2px solid transparent;
621
622
  /*noinspection CssUnresolvedCustomProperty*/
622
623
  background: var(--gantt-scrollbar-thumb-color);
623
624
  background-clip: padding-box;
624
625
  }
625
626
 
626
- ._horizontalContainer_68nax_81 {
627
+ ._horizontalContainer_1khem_81 {
627
628
  margin: 0;
628
629
  padding: 0;
629
- overflow: visible;
630
+ /* allow the inner grid/svg to overflow horizontally so the outer container can scroll
631
+ (was clipping the svg when its width exceeded the container) */
632
+ overflow-x: auto;
633
+ overflow-y: hidden;
630
634
  height: 100%;
631
635
  min-height: 0;
632
636
  }
633
637
 
634
- ._ganttHeader_68nax_97 {
638
+ ._ganttHeader_1khem_103 {
635
639
  flex: 0 0 auto;
636
640
  z-index: 3;
637
641
  }
638
642
 
639
- ._ganttBodyScroll_68nax_107 {
643
+ ._ganttBodyScroll_1khem_113 {
640
644
  flex: 1 1 auto;
641
- overflow: hidden;
645
+ /* allow horizontal scrolling here so the visible scroll area matches the SVG width */
646
+ overflow-y: auto;
647
+ overflow-x: auto;
642
648
  min-height: 0;
643
649
  height: 100%;
644
650
  }
645
651
 
646
- ._wrapper_68nax_121 {
652
+ ._wrapper_1khem_131 {
647
653
  display: flex;
648
654
  padding: 0;
649
655
  margin: 0;
@@ -654,10 +660,12 @@
654
660
  border-bottom: 1px solid var(--gantt-divider-color);
655
661
  height: 100%;
656
662
  min-height: 0;
657
- width: 100%;
663
+ /* allow children (like the gantt svg) to overflow horizontally instead of being clipped */
664
+ max-width: none;
665
+ overflow: visible;
658
666
  }
659
667
 
660
- ._calendarDragging_68nax_149 {
668
+ ._calendarDragging_1khem_163 {
661
669
  cursor: grabbing;
662
670
  }
663
671
  /*noinspection CssUnresolvedCustomProperty*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
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",