@syncfusion/ej2-gantt 19.4.50 → 19.4.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/README.md +1 -1
- package/dist/ej2-gantt.umd.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +44 -18
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +44 -18
- package/dist/es6/ej2-gantt.es5.js.map +1 -1
- package/dist/global/ej2-gantt.min.js +2 -2
- package/dist/global/ej2-gantt.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +18 -18
- package/src/gantt/actions/cell-edit.js +2 -1
- package/src/gantt/actions/edit.js +0 -4
- package/src/gantt/actions/rowdragdrop.js +7 -1
- package/src/gantt/base/date-processor.js +2 -1
- package/src/gantt/base/tree-grid.js +4 -0
- package/src/gantt/renderer/chart-rows.js +28 -10
- package/src/gantt/renderer/timeline.js +1 -1
- package/styles/bootstrap-dark.css +3 -0
- package/styles/bootstrap.css +3 -0
- package/styles/bootstrap4.css +3 -0
- package/styles/bootstrap5-dark.css +3 -0
- package/styles/bootstrap5.css +3 -0
- package/styles/fabric-dark.css +3 -0
- package/styles/fabric.css +3 -0
- package/styles/gantt/_layout.scss +3 -0
- package/styles/gantt/bootstrap-dark.css +3 -0
- package/styles/gantt/bootstrap.css +3 -0
- package/styles/gantt/bootstrap4.css +3 -0
- package/styles/gantt/bootstrap5-dark.css +3 -0
- package/styles/gantt/bootstrap5.css +3 -0
- package/styles/gantt/fabric-dark.css +3 -0
- package/styles/gantt/fabric.css +3 -0
- package/styles/gantt/highcontrast-light.css +3 -0
- package/styles/gantt/highcontrast.css +3 -0
- package/styles/gantt/material-dark.css +3 -0
- package/styles/gantt/material.css +3 -0
- package/styles/gantt/tailwind-dark.css +3 -0
- package/styles/gantt/tailwind.css +3 -0
- package/styles/highcontrast-light.css +3 -0
- package/styles/highcontrast.css +3 -0
- package/styles/material-dark.css +3 -0
- package/styles/material.css +3 -0
- package/styles/tailwind-dark.css +3 -0
- package/styles/tailwind.css +3 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.4.
|
|
3
|
+
* version : 19.4.54
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-gantt@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-gantt@19.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@19.4.53",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-IrQJ1p6f4Z2J0GmYfBIv/CASjkXGH7kuvUo0hUg25Q8FIWWZjy4dvFGG8nI1tMK/VGbczWnNkCRPcMm6gyIyhw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-gantt",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-gantt",
|
|
24
24
|
"/@syncfusion/ej2-vue-gantt"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-19.4.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-19.4.53.tgz",
|
|
27
|
+
"_shasum": "dcec6fd0b50ceff47d2998e6a79c4c4c2d0298f1",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~19.4.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~19.4.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~19.4.
|
|
41
|
-
"@syncfusion/ej2-data": "~19.4.
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~19.4.
|
|
43
|
-
"@syncfusion/ej2-grids": "~19.4.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~19.4.
|
|
45
|
-
"@syncfusion/ej2-layouts": "~19.4.
|
|
46
|
-
"@syncfusion/ej2-lists": "~19.4.
|
|
47
|
-
"@syncfusion/ej2-navigations": "~19.4.
|
|
48
|
-
"@syncfusion/ej2-popups": "~19.4.
|
|
49
|
-
"@syncfusion/ej2-richtexteditor": "~19.4.
|
|
50
|
-
"@syncfusion/ej2-treegrid": "~19.4.
|
|
38
|
+
"@syncfusion/ej2-base": "~19.4.52",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~19.4.53",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~19.4.54",
|
|
41
|
+
"@syncfusion/ej2-data": "~19.4.54",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~19.4.54",
|
|
43
|
+
"@syncfusion/ej2-grids": "~19.4.54",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~19.4.52",
|
|
45
|
+
"@syncfusion/ej2-layouts": "~19.4.52",
|
|
46
|
+
"@syncfusion/ej2-lists": "~19.4.52",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~19.4.53",
|
|
48
|
+
"@syncfusion/ej2-popups": "~19.4.53",
|
|
49
|
+
"@syncfusion/ej2-richtexteditor": "~19.4.54",
|
|
50
|
+
"@syncfusion/ej2-treegrid": "~19.4.54"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
53
53
|
"description": "Essential JS 2 Gantt Component",
|
|
@@ -75,6 +75,6 @@
|
|
|
75
75
|
"url": "git+https://github.com/syncfusion/ej2-gantt.git"
|
|
76
76
|
},
|
|
77
77
|
"typings": "index.d.ts",
|
|
78
|
-
"version": "19.4.
|
|
78
|
+
"version": "19.4.54",
|
|
79
79
|
"sideEffects": false
|
|
80
80
|
}
|
|
@@ -397,7 +397,8 @@ var CellEdit = /** @class */ (function () {
|
|
|
397
397
|
if (!ganttRecord.ganttProperties.isAutoSchedule) {
|
|
398
398
|
this.parent.setRecordValue('autoWidth', this.parent.dataOperation.calculateWidth(ganttRecord, false), ganttRecord.ganttProperties, true);
|
|
399
399
|
}
|
|
400
|
-
if (!isNullOrUndefined(args.data.ganttProperties.segments) && args.data.ganttProperties.segments.length > 0
|
|
400
|
+
if (!isNullOrUndefined(args.data.ganttProperties.segments) && args.data.ganttProperties.segments.length > 0 &&
|
|
401
|
+
!isNullOrUndefined(this.parent.editModule.taskbarEditModule)) {
|
|
401
402
|
this.parent.editModule.taskbarEditModule.updateSegmentProgress(args.data.ganttProperties);
|
|
402
403
|
}
|
|
403
404
|
if (!args.data.hasChildRecords) {
|
|
@@ -2807,10 +2807,6 @@ var Edit = /** @class */ (function () {
|
|
|
2807
2807
|
}
|
|
2808
2808
|
this.parent.timelineModule.updateTimeLineOnEditing([tempArray], args.action);
|
|
2809
2809
|
}
|
|
2810
|
-
var flag = getValue('doubleClickTarget', this.parent.treeGrid.editModule);
|
|
2811
|
-
if (flag !== null) {
|
|
2812
|
-
setValue('doubleClickTarget', null, this.parent.treeGrid.editModule);
|
|
2813
|
-
}
|
|
2814
2810
|
this.addSuccess(args);
|
|
2815
2811
|
args = this.constructTaskAddedEventArgs(cAddedRecord, args.modifiedRecords, 'add');
|
|
2816
2812
|
this.parent.trigger('actionComplete', args);
|
|
@@ -255,7 +255,13 @@ var RowDD = /** @class */ (function () {
|
|
|
255
255
|
}
|
|
256
256
|
else {
|
|
257
257
|
startIndex = droppedRecord.index;
|
|
258
|
-
|
|
258
|
+
var rootChildRecord = draggedRecord;
|
|
259
|
+
if (rootChildRecord.childRecords.length > 0) {
|
|
260
|
+
do {
|
|
261
|
+
rootChildRecord = rootChildRecord.childRecords[rootChildRecord.childRecords.length - 1];
|
|
262
|
+
} while (rootChildRecord.childRecords.length > 0);
|
|
263
|
+
}
|
|
264
|
+
endIndex = rootChildRecord.index;
|
|
259
265
|
}
|
|
260
266
|
var _loop_2 = function (i_1) {
|
|
261
267
|
if (!isNullOrUndefined(data_1[i_1])) {
|
|
@@ -277,7 +277,8 @@ var DateProcessor = /** @class */ (function () {
|
|
|
277
277
|
DateProcessor.prototype.calculateDuration = function (ganttData) {
|
|
278
278
|
var ganttProperties = ganttData.ganttProperties;
|
|
279
279
|
var tDuration;
|
|
280
|
-
if (!isNullOrUndefined(ganttProperties.segments) && ganttProperties.segments.length > 0
|
|
280
|
+
if (!isNullOrUndefined(ganttProperties.segments) && ganttProperties.segments.length > 0 &&
|
|
281
|
+
!isNullOrUndefined(this.parent.editModule.taskbarEditModule)) {
|
|
281
282
|
tDuration = this.parent.editModule.taskbarEditModule.sumOfDuration(ganttProperties.segments);
|
|
282
283
|
}
|
|
283
284
|
else {
|
|
@@ -238,6 +238,10 @@ var GanttTreeGrid = /** @class */ (function () {
|
|
|
238
238
|
};
|
|
239
239
|
GanttTreeGrid.prototype.actionBegin = function (args) {
|
|
240
240
|
this.parent.notify('actionBegin', args);
|
|
241
|
+
var flag = getValue('doubleClickTarget', this.parent.treeGrid.editModule);
|
|
242
|
+
if (flag !== null) {
|
|
243
|
+
setValue('doubleClickTarget', null, this.parent.treeGrid.editModule);
|
|
244
|
+
}
|
|
241
245
|
this.parent.trigger('actionBegin', args);
|
|
242
246
|
}; // eslint-disable-next-line
|
|
243
247
|
GanttTreeGrid.prototype.created = function (args) {
|
|
@@ -175,11 +175,20 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
175
175
|
labelString = labelString === 'isCustomTemplate' ? this.parent.labelSettings.taskLabel : labelString;
|
|
176
176
|
}
|
|
177
177
|
if (labelString !== 'null') {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
178
|
+
if (isNaN(parseInt(labelString))) {
|
|
179
|
+
taskLabel = '<span class="' + cls.taskLabel + '" style="line-height:' +
|
|
180
|
+
(this.taskBarHeight - 1) + 'px; text-align: left;' +
|
|
181
|
+
'display:' + 'inline-block;' +
|
|
182
|
+
'width:' + (data.ganttProperties.width - 10) + 'px; height:' +
|
|
183
|
+
this.taskBarHeight + 'px;">' + labelString + '</span>';
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
taskLabel = '<span class="' + cls.taskLabel + '" style="line-height:' +
|
|
187
|
+
(this.taskBarHeight - 1) + 'px; text-align:' + (this.parent.viewType === 'ResourceView' ? 'left;' : ';') +
|
|
188
|
+
'display:' + (this.parent.viewType === 'ResourceView' ? 'inline-flex;' : ';') +
|
|
189
|
+
'width:' + (this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : '') + 'px; height:' +
|
|
190
|
+
this.taskBarHeight + 'px;">' + labelString + '</span>';
|
|
191
|
+
}
|
|
183
192
|
}
|
|
184
193
|
var template = !isNullOrUndefined(data.ganttProperties.segments) && data.ganttProperties.segments.length > 0 ?
|
|
185
194
|
this.splitTaskbar(data, labelString) : (data.ganttProperties.startDate && data.ganttProperties.endDate
|
|
@@ -778,11 +787,20 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
778
787
|
labelString = labelString === 'isCustomTemplate' ? this.parent.labelSettings.taskLabel : labelString;
|
|
779
788
|
}
|
|
780
789
|
if (labelString !== 'null') {
|
|
781
|
-
|
|
782
|
-
cls.taskLabel + '" style="line-height:' +
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
790
|
+
if (isNaN(parseInt(labelString))) {
|
|
791
|
+
labelDiv = this.createDivElement('<span class="' + cls.taskLabel + '" style="line-height:' +
|
|
792
|
+
(this.taskBarHeight - 1) + 'px; text-align: left;' +
|
|
793
|
+
'display:' + 'inline-block;' +
|
|
794
|
+
'width:' + (data.ganttProperties.width - 10) + 'px; height:' +
|
|
795
|
+
this.taskBarHeight + 'px;">' + labelString + '</span>');
|
|
796
|
+
}
|
|
797
|
+
else {
|
|
798
|
+
labelDiv = this.createDivElement('<span class="' +
|
|
799
|
+
cls.taskLabel + '" style="line-height:' +
|
|
800
|
+
(this.taskBarHeight - 1) + 'px; display:' + (this.parent.viewType === 'ResourceView' ? 'inline-flex;' : ';') + 'width:' +
|
|
801
|
+
(this.parent.viewType === 'ResourceView' ? (data.ganttProperties.width - 10) : ';') + 'px; height:' +
|
|
802
|
+
this.taskBarHeight + 'px;">' + labelString + '</span>');
|
|
803
|
+
}
|
|
786
804
|
progressBarInnerDiv[0].appendChild([].slice.call(labelDiv)[0]);
|
|
787
805
|
}
|
|
788
806
|
var milestoneTemplate = '<div class="' + cls.parentMilestone + '" style="position:absolute;">' +
|
|
@@ -1276,7 +1276,7 @@ var Timeline = /** @class */ (function () {
|
|
|
1276
1276
|
var validStartLeft = this.parent.dataOperation.getTaskLeft(validStartDate, false);
|
|
1277
1277
|
var validEndLeft = this.parent.dataOperation.getTaskLeft(validEndDate, false);
|
|
1278
1278
|
var isChanged = void 0;
|
|
1279
|
-
if (!isNullOrUndefined(maxStartLeft) && (maxStartLeft
|
|
1279
|
+
if (!isNullOrUndefined(maxStartLeft) && (maxStartLeft < this.bottomTierCellWidth || maxStartLeft <= validStartLeft)) {
|
|
1280
1280
|
isChanged = 'prevTimeSpan';
|
|
1281
1281
|
minStartDate = minStartDate > this.timelineStartDate ? this.timelineStartDate : minStartDate;
|
|
1282
1282
|
}
|
package/styles/bootstrap.css
CHANGED
package/styles/bootstrap4.css
CHANGED
|
@@ -1196,7 +1196,10 @@
|
|
|
1196
1196
|
font-weight: normal;
|
|
1197
1197
|
margin-left: 8px;
|
|
1198
1198
|
margin-right: 15px;
|
|
1199
|
+
overflow: hidden;
|
|
1200
|
+
text-overflow: ellipsis;
|
|
1199
1201
|
vertical-align: middle;
|
|
1202
|
+
white-space: nowrap;
|
|
1200
1203
|
}
|
|
1201
1204
|
|
|
1202
1205
|
.e-gantt .e-gantt-chart .e-task-table {
|
package/styles/bootstrap5.css
CHANGED
package/styles/fabric-dark.css
CHANGED
package/styles/fabric.css
CHANGED
|
@@ -1196,7 +1196,10 @@
|
|
|
1196
1196
|
font-weight: normal;
|
|
1197
1197
|
margin-left: 8px;
|
|
1198
1198
|
margin-right: 15px;
|
|
1199
|
+
overflow: hidden;
|
|
1200
|
+
text-overflow: ellipsis;
|
|
1199
1201
|
vertical-align: middle;
|
|
1202
|
+
white-space: nowrap;
|
|
1200
1203
|
}
|
|
1201
1204
|
|
|
1202
1205
|
.e-gantt .e-gantt-chart .e-task-table {
|
package/styles/gantt/fabric.css
CHANGED
package/styles/highcontrast.css
CHANGED
package/styles/material-dark.css
CHANGED
package/styles/material.css
CHANGED
package/styles/tailwind-dark.css
CHANGED
package/styles/tailwind.css
CHANGED