gantt-task-react-v 1.0.24 → 1.0.25

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.
@@ -10657,14 +10657,14 @@ const TaskListTableDefaultInner = ({
10657
10657
  );
10658
10658
  };
10659
10659
  const TaskListTable = memo(TaskListTableDefaultInner);
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";
10660
+ const taskListRoot = "_taskListRoot_4jj9x_1";
10661
+ const taskListHorizontalScroll = "_taskListHorizontalScroll_4jj9x_29";
10662
+ const taskListResizer = "_taskListResizer_4jj9x_93";
10663
+ const horizontalContainer$1 = "_horizontalContainer_4jj9x_157";
10664
+ const tableWrapper = "_tableWrapper_4jj9x_175";
10665
+ const scrollToTop = "_scrollToTop_4jj9x_187";
10666
+ const scrollToBottom = "_scrollToBottom_4jj9x_203";
10667
+ const hidden = "_hidden_4jj9x_219";
10668
10668
  const styles$d = {
10669
10669
  taskListRoot,
10670
10670
  taskListHorizontalScroll,
@@ -13147,12 +13147,12 @@ const TaskGanttContentInner = (props) => {
13147
13147
  ] });
13148
13148
  };
13149
13149
  const TaskGanttContent = memo(TaskGanttContentInner);
13150
- const ganttVerticalContainer = "_ganttVerticalContainer_bv09s_1";
13151
- const horizontalContainer = "_horizontalContainer_bv09s_85";
13152
- const ganttHeader = "_ganttHeader_bv09s_101";
13153
- const ganttBodyScroll = "_ganttBodyScroll_bv09s_111";
13154
- const wrapper = "_wrapper_bv09s_127";
13155
- const calendarDragging = "_calendarDragging_bv09s_159";
13150
+ const ganttVerticalContainer = "_ganttVerticalContainer_7oj2l_1";
13151
+ const horizontalContainer = "_horizontalContainer_7oj2l_87";
13152
+ const ganttHeader = "_ganttHeader_7oj2l_103";
13153
+ const ganttBodyScroll = "_ganttBodyScroll_7oj2l_113";
13154
+ const wrapper = "_wrapper_7oj2l_131";
13155
+ const calendarDragging = "_calendarDragging_7oj2l_165";
13156
13156
  const styles$2 = {
13157
13157
  ganttVerticalContainer,
13158
13158
  horizontalContainer,
@@ -13186,14 +13186,17 @@ const TaskGanttInner = (props) => {
13186
13186
  const containerStyle = useMemo(
13187
13187
  () => ({
13188
13188
  height: "100%",
13189
- width: fullSvgWidth
13189
+ width: "100%",
13190
+ maxWidth: "100%",
13191
+ minWidth: 0
13190
13192
  }),
13191
- [fullSvgWidth]
13193
+ []
13192
13194
  );
13193
13195
  const gridStyle = useMemo(
13194
13196
  () => ({
13195
13197
  height: Math.max(ganttFullHeight, minimumRowDisplayed * rowHeight),
13196
13198
  width: fullSvgWidth,
13199
+ minWidth: "100%",
13197
13200
  backgroundSize: `${columnWidth}px ${fullRowHeight * 2}px`,
13198
13201
  backgroundPositionX: additionalLeftSpace || void 0,
13199
13202
  backgroundImage: [
@@ -10674,14 +10674,14 @@
10674
10674
  );
10675
10675
  };
10676
10676
  const TaskListTable = React.memo(TaskListTableDefaultInner);
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";
10677
+ const taskListRoot = "_taskListRoot_4jj9x_1";
10678
+ const taskListHorizontalScroll = "_taskListHorizontalScroll_4jj9x_29";
10679
+ const taskListResizer = "_taskListResizer_4jj9x_93";
10680
+ const horizontalContainer$1 = "_horizontalContainer_4jj9x_157";
10681
+ const tableWrapper = "_tableWrapper_4jj9x_175";
10682
+ const scrollToTop = "_scrollToTop_4jj9x_187";
10683
+ const scrollToBottom = "_scrollToBottom_4jj9x_203";
10684
+ const hidden = "_hidden_4jj9x_219";
10685
10685
  const styles$d = {
10686
10686
  taskListRoot,
10687
10687
  taskListHorizontalScroll,
@@ -13164,12 +13164,12 @@
13164
13164
  ] });
13165
13165
  };
13166
13166
  const TaskGanttContent = React.memo(TaskGanttContentInner);
13167
- const ganttVerticalContainer = "_ganttVerticalContainer_bv09s_1";
13168
- const horizontalContainer = "_horizontalContainer_bv09s_85";
13169
- const ganttHeader = "_ganttHeader_bv09s_101";
13170
- const ganttBodyScroll = "_ganttBodyScroll_bv09s_111";
13171
- const wrapper = "_wrapper_bv09s_127";
13172
- const calendarDragging = "_calendarDragging_bv09s_159";
13167
+ const ganttVerticalContainer = "_ganttVerticalContainer_7oj2l_1";
13168
+ const horizontalContainer = "_horizontalContainer_7oj2l_87";
13169
+ const ganttHeader = "_ganttHeader_7oj2l_103";
13170
+ const ganttBodyScroll = "_ganttBodyScroll_7oj2l_113";
13171
+ const wrapper = "_wrapper_7oj2l_131";
13172
+ const calendarDragging = "_calendarDragging_7oj2l_165";
13173
13173
  const styles$2 = {
13174
13174
  ganttVerticalContainer,
13175
13175
  horizontalContainer,
@@ -13203,14 +13203,17 @@
13203
13203
  const containerStyle = React.useMemo(
13204
13204
  () => ({
13205
13205
  height: "100%",
13206
- width: fullSvgWidth
13206
+ width: "100%",
13207
+ maxWidth: "100%",
13208
+ minWidth: 0
13207
13209
  }),
13208
- [fullSvgWidth]
13210
+ []
13209
13211
  );
13210
13212
  const gridStyle = React.useMemo(
13211
13213
  () => ({
13212
13214
  height: Math.max(ganttFullHeight, minimumRowDisplayed * rowHeight),
13213
13215
  width: fullSvgWidth,
13216
+ minWidth: "100%",
13214
13217
  backgroundSize: `${columnWidth}px ${fullRowHeight * 2}px`,
13215
13218
  backgroundPositionX: additionalLeftSpace || void 0,
13216
13219
  backgroundImage: [
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
- ._taskListRoot_xeaio_1 {
285
+ ._taskListRoot_4jj9x_1 {
286
286
  position: relative;
287
287
  /*noinspection CssUnresolvedCustomProperty*/
288
288
  border-left: 1px solid var(--gantt-table-divider-color, var(--gantt-divider-color));
@@ -290,9 +290,13 @@
290
290
  display: flex;
291
291
  flex-direction: column;
292
292
  overflow: hidden;
293
+ width: 50%;
294
+ flex-shrink: 0;
295
+ min-width: 200px;
296
+ max-width: 80%;
293
297
  }
294
298
 
295
- ._taskListHorizontalScroll_xeaio_21 {
299
+ ._taskListHorizontalScroll_4jj9x_29 {
296
300
  overflow-x: auto;
297
301
  overflow-y: hidden;
298
302
  flex: 1;
@@ -300,16 +304,16 @@
300
304
  flex-direction: column;
301
305
  }
302
306
 
303
- ._taskListHorizontalScroll_xeaio_21::-webkit-scrollbar {
307
+ ._taskListHorizontalScroll_4jj9x_29::-webkit-scrollbar {
304
308
  width: 1rem;
305
309
  height: 1rem;
306
310
  }
307
311
 
308
- ._taskListHorizontalScroll_xeaio_21::-webkit-scrollbar-corner {
312
+ ._taskListHorizontalScroll_4jj9x_29::-webkit-scrollbar-corner {
309
313
  background: transparent;
310
314
  }
311
315
 
312
- ._taskListHorizontalScroll_xeaio_21::-webkit-scrollbar-thumb {
316
+ ._taskListHorizontalScroll_4jj9x_29::-webkit-scrollbar-thumb {
313
317
  border: 4px solid transparent;
314
318
  /*noinspection CssUnresolvedCustomProperty*/
315
319
  background: var(--gantt-scrollbar-thumb-color);
@@ -317,14 +321,14 @@
317
321
  background-clip: padding-box;
318
322
  }
319
323
 
320
- ._taskListHorizontalScroll_xeaio_21::-webkit-scrollbar-thumb:hover {
324
+ ._taskListHorizontalScroll_4jj9x_29::-webkit-scrollbar-thumb:hover {
321
325
  border: 2px solid transparent;
322
326
  /*noinspection CssUnresolvedCustomProperty*/
323
327
  background: var(--gantt-scrollbar-thumb-color);
324
328
  background-clip: padding-box;
325
329
  }
326
330
 
327
- ._taskListResizer_xeaio_85 {
331
+ ._taskListResizer_4jj9x_93 {
328
332
  position: absolute;
329
333
  top: 0;
330
334
  right: -3px;
@@ -336,16 +340,16 @@
336
340
  }
337
341
 
338
342
  /*noinspection CssUnresolvedCustomProperty*/
339
- ._taskListResizer_xeaio_85:hover {
343
+ ._taskListResizer_4jj9x_93:hover {
340
344
  background-color: var(--gantt-table-hover-action-color);
341
345
  filter: var(--gantt-hover-filter);
342
346
  }
343
347
 
344
- ._taskListResizer_xeaio_85:hover::before {
348
+ ._taskListResizer_4jj9x_93:hover::before {
345
349
  display: none;
346
350
  }
347
351
 
348
- ._taskListResizer_xeaio_85::before {
352
+ ._taskListResizer_4jj9x_93::before {
349
353
  content: "";
350
354
  position: absolute;
351
355
  top: 0;
@@ -356,7 +360,7 @@
356
360
  background-color: var(--gantt-table-resize-color, var(--gantt-divider-color));
357
361
  }
358
362
 
359
- ._horizontalContainer_xeaio_149 {
363
+ ._horizontalContainer_4jj9x_157 {
360
364
  margin: 0;
361
365
  padding: 0;
362
366
  overflow-y: auto;
@@ -365,13 +369,13 @@
365
369
  min-height: 0;
366
370
  }
367
371
 
368
- ._tableWrapper_xeaio_167 {
372
+ ._tableWrapper_4jj9x_175 {
369
373
  position: relative;
370
374
  flex: 1;
371
375
  min-height: 0;
372
376
  }
373
377
 
374
- ._scrollToTop_xeaio_179 {
378
+ ._scrollToTop_4jj9x_187 {
375
379
  position: absolute;
376
380
  top: 0;
377
381
  left: 0;
@@ -379,7 +383,7 @@
379
383
  height: 20px;
380
384
  }
381
385
 
382
- ._scrollToBottom_xeaio_195 {
386
+ ._scrollToBottom_4jj9x_203 {
383
387
  position: absolute;
384
388
  bottom: 0;
385
389
  left: 0;
@@ -387,7 +391,7 @@
387
391
  height: 20px;
388
392
  }
389
393
 
390
- ._hidden_xeaio_211 {
394
+ ._hidden_4jj9x_219 {
391
395
  display: none;
392
396
  }
393
397
  ._ganttToday_1oyhk_1 {
@@ -581,10 +585,10 @@
581
585
  user-select: none;
582
586
  stroke-width: 0;
583
587
  }
584
- ._ganttVerticalContainer_bv09s_1 {
588
+ ._ganttVerticalContainer_7oj2l_1 {
585
589
  display: flex;
586
590
  flex-direction: column;
587
- overflow-x: hidden;
591
+ overflow-x: auto;
588
592
  overflow-y: hidden;
589
593
  font-size: 0;
590
594
  margin: 0;
@@ -597,18 +601,19 @@
597
601
  height: 100%;
598
602
  min-height: 0;
599
603
  min-width: 0;
604
+ width: 50%;
600
605
  }
601
606
 
602
- ._ganttVerticalContainer_bv09s_1::-webkit-scrollbar {
607
+ ._ganttVerticalContainer_7oj2l_1::-webkit-scrollbar {
603
608
  width: 1rem;
604
609
  height: 1rem;
605
610
  }
606
611
 
607
- ._ganttVerticalContainer_bv09s_1::-webkit-scrollbar-corner {
612
+ ._ganttVerticalContainer_7oj2l_1::-webkit-scrollbar-corner {
608
613
  background: transparent;
609
614
  }
610
615
 
611
- ._ganttVerticalContainer_bv09s_1::-webkit-scrollbar-thumb {
616
+ ._ganttVerticalContainer_7oj2l_1::-webkit-scrollbar-thumb {
612
617
  border: 4px solid transparent;
613
618
  /*noinspection CssUnresolvedCustomProperty*/
614
619
  background: var(--gantt-scrollbar-thumb-color);
@@ -616,14 +621,14 @@
616
621
  background-clip: padding-box;
617
622
  }
618
623
 
619
- ._ganttVerticalContainer_bv09s_1::-webkit-scrollbar-thumb:hover {
624
+ ._ganttVerticalContainer_7oj2l_1::-webkit-scrollbar-thumb:hover {
620
625
  border: 2px solid transparent;
621
626
  /*noinspection CssUnresolvedCustomProperty*/
622
627
  background: var(--gantt-scrollbar-thumb-color);
623
628
  background-clip: padding-box;
624
629
  }
625
630
 
626
- ._horizontalContainer_bv09s_85 {
631
+ ._horizontalContainer_7oj2l_87 {
627
632
  margin: 0;
628
633
  padding: 0;
629
634
  overflow: hidden;
@@ -631,20 +636,21 @@
631
636
  min-height: 0;
632
637
  }
633
638
 
634
- ._ganttHeader_bv09s_101 {
639
+ ._ganttHeader_7oj2l_103 {
635
640
  flex: 0 0 auto;
636
641
  z-index: 3;
637
642
  }
638
643
 
639
- ._ganttBodyScroll_bv09s_111 {
644
+ ._ganttBodyScroll_7oj2l_113 {
640
645
  flex: 1 1 auto;
641
646
  overflow-y: auto;
642
647
  overflow-x: hidden;
643
648
  min-height: 0;
644
649
  height: 100%;
650
+ max-height: 100%;
645
651
  }
646
652
 
647
- ._wrapper_bv09s_127 {
653
+ ._wrapper_7oj2l_131 {
648
654
  display: flex;
649
655
  padding: 0;
650
656
  margin: 0;
@@ -656,11 +662,12 @@
656
662
  height: 100%;
657
663
  min-height: 0;
658
664
  width: 100%;
665
+ max-width: 100%;
659
666
  overflow: hidden;
660
667
  contain: layout;
661
668
  }
662
669
 
663
- ._calendarDragging_bv09s_159 {
670
+ ._calendarDragging_7oj2l_165 {
664
671
  cursor: grabbing;
665
672
  }
666
673
  /*noinspection CssUnresolvedCustomProperty*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
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",