gantt-task-react-powern 0.6.21 → 0.6.23
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 +3 -1
- package/dist/components/grid/grid-body.d.ts +3 -1
- package/dist/components/other/tooltip.d.ts +1 -0
- 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 +850 -221
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +850 -221
- 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 -4
- 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,10 +64,7 @@ export interface Task {
|
|
|
54
64
|
hideChildren?: boolean;
|
|
55
65
|
displayOrder?: number;
|
|
56
66
|
childrenCount?: number;
|
|
57
|
-
|
|
58
|
-
off_days: Array<number>;
|
|
59
|
-
holidays: Array<number>;
|
|
60
|
-
};
|
|
67
|
+
calender?: CalendarDefinition;
|
|
61
68
|
}
|
|
62
69
|
export interface EventOption {
|
|
63
70
|
/**
|
|
@@ -96,6 +103,7 @@ export interface EventOption {
|
|
|
96
103
|
* Invokes when tasks are multi-selected via checkboxes
|
|
97
104
|
*/
|
|
98
105
|
onMultiSelect?: (tasks: Task[]) => void;
|
|
106
|
+
onCalendarError?: (task: Task, reason: string) => void;
|
|
99
107
|
}
|
|
100
108
|
export interface DisplayOption {
|
|
101
109
|
viewMode?: ViewMode;
|
|
@@ -172,4 +180,5 @@ export interface GanttProps extends EventOption, DisplayOption, StylingOption {
|
|
|
172
180
|
scheduleType: string;
|
|
173
181
|
startDate?: Date;
|
|
174
182
|
endDate?: Date;
|
|
183
|
+
projectCalendar?: CalendarDefinition;
|
|
175
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.23",
|
|
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",
|