@syncfusion/ej2-gantt 24.1.45 → 24.1.46
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 +12 -0
- package/dist/ej2-gantt.min.js +2 -2
- 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 +48 -23
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +51 -25
- 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 +7 -1
- package/src/gantt/actions/pdf-export.d.ts +2 -1
- package/src/gantt/actions/pdf-export.js +3 -3
- package/src/gantt/actions/taskbar-edit.js +4 -4
- package/src/gantt/base/task-processor.js +19 -13
- package/src/gantt/base/tree-grid.d.ts +1 -0
- package/src/gantt/base/tree-grid.js +3 -0
- package/src/gantt/export/export-helper.js +3 -2
- package/src/gantt/export/pdf-taskbar.js +12 -2
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/gantt/_layout.scss +1 -1
- package/styles/gantt/bootstrap-dark.css +1 -1
- package/styles/gantt/bootstrap.css +1 -1
- package/styles/gantt/bootstrap4.css +1 -1
- package/styles/gantt/bootstrap5-dark.css +1 -1
- package/styles/gantt/bootstrap5.css +1 -1
- package/styles/gantt/fabric-dark.css +1 -1
- package/styles/gantt/fabric.css +1 -1
- package/styles/gantt/fluent-dark.css +1 -1
- package/styles/gantt/fluent.css +1 -1
- package/styles/gantt/highcontrast-light.css +1 -1
- package/styles/gantt/highcontrast.css +1 -1
- package/styles/gantt/material-dark.css +1 -1
- package/styles/gantt/material.css +1 -1
- package/styles/gantt/material3-dark.css +1 -1
- package/styles/gantt/material3.css +1 -1
- package/styles/gantt/tailwind-dark.css +1 -1
- package/styles/gantt/tailwind.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/material3-dark.css +1 -1
- package/styles/material3.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind.css +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.1.
|
|
3
|
+
* version : 24.1.46
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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@24.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@24.1.45",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-ouyWG2m2BKnXPY82s0pedbcWVo6BY0O5MDekp48im55Xx7Kn3AygKgPxaOjQExnEcZTZI4OXroStsTQzOK49Qw==",
|
|
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": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-24.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-24.1.45.tgz",
|
|
27
|
+
"_shasum": "ade85add34aa65cd55272fb32abe37fa12e109c9",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~24.1.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~24.1.
|
|
38
|
+
"@syncfusion/ej2-base": "~24.1.46",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~24.1.46",
|
|
40
40
|
"@syncfusion/ej2-calendars": "~24.1.44",
|
|
41
41
|
"@syncfusion/ej2-data": "~24.1.41",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~24.1.
|
|
43
|
-
"@syncfusion/ej2-grids": "~24.1.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~24.1.46",
|
|
43
|
+
"@syncfusion/ej2-grids": "~24.1.46",
|
|
44
44
|
"@syncfusion/ej2-inputs": "~24.1.45",
|
|
45
45
|
"@syncfusion/ej2-layouts": "~24.1.41",
|
|
46
|
-
"@syncfusion/ej2-lists": "~24.1.
|
|
47
|
-
"@syncfusion/ej2-navigations": "~24.1.
|
|
46
|
+
"@syncfusion/ej2-lists": "~24.1.46",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~24.1.46",
|
|
48
48
|
"@syncfusion/ej2-notifications": "~24.1.41",
|
|
49
|
-
"@syncfusion/ej2-popups": "~24.1.
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~24.1.
|
|
51
|
-
"@syncfusion/ej2-svg-base": "~24.1.
|
|
52
|
-
"@syncfusion/ej2-treegrid": "~24.1.
|
|
49
|
+
"@syncfusion/ej2-popups": "~24.1.46",
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~24.1.46",
|
|
51
|
+
"@syncfusion/ej2-svg-base": "~24.1.46",
|
|
52
|
+
"@syncfusion/ej2-treegrid": "~24.1.46"
|
|
53
53
|
},
|
|
54
54
|
"deprecated": false,
|
|
55
55
|
"description": "Essential JS 2 Gantt Component",
|
|
@@ -74,6 +74,6 @@
|
|
|
74
74
|
"url": "git+https://github.com/syncfusion/ej2-gantt.git"
|
|
75
75
|
},
|
|
76
76
|
"typings": "index.d.ts",
|
|
77
|
-
"version": "24.1.
|
|
77
|
+
"version": "24.1.46",
|
|
78
78
|
"sideEffects": false
|
|
79
79
|
}
|
|
@@ -3064,10 +3064,16 @@ var Edit = /** @class */ (function () {
|
|
|
3064
3064
|
}
|
|
3065
3065
|
if (!isNullOrUndefined(args.data["" + tempTaskID])) {
|
|
3066
3066
|
if (args.data[tempTaskID] != args.data['ganttProperties']['taskId']) {
|
|
3067
|
+
for (var _i = 0, _b = Object.keys(_this.parent.ids); _i < _b.length; _i++) {
|
|
3068
|
+
var key = _b[_i];
|
|
3069
|
+
if (_this.parent.ids[key] === args.data['ganttProperties']['taskId'].toString()) {
|
|
3070
|
+
_this.parent.ids[key] = args.data[tempTaskID].toString();
|
|
3071
|
+
break;
|
|
3072
|
+
}
|
|
3073
|
+
}
|
|
3067
3074
|
args.data['ganttProperties']['taskId'] = args.data[tempTaskID];
|
|
3068
3075
|
args.newTaskData[tempTaskID] = args.data[tempTaskID];
|
|
3069
3076
|
args.data['ganttProperties']['rowUniqueID'] = args.data[tempTaskID].toString();
|
|
3070
|
-
_this.parent.ids.push(args.data[tempTaskID].toString());
|
|
3071
3077
|
}
|
|
3072
3078
|
}
|
|
3073
3079
|
if (!args.cancel) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PdfExportProperties } from './../base/interface';
|
|
2
2
|
import { Gantt } from '../base/gantt';
|
|
3
3
|
import { ExportHelper } from '../export/export-helper';
|
|
4
|
-
import { SizeF } from '@syncfusion/ej2-pdf-export';
|
|
4
|
+
import { PdfPage, SizeF } from '@syncfusion/ej2-pdf-export';
|
|
5
5
|
import { PdfGantt } from '../export/pdf-gantt';
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
@@ -16,6 +16,7 @@ export declare class PdfExport {
|
|
|
16
16
|
private isBlob;
|
|
17
17
|
private blobPromise;
|
|
18
18
|
pdfPageDimensions: SizeF;
|
|
19
|
+
pdfPage: PdfPage;
|
|
19
20
|
/**
|
|
20
21
|
* @param {Gantt} parent .
|
|
21
22
|
* @hidden
|
|
@@ -125,8 +125,8 @@ var PdfExport = /** @class */ (function () {
|
|
|
125
125
|
var _this = this;
|
|
126
126
|
var section = this.pdfDocument.sections.add();
|
|
127
127
|
this.processSectionExportProperties(section, pdfExportProperties);
|
|
128
|
-
|
|
129
|
-
this.pdfPageDimensions = pdfPage.getClientSize();
|
|
128
|
+
this.pdfPage = section.pages.add();
|
|
129
|
+
this.pdfPageDimensions = this.pdfPage.getClientSize();
|
|
130
130
|
/* eslint-disable-next-line */
|
|
131
131
|
return new Promise(function (resolve, reject) {
|
|
132
132
|
_this.helper.processGridExport(data, _this.gantt, pdfExportProperties);
|
|
@@ -135,7 +135,7 @@ var PdfExport = /** @class */ (function () {
|
|
|
135
135
|
}).then(function () {
|
|
136
136
|
var format = new PdfTreeGridLayoutFormat();
|
|
137
137
|
format.break = PdfLayoutBreakType.FitElement;
|
|
138
|
-
var layouter = _this.gantt.drawGrid(pdfPage, 0, 0, format);
|
|
138
|
+
var layouter = _this.gantt.drawGrid(_this.pdfPage, 0, 0, format);
|
|
139
139
|
_this.gantt.drawChart(layouter);
|
|
140
140
|
if (_this.helper.exportProps && _this.helper.exportProps.fitToWidthSettings && _this.helper.exportProps.fitToWidthSettings.isFitToWidth) {
|
|
141
141
|
_this.parent.zoomingProjectStartDate = _this.helper.beforeSinglePageExport['zoomingProjectStartDate'];
|
|
@@ -1852,7 +1852,7 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
1852
1852
|
pStartDate.setTime(pStartDate.getTime() + (left * milliSecondsPerPixel));
|
|
1853
1853
|
/* To render the milestone in proper date while editing */
|
|
1854
1854
|
if (isMilestone && !isNullOrUndefined(property.predecessorsName) && property.predecessorsName !== '') {
|
|
1855
|
-
pStartDate.setDate(pStartDate.getDate()
|
|
1855
|
+
// pStartDate.setDate(pStartDate.getDate()-1);
|
|
1856
1856
|
this.parent.dateValidationModule.setTime(this.parent.defaultEndTime, pStartDate);
|
|
1857
1857
|
pStartDate = this.parent.dateValidationModule.checkStartDate(pStartDate, property, true);
|
|
1858
1858
|
}
|
|
@@ -1862,9 +1862,9 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
1862
1862
|
if (this.parent.isInDst(new Date(this.parent.timelineModule.timelineStartDate.toString())) && !this.parent.isInDst(pStartDate)) {
|
|
1863
1863
|
pStartDate.setTime(pStartDate.getTime() + (60 * 60 * 1000));
|
|
1864
1864
|
}
|
|
1865
|
-
else if (!this.parent.isInDst(new Date(this.parent.timelineModule.timelineStartDate.toString())) && this.parent.isInDst(pStartDate)) {
|
|
1866
|
-
|
|
1867
|
-
}
|
|
1865
|
+
// else if (!this.parent.isInDst(new Date(this.parent.timelineModule.timelineStartDate.toString())) && this.parent.isInDst(pStartDate)) {
|
|
1866
|
+
// pStartDate.setTime(pStartDate.getTime() - (60 * 60 * 1000));
|
|
1867
|
+
// }
|
|
1868
1868
|
}
|
|
1869
1869
|
return pStartDate;
|
|
1870
1870
|
};
|
|
@@ -84,19 +84,25 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
84
84
|
var queryManager = this.parent.query instanceof Query ? this.parent.query : new Query();
|
|
85
85
|
queryManager.requiresCount();
|
|
86
86
|
var dataManager = this.parent.dataSource;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
87
|
+
if (!this.parent.loadChildOnDemand && this.parent.taskFields.hasChildMapping) {
|
|
88
|
+
this.processTimeline();
|
|
89
|
+
this.parent.renderGantt(isChange);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
dataManager.executeQuery(queryManager).then(function (e) {
|
|
93
|
+
_this.dataArray = e.result;
|
|
94
|
+
_this.processTimeline();
|
|
95
|
+
if (_this.parent.loadChildOnDemand || (!_this.parent.loadChildOnDemand && !(_this.parent.taskFields.hasChildMapping))) {
|
|
96
|
+
_this.cloneDataSource();
|
|
97
|
+
}
|
|
98
|
+
_this.parent.renderGantt(isChange);
|
|
99
|
+
}).catch(function (e) {
|
|
100
|
+
// Trigger action failure event
|
|
101
|
+
_this.parent.processTimeline();
|
|
102
|
+
_this.parent.renderGantt(isChange);
|
|
103
|
+
_this.parent.trigger('actionFailure', { error: e });
|
|
104
|
+
});
|
|
105
|
+
}
|
|
100
106
|
};
|
|
101
107
|
TaskProcessor.prototype.constructDataSource = function (dataSource) {
|
|
102
108
|
var mappingData = new DataManager(dataSource).executeLocal(new Query()
|
|
@@ -110,6 +110,9 @@ var GanttTreeGrid = /** @class */ (function () {
|
|
|
110
110
|
this.bindEvents();
|
|
111
111
|
var root = 'root';
|
|
112
112
|
this.parent.treeGrid[root] = this.parent[root] ? this.parent[root] : this.parent;
|
|
113
|
+
setValue('registeredTemplate', this.registeredTemplate, this.parent.treeGrid.grid);
|
|
114
|
+
var ref = 'viewContainerRef';
|
|
115
|
+
setValue('viewContainerRef', this["" + ref], this.parent.treeGrid.grid);
|
|
113
116
|
this.parent.treeGrid.appendTo(this.treeGridElement);
|
|
114
117
|
if (this.parent.treeGrid.grid && this.parent.toolbarModule && this.parent.isReact) {
|
|
115
118
|
this.parent.treeGrid.grid.portals = this.parent.portals;
|
|
@@ -695,9 +695,11 @@ var ExportHelper = /** @class */ (function () {
|
|
|
695
695
|
compositeField.draw(footer.graphics, new PointF(0, 0));
|
|
696
696
|
pdfDoc.template.bottom = footer;
|
|
697
697
|
}
|
|
698
|
+
var PdfPage = this.parent.pdfExportModule.pdfPage;
|
|
699
|
+
var pageSize = PdfPage.size;
|
|
700
|
+
var clientSize = !isNullOrUndefined(pageSize) ? pageSize : this.pdfDoc.pageSettings.size;
|
|
698
701
|
// code for draw header content
|
|
699
702
|
if (!isNullOrUndefined(this.exportProps.header)) {
|
|
700
|
-
var clientSize = this.pdfDoc.pageSettings.size;
|
|
701
703
|
var headerProp = this.exportProps.header;
|
|
702
704
|
var position = new PointF(0, headerProp.fromTop);
|
|
703
705
|
var size = new SizeF((clientSize.width * 1.1), ((headerProp && headerProp.height) ? headerProp.height * 0.75 : 50));
|
|
@@ -706,7 +708,6 @@ var ExportHelper = /** @class */ (function () {
|
|
|
706
708
|
}
|
|
707
709
|
// code for customization of footer
|
|
708
710
|
if (!this.exportProps.enableFooter && !isNullOrUndefined(this.exportProps.footer)) {
|
|
709
|
-
var clientSize = this.pdfDoc.pageSettings.size;
|
|
710
711
|
var footer = this.exportProps.footer;
|
|
711
712
|
var position = new PointF(0, ((clientSize.width - 80) - ((footer && footer.fromBottom) ?
|
|
712
713
|
footer.fromBottom * 0.75 : 0)));
|
|
@@ -107,11 +107,21 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
|
|
|
107
107
|
var pageIndex = -1;
|
|
108
108
|
var renderBaselineWidth = 0;
|
|
109
109
|
if (this.baselineWidth > detail.totalWidth) {
|
|
110
|
-
|
|
110
|
+
if (this.parent.timelineModule.isZoomedToFit || this.isAutoFit()) {
|
|
111
|
+
renderBaselineWidth = detail.totalWidth - this.baselineLeft;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
renderBaselineWidth = detail.totalWidth;
|
|
115
|
+
}
|
|
111
116
|
this.baselineWidth = this.baselineWidth - detail.totalWidth;
|
|
112
117
|
}
|
|
113
118
|
else {
|
|
114
|
-
|
|
119
|
+
if ((this.parent.timelineModule.isZoomedToFit || this.isAutoFit()) && this.baselineWidth + this.baselineLeft > detail.totalWidth) {
|
|
120
|
+
renderBaselineWidth = detail.totalWidth - this.baselineLeft;
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
renderBaselineWidth = this.baselineWidth;
|
|
124
|
+
}
|
|
115
125
|
}
|
|
116
126
|
var baselinePen = new PdfPen(taskbar.baselineBorderColor);
|
|
117
127
|
var baselineBrush = new PdfSolidBrush(taskbar.baselineColor);
|
package/styles/bootstrap.css
CHANGED
package/styles/bootstrap4.css
CHANGED
package/styles/bootstrap5.css
CHANGED
package/styles/fabric-dark.css
CHANGED
package/styles/fabric.css
CHANGED
package/styles/fluent-dark.css
CHANGED
package/styles/fluent.css
CHANGED
package/styles/gantt/fabric.css
CHANGED
package/styles/gantt/fluent.css
CHANGED
package/styles/highcontrast.css
CHANGED
package/styles/material-dark.css
CHANGED
package/styles/material.css
CHANGED
package/styles/material3.css
CHANGED
package/styles/tailwind-dark.css
CHANGED
package/styles/tailwind.css
CHANGED