Skip to content

Commit

Permalink
[update] version 8.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKlimenkov committed Jun 14, 2023
1 parent 9a6c6a3 commit 2799e51
Show file tree
Hide file tree
Showing 16 changed files with 52 additions and 36 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# dhtmlxGantt #

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

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

dhtmlxGantt v.8.0.2 Standard
dhtmlxGantt v.8.0.3 Standard

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

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gantt",
"version": "8.0.2",
"version": "8.0.3",
"homepage": "https://dhtmlx.com/docs/products/dhtmlxGantt/",
"description": "An open source JavaScript Gantt chart that helps you illustrate a project schedule in a nice-looking chart.",
"main": [
Expand Down
2 changes: 1 addition & 1 deletion codebase/dhtmlxgantt.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for dhtmlxGantt 8.0.2
// Type definitions for dhtmlxGantt 8.0.3
// Project: https://dhtmlx.com/docs/products/dhtmlxGantt

type GanttCallback = (...args: any[]) => any;
Expand Down
6 changes: 3 additions & 3 deletions codebase/dhtmlxgantt.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion codebase/dhtmlxgantt.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion codebase/sources/dhtmlxgantt.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
@license
dhtmlxGantt v.8.0.2 Standard
dhtmlxGantt v.8.0.3 Standard
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
Expand Down
48 changes: 29 additions & 19 deletions codebase/sources/dhtmlxgantt.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
@license

dhtmlxGantt v.8.0.2 Standard
dhtmlxGantt v.8.0.3 Standard

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

Expand Down Expand Up @@ -12426,12 +12426,13 @@ TreeDataStore.prototype = utils.mixin({
},
getBranchIndex: function getBranchIndex(id) {
var branch = this.getChildren(this.getParent(id));
var index = branch.indexOf(id + "");

for (var i = 0; i < branch.length; i++) {
if (branch[i] == id) return i;
if (index == -1) {
index = branch.indexOf(+id);
}

return -1;
return index;
},
hasChild: function hasChild(id) {
var branch = this._branches[id];
Expand Down Expand Up @@ -12626,14 +12627,7 @@ TreeDataStore.prototype = utils.mixin({
var pid = parent === undefined ? this.getParent(item) : parent;
if (!this.hasChild(pid)) this._branches[pid] = powerArray.$create();
var branch = this.getChildren(pid);
var added_already = false;

for (var i = 0, length = branch.length; i < length; i++) {
if (branch[i] == item.id) {
added_already = true;
break;
}
}
var added_already = branch.indexOf(item.id + "") > -1 || branch.indexOf(+item.id) > -1;

if (!added_already) {
if (index * 1 == index) {
Expand Down Expand Up @@ -12667,11 +12661,21 @@ TreeDataStore.prototype = utils.mixin({

if (branch && node !== undefined) {
var newbranch = powerArray.$create();
var index = branch.indexOf(old_id + "");

for (var i = 0; i < branch.length; i++) {
if (branch[i] != old_id) newbranch.push(branch[i]);else if (new_id) newbranch.push(new_id);
if (index == -1 && !isNaN(+old_id)) {
index = branch.indexOf(+old_id);
}

if (index > -1) {
if (new_id) {
branch.splice(index, 1, new_id);
} else {
branch.splice(index, 1);
}
}

newbranch = branch;
this._branches[node] = newbranch;
}
},
Expand Down Expand Up @@ -12717,8 +12721,11 @@ TreeDataStore.prototype = utils.mixin({
},
filter: function filter(rule) {
for (var i in this.pull) {
if (this.pull[i].$rendered_parent !== this.getParent(this.pull[i])) {
this._move_branch(this.pull[i], this.pull[i].$rendered_parent, this.getParent(this.pull[i]));
var renderedParent = this.pull[i].$rendered_parent;
var actualParent = this.getParent(this.pull[i]);

if (renderedParent !== actualParent) {
this._move_branch(this.pull[i], renderedParent, actualParent);
}
}

Expand Down Expand Up @@ -13079,8 +13086,11 @@ var createDatastoreFacade = function createDatastoreFacade() {
id = replaceValidZeroId(id, this.config.root_id);

if (id) {
var oldSelectId = this.getSelectedId();
store.select(id); // GS-730. Split task is not included in the tree,
var oldSelectId = this.getSelectedId(); // Don't repaint the resource panel as the data didn't change

store._skipResourceRepaint = true;
store.select(id);
store._skipResourceRepaint = false; // GS-730. Split task is not included in the tree,
// so the datastore renderer will think that the task is not visible

if (oldSelectId && store.pull[oldSelectId].$split_subtask && oldSelectId != id) {
Expand Down Expand Up @@ -41644,7 +41654,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi

function DHXGantt() {
this.constants = __webpack_require__(/*! ../constants */ "./sources/constants/index.js");
this.version = "8.0.2";
this.version = "8.0.3";
this.license = "gpl";
this.templates = {};
this.ext = {};
Expand Down
2 changes: 1 addition & 1 deletion codebase/sources/skins/dhtmlxgantt_broadway.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
@license
dhtmlxGantt v.8.0.2 Standard
dhtmlxGantt v.8.0.3 Standard
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
Expand Down
2 changes: 1 addition & 1 deletion codebase/sources/skins/dhtmlxgantt_contrast_black.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
@license
dhtmlxGantt v.8.0.2 Standard
dhtmlxGantt v.8.0.3 Standard
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
Expand Down
2 changes: 1 addition & 1 deletion codebase/sources/skins/dhtmlxgantt_contrast_white.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
@license
dhtmlxGantt v.8.0.2 Standard
dhtmlxGantt v.8.0.3 Standard
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
Expand Down
2 changes: 1 addition & 1 deletion codebase/sources/skins/dhtmlxgantt_material.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
@license
dhtmlxGantt v.8.0.2 Standard
dhtmlxGantt v.8.0.3 Standard
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
Expand Down
2 changes: 1 addition & 1 deletion codebase/sources/skins/dhtmlxgantt_meadow.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
@license
dhtmlxGantt v.8.0.2 Standard
dhtmlxGantt v.8.0.3 Standard
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
Expand Down
2 changes: 1 addition & 1 deletion codebase/sources/skins/dhtmlxgantt_skyblue.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
@license
dhtmlxGantt v.8.0.2 Standard
dhtmlxGantt v.8.0.3 Standard
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
Expand Down
2 changes: 1 addition & 1 deletion codebase/sources/skins/dhtmlxgantt_terrace.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
@license
dhtmlxGantt v.8.0.2 Standard
dhtmlxGantt v.8.0.3 Standard
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dhtmlx-gantt",
"version": "8.0.2",
"version": "8.0.3",
"description": "An open source JavaScript Gantt chart that helps you illustrate a project schedule in a nice-looking chart.",
"main": "codebase/dhtmlxgantt.js",
"types": "codebase/dhtmlxgantt.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions whatsnew.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### 8.0.3

Performance improvements for the Resource Panel
Fix incorrect calculation of Free Slack for tasks with a negative Lag
Fix incorrect calculation of Critical Path for tasks with 100% progress

### 8.0.2

Fix Export errors that happen when LinkFormatters are used.
Expand Down

0 comments on commit 2799e51

Please sign in to comment.