Skip to content

Commit d4e7ca6

Browse files
committed
[update] version 9.1.0
1 parent 83bed1d commit d4e7ca6

21 files changed

+12950
-9018
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# dhtmlxGantt #
22

33
[![dhtmlx.com](https://img.shields.io/badge/made%20by-DHTMLX-blue)](https://dhtmlx.com/)
4-
[![npm: v.9.0.15](https://img.shields.io/badge/npm-v.9.0.15-blue.svg)](https://www.npmjs.com/package/dhtmlx-gantt)
4+
[![npm: v.9.1.0](https://img.shields.io/badge/npm-v.9.1.0-blue.svg)](https://www.npmjs.com/package/dhtmlx-gantt)
55
[![License: GPL v2](https://img.shields.io/badge/license-GPL%20v2-blue.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
66

77
[Getting started](#getting-started) | [Features](#features) | [License](#license) | [Useful links](#links) | [Follow us](#followus)
@@ -117,7 +117,7 @@ Resource management, critical path calculation, auto scheduling, and other enhan
117117
<a name="license"></a>
118118
## License ##
119119

120-
dhtmlxGantt v.9.0.15 Standard
120+
dhtmlxGantt v.9.1.0 Standard
121121

122122
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
123123

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gantt",
3-
"version": "9.0.15",
3+
"version": "9.1.0",
44
"homepage": "https://dhtmlx.com/docs/products/dhtmlxGantt/",
55
"description": "An open source JavaScript Gantt chart that helps you illustrate a project schedule in a nice-looking chart.",
66
"main": [

codebase/dhtmlxgantt.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/dhtmlxgantt.d.ts

Lines changed: 98 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for dhtmlxGantt 9.0.15
1+
// Type definitions for dhtmlxGantt 9.1.0
22
// Project: https://dhtmlx.com/docs/products/dhtmlxGantt
33

44
type GanttCallback = (...args: any[]) => any;
@@ -3909,6 +3909,15 @@ export interface Task {
39093909
*/
39103910
row_height?: number,
39113911

3912+
/**
3913+
* Defines how split task must be displayed. The available values are:
3914+
"inline" - subtask is always displayed in the same row as the parent task.
3915+
"subrow" - subtask is always displayed its own row (like a regular subtask) under it's `render:"split"` parent.
3916+
"auto" - default behavior. When `render:"split"` parent is collapsed, subtasks will be displayed in the parents row (like with "inline"), if the parent is expanded, tge subtask will be displayed in its own row.
3917+
Default value: "auto"
3918+
*/
3919+
split_placement?: "inline" | "subrow" | "auto" | null | undefined,
3920+
39123921
/**
39133922
* The id of the target task. The property displays the same value as the $drop_target property. The property is added to the task object only if Data Processor is enabled, after the task is updated and data is sent to the server.
39143923
*/
@@ -4785,7 +4794,67 @@ export interface AutoSchedulingConfig {
47854794
/**
47864795
* controls the display of task constraints on the Gantt chart.
47874796
*/
4788-
show_constraints?: boolean
4797+
show_constraints?: boolean,
4798+
4799+
/**
4800+
* Enables or disables usage of time constraints for auto scheduling.
4801+
*/
4802+
apply_constraints?: boolean,
4803+
4804+
/**
4805+
* Defines how Gantt handles gaps between dependent tasks during scheduling.
4806+
4807+
"preserve" - keeps tasks in their current positions if there are no conflicts
4808+
"compress" - moves tasks to the earliest allowed date (or latest if schedule_from_end is enabled)
4809+
By default, tasks are only rescheduled when their current date violates a constraint or dependency.
4810+
*/
4811+
gap_behavior?: "preserve"|"compress",
4812+
4813+
/**
4814+
* Allows or forbids creating links between parent tasks (projects) and their subtasks.
4815+
4816+
By default, such links can't be created.
4817+
*/
4818+
descendant_links?: boolean,
4819+
4820+
/**
4821+
* Defines whether Gantt will do auto-scheduling on data loading/parsing.
4822+
*/
4823+
schedule_on_parse?: boolean,
4824+
4825+
/**By default (when the property is set to true), the whole project is moved during auto scheduling.
4826+
* It means that all tasks in the project remain on their places relative to each other and the beginning of the project.
4827+
*/
4828+
move_projects?: boolean,
4829+
4830+
/**
4831+
* Specifies whether completed tasks should affect scheduling and critical path calculations.
4832+
4833+
When the property is enabled, the critical path, slack, and auto scheduling algorithms will take the value of the task progress into account, similar to how these methods work in MS Project, namely:
4834+
4835+
1) Completed tasks (completed tasks - the tasks with 100% progress) always have zero slack;
4836+
4837+
2) Completed tasks are excluded from the auto scheduling calculations. Relations that connect predecessors to completed tasks are ignored;
4838+
4839+
3) Completed tasks can't be critical.
4840+
*/
4841+
use_progress?: boolean,
4842+
4843+
/**
4844+
* Enables backward scheduling.
4845+
4846+
Setting this config to true will switch auto scheduling to the as late as possible mode.
4847+
4848+
The value will be only applied if config.project_end is specified as well.
4849+
*/
4850+
schedule_from_end?: boolean,
4851+
4852+
/**
4853+
* Defines whether tasks should inherit the constraint type from their parent project.
4854+
*/
4855+
project_constraint?: boolean
4856+
4857+
47894858
}
47904859

47914860
export interface BaselineConfig {
@@ -5000,7 +5069,26 @@ export interface Scale {
50005069
* the format of the scale's labels. If set as a function, expects a date object as a parameter.
50015070
* @param a date that will be converted
50025071
*/
5003-
date?: string | ((date: Date,) => any)
5072+
date?: string | ((date: Date,) => any),
5073+
5074+
5075+
/**
5076+
* If specified, each cell in the scale will have fixed width, regardless of the number of rendered columns:
5077+
* If there are too few columns to fill the container, the remaining space will stay empty on the right.
5078+
* If there are too many columns, a horizontal scrollbar will appear.
5079+
* The property applied only to the bottom-most scale item in config.scales, while specifying it on higher levels will have no effect.
5080+
* */
5081+
column_width?: number | undefined,
5082+
5083+
/**
5084+
* Can size task bars in day/week scales according to working hours or specified hours range rather than full 24-hour days.
5085+
* */
5086+
projection?: ScaleProjectionMode | undefined | null
5087+
}
5088+
5089+
export interface ScaleProjectionMode {
5090+
source: "fixedHours" | "taskCalendar",
5091+
hours?: string[] | number[],
50045092
}
50055093

50065094
export interface MessagePopupConfig {
@@ -5209,6 +5297,11 @@ export type WorkDayConfig = string | number | boolean | Array<string | number>
52095297

52105298
export type WorkDaysTuple = [WorkDayConfig, WorkDayConfig, WorkDayConfig, WorkDayConfig, WorkDayConfig, WorkDayConfig, WorkDayConfig,]
52115299

5300+
export type WorkDaysSettings = {
5301+
weekdays: WorkDaysTuple,
5302+
dates: {[date: string]: WorkDayConfig}
5303+
}
5304+
52125305
export interface CalendarConfig {
52135306

52145307
/**
@@ -5229,13 +5322,13 @@ export interface CalendarConfig {
52295322
*/
52305323
worktime?: {
52315324
hours?: string[] | number[] | boolean,
5232-
days?: WorkDaysTuple,
5325+
days?: WorkDaysTuple | WorkDaysSettings,
52335326
customWeeks?: {
52345327
[timespan: string]: {
52355328
from: Date,
52365329
to: Date,
52375330
hours?: Array<string | number>,
5238-
days?: WorkDaysTuple | boolean,
5331+
days?: WorkDaysTuple | WorkDaysSettings | boolean,
52395332
},
52405333
}
52415334
}

codebase/dhtmlxgantt.es.d.ts

Lines changed: 98 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for dhtmlxGantt 9.0.15
1+
// Type definitions for dhtmlxGantt 9.1.0
22
// Project: https://dhtmlx.com/docs/products/dhtmlxGantt
33

44
type GanttCallback = (...args: any[]) => any;
@@ -3909,6 +3909,15 @@ export interface Task {
39093909
*/
39103910
row_height?: number,
39113911

3912+
/**
3913+
* Defines how split task must be displayed. The available values are:
3914+
"inline" - subtask is always displayed in the same row as the parent task.
3915+
"subrow" - subtask is always displayed its own row (like a regular subtask) under it's `render:"split"` parent.
3916+
"auto" - default behavior. When `render:"split"` parent is collapsed, subtasks will be displayed in the parents row (like with "inline"), if the parent is expanded, tge subtask will be displayed in its own row.
3917+
Default value: "auto"
3918+
*/
3919+
split_placement?: "inline" | "subrow" | "auto" | null | undefined,
3920+
39123921
/**
39133922
* The id of the target task. The property displays the same value as the $drop_target property. The property is added to the task object only if Data Processor is enabled, after the task is updated and data is sent to the server.
39143923
*/
@@ -4785,7 +4794,67 @@ export interface AutoSchedulingConfig {
47854794
/**
47864795
* controls the display of task constraints on the Gantt chart.
47874796
*/
4788-
show_constraints?: boolean
4797+
show_constraints?: boolean,
4798+
4799+
/**
4800+
* Enables or disables usage of time constraints for auto scheduling.
4801+
*/
4802+
apply_constraints?: boolean,
4803+
4804+
/**
4805+
* Defines how Gantt handles gaps between dependent tasks during scheduling.
4806+
4807+
"preserve" - keeps tasks in their current positions if there are no conflicts
4808+
"compress" - moves tasks to the earliest allowed date (or latest if schedule_from_end is enabled)
4809+
By default, tasks are only rescheduled when their current date violates a constraint or dependency.
4810+
*/
4811+
gap_behavior?: "preserve"|"compress",
4812+
4813+
/**
4814+
* Allows or forbids creating links between parent tasks (projects) and their subtasks.
4815+
4816+
By default, such links can't be created.
4817+
*/
4818+
descendant_links?: boolean,
4819+
4820+
/**
4821+
* Defines whether Gantt will do auto-scheduling on data loading/parsing.
4822+
*/
4823+
schedule_on_parse?: boolean,
4824+
4825+
/**By default (when the property is set to true), the whole project is moved during auto scheduling.
4826+
* It means that all tasks in the project remain on their places relative to each other and the beginning of the project.
4827+
*/
4828+
move_projects?: boolean,
4829+
4830+
/**
4831+
* Specifies whether completed tasks should affect scheduling and critical path calculations.
4832+
4833+
When the property is enabled, the critical path, slack, and auto scheduling algorithms will take the value of the task progress into account, similar to how these methods work in MS Project, namely:
4834+
4835+
1) Completed tasks (completed tasks - the tasks with 100% progress) always have zero slack;
4836+
4837+
2) Completed tasks are excluded from the auto scheduling calculations. Relations that connect predecessors to completed tasks are ignored;
4838+
4839+
3) Completed tasks can't be critical.
4840+
*/
4841+
use_progress?: boolean,
4842+
4843+
/**
4844+
* Enables backward scheduling.
4845+
4846+
Setting this config to true will switch auto scheduling to the as late as possible mode.
4847+
4848+
The value will be only applied if config.project_end is specified as well.
4849+
*/
4850+
schedule_from_end?: boolean,
4851+
4852+
/**
4853+
* Defines whether tasks should inherit the constraint type from their parent project.
4854+
*/
4855+
project_constraint?: boolean
4856+
4857+
47894858
}
47904859

47914860
export interface BaselineConfig {
@@ -5000,7 +5069,26 @@ export interface Scale {
50005069
* the format of the scale's labels. If set as a function, expects a date object as a parameter.
50015070
* @param a date that will be converted
50025071
*/
5003-
date?: string | ((date: Date,) => any)
5072+
date?: string | ((date: Date,) => any),
5073+
5074+
5075+
/**
5076+
* If specified, each cell in the scale will have fixed width, regardless of the number of rendered columns:
5077+
* If there are too few columns to fill the container, the remaining space will stay empty on the right.
5078+
* If there are too many columns, a horizontal scrollbar will appear.
5079+
* The property applied only to the bottom-most scale item in config.scales, while specifying it on higher levels will have no effect.
5080+
* */
5081+
column_width?: number | undefined,
5082+
5083+
/**
5084+
* Can size task bars in day/week scales according to working hours or specified hours range rather than full 24-hour days.
5085+
* */
5086+
projection?: ScaleProjectionMode | undefined | null
5087+
}
5088+
5089+
export interface ScaleProjectionMode {
5090+
source: "fixedHours" | "taskCalendar",
5091+
hours?: string[] | number[],
50045092
}
50055093

50065094
export interface MessagePopupConfig {
@@ -5209,6 +5297,11 @@ export type WorkDayConfig = string | number | boolean | Array<string | number>
52095297

52105298
export type WorkDaysTuple = [WorkDayConfig, WorkDayConfig, WorkDayConfig, WorkDayConfig, WorkDayConfig, WorkDayConfig, WorkDayConfig,]
52115299

5300+
export type WorkDaysSettings = {
5301+
weekdays: WorkDaysTuple,
5302+
dates: {[date: string]: WorkDayConfig}
5303+
}
5304+
52125305
export interface CalendarConfig {
52135306

52145307
/**
@@ -5229,13 +5322,13 @@ export interface CalendarConfig {
52295322
*/
52305323
worktime?: {
52315324
hours?: string[] | number[] | boolean,
5232-
days?: WorkDaysTuple,
5325+
days?: WorkDaysTuple | WorkDaysSettings,
52335326
customWeeks?: {
52345327
[timespan: string]: {
52355328
from: Date,
52365329
to: Date,
52375330
hours?: Array<string | number>,
5238-
days?: WorkDaysTuple | boolean,
5331+
days?: WorkDaysTuple | WorkDaysSettings | boolean,
52395332
},
52405333
}
52415334
}

0 commit comments

Comments
 (0)