Skip to content

Commit 4436d0d

Browse files
committed
[update] version 9.0.13
1 parent 773f5c2 commit 4436d0d

15 files changed

+1475
-1442
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.12](https://img.shields.io/badge/npm-v.9.0.12-blue.svg)](https://www.npmjs.com/package/dhtmlx-gantt)
4+
[![npm: v.9.0.13](https://img.shields.io/badge/npm-v.9.0.13-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.12 Standard
120+
dhtmlxGantt v.9.0.13 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.12",
3+
"version": "9.0.13",
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.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for dhtmlxGantt 9.0.12
1+
// Type definitions for dhtmlxGantt 9.0.13
22
// Project: https://dhtmlx.com/docs/products/dhtmlxGantt
33

44
type GanttCallback = (...args: any[]) => any;

codebase/dhtmlxgantt.es.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for dhtmlxGantt 9.0.12
1+
// Type definitions for dhtmlxGantt 9.0.13
22
// Project: https://dhtmlx.com/docs/products/dhtmlxGantt
33

44
type GanttCallback = (...args: any[]) => any;

codebase/dhtmlxgantt.es.js

Lines changed: 1398 additions & 1393 deletions
Large diffs are not rendered by default.

codebase/dhtmlxgantt.es.js.map

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.js

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/dhtmlxgantt.js.map

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/sources/dhtmlxgantt.es.js

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @license
22

3-
dhtmlxGantt v.9.0.12 Standard
3+
dhtmlxGantt v.9.0.13 Standard
44

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

@@ -211,9 +211,11 @@ function locateClassName(e, classname, strict) {
211211
return null;
212212
}
213213
function getRelativeEventPosition(ev, node) {
214-
var d = document.documentElement;
215-
var box = getNodePosition(node);
216-
return { x: ev.clientX + d.scrollLeft - d.clientLeft - box.x + node.scrollLeft, y: ev.clientY + d.scrollTop - d.clientTop - box.y + node.scrollTop };
214+
var _a;
215+
const d = document.documentElement;
216+
const box = getNodePosition(node);
217+
const { clientX, clientY } = ((_a = ev.touches) == null ? void 0 : _a[0]) ?? ev;
218+
return { x: clientX + d.scrollLeft - d.clientLeft - box.x + node.scrollLeft, y: clientY + d.scrollTop - d.clientTop - box.y + node.scrollTop };
217219
}
218220
function getRelativeNodePosition(child, parent) {
219221
const childPos = getNodePosition(child);
@@ -6276,11 +6278,7 @@ var createLinksStoreFacade = function() {
62766278
}, isLinkExists: function(id) {
62776279
return this.$data.linksStore.exists(id);
62786280
}, addLink: function(link) {
6279-
const newLink = this.$data.linksStore.addItem(link);
6280-
if (this.$data.linksStore.isSilent()) {
6281-
this.$data.linksStore.fullOrder.push(newLink);
6282-
}
6283-
return newLink;
6281+
return this.$data.linksStore.addItem(link);
62846282
}, updateLink: function(id, data2) {
62856283
if (!defined(data2)) data2 = this.getLink(id);
62866284
this.$data.linksStore.updateItem(id, data2);
@@ -8138,14 +8136,21 @@ function initDataStores(gantt2) {
81388136
if (gantt2.isTaskExists(link.source)) {
81398137
var sourceTask = gantt2.getTask(link.source);
81408138
sourceTask.$source = sourceTask.$source || [];
8141-
sourceTask.$source.push(link.id);
8139+
if (noDuplicateIds(link.id, sourceTask.$source)) {
8140+
sourceTask.$source.push(link.id);
8141+
}
81428142
}
81438143
if (gantt2.isTaskExists(link.target)) {
81448144
var targetTask = gantt2.getTask(link.target);
81458145
targetTask.$target = targetTask.$target || [];
8146-
targetTask.$target.push(link.id);
8146+
if (noDuplicateIds(link.id, targetTask.$target)) {
8147+
targetTask.$target.push(link.id);
8148+
}
81478149
}
81488150
}
8151+
function noDuplicateIds(id, array) {
8152+
return array.indexOf(String(id)) === -1 && array.indexOf(Number(id)) === -1;
8153+
}
81498154
function sync_link_delete(link) {
81508155
if (gantt2.isTaskExists(link.source)) {
81518156
var sourceTask = gantt2.getTask(link.source);
@@ -9333,6 +9338,7 @@ let DataProcessor$1 = class DataProcessor {
93339338
if (this._tMode === "CUSTOM") {
93349339
const taskState = this.getState(rowId);
93359340
const taskAction = this.getActionByState(taskState);
9341+
delete dataToSend[this.action_param];
93369342
const ganttMode = this.getGanttMode();
93379343
const _onResolvedCreateUpdate = (tag) => {
93389344
let action = taskState || "updated";
@@ -13788,6 +13794,9 @@ function data(gantt2) {
1378813794
task.duration = task.duration || 0;
1378913795
if (this.config.min_duration === 0 && task.duration === 0) {
1379013796
task.$no_end = false;
13797+
if (task.type === gantt2.config.types.project && gantt2.hasChild(task.id)) {
13798+
task.$no_end = true;
13799+
}
1379113800
}
1379213801
var effectiveCalendar = this.getTaskCalendar(task);
1379313802
if (task.$effective_calendar && task.$effective_calendar !== effectiveCalendar.id) {
@@ -14557,7 +14566,7 @@ function i18nFactory() {
1455714566
}
1455814567
function DHXGantt() {
1455914568
this.constants = constants;
14560-
this.version = "9.0.12";
14569+
this.version = "9.0.13";
1456114570
this.license = "gpl";
1456214571
this.templates = {};
1456314572
this.ext = {};

codebase/sources/dhtmlxgantt.es.js.map

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

0 commit comments

Comments
 (0)