Skip to content

Commit

Permalink
[update] version 7.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKlimenkov committed Jan 10, 2022
1 parent 0545085 commit 12fe75f
Show file tree
Hide file tree
Showing 16 changed files with 82 additions and 40 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.7.1.8](https://img.shields.io/badge/npm-v.7.1.8-blue.svg)](https://www.npmjs.com/package/dhtmlx-gantt)
[![npm: v.7.1.9](https://img.shields.io/badge/npm-v.7.1.9-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) | [Follow us](#followus) | [License](#license) | [Useful links](#links)
Expand Down Expand Up @@ -128,7 +128,7 @@ Like our page on [Facebook](https://www.facebook.com/dhtmlx/) :thumbsup:
<a name="license"></a>
## License ##

dhtmlxGantt v.7.1.8 Standard
dhtmlxGantt v.7.1.9 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": "7.1.8",
"version": "7.1.9",
"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 7.1.8
// Type definitions for dhtmlxGantt 7.1.9
// 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.7.1.8 Standard
dhtmlxGantt v.7.1.9 Standard
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
Expand Down
70 changes: 47 additions & 23 deletions codebase/sources/dhtmlxgantt.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
@license

dhtmlxGantt v.7.1.8 Standard
dhtmlxGantt v.7.1.9 Standard

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

Expand Down Expand Up @@ -13284,7 +13284,7 @@ function createLayoutFacade() {

for (var i = 0; i < verticalViews.length; i++) {
for (var j = 0; j < horizontalViews.length; j++) {
if (verticalViews[i].$config.id && verticalViews[j].$config.id && verticalViews[i].$config.id === verticalViews[j].$config.id) {
if (verticalViews[i].$config.id && horizontalViews[j].$config.id && verticalViews[i].$config.id === horizontalViews[j].$config.id) {
commonViews.push(verticalViews[i].$config.id);
}
}
Expand Down Expand Up @@ -17558,11 +17558,7 @@ module.exports = function (gantt) {

function keepDurationOnEdit(item, mapTo) {
if (mapTo == "end_date") {
item.start_date = gantt.calculateEndDate({
start_date: item.end_date,
duration: -item.duration,
task: item
});
item.start_date = decreaseStartDate(item);
} else if (mapTo == "start_date" || mapTo == "duration") {
item.end_date = gantt.calculateEndDate(item);
}
Expand All @@ -17572,12 +17568,28 @@ module.exports = function (gantt) {


function defaultActionOnEdit(item, mapTo) {
if (mapTo == "start_date" || mapTo == "duration") {
item.end_date = gantt.calculateEndDate(item);
} else if (mapTo == "end_date") {
item.duration = gantt.calculateDuration(item);
if (gantt.config.schedule_from_end) {
if (mapTo == "end_date" || mapTo == "duration") {
item.start_date = decreaseStartDate(item);
} else if (mapTo == "start_date") {
item.duration = gantt.calculateDuration(item);
}
} else {
if (mapTo == "start_date" || mapTo == "duration") {
item.end_date = gantt.calculateEndDate(item);
} else if (mapTo == "end_date") {
item.duration = gantt.calculateDuration(item);
}
}
}

function decreaseStartDate(item) {
return gantt.calculateEndDate({
start_date: item.end_date,
duration: -item.duration,
task: item
});
}
};

/***/ }),
Expand Down Expand Up @@ -20610,7 +20622,7 @@ var Layout = function (_super) {
var oldVisibleCells = this._visibleCells || {};
var firstCall = !this._visibleCells;
var visibleCells = {};
var cell;
var cell = null;
var parentVisibility = [];

for (var i = 0; i < this._sizes.length; i++) {
Expand Down Expand Up @@ -23324,7 +23336,7 @@ module.exports = function (gantt) {
range = range || 10;
offset = offset || Math.floor(range / 2);
start_year = start_year || settings.date.getFullYear() - offset;
end_year = end_year || start_year + range;
end_year = end_year || gantt.getState().max_date.getFullYear() + offset;

for (i = start_year; i < end_year; i++) {
html += "<option value='" + i + "'>" + i + "</option>";
Expand Down Expand Up @@ -23539,9 +23551,9 @@ var initializer = function () {
if (grid_limits[1] && gantt.config.grid_width > grid_limits[1]) gantt.config.grid_width = grid_limits[1];

if (mainTimeline && gantt.config.show_chart) {
mainGrid.$config.width = gantt.config.grid_width - 1; // GS-1314: Don't let the non-scrollable grid to be larger than the container
mainGrid.$config.width = gantt.config.grid_width - 1; // GS-1314: Don't let the non-scrollable grid to be larger than the container with the correct width

if (!mainGrid.$config.scrollable && mainGrid.$config.scrollY) {
if (!mainGrid.$config.scrollable && mainGrid.$config.scrollY && gantt.$root.offsetWidth) {
var ganttContainerWidth = mainGrid.$gantt.$layout.$container.offsetWidth;
var verticalScrollbar = gantt.$ui.getView(mainGrid.$config.scrollY);
var verticalScrollbarWidth = verticalScrollbar.$config.width;
Expand Down Expand Up @@ -24244,7 +24256,7 @@ var createMouseHandler = function (domHelpers) {
if (!default_action) return;

if (id !== null && gantt.getTask(id)) {
if (res && gantt.config.details_on_dblclick && !gantt.isReadonly()) {
if (res && gantt.config.details_on_dblclick && !gantt.isReadonly(id)) {
gantt.showLightbox(id);
}
}
Expand Down Expand Up @@ -29590,11 +29602,17 @@ function createTaskDND(timeline, gantt) {

return correctShift;
},
_move: function _move(task, shift, drag) {
_move: function _move(task, shift, drag, multipleDragShift) {
var coords_x = this._drag_task_coords(task, drag);

var new_start = gantt.dateFromPos(coords_x.start + shift),
new_end = gantt.dateFromPos(coords_x.end + shift);
var new_start = null,
new_end = null; // GS-454: If we drag multiple tasks, rely on the dates instead of timeline coordinates

if (multipleDragShift) {
new_start = new Date(+drag.obj.start_date + multipleDragShift), new_end = new Date(+drag.obj.end_date + multipleDragShift);
} else {
new_start = gantt.dateFromPos(coords_x.start + shift), new_end = gantt.dateFromPos(coords_x.end + shift);
}

if (!new_start) {
task.start_date = new Date(gantt.getState().min_date);
Expand Down Expand Up @@ -29646,12 +29664,12 @@ function createTaskDND(timeline, gantt) {
this._update_on_move(e);
}
},
_update_item_on_move: function _update_item_on_move(shift, id, mode, drag, e) {
_update_item_on_move: function _update_item_on_move(shift, id, mode, drag, e, multipleDragShift) {
var task = gantt.getTask(id);
var original = gantt.mixin({}, task);
var copy = gantt.mixin({}, task);

this._handlers[mode].apply(this, [copy, shift, drag]);
this._handlers[mode].apply(this, [copy, shift, drag, multipleDragShift]);

gantt.mixin(task, copy, true); //gantt._update_parents(drag.id, true);

Expand Down Expand Up @@ -29706,9 +29724,15 @@ function createTaskDND(timeline, gantt) {

if (dragProject && childDrag.id != drag.id) {
gantt._bulk_dnd = true;
} // GS-454: Calculate the date shift in milliseconds instead of pixels


if (maxShift === undefined && (dragProject || Object.keys(dragHash).length > 1)) {
var shiftDate = gantt.dateFromPos(drag.start_x);
var multipleDragShift = curr_date - shiftDate;
}

this._update_item_on_move(shift, childDrag.id, childDrag.mode, childDrag, e);
this._update_item_on_move(shift, childDrag.id, childDrag.mode, childDrag, e, multipleDragShift);
}

gantt._bulk_dnd = false;
Expand Down Expand Up @@ -39820,7 +39844,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi

function DHXGantt() {
this.constants = __webpack_require__(/*! ../constants */ "./sources/constants/index.js");
this.version = "7.1.8";
this.version = "7.1.9";
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.7.1.8 Standard
dhtmlxGantt v.7.1.9 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.7.1.8 Standard
dhtmlxGantt v.7.1.9 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.7.1.8 Standard
dhtmlxGantt v.7.1.9 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.7.1.8 Standard
dhtmlxGantt v.7.1.9 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.7.1.8 Standard
dhtmlxGantt v.7.1.9 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.7.1.8 Standard
dhtmlxGantt v.7.1.9 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.7.1.8 Standard
dhtmlxGantt v.7.1.9 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": "7.1.8",
"version": "7.1.9",
"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
18 changes: 18 additions & 0 deletions whatsnew.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
### 7.1.9

Fix the issue with alignment of subtasks after dragging a project in the "year" scale and switching between scales dynamically
Fix the issue which caused the duration of the project to change after dragging the project with subtasks in the "month" scale
Fix the issue with Auto Scheduling that caused the constraint type to be changed from "ASAP" to "SNET" after changing the duration of the task
Fix the incorrect work of backward scheduling after changing the start and end dates via inline editors when schedule_from_end is enabled
Now it is possible to open the lightbox for read-only tasks in the read-only mode
Now it is impossible to edit read-only tasks via the lightbox
Fix the issue with the lightbox which caused it not to open for editable tasks in the read-only mode (appeared in v6.3.1)
Fix the issue with resizing columns in grid after hiding the timeline via show_chart
Fix the issue with Auto Scheduling which couldn't be canceled after changing values of project_start and project_end
Fix the issue which caused the gantt to assign constraints to the tasks with disabled auto-scheduling
Fix the issue with defining a year range by the lightbox when the range of dates of tasks is more than 10 years and a range for the year selector isn't specified
Fix the script error that was thrown after loading Gantt if a horizontal scrollbar was attached to 3 or more vertical views
Fix the incorrect work of the onBeforeTaskAutoSchedule event after setting the ASAP constraint for the task without links when the strict mode is enabled
Fix the error occurred when running minified versions of Gantt in Next.js projects
Fix the issue which caused the width of Gantt to be changed after initializing the gantt instance inside an empty container

### 7.1.8

Fix the script error that was thrown from the gantt.groupBy method when the Resource Histogram and fit_tasks config were enabled
Expand Down

0 comments on commit 12fe75f

Please sign in to comment.