gantt-task-react-v 1.0.25 → 1.0.27

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.
@@ -4674,7 +4674,6 @@ const styles$k = {
4674
4674
  scroll
4675
4675
  };
4676
4676
  const VerticalScroll = ({
4677
- ganttHeight,
4678
4677
  ganttFullHeight,
4679
4678
  headerHeight,
4680
4679
  isChangeInProgress,
@@ -4686,7 +4685,7 @@ const VerticalScroll = ({
4686
4685
  "div",
4687
4686
  {
4688
4687
  style: {
4689
- height: ganttHeight,
4688
+ height: `calc(100% - ${headerHeight}px)`,
4690
4689
  marginTop: headerHeight,
4691
4690
  marginLeft: rtl ? void 0 : "-1rem",
4692
4691
  pointerEvents: isChangeInProgress ? "none" : void 0
@@ -10657,14 +10656,14 @@ const TaskListTableDefaultInner = ({
10657
10656
  );
10658
10657
  };
10659
10658
  const TaskListTable = memo(TaskListTableDefaultInner);
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";
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";
10668
10667
  const styles$d = {
10669
10668
  taskListRoot,
10670
10669
  taskListHorizontalScroll,
@@ -13147,12 +13146,12 @@ const TaskGanttContentInner = (props) => {
13147
13146
  ] });
13148
13147
  };
13149
13148
  const TaskGanttContent = memo(TaskGanttContentInner);
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";
13149
+ const ganttVerticalContainer = "_ganttVerticalContainer_1xboz_1";
13150
+ const horizontalContainer = "_horizontalContainer_1xboz_81";
13151
+ const ganttHeader = "_ganttHeader_1xboz_97";
13152
+ const ganttBodyScroll = "_ganttBodyScroll_1xboz_107";
13153
+ const wrapper = "_wrapper_1xboz_123";
13154
+ const calendarDragging = "_calendarDragging_1xboz_153";
13156
13155
  const styles$2 = {
13157
13156
  ganttVerticalContainer,
13158
13157
  horizontalContainer,
@@ -13186,9 +13185,7 @@ const TaskGanttInner = (props) => {
13186
13185
  const containerStyle = useMemo(
13187
13186
  () => ({
13188
13187
  height: "100%",
13189
- width: "100%",
13190
- maxWidth: "100%",
13191
- minWidth: 0
13188
+ width: "100%"
13192
13189
  }),
13193
13190
  []
13194
13191
  );
@@ -13196,7 +13193,6 @@ const TaskGanttInner = (props) => {
13196
13193
  () => ({
13197
13194
  height: Math.max(ganttFullHeight, minimumRowDisplayed * rowHeight),
13198
13195
  width: fullSvgWidth,
13199
- minWidth: "100%",
13200
13196
  backgroundSize: `${columnWidth}px ${fullRowHeight * 2}px`,
13201
13197
  backgroundPositionX: additionalLeftSpace || void 0,
13202
13198
  backgroundImage: [
@@ -4691,7 +4691,6 @@
4691
4691
  scroll
4692
4692
  };
4693
4693
  const VerticalScroll = ({
4694
- ganttHeight,
4695
4694
  ganttFullHeight,
4696
4695
  headerHeight,
4697
4696
  isChangeInProgress,
@@ -4703,7 +4702,7 @@
4703
4702
  "div",
4704
4703
  {
4705
4704
  style: {
4706
- height: ganttHeight,
4705
+ height: `calc(100% - ${headerHeight}px)`,
4707
4706
  marginTop: headerHeight,
4708
4707
  marginLeft: rtl ? void 0 : "-1rem",
4709
4708
  pointerEvents: isChangeInProgress ? "none" : void 0
@@ -10674,14 +10673,14 @@
10674
10673
  );
10675
10674
  };
10676
10675
  const TaskListTable = React.memo(TaskListTableDefaultInner);
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";
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";
10685
10684
  const styles$d = {
10686
10685
  taskListRoot,
10687
10686
  taskListHorizontalScroll,
@@ -13164,12 +13163,12 @@
13164
13163
  ] });
13165
13164
  };
13166
13165
  const TaskGanttContent = React.memo(TaskGanttContentInner);
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";
13166
+ const ganttVerticalContainer = "_ganttVerticalContainer_1xboz_1";
13167
+ const horizontalContainer = "_horizontalContainer_1xboz_81";
13168
+ const ganttHeader = "_ganttHeader_1xboz_97";
13169
+ const ganttBodyScroll = "_ganttBodyScroll_1xboz_107";
13170
+ const wrapper = "_wrapper_1xboz_123";
13171
+ const calendarDragging = "_calendarDragging_1xboz_153";
13173
13172
  const styles$2 = {
13174
13173
  ganttVerticalContainer,
13175
13174
  horizontalContainer,
@@ -13203,9 +13202,7 @@
13203
13202
  const containerStyle = React.useMemo(
13204
13203
  () => ({
13205
13204
  height: "100%",
13206
- width: "100%",
13207
- maxWidth: "100%",
13208
- minWidth: 0
13205
+ width: "100%"
13209
13206
  }),
13210
13207
  []
13211
13208
  );
@@ -13213,7 +13210,6 @@
13213
13210
  () => ({
13214
13211
  height: Math.max(ganttFullHeight, minimumRowDisplayed * rowHeight),
13215
13212
  width: fullSvgWidth,
13216
- minWidth: "100%",
13217
13213
  backgroundSize: `${columnWidth}px ${fullRowHeight * 2}px`,
13218
13214
  backgroundPositionX: additionalLeftSpace || void 0,
13219
13215
  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_4jj9x_1 {
285
+ ._taskListRoot_1x5nq_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,13 +290,11 @@
290
290
  display: flex;
291
291
  flex-direction: column;
292
292
  overflow: hidden;
293
- width: 50%;
293
+ max-width: 100%;
294
294
  flex-shrink: 0;
295
- min-width: 200px;
296
- max-width: 80%;
297
295
  }
298
296
 
299
- ._taskListHorizontalScroll_4jj9x_29 {
297
+ ._taskListHorizontalScroll_1x5nq_25 {
300
298
  overflow-x: auto;
301
299
  overflow-y: hidden;
302
300
  flex: 1;
@@ -304,16 +302,16 @@
304
302
  flex-direction: column;
305
303
  }
306
304
 
307
- ._taskListHorizontalScroll_4jj9x_29::-webkit-scrollbar {
305
+ ._taskListHorizontalScroll_1x5nq_25::-webkit-scrollbar {
308
306
  width: 1rem;
309
307
  height: 1rem;
310
308
  }
311
309
 
312
- ._taskListHorizontalScroll_4jj9x_29::-webkit-scrollbar-corner {
310
+ ._taskListHorizontalScroll_1x5nq_25::-webkit-scrollbar-corner {
313
311
  background: transparent;
314
312
  }
315
313
 
316
- ._taskListHorizontalScroll_4jj9x_29::-webkit-scrollbar-thumb {
314
+ ._taskListHorizontalScroll_1x5nq_25::-webkit-scrollbar-thumb {
317
315
  border: 4px solid transparent;
318
316
  /*noinspection CssUnresolvedCustomProperty*/
319
317
  background: var(--gantt-scrollbar-thumb-color);
@@ -321,14 +319,14 @@
321
319
  background-clip: padding-box;
322
320
  }
323
321
 
324
- ._taskListHorizontalScroll_4jj9x_29::-webkit-scrollbar-thumb:hover {
322
+ ._taskListHorizontalScroll_1x5nq_25::-webkit-scrollbar-thumb:hover {
325
323
  border: 2px solid transparent;
326
324
  /*noinspection CssUnresolvedCustomProperty*/
327
325
  background: var(--gantt-scrollbar-thumb-color);
328
326
  background-clip: padding-box;
329
327
  }
330
328
 
331
- ._taskListResizer_4jj9x_93 {
329
+ ._taskListResizer_1x5nq_89 {
332
330
  position: absolute;
333
331
  top: 0;
334
332
  right: -3px;
@@ -340,16 +338,16 @@
340
338
  }
341
339
 
342
340
  /*noinspection CssUnresolvedCustomProperty*/
343
- ._taskListResizer_4jj9x_93:hover {
341
+ ._taskListResizer_1x5nq_89:hover {
344
342
  background-color: var(--gantt-table-hover-action-color);
345
343
  filter: var(--gantt-hover-filter);
346
344
  }
347
345
 
348
- ._taskListResizer_4jj9x_93:hover::before {
346
+ ._taskListResizer_1x5nq_89:hover::before {
349
347
  display: none;
350
348
  }
351
349
 
352
- ._taskListResizer_4jj9x_93::before {
350
+ ._taskListResizer_1x5nq_89::before {
353
351
  content: "";
354
352
  position: absolute;
355
353
  top: 0;
@@ -360,7 +358,7 @@
360
358
  background-color: var(--gantt-table-resize-color, var(--gantt-divider-color));
361
359
  }
362
360
 
363
- ._horizontalContainer_4jj9x_157 {
361
+ ._horizontalContainer_1x5nq_153 {
364
362
  margin: 0;
365
363
  padding: 0;
366
364
  overflow-y: auto;
@@ -369,13 +367,13 @@
369
367
  min-height: 0;
370
368
  }
371
369
 
372
- ._tableWrapper_4jj9x_175 {
370
+ ._tableWrapper_1x5nq_171 {
373
371
  position: relative;
374
372
  flex: 1;
375
373
  min-height: 0;
376
374
  }
377
375
 
378
- ._scrollToTop_4jj9x_187 {
376
+ ._scrollToTop_1x5nq_183 {
379
377
  position: absolute;
380
378
  top: 0;
381
379
  left: 0;
@@ -383,7 +381,7 @@
383
381
  height: 20px;
384
382
  }
385
383
 
386
- ._scrollToBottom_4jj9x_203 {
384
+ ._scrollToBottom_1x5nq_199 {
387
385
  position: absolute;
388
386
  bottom: 0;
389
387
  left: 0;
@@ -391,7 +389,7 @@
391
389
  height: 20px;
392
390
  }
393
391
 
394
- ._hidden_4jj9x_219 {
392
+ ._hidden_1x5nq_215 {
395
393
  display: none;
396
394
  }
397
395
  ._ganttToday_1oyhk_1 {
@@ -585,7 +583,7 @@
585
583
  user-select: none;
586
584
  stroke-width: 0;
587
585
  }
588
- ._ganttVerticalContainer_7oj2l_1 {
586
+ ._ganttVerticalContainer_1xboz_1 {
589
587
  display: flex;
590
588
  flex-direction: column;
591
589
  overflow-x: auto;
@@ -596,24 +594,21 @@
596
594
  /*noinspection CssUnresolvedCustomProperty*/
597
595
  border-right: 1px solid var(--gantt-calendar-divider-color, var(--gantt-divider-color));
598
596
  flex-grow: 1;
599
- flex-shrink: 1;
600
- flex-basis: 0;
601
597
  height: 100%;
602
598
  min-height: 0;
603
- min-width: 0;
604
- width: 50%;
599
+ max-width: 100%;
605
600
  }
606
601
 
607
- ._ganttVerticalContainer_7oj2l_1::-webkit-scrollbar {
602
+ ._ganttVerticalContainer_1xboz_1::-webkit-scrollbar {
608
603
  width: 1rem;
609
604
  height: 1rem;
610
605
  }
611
606
 
612
- ._ganttVerticalContainer_7oj2l_1::-webkit-scrollbar-corner {
607
+ ._ganttVerticalContainer_1xboz_1::-webkit-scrollbar-corner {
613
608
  background: transparent;
614
609
  }
615
610
 
616
- ._ganttVerticalContainer_7oj2l_1::-webkit-scrollbar-thumb {
611
+ ._ganttVerticalContainer_1xboz_1::-webkit-scrollbar-thumb {
617
612
  border: 4px solid transparent;
618
613
  /*noinspection CssUnresolvedCustomProperty*/
619
614
  background: var(--gantt-scrollbar-thumb-color);
@@ -621,14 +616,14 @@
621
616
  background-clip: padding-box;
622
617
  }
623
618
 
624
- ._ganttVerticalContainer_7oj2l_1::-webkit-scrollbar-thumb:hover {
619
+ ._ganttVerticalContainer_1xboz_1::-webkit-scrollbar-thumb:hover {
625
620
  border: 2px solid transparent;
626
621
  /*noinspection CssUnresolvedCustomProperty*/
627
622
  background: var(--gantt-scrollbar-thumb-color);
628
623
  background-clip: padding-box;
629
624
  }
630
625
 
631
- ._horizontalContainer_7oj2l_87 {
626
+ ._horizontalContainer_1xboz_81 {
632
627
  margin: 0;
633
628
  padding: 0;
634
629
  overflow: hidden;
@@ -636,21 +631,20 @@
636
631
  min-height: 0;
637
632
  }
638
633
 
639
- ._ganttHeader_7oj2l_103 {
634
+ ._ganttHeader_1xboz_97 {
640
635
  flex: 0 0 auto;
641
636
  z-index: 3;
642
637
  }
643
638
 
644
- ._ganttBodyScroll_7oj2l_113 {
639
+ ._ganttBodyScroll_1xboz_107 {
645
640
  flex: 1 1 auto;
646
641
  overflow-y: auto;
647
642
  overflow-x: hidden;
648
643
  min-height: 0;
649
644
  height: 100%;
650
- max-height: 100%;
651
645
  }
652
646
 
653
- ._wrapper_7oj2l_131 {
647
+ ._wrapper_1xboz_123 {
654
648
  display: flex;
655
649
  padding: 0;
656
650
  margin: 0;
@@ -661,13 +655,11 @@
661
655
  border-bottom: 1px solid var(--gantt-divider-color);
662
656
  height: 100%;
663
657
  min-height: 0;
664
- width: 100%;
665
658
  max-width: 100%;
666
659
  overflow: hidden;
667
- contain: layout;
668
660
  }
669
661
 
670
- ._calendarDragging_7oj2l_165 {
662
+ ._calendarDragging_1xboz_153 {
671
663
  cursor: grabbing;
672
664
  }
673
665
  /*noinspection CssUnresolvedCustomProperty*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
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",