gantt-task-react-powern 0.6.20 → 0.6.22
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/components/calendar/calendar.d.ts +2 -1
- package/dist/components/gantt/task-gantt-content.d.ts +2 -1
- package/dist/components/grid/grid-body.d.ts +3 -1
- package/dist/components/task-item/bar/bar-display.d.ts +4 -0
- package/dist/helpers/bar-helper.d.ts +1 -0
- package/dist/helpers/calendar-helper.d.ts +49 -0
- package/dist/helpers/date-helper.d.ts +1 -1
- package/dist/index.css +21 -0
- package/dist/index.js +679 -201
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +679 -201
- package/dist/index.modern.js.map +1 -1
- package/dist/types/bar-task.d.ts +8 -0
- package/dist/types/public-types.d.ts +13 -0
- package/package.json +1 -1
package/dist/types/bar-task.d.ts
CHANGED
|
@@ -21,6 +21,14 @@ export interface BarTask extends Task {
|
|
|
21
21
|
arrowColor: string;
|
|
22
22
|
criticalPathType: string;
|
|
23
23
|
}>;
|
|
24
|
+
plannedSegments?: Array<{
|
|
25
|
+
x1: number;
|
|
26
|
+
x2: number;
|
|
27
|
+
}>;
|
|
28
|
+
actualSegments?: Array<{
|
|
29
|
+
x1: number;
|
|
30
|
+
x2: number;
|
|
31
|
+
}>;
|
|
24
32
|
styles: {
|
|
25
33
|
taskProgressColor?: string;
|
|
26
34
|
backgroundColor: string;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export interface CalendarDefinition {
|
|
3
|
+
name: string;
|
|
4
|
+
day_start: string;
|
|
5
|
+
day_end: string;
|
|
6
|
+
week_start: number;
|
|
7
|
+
quarter_start: number;
|
|
8
|
+
shifts: [string, string][];
|
|
9
|
+
off_days: number[];
|
|
10
|
+
holidays: string[];
|
|
11
|
+
}
|
|
2
12
|
export declare enum ViewMode {
|
|
3
13
|
Hour = "Hour",
|
|
4
14
|
QuarterDay = "Quarter Day",
|
|
@@ -54,6 +64,7 @@ export interface Task {
|
|
|
54
64
|
hideChildren?: boolean;
|
|
55
65
|
displayOrder?: number;
|
|
56
66
|
childrenCount?: number;
|
|
67
|
+
calender?: CalendarDefinition;
|
|
57
68
|
}
|
|
58
69
|
export interface EventOption {
|
|
59
70
|
/**
|
|
@@ -92,6 +103,7 @@ export interface EventOption {
|
|
|
92
103
|
* Invokes when tasks are multi-selected via checkboxes
|
|
93
104
|
*/
|
|
94
105
|
onMultiSelect?: (tasks: Task[]) => void;
|
|
106
|
+
onCalendarError?: (task: Task, reason: string) => void;
|
|
95
107
|
}
|
|
96
108
|
export interface DisplayOption {
|
|
97
109
|
viewMode?: ViewMode;
|
|
@@ -168,4 +180,5 @@ export interface GanttProps extends EventOption, DisplayOption, StylingOption {
|
|
|
168
180
|
scheduleType: string;
|
|
169
181
|
startDate?: Date;
|
|
170
182
|
endDate?: Date;
|
|
183
|
+
projectCalendar?: CalendarDefinition;
|
|
171
184
|
}
|
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.22",
|
|
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",
|