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.
- package/README.md +3 -0
- package/dist/components/gantt/task-gantt-content.d.ts +6 -0
- package/dist/helpers/bar-helper.d.ts +10 -2
- package/dist/helpers/calendar-helper.d.ts +4 -1
- package/dist/helpers/date-helper.d.ts +5 -0
- package/dist/index.js +113 -91
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +113 -91
- package/dist/index.modern.js.map +1 -1
- package/dist/test/bar-segments.test.d.ts +1 -0
- package/dist/test/calendar-helper.test.d.ts +1 -0
- package/dist/test/hide-actual-before-slider.test.d.ts +1 -0
- package/dist/test/slider-bar-colors.test.d.ts +1 -0
- package/dist/test/task-list-select-all.test.d.ts +1 -0
- package/dist/types/public-types.d.ts +18 -0
- package/package.json +1 -1
|
@@ -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.
|
|
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",
|