Skip to content

Commit 5b0e6d3

Browse files
committed
[update] version 9.0.1
1 parent 77b3570 commit 5b0e6d3

26 files changed

+244
-458
lines changed

README.md

+2-2
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.0](https://img.shields.io/badge/npm-v.9.0.0-blue.svg)](https://www.npmjs.com/package/dhtmlx-gantt)
4+
[![npm: v.9.0.1](https://img.shields.io/badge/npm-v.9.0.1-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.0 Standard
120+
dhtmlxGantt v.9.0.1 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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gantt",
3-
"version": "9.0.0",
3+
"version": "9.0.1",
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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/dhtmlxgantt.d.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for dhtmlxGantt 9.0.0
1+
// Type definitions for dhtmlxGantt 9.0.1
22
// Project: https://dhtmlx.com/docs/products/dhtmlxGantt
33

44
type GanttCallback = (...args: any[]) => any;
@@ -3387,11 +3387,6 @@ export interface GanttStatic {
33873387
*/
33883388
resetSkin(): void;
33893389

3390-
/**
3391-
* forces the lightbox to resize
3392-
*/
3393-
resizeLightbox(): void;
3394-
33953390
/**
33963391
* rounds the specified date to the nearest date in the time scale
33973392
* @param date the Date object to round or an object with settings

codebase/dhtmlxgantt.es.d.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for dhtmlxGantt 9.0.0
1+
// Type definitions for dhtmlxGantt 9.0.1
22
// Project: https://dhtmlx.com/docs/products/dhtmlxGantt
33

44
type GanttCallback = (...args: any[]) => any;
@@ -3387,11 +3387,6 @@ export interface GanttStatic {
33873387
*/
33883388
resetSkin(): void;
33893389

3390-
/**
3391-
* forces the lightbox to resize
3392-
*/
3393-
resizeLightbox(): void;
3394-
33953390
/**
33963391
* rounds the specified date to the nearest date in the time scale
33973392
* @param date the Date object to round or an object with settings

codebase/dhtmlxgantt.es.js

+153-151
Large diffs are not rendered by default.

codebase/dhtmlxgantt.es.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/dhtmlxgantt.js

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/dhtmlxgantt.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/sources/dhtmlxgantt.css

+16-4
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
--dhx-gantt-lightbox-title-font-size: var(--dhx-gantt-heading-font-size);
188188
--dhx-gantt-lightbox-max-width: 622px;
189189
--dhx-gantt-lightbox-wide-max-width: 738px;
190-
--dhx-gantt-lightbox-width: max-content;
190+
--dhx-gantt-lightbox-width: 560px;
191191
--dhx-gantt-btn-order: row-reverse;
192192
/* buttons */
193193
--dhx-gantt-btn-background: var(--dhx-gantt-base-colors-primary);
@@ -342,12 +342,14 @@
342342
--dhx-gantt-box-shadow-m: 0px 4px 24px 0px rgba(44, 47, 60, 0.36);
343343
--dhx-gantt-box-shadow-l: 0px 4px 24px 0px rgba(44, 47, 60, 0.56);
344344
--dhx-gantt-grid-scale-background: #4f4f4f;
345-
--dhx-gantt-grid-scale-border-vertical: 1px solid #5b5b5b;
345+
--dhx-gantt-grid-scale-border-vertical: 1px solid #c1c1c1;
346346
--dhx-gantt-grid-scale-color: #e1e1e1;
347347
--dhx-gantt-timeline-scale-background: #dbdbdb;
348-
--dhx-gantt-timeline-scale-border-vertical: 1px solid #bababa;
348+
--dhx-gantt-timeline-scale-border-vertical: 1px solid #ebebeb;
349349
--dhx-gantt-timeline-scale-color: #494949;
350350
--dhx-gantt-grid-body-background: #dbdbdb;
351+
--dhx-gantt-lightbox-title-background: #4f4f4f;
352+
--dhx-gantt-lightbox-title-color: #e1e1e1;
351353
--dhx-gantt-task-color: #FFF;
352354
--dhx-gantt-link-background: #ffb96d;
353355
--dhx-gantt-project-background: #65c16f;
@@ -1171,6 +1173,7 @@ url("src/dhx-gantt-icons.woff2?d2ea3e087edb3b9fad35a6580bd8acd3") format("woff2"
11711173
overflow: hidden;
11721174
}
11731175
.gantt_scale_cell {
1176+
position: relative;
11741177
display: inline-block;
11751178
white-space: nowrap;
11761179
overflow: hidden;
@@ -1897,7 +1900,8 @@ div.dhx_modal_cover {
18971900
.gantt_cal_light {
18981901
margin-top: auto;
18991902
margin-bottom: auto;
1900-
width: var(--dhx-gantt-lightbox-width);
1903+
min-width: var(--dhx-gantt-lightbox-width);
1904+
width: max-content;
19011905
max-width: var(--dhx-gantt-lightbox-max-width);
19021906
height: auto;
19031907
-webkit-tap-highlight-color: transparent;
@@ -1996,6 +2000,7 @@ div.dhx_modal_cover {
19962000
.gantt_cal_larea {
19972001
border: none;
19982002
padding: 0 var(--dhx-gantt-lightbox-padding) 4px;
2003+
overflow: hidden;
19992004
height: auto;
20002005
gap: calc(var(--dhx-gantt-base-padding) * 2);
20012006
}
@@ -2152,8 +2157,15 @@ div.dhx_modal_cover {
21522157
.gantt_resource_toggle {
21532158
vertical-align: middle;
21542159
}
2160+
.gantt_section_resources {
2161+
overflow: hidden;
2162+
display: flex;
2163+
flex-direction: column;
2164+
width: 100%;
2165+
}
21552166
.gantt_resources_filter {
21562167
display: flex;
2168+
flex-grow: 0;
21572169
align-items: center;
21582170
}
21592171
.gantt_resources_filter label {

codebase/sources/dhtmlxgantt.es.js

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @license
22

3-
dhtmlxGantt v.9.0.0 Standard
3+
dhtmlxGantt v.9.0.1 Standard
44

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

@@ -5628,14 +5628,17 @@ function DnD(gantt2) {
56285628
if (!input.accessor(e)) {
56295629
return;
56305630
}
5631+
if (typeof e.button !== "undefined" && e.button !== 0) {
5632+
return;
5633+
}
56315634
if (config2.preventDefault && config2.selector && closest(e.target, config2.selector)) {
56325635
e.preventDefault();
56335636
}
56345637
if (gantt2.config.touch && e.timeStamp && e.timeStamp - lastDown < 300) {
56355638
return;
56365639
}
56375640
this._settings.original_target = copyDomEvent(e);
5638-
this._settings.original_element_sizes = { ...getRelativeNodePosition(e.target, getClosestSizedElement(obj)), width: e.target.offsetWidth, height: e.target.offsetHeight };
5641+
this._settings.original_element_sizes = { ...getRelativeEventPosition(e, getClosestSizedElement(obj)), width: e.target.offsetWidth, height: e.target.offsetHeight };
56395642
if (gantt2.config.touch) {
56405643
this.clearDragTimer();
56415644
this._drag_start_timer = setTimeout(bind(function() {
@@ -14264,7 +14267,7 @@ function i18nFactory() {
1426414267
}
1426514268
function DHXGantt() {
1426614269
this.constants = constants;
14267-
this.version = "9.0.0";
14270+
this.version = "9.0.1";
1426814271
this.license = "gpl";
1426914272
this.templates = {};
1427014273
this.ext = {};
@@ -17461,10 +17464,12 @@ Timeline.prototype = { init: function(container) {
1746117464
for (var i = startIndex; i < endIndex; i++) {
1746217465
if (!config2.trace_x[i]) break;
1746317466
date2 = new Date(config2.trace_x[i]);
17464-
var value = content.call(this, date2), width = config2.width[i], height = config2.height, left = config2.left[i], style = "", template = "", cssclass = "";
17467+
var value = content.call(this, date2), width = config2.width[i];
17468+
config2.height;
17469+
var left = config2.left[i], style = "", template = "", cssclass = "";
1746517470
if (width) {
1746617471
var position = globalConfig.smart_scales ? "position:absolute;left:" + left + "px" : "";
17467-
style = "width:" + width + "px;height:" + height + "px;" + position;
17472+
style = "width:" + width + "px;" + position;
1746817473
const viewPort = this.getViewPort();
1746917474
const floatConfig = (globalConfig.scales[index] || {}).sticky;
1747017475
let labelPosition = "";
@@ -18960,7 +18965,7 @@ function predecessorEditorFactory(gantt2) {
1896018965
}
1896118966
function getSelectedLinks(taskId, predecessorCodes, config2) {
1896218967
var links = [];
18963-
predecessorCodes.forEach(function(code) {
18968+
[...new Set(predecessorCodes)].forEach(function(code) {
1896418969
var link = getFormatter(config2).parse(code);
1896518970
if (link) {
1896618971
link.target = taskId;
@@ -19490,9 +19495,6 @@ function createTaskRenderer$2(gantt2) {
1949019495
_render_task_progress(task, div, width, cfg, templates2);
1949119496
}
1949219497
var content = _render_task_content(task, width, templates2);
19493-
if (task.textColor) {
19494-
content.style.color = task.textColor;
19495-
}
1949619498
div.appendChild(content);
1949719499
var css = _combine_item_class("gantt_task_line", templates2.task_class(task.start_date, task.end_date, task), task.id, view);
1949819500
if (task.color || task.progressColor || task.textColor) {
@@ -22062,7 +22064,7 @@ var initLinksDND = function(timeline, gantt2) {
2206222064
var node = locateClassName(e, link_landing_hover_area);
2206322065
const point = node.querySelector(`.${link_edge_marker}`);
2206422066
if (point) {
22065-
const absCoords = getRelativeNodePosition(point, timeline.$task_data);
22067+
const absCoords = getRelativeNodePosition(point, timeline.$task_bg);
2206622068
this._dir_end = { x: absCoords.x + point.offsetWidth / 2, y: absCoords.y + point.offsetHeight / 2 };
2206722069
}
2206822070
} else {

codebase/sources/dhtmlxgantt.es.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/sources/dhtmlxgantt.js

+12-10
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
})(this, function(exports2) {
44
"use strict";/** @license
55

6-
dhtmlxGantt v.9.0.0 Standard
6+
dhtmlxGantt v.9.0.1 Standard
77

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

@@ -5632,14 +5632,17 @@ To use dhtmlxGantt in non-GPL projects (and get Pro version of the product), ple
56325632
if (!input.accessor(e)) {
56335633
return;
56345634
}
5635+
if (typeof e.button !== "undefined" && e.button !== 0) {
5636+
return;
5637+
}
56355638
if (config2.preventDefault && config2.selector && closest(e.target, config2.selector)) {
56365639
e.preventDefault();
56375640
}
56385641
if (gantt2.config.touch && e.timeStamp && e.timeStamp - lastDown < 300) {
56395642
return;
56405643
}
56415644
this._settings.original_target = copyDomEvent(e);
5642-
this._settings.original_element_sizes = { ...getRelativeNodePosition(e.target, getClosestSizedElement(obj)), width: e.target.offsetWidth, height: e.target.offsetHeight };
5645+
this._settings.original_element_sizes = { ...getRelativeEventPosition(e, getClosestSizedElement(obj)), width: e.target.offsetWidth, height: e.target.offsetHeight };
56435646
if (gantt2.config.touch) {
56445647
this.clearDragTimer();
56455648
this._drag_start_timer = setTimeout(bind(function() {
@@ -14268,7 +14271,7 @@ https://docs.dhtmlx.com/gantt/faq.html#theganttchartisntrenderedcorrectly`);
1426814271
}
1426914272
function DHXGantt() {
1427014273
this.constants = constants;
14271-
this.version = "9.0.0";
14274+
this.version = "9.0.1";
1427214275
this.license = "gpl";
1427314276
this.templates = {};
1427414277
this.ext = {};
@@ -17465,10 +17468,12 @@ https://docs.dhtmlx.com/gantt/faq.html#theganttchartisntrenderedcorrectly`);
1746517468
for (var i = startIndex; i < endIndex; i++) {
1746617469
if (!config2.trace_x[i]) break;
1746717470
date2 = new Date(config2.trace_x[i]);
17468-
var value = content.call(this, date2), width = config2.width[i], height = config2.height, left = config2.left[i], style = "", template = "", cssclass = "";
17471+
var value = content.call(this, date2), width = config2.width[i];
17472+
config2.height;
17473+
var left = config2.left[i], style = "", template = "", cssclass = "";
1746917474
if (width) {
1747017475
var position = globalConfig.smart_scales ? "position:absolute;left:" + left + "px" : "";
17471-
style = "width:" + width + "px;height:" + height + "px;" + position;
17476+
style = "width:" + width + "px;" + position;
1747217477
const viewPort = this.getViewPort();
1747317478
const floatConfig = (globalConfig.scales[index] || {}).sticky;
1747417479
let labelPosition = "";
@@ -18964,7 +18969,7 @@ https://docs.dhtmlx.com/gantt/faq.html#theganttchartisntrenderedcorrectly`);
1896418969
}
1896518970
function getSelectedLinks(taskId, predecessorCodes, config2) {
1896618971
var links = [];
18967-
predecessorCodes.forEach(function(code) {
18972+
[...new Set(predecessorCodes)].forEach(function(code) {
1896818973
var link = getFormatter(config2).parse(code);
1896918974
if (link) {
1897018975
link.target = taskId;
@@ -19494,9 +19499,6 @@ https://docs.dhtmlx.com/gantt/faq.html#theganttchartisntrenderedcorrectly`);
1949419499
_render_task_progress(task, div, width, cfg, templates2);
1949519500
}
1949619501
var content = _render_task_content(task, width, templates2);
19497-
if (task.textColor) {
19498-
content.style.color = task.textColor;
19499-
}
1950019502
div.appendChild(content);
1950119503
var css = _combine_item_class("gantt_task_line", templates2.task_class(task.start_date, task.end_date, task), task.id, view);
1950219504
if (task.color || task.progressColor || task.textColor) {
@@ -22066,7 +22068,7 @@ https://docs.dhtmlx.com/gantt/faq.html#theganttchartisntrenderedcorrectly`);
2206622068
var node = locateClassName(e, link_landing_hover_area);
2206722069
const point = node.querySelector(`.${link_edge_marker}`);
2206822070
if (point) {
22069-
const absCoords = getRelativeNodePosition(point, timeline.$task_data);
22071+
const absCoords = getRelativeNodePosition(point, timeline.$task_bg);
2207022072
this._dir_end = { x: absCoords.x + point.offsetWidth / 2, y: absCoords.y + point.offsetHeight / 2 };
2207122073
}
2207222074
} else {

codebase/sources/dhtmlxgantt.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/sources/less/layout.less

+1
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@
236236
}
237237

238238
.gantt_scale_cell {
239+
position: relative;
239240
display: inline-block;
240241
white-space: nowrap;
241242
overflow: hidden;

0 commit comments

Comments
 (0)