gantt-task-react-v 1.0.35 → 1.0.37

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/style.css CHANGED
@@ -282,37 +282,33 @@
282
282
  border-bottom: 1px solid var(--gantt-divider-color);
283
283
  table-layout: fixed;
284
284
  }
285
- ._taskListRoot_ycl6i_1 {
285
+ ._taskListRoot_apbmu_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
- /* allow the gantt area to control horizontal scrolling rather than clipping here */
293
- overflow: visible;
294
- max-width: none;
295
- flex-shrink: 0;
296
292
  }
297
293
 
298
- ._taskListHorizontalScroll_ycl6i_27 {
299
- overflow-x: auto;
300
- overflow-y: hidden;
294
+ ._taskListHorizontalScroll_apbmu_19 {
295
+ overflow-x: scroll;
301
296
  flex: 1;
297
+ min-height: 0;
302
298
  display: flex;
303
299
  flex-direction: column;
304
300
  }
305
301
 
306
- ._taskListHorizontalScroll_ycl6i_27::-webkit-scrollbar {
302
+ ._taskListHorizontalScroll_apbmu_19::-webkit-scrollbar {
307
303
  width: 1rem;
308
304
  height: 1rem;
309
305
  }
310
306
 
311
- ._taskListHorizontalScroll_ycl6i_27::-webkit-scrollbar-corner {
307
+ ._taskListHorizontalScroll_apbmu_19::-webkit-scrollbar-corner {
312
308
  background: transparent;
313
309
  }
314
310
 
315
- ._taskListHorizontalScroll_ycl6i_27::-webkit-scrollbar-thumb {
311
+ ._taskListHorizontalScroll_apbmu_19::-webkit-scrollbar-thumb {
316
312
  border: 4px solid transparent;
317
313
  /*noinspection CssUnresolvedCustomProperty*/
318
314
  background: var(--gantt-scrollbar-thumb-color);
@@ -320,14 +316,14 @@
320
316
  background-clip: padding-box;
321
317
  }
322
318
 
323
- ._taskListHorizontalScroll_ycl6i_27::-webkit-scrollbar-thumb:hover {
319
+ ._taskListHorizontalScroll_apbmu_19::-webkit-scrollbar-thumb:hover {
324
320
  border: 2px solid transparent;
325
321
  /*noinspection CssUnresolvedCustomProperty*/
326
322
  background: var(--gantt-scrollbar-thumb-color);
327
323
  background-clip: padding-box;
328
324
  }
329
325
 
330
- ._taskListResizer_ycl6i_91 {
326
+ ._taskListResizer_apbmu_83 {
331
327
  position: absolute;
332
328
  top: 0;
333
329
  right: -3px;
@@ -339,16 +335,16 @@
339
335
  }
340
336
 
341
337
  /*noinspection CssUnresolvedCustomProperty*/
342
- ._taskListResizer_ycl6i_91:hover {
338
+ ._taskListResizer_apbmu_83:hover {
343
339
  background-color: var(--gantt-table-hover-action-color);
344
340
  filter: var(--gantt-hover-filter);
345
341
  }
346
342
 
347
- ._taskListResizer_ycl6i_91:hover::before {
343
+ ._taskListResizer_apbmu_83:hover::before {
348
344
  display: none;
349
345
  }
350
346
 
351
- ._taskListResizer_ycl6i_91::before {
347
+ ._taskListResizer_apbmu_83::before {
352
348
  content: "";
353
349
  position: absolute;
354
350
  top: 0;
@@ -359,22 +355,22 @@
359
355
  background-color: var(--gantt-table-resize-color, var(--gantt-divider-color));
360
356
  }
361
357
 
362
- ._horizontalContainer_ycl6i_155 {
358
+ ._horizontalContainer_apbmu_147 {
363
359
  margin: 0;
364
360
  padding: 0;
365
- overflow-y: auto;
366
- overflow-x: hidden;
367
- height: 100%;
361
+ overflow: hidden;
362
+ flex: 1;
368
363
  min-height: 0;
369
364
  }
370
365
 
371
- ._tableWrapper_ycl6i_173 {
366
+ ._tableWrapper_apbmu_163 {
372
367
  position: relative;
373
368
  flex: 1;
374
369
  min-height: 0;
370
+ overflow: hidden;
375
371
  }
376
372
 
377
- ._scrollToTop_ycl6i_185 {
373
+ ._scrollToTop_apbmu_177 {
378
374
  position: absolute;
379
375
  top: 0;
380
376
  left: 0;
@@ -382,7 +378,7 @@
382
378
  height: 20px;
383
379
  }
384
380
 
385
- ._scrollToBottom_ycl6i_201 {
381
+ ._scrollToBottom_apbmu_193 {
386
382
  position: absolute;
387
383
  bottom: 0;
388
384
  left: 0;
@@ -390,7 +386,7 @@
390
386
  height: 20px;
391
387
  }
392
388
 
393
- ._hidden_ycl6i_217 {
389
+ ._hidden_apbmu_209 {
394
390
  display: none;
395
391
  }
396
392
  ._ganttToday_1oyhk_1 {
@@ -584,10 +580,8 @@
584
580
  user-select: none;
585
581
  stroke-width: 0;
586
582
  }
587
- ._ganttVerticalContainer_1btnv_1 {
588
- display: flex;
589
- flex-direction: column;
590
- overflow-x: auto;
583
+ ._ganttVerticalContainer_i4cef_1 {
584
+ overflow-x: scroll;
591
585
  overflow-y: hidden;
592
586
  font-size: 0;
593
587
  margin: 0;
@@ -595,23 +589,22 @@
595
589
  /*noinspection CssUnresolvedCustomProperty*/
596
590
  border-right: 1px solid var(--gantt-calendar-divider-color, var(--gantt-divider-color));
597
591
  flex-grow: 1;
598
- height: 100%;
599
- min-height: 0;
600
- /* allow this flex child to shrink correctly in a flex row so internal scrolling works */
601
592
  min-width: 0;
602
- max-width: 100%;
593
+ height: 100%;
594
+ display: flex;
595
+ flex-direction: column;
603
596
  }
604
597
 
605
- ._ganttVerticalContainer_1btnv_1::-webkit-scrollbar {
598
+ ._ganttVerticalContainer_i4cef_1::-webkit-scrollbar {
606
599
  width: 1rem;
607
600
  height: 1rem;
608
601
  }
609
602
 
610
- ._ganttVerticalContainer_1btnv_1::-webkit-scrollbar-corner {
603
+ ._ganttVerticalContainer_i4cef_1::-webkit-scrollbar-corner {
611
604
  background: transparent;
612
605
  }
613
606
 
614
- ._ganttVerticalContainer_1btnv_1::-webkit-scrollbar-thumb {
607
+ ._ganttVerticalContainer_i4cef_1::-webkit-scrollbar-thumb {
615
608
  border: 4px solid transparent;
616
609
  /*noinspection CssUnresolvedCustomProperty*/
617
610
  background: var(--gantt-scrollbar-thumb-color);
@@ -619,43 +612,22 @@
619
612
  background-clip: padding-box;
620
613
  }
621
614
 
622
- ._ganttVerticalContainer_1btnv_1::-webkit-scrollbar-thumb:hover {
615
+ ._ganttVerticalContainer_i4cef_1::-webkit-scrollbar-thumb:hover {
623
616
  border: 2px solid transparent;
624
617
  /*noinspection CssUnresolvedCustomProperty*/
625
618
  background: var(--gantt-scrollbar-thumb-color);
626
619
  background-clip: padding-box;
627
620
  }
628
621
 
629
- ._horizontalContainer_1btnv_85 {
622
+ ._horizontalContainer_i4cef_79 {
630
623
  margin: 0;
631
624
  padding: 0;
632
- /* allow the inner grid/svg to overflow horizontally so the outer container can scroll
633
- (was clipping the svg when its width exceeded the container) */
634
- overflow-x: auto;
635
- overflow-y: hidden;
636
- height: 100%;
637
- min-height: 0;
638
- /* ensure this flex child can shrink correctly inside the gantt container */
639
- min-width: 0;
640
- }
641
-
642
- ._ganttHeader_1btnv_111 {
643
- flex: 0 0 auto;
644
- z-index: 3;
645
- }
646
-
647
- ._ganttBodyScroll_1btnv_121 {
648
- flex: 1 1 auto;
649
- /* allow horizontal scrolling here so the visible scroll area matches the SVG width */
650
- overflow-y: auto;
651
- overflow-x: auto;
625
+ overflow: hidden;
626
+ flex: 1;
652
627
  min-height: 0;
653
- height: 100%;
654
- /* make sure the body can be narrower than content to enable internal scrolling */
655
- min-width: 0;
656
628
  }
657
629
 
658
- ._wrapper_1btnv_143 {
630
+ ._wrapper_i4cef_95 {
659
631
  display: flex;
660
632
  padding: 0;
661
633
  margin: 0;
@@ -666,13 +638,11 @@
666
638
  border-bottom: 1px solid var(--gantt-divider-color);
667
639
  height: 100%;
668
640
  min-height: 0;
669
- /* let the gantt component provide horizontal scrolling; prevent the wrapper from creating an outer scrollbar */
670
- max-width: 100%;
671
- overflow-x: visible;
672
- overflow-y: visible;
641
+ flex: 1;
642
+ overflow: hidden;
673
643
  }
674
644
 
675
- ._calendarDragging_1btnv_177 {
645
+ ._calendarDragging_i4cef_125 {
676
646
  cursor: grabbing;
677
647
  }
678
648
  /*noinspection CssUnresolvedCustomProperty*/
@@ -320,13 +320,6 @@ export interface GanttProps {
320
320
  * Move dates of tasks to working days during change
321
321
  */
322
322
  isAdjustToWorkingDates?: boolean;
323
- /**
324
- * Height of the Gantt component. Can be a number (pixels) or a CSS height string
325
- * (for example "100%" to fill a parent container). When a CSS string is
326
- * provided the component will measure its rendered height and use it for
327
- * internal scroll calculations.
328
- */
329
- height?: number | string;
330
323
  }
331
324
  export interface GanttTaskBarActions {
332
325
  allowMoveTaskBar?: (action: TaskBarMoveAction, task: RenderTask) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
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",
@@ -23,7 +23,7 @@
23
23
  ],
24
24
  "scripts": {
25
25
  "storybook": "start-storybook -p 6006",
26
- "build": "vite build && node -e \"require('child_process').execSync('tsc', {stdio:'inherit'})\"",
26
+ "build": "vite build && tsc",
27
27
  "start": "vite --host",
28
28
  "prepare": "npm run build",
29
29
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",