@thepocman/gantt-task-react 1.0.13 → 1.0.14

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,7 +1,8 @@
1
- import { Distances, MapTaskToCoordinates, Task, TaskCoordinates, TaskOrEmpty, TaskToRowIndexMap, ViewMode } from "../types/public-types";
1
+ import { Distances, MapTaskToCoordinates, RowIndexToTasksMap, Task, TaskCoordinates, TaskOrEmpty, TaskToRowIndexMap, ViewMode } from "../types/public-types";
2
2
  export declare const countTaskCoordinates: (task: Task, taskToRowIndexMap: TaskToRowIndexMap, startDate: Date, viewMode: ViewMode, rtl: boolean, fullRowHeight: number, taskHeight: number, taskYOffset: number, distances: Distances, svgWidth: number, sequentialOffset?: number) => TaskCoordinates;
3
3
  /**
4
4
  * @param tasks List of tasks
5
5
  */
6
6
  export declare const getMapTaskToCoordinates: (tasks: readonly TaskOrEmpty[], visibleTasksMirror: Readonly<Record<string, true>>, taskToRowIndexMap: TaskToRowIndexMap, startDate: Date, viewMode: ViewMode, rtl: boolean, fullRowHeight: number, taskHeight: number, taskYOffset: number, distances: Distances, svgWidth: number) => MapTaskToCoordinates;
7
- export declare const countTaskCoordinatesWithGrouping: (task: Task, taskToRowIndexMap: TaskToRowIndexMap, startDate: Date, viewMode: ViewMode, rtl: boolean, fullRowHeight: number, taskHeight: number, taskYOffset: number, distances: Distances, svgWidth: number, sequentialOffset?: number) => TaskCoordinates;
7
+ export declare const countTaskCoordinatesWithGrouping: (task: Task, rowIndexToTasksMap: RowIndexToTasksMap, startDate: Date, viewMode: ViewMode, rtl: boolean, fullRowHeight: number, taskHeight: number, taskYOffset: number, distances: Distances, svgWidth: number, sequentialOffset?: number) => TaskCoordinates;
8
+ export declare const getMapTaskToCoordinatesWithGrouping: (tasks: readonly TaskOrEmpty[], visibleTasksMirror: Readonly<Record<string, true>>, rowIndexToTasksMap: RowIndexToTasksMap, startDate: Date, viewMode: ViewMode, rtl: boolean, fullRowHeight: number, taskHeight: number, taskYOffset: number, distances: Distances, svgWidth: number) => MapTaskToCoordinates;
@@ -0,0 +1,3 @@
1
+ import type { RowIndexToTasksMap } from "../types/public-types";
2
+ import { OptimizedListParams } from "./use-optimized-list";
3
+ export declare const useGroupedVirtualization: (rowIndexToTasksMap: RowIndexToTasksMap, taskHeight: number) => OptimizedListParams;
package/dist/style.css CHANGED
@@ -332,8 +332,8 @@
332
332
  stroke: #e0e0e0;
333
333
  stroke-width: 1.4;
334
334
  }
335
- ._ganttTaskRoot_1g0yd_1 {
336
- display:flex;
335
+ ._ganttTaskRoot_jnu0p_1 {
336
+ display: flex;
337
337
  flex-direction: column;
338
338
  overflow-x: scroll;
339
339
  overflow-y: hidden;
@@ -341,9 +341,10 @@
341
341
  margin: 0;
342
342
  padding: 0;
343
343
  }
344
+
344
345
  /* Only chrome otherwise the firefox scrollbar has no edge*/
345
346
  @media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
346
- ._ganttTaskRoot_1g0yd_1 {
347
+ ._ganttTaskRoot_jnu0p_1 {
347
348
  scrollbar-width: thin;
348
349
  }
349
350
  }
@@ -372,21 +373,22 @@
372
373
  background-clip: padding-box;
373
374
  } */
374
375
 
375
- ._ganttTaskContent_1g0yd_81 {
376
+ ._ganttTaskContent_jnu0p_83 {
376
377
  margin: 0;
377
378
  padding: 0;
378
379
  overflow-x: hidden;
379
380
  overflow-y: auto;
380
381
  }
382
+
381
383
  /* Only chrome otherwise the firefox scrollbar has no edges*/
382
384
  @media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
383
- ._ganttTaskContent_1g0yd_81 {
385
+ ._ganttTaskContent_jnu0p_83 {
384
386
  scrollbar-width: thin;
385
387
  }
386
388
  }
387
389
 
388
- ._wrapper_1g0yd_107 {
389
- display:grid;
390
+ ._wrapper_jnu0p_111 {
391
+ display: grid;
390
392
  overflow-x: hidden;
391
393
  overflow-y: hidden;
392
394
  padding: 0;
@@ -394,8 +396,7 @@
394
396
  list-style: none;
395
397
  outline: none;
396
398
  position: relative;
397
- }
398
- ._hoverVisibleWrapper_11ld1_1:hover ._wrapper_11ld1_1 {
399
+ }._hoverVisibleWrapper_11ld1_1:hover ._wrapper_11ld1_1 {
399
400
  display: initial;
400
401
  }
401
402
 
@@ -129,6 +129,7 @@ export interface Distances {
129
129
  relationCircleOffset: number;
130
130
  relationCircleRadius: number;
131
131
  rowHeight: number;
132
+ taskHeight: number;
132
133
  tableWidth?: number;
133
134
  taskWarningOffset: number;
134
135
  titleCellWidth: number;
@@ -505,6 +506,7 @@ export interface TaskListTableProps {
505
506
  canMoveTasks: boolean;
506
507
  enableTaskGrouping?: boolean;
507
508
  childTasksMap: ChildByLevelMap;
509
+ rowIndexToTasksMap: RowIndexToTasksMap;
508
510
  colors: ColorStyles;
509
511
  columns: readonly Column[];
510
512
  cutIdsMirror: Readonly<Record<string, true>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thepocman/gantt-task-react",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Fork of gantt-task-react with support for grouped tasks on a single row when collapsed",
5
5
  "author": "Adrian Bueno <adrianlbueno@users.noreply.github.com>",
6
6
  "homepage": "https://github.com/adrianlbueno/gantt-task-react#readme",