gantt-task-react-powern 0.6.44 → 0.6.46

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -44,6 +44,14 @@ export interface Task {
44
44
  arrowColor: string;
45
45
  criticalPathType: string;
46
46
  }>;
47
+ /**
48
+ * Days (inclusive) during which the planned bar takes `plannedInProgressColor`.
49
+ * No `end` means open-ended.
50
+ */
51
+ inProgressWindow?: {
52
+ start: Date;
53
+ end?: Date;
54
+ };
47
55
  styles?: {
48
56
  taskProgressColor?: string;
49
57
  backgroundColor?: string;
@@ -103,6 +111,12 @@ export interface EventOption {
103
111
  * Invokes when tasks are multi-selected via checkboxes
104
112
  */
105
113
  onMultiSelect?: (tasks: Task[]) => void;
114
+ /**
115
+ * Invokes when the header Select All checkbox is ticked or unticked, and with
116
+ * false when unticking a row ends select-all. While select-all is on, tasks
117
+ * passed in later (e.g. a new date window) are selected too.
118
+ */
119
+ onSelectAll?: (selected: boolean) => void;
106
120
  onCalendarError?: (task: Task, reason: string) => void;
107
121
  }
108
122
  export interface DisplayOption {
@@ -184,4 +198,8 @@ export interface GanttProps extends EventOption, DisplayOption, StylingOption {
184
198
  endDate?: Date;
185
199
  projectCalendar?: CalendarDefinition;
186
200
  sliderTime?: number;
201
+ /** Draw actual bars transparent until sliderTime reaches their actual start day. */
202
+ hideActualBeforeSlider?: boolean;
203
+ /** Planned bar fill while sliderTime is inside the task's `inProgressWindow`. */
204
+ plannedInProgressColor?: string;
187
205
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-powern",
3
- "version": "0.6.44",
3
+ "version": "0.6.46",
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",