@syncfusion/ej2-gantt 20.1.55 → 20.1.59
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 +28 -0
- 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 +22 -13
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +22 -13
- 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 +15 -15
- package/src/gantt/actions/edit.js +4 -0
- package/src/gantt/actions/pdf-export.js +1 -1
- package/src/gantt/base/gantt-chart.js +6 -1
- package/src/gantt/base/gantt.js +2 -5
- package/src/gantt/base/task-processor.js +1 -1
- package/src/gantt/export/export-helper.js +3 -3
- package/src/gantt/renderer/chart-rows.js +1 -1
- package/src/gantt/renderer/connector-line.js +1 -1
- package/src/gantt/renderer/timeline.js +3 -0
- package/styles/bootstrap-dark.css +262 -379
- package/styles/bootstrap.css +264 -387
- package/styles/bootstrap4.css +276 -433
- package/styles/bootstrap5-dark.css +264 -382
- package/styles/bootstrap5.css +264 -382
- package/styles/fabric-dark.css +262 -377
- package/styles/fabric.css +265 -380
- package/styles/fluent-dark.css +262 -378
- package/styles/fluent.css +262 -378
- package/styles/gantt/_bootstrap-dark-definition.scss +41 -4
- package/styles/gantt/_bootstrap-definition.scss +41 -4
- package/styles/gantt/_bootstrap4-definition.scss +42 -4
- package/styles/gantt/_bootstrap5-definition.scss +41 -4
- package/styles/gantt/_fabric-dark-definition.scss +40 -3
- package/styles/gantt/_fabric-definition.scss +41 -4
- package/styles/gantt/_fluent-definition.scss +41 -4
- package/styles/gantt/_highcontrast-definition.scss +41 -4
- package/styles/gantt/_highcontrast-light-definition.scss +41 -4
- package/styles/gantt/_layout.scss +298 -7
- package/styles/gantt/_material-dark-definition.scss +42 -4
- package/styles/gantt/_material-definition.scss +42 -4
- package/styles/gantt/_tailwind-definition.scss +42 -4
- package/styles/gantt/bootstrap-dark.css +262 -379
- package/styles/gantt/bootstrap.css +264 -387
- package/styles/gantt/bootstrap4.css +276 -433
- package/styles/gantt/bootstrap5-dark.css +264 -382
- package/styles/gantt/bootstrap5.css +264 -382
- package/styles/gantt/fabric-dark.css +262 -377
- package/styles/gantt/fabric.css +265 -380
- package/styles/gantt/fluent-dark.css +262 -378
- package/styles/gantt/fluent.css +262 -378
- package/styles/gantt/highcontrast-light.css +230 -364
- package/styles/gantt/highcontrast.css +265 -414
- package/styles/gantt/icons/_bootstrap-dark.scss +8 -0
- package/styles/gantt/icons/_bootstrap.scss +8 -0
- package/styles/gantt/icons/_bootstrap4.scss +8 -0
- package/styles/gantt/icons/_bootstrap5.scss +8 -0
- package/styles/gantt/icons/_fabric-dark.scss +8 -0
- package/styles/gantt/icons/_fabric.scss +8 -0
- package/styles/gantt/icons/_fluent.scss +8 -0
- package/styles/gantt/icons/_highcontrast.scss +8 -0
- package/styles/gantt/icons/_material-dark.scss +8 -0
- package/styles/gantt/icons/_material.scss +8 -0
- package/styles/gantt/icons/_tailwind-dark.scss +8 -0
- package/styles/gantt/icons/_tailwind.scss +8 -0
- package/styles/gantt/material-dark.css +266 -371
- package/styles/gantt/material.css +267 -373
- package/styles/gantt/tailwind-dark.css +264 -370
- package/styles/gantt/tailwind.css +264 -370
- package/styles/highcontrast-light.css +230 -364
- package/styles/highcontrast.css +265 -414
- package/styles/material-dark.css +266 -371
- package/styles/material.css +267 -373
- package/styles/tailwind-dark.css +264 -370
- package/styles/tailwind.css +264 -370
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.1.
|
|
3
|
+
* version : 20.1.59
|
|
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@20.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@20.1.58",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512
|
|
5
|
+
"_integrity": "sha512-aGxhnwyHgY6SnrOLx5DDJ4POSxFEX9T8lUeaeD0BKQVWXVfpGAfGFS0nk1WK6V6PjtKjIvnqf/XXO1BA2lETgA==",
|
|
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-20.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.1.58.tgz",
|
|
27
|
+
"_shasum": "94ccf694deafe217052ae778c8d383c67b28946b",
|
|
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": "~20.1.
|
|
38
|
+
"@syncfusion/ej2-base": "~20.1.57",
|
|
39
39
|
"@syncfusion/ej2-buttons": "~20.1.55",
|
|
40
|
-
"@syncfusion/ej2-calendars": "~20.1.
|
|
40
|
+
"@syncfusion/ej2-calendars": "~20.1.58",
|
|
41
41
|
"@syncfusion/ej2-data": "~20.1.55",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~20.1.
|
|
43
|
-
"@syncfusion/ej2-grids": "~20.1.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~20.1.
|
|
45
|
-
"@syncfusion/ej2-layouts": "~20.1.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~20.1.59",
|
|
43
|
+
"@syncfusion/ej2-grids": "~20.1.59",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~20.1.59",
|
|
45
|
+
"@syncfusion/ej2-layouts": "~20.1.58",
|
|
46
46
|
"@syncfusion/ej2-lists": "~20.1.55",
|
|
47
|
-
"@syncfusion/ej2-navigations": "~20.1.
|
|
48
|
-
"@syncfusion/ej2-popups": "~20.1.
|
|
49
|
-
"@syncfusion/ej2-richtexteditor": "~20.1.
|
|
50
|
-
"@syncfusion/ej2-treegrid": "~20.1.
|
|
47
|
+
"@syncfusion/ej2-navigations": "~20.1.58",
|
|
48
|
+
"@syncfusion/ej2-popups": "~20.1.58",
|
|
49
|
+
"@syncfusion/ej2-richtexteditor": "~20.1.59",
|
|
50
|
+
"@syncfusion/ej2-treegrid": "~20.1.59"
|
|
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": "20.1.
|
|
78
|
+
"version": "20.1.59",
|
|
79
79
|
"sideEffects": false
|
|
80
80
|
}
|
|
@@ -354,7 +354,11 @@ var Edit = /** @class */ (function () {
|
|
|
354
354
|
this.parent.isOnEdit = true;
|
|
355
355
|
this.validateUpdateValues(data, ganttData, true);
|
|
356
356
|
if (data[this.parent.taskFields.resourceInfo]) {
|
|
357
|
+
if (ganttData.ganttProperties.duration === 0) {
|
|
358
|
+
this.parent.dataOperation.updateWorkWithDuration(ganttData);
|
|
359
|
+
}
|
|
357
360
|
this.updateResourceRelatedFields(ganttData, 'resource');
|
|
361
|
+
this.parent.dateValidationModule.calculateEndDate(ganttData);
|
|
358
362
|
}
|
|
359
363
|
var keys = Object.keys(data);
|
|
360
364
|
if (keys.indexOf(tasks.startDate) !== -1 || keys.indexOf(tasks.endDate) !== -1 ||
|
|
@@ -120,7 +120,7 @@ var PdfExport = /** @class */ (function () {
|
|
|
120
120
|
//To set section page size and page orientation.
|
|
121
121
|
if (!isNullOrUndefined(pdfExportProperties)) {
|
|
122
122
|
var pdfPageSettings = new PdfPageSettings();
|
|
123
|
-
if (!isNullOrUndefined(pdfExportProperties.pageOrientation && pdfExportProperties.pageOrientation === 'Portrait')
|
|
123
|
+
if (!isNullOrUndefined(pdfExportProperties.pageOrientation) && pdfExportProperties.pageOrientation === 'Portrait') {
|
|
124
124
|
pdfPageSettings.orientation = PdfPageOrientation.Portrait;
|
|
125
125
|
}
|
|
126
126
|
else {
|
|
@@ -593,7 +593,12 @@ var GanttChart = /** @class */ (function () {
|
|
|
593
593
|
* @private
|
|
594
594
|
*/
|
|
595
595
|
GanttChart.prototype.getChartRows = function () {
|
|
596
|
-
|
|
596
|
+
if (document.getElementById(this.parent.element.id + 'GanttTaskTableBody') != null) {
|
|
597
|
+
return document.getElementById(this.parent.element.id + 'GanttTaskTableBody').querySelectorAll('.e-chart-row');
|
|
598
|
+
}
|
|
599
|
+
else {
|
|
600
|
+
return null;
|
|
601
|
+
}
|
|
597
602
|
};
|
|
598
603
|
/**
|
|
599
604
|
* Expand Collapse operations from gantt chart side
|
package/src/gantt/base/gantt.js
CHANGED
|
@@ -392,10 +392,7 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
392
392
|
this.treeGrid.dataSource = { result: this.flatData, count: count };
|
|
393
393
|
}
|
|
394
394
|
else {
|
|
395
|
-
this.treeGrid.dataSource
|
|
396
|
-
if (!isNullOrUndefined(document.getElementsByClassName('e-listview')[0])) {
|
|
397
|
-
this.treeGrid.dataBind();
|
|
398
|
-
}
|
|
395
|
+
this.treeGrid.setProperties({ dataSource: this.flatData }, false);
|
|
399
396
|
}
|
|
400
397
|
}
|
|
401
398
|
else {
|
|
@@ -512,7 +509,7 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
512
509
|
var expandedRecords = this.virtualScrollModule && this.enableVirtualization ?
|
|
513
510
|
this.currentViewData : this.getExpandedRecords(this.currentViewData);
|
|
514
511
|
var height = void 0;
|
|
515
|
-
var chartRow = this.ganttChartModule.getChartRows()[0];
|
|
512
|
+
var chartRow = !isNullOrUndefined(this.ganttChartModule.getChartRows()) ? this.ganttChartModule.getChartRows()[0] : null;
|
|
516
513
|
if (!isNullOrUndefined(chartRow) && chartRow.getBoundingClientRect().height > 0) {
|
|
517
514
|
height = chartRow.getBoundingClientRect().height;
|
|
518
515
|
}
|
|
@@ -172,7 +172,7 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
172
172
|
var child = this_1.parent.taskFields.child;
|
|
173
173
|
var resourceData = tempData && tempData[this_1.parent.taskFields.resourceInfo];
|
|
174
174
|
var resourceIdMapping = this_1.parent.resourceFields.id;
|
|
175
|
-
if (!tempData[child] && resourceData && resourceData.length) {
|
|
175
|
+
if ((!tempData[child] || tempData[child].length === 0) && resourceData && resourceData.length) {
|
|
176
176
|
resourceData.forEach(function (resource) {
|
|
177
177
|
var id = (typeof resource === 'object') ? resource[resourceIdMapping] :
|
|
178
178
|
resource;
|
|
@@ -502,13 +502,13 @@ var ExportValueFormatter = /** @class */ (function () {
|
|
|
502
502
|
if (typeof args.column.format === 'string') {
|
|
503
503
|
var format = void 0;
|
|
504
504
|
if (args.column.type === 'date') {
|
|
505
|
-
format = { type: 'date',
|
|
505
|
+
format = { type: 'date', format: args.column.format };
|
|
506
506
|
}
|
|
507
507
|
else if (args.column.type === 'time') {
|
|
508
|
-
format = { type: 'time',
|
|
508
|
+
format = { type: 'time', format: args.column.format };
|
|
509
509
|
}
|
|
510
510
|
else {
|
|
511
|
-
format = { type: 'dateTime',
|
|
511
|
+
format = { type: 'dateTime', format: args.column.format };
|
|
512
512
|
}
|
|
513
513
|
return this.returnFormattedValue(args, format);
|
|
514
514
|
}
|
|
@@ -1673,7 +1673,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1673
1673
|
var chartRows = this.parent.ganttChartModule.getChartRows();
|
|
1674
1674
|
//Below code is for rendering taskbartemplate in resource view with multi taskbar
|
|
1675
1675
|
if (this.parent.initialChartRowElements) {
|
|
1676
|
-
for (var j = 0; j
|
|
1676
|
+
for (var j = 0; j < this.parent.initialChartRowElements.length; j++) {
|
|
1677
1677
|
if (!isNullOrUndefined(chartRows[j])) {
|
|
1678
1678
|
if (!isNullOrUndefined(chartRows[j].childNodes[0].childNodes[1].childNodes[2]) &&
|
|
1679
1679
|
!isNullOrUndefined(this.parent.initialChartRowElements[j].childNodes[0].childNodes[1].childNodes[2])) {
|
|
@@ -79,7 +79,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
79
79
|
(Math.floor(this.parent.chartRowsModule.milestoneHeight)) : childGanttRecord.width;
|
|
80
80
|
connectorObj.parentIndex = parentIndex;
|
|
81
81
|
connectorObj.childIndex = childIndex;
|
|
82
|
-
var rowHeight = this.parent.ganttChartModule.getChartRows()[0] &&
|
|
82
|
+
var rowHeight = !isNullOrUndefined(this.parent.ganttChartModule.getChartRows()) && this.parent.ganttChartModule.getChartRows()[0] &&
|
|
83
83
|
this.parent.ganttChartModule.getChartRows()[0].getBoundingClientRect().height;
|
|
84
84
|
connectorObj.rowHeight = rowHeight && !isNaN(rowHeight) ? rowHeight : this.parent.rowHeight;
|
|
85
85
|
connectorObj.type = predecessor.type;
|
|
@@ -186,6 +186,9 @@ var Timeline = /** @class */ (function () {
|
|
|
186
186
|
this.parent.zoomingProjectEndDate = this.parent.cloneProjectEndDate;
|
|
187
187
|
}
|
|
188
188
|
this.parent.dataOperation.calculateProjectDates();
|
|
189
|
+
if (this.parent.zoomingProjectStartDate > this.parent.cloneProjectStartDate) {
|
|
190
|
+
this.parent.cloneProjectStartDate = new Date(this.parent.allowUnscheduledTasks ? this.parent.zoomingProjectStartDate : this.parent.cloneProjectStartDate);
|
|
191
|
+
}
|
|
189
192
|
var timeDifference = (this.parent.cloneProjectEndDate.getTime() - this.parent.cloneProjectStartDate.getTime());
|
|
190
193
|
var totalDays = (timeDifference / (1000 * 3600 * 24));
|
|
191
194
|
var chartWidth = this.parent.ganttChartModule.chartElement.offsetWidth;
|