gantt-task-react-powern 0.3.11 → 0.4.0

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.
@@ -4,6 +4,10 @@ export interface BarTask extends Task {
4
4
  typeInternal: TaskTypeInternal;
5
5
  x1: number;
6
6
  x2: number;
7
+ actualx1: number;
8
+ actualx2: number;
9
+ progressStartWidth: number;
10
+ progressEndWidth: number;
7
11
  y: number;
8
12
  height: number;
9
13
  progressX: number;
@@ -12,6 +16,7 @@ export interface BarTask extends Task {
12
16
  handleWidth: number;
13
17
  barChildren: BarTask[];
14
18
  styles: {
19
+ taskProgressColor?: string;
15
20
  backgroundColor: string;
16
21
  backgroundSelectedColor: string;
17
22
  progressColor: string;
@@ -20,7 +20,10 @@ export interface Task {
20
20
  * From 0 to 100
21
21
  */
22
22
  progress: number;
23
+ actualStart: Date;
24
+ actualEnd: Date;
23
25
  styles?: {
26
+ taskProgressColor?: string;
24
27
  backgroundColor?: string;
25
28
  backgroundSelectedColor?: string;
26
29
  progressColor?: string;
@@ -129,6 +132,8 @@ export interface StylingOption {
129
132
  setSelectedTask: (taskId: string) => void;
130
133
  onExpanderClick: (task: Task) => void;
131
134
  }>;
135
+ taskLabelRenderer?: (Task: Task) => React.ReactNode;
136
+ taskProgressColor?: string;
132
137
  }
133
138
  export interface GanttProps extends EventOption, DisplayOption, StylingOption {
134
139
  tasks: Task[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-powern",
3
- "version": "0.3.11",
3
+ "version": "0.4.0",
4
4
  "description": "Interactive Gantt Chart for React with TypeScript.",
5
5
  "author": "lewibs <benjamin.lewis@powern.ai>",
6
6
  "homepage": "https://github.com/powernai/gantt-task-react-powern",
@@ -62,5 +62,8 @@
62
62
  },
63
63
  "files": [
64
64
  "dist"
65
- ]
65
+ ],
66
+ "dependencies": {
67
+ "gantt-task-react": "^0.3.9"
68
+ }
66
69
  }