@syncfusion/ej2-gantt 24.1.46 → 24.1.47
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 +10 -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 +7 -5
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +11 -9
- 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 +11 -11
- package/src/gantt/actions/taskbar-edit.js +2 -3
- package/src/gantt/base/tree-grid.js +2 -2
- package/src/gantt/export/pdf-timeline.js +8 -5
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.47
|
|
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.46",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-D0PkQMqSxymxo0yp2d+nGVOO12m7BwUEoQwYcs0+EkK3n4FyYuh29TqZ5HCcC+gKAcKAJGs/kz2JJpv99TexYA==",
|
|
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.46.tgz",
|
|
27
|
+
"_shasum": "a27bd8c1cc2c4f3d0e822f1082f7998d4385ec05",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@syncfusion/ej2-base": "~24.1.46",
|
|
39
39
|
"@syncfusion/ej2-buttons": "~24.1.46",
|
|
40
|
-
"@syncfusion/ej2-calendars": "~24.1.
|
|
40
|
+
"@syncfusion/ej2-calendars": "~24.1.47",
|
|
41
41
|
"@syncfusion/ej2-data": "~24.1.41",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~24.1.
|
|
43
|
-
"@syncfusion/ej2-grids": "~24.1.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~24.1.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~24.1.47",
|
|
43
|
+
"@syncfusion/ej2-grids": "~24.1.47",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~24.1.47",
|
|
45
45
|
"@syncfusion/ej2-layouts": "~24.1.41",
|
|
46
46
|
"@syncfusion/ej2-lists": "~24.1.46",
|
|
47
47
|
"@syncfusion/ej2-navigations": "~24.1.46",
|
|
48
48
|
"@syncfusion/ej2-notifications": "~24.1.41",
|
|
49
49
|
"@syncfusion/ej2-popups": "~24.1.46",
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~24.1.
|
|
51
|
-
"@syncfusion/ej2-svg-base": "~24.1.
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~24.1.47",
|
|
51
|
+
"@syncfusion/ej2-svg-base": "~24.1.47",
|
|
52
52
|
"@syncfusion/ej2-treegrid": "~24.1.46"
|
|
53
53
|
},
|
|
54
54
|
"deprecated": false,
|
|
@@ -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.47",
|
|
78
78
|
"sideEffects": false
|
|
79
79
|
}
|
|
@@ -606,7 +606,6 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
606
606
|
}
|
|
607
607
|
else {
|
|
608
608
|
rowElement = this.parent.getRowByIndex(parseInt(target.getAttribute('data-rowindex'))).children;
|
|
609
|
-
;
|
|
610
609
|
}
|
|
611
610
|
if (rowElement) {
|
|
612
611
|
if (this.parent.rowDragAndDropModule['dropPosition'] === 'above') {
|
|
@@ -877,7 +876,7 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
877
876
|
var rowIndex = getValue('rowIndex', rowElement);
|
|
878
877
|
var droppedTreeGridRecord = this.parent.flatData[rowIndex];
|
|
879
878
|
var isValid = true;
|
|
880
|
-
if (this.parent.viewType === 'ResourceView' && !this.taskBarEditRecord.hasChildRecords && !droppedTreeGridRecord.hasChildRecords && this.taskBarEditRecord.parentItem.taskId === droppedTreeGridRecord.parentItem.taskId) {
|
|
879
|
+
if (this.parent.viewType === 'ResourceView' && !this.taskBarEditRecord.hasChildRecords && !droppedTreeGridRecord.hasChildRecords && !isNullOrUndefined(droppedTreeGridRecord.parentItem) && this.taskBarEditRecord.parentItem.taskId === droppedTreeGridRecord.parentItem.taskId) {
|
|
881
880
|
isValid = false;
|
|
882
881
|
}
|
|
883
882
|
if (droppedTreeGridRecord) {
|
|
@@ -2278,7 +2277,7 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
2278
2277
|
droppedRecord.childRecords.length == 0)) ? 'child' : this.parent.rowDragAndDropModule['dropPosition'];
|
|
2279
2278
|
}
|
|
2280
2279
|
if (this.parent.rowDragAndDropModule) {
|
|
2281
|
-
if (this.parent.viewType === 'ResourceView' && (position === 'child' && !droppedRecord.hasChildRecords)) {
|
|
2280
|
+
if (this.parent.viewType === 'ResourceView' && (position === 'child' && !droppedRecord.hasChildRecords) && !isNullOrUndefined(droppedRecord.parentItem)) {
|
|
2282
2281
|
position = 'Invalid';
|
|
2283
2282
|
this.parent.rowDragAndDropModule['dropPosition'] = 'Invalid';
|
|
2284
2283
|
}
|
|
@@ -110,9 +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
|
|
113
|
+
setValue('registeredTemplate', this.registeredTemplate, this.parent.treeGrid);
|
|
114
114
|
var ref = 'viewContainerRef';
|
|
115
|
-
setValue('viewContainerRef', this["" + ref], this.parent.treeGrid
|
|
115
|
+
setValue('viewContainerRef', this.parent["" + ref], this.parent.treeGrid);
|
|
116
116
|
this.parent.treeGrid.appendTo(this.treeGridElement);
|
|
117
117
|
if (this.parent.treeGrid.grid && this.parent.toolbarModule && this.parent.isReact) {
|
|
118
118
|
this.parent.treeGrid.grid.portals = this.parent.portals;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PointF, PdfColor, PdfPen, PdfSolidBrush, PdfStandardFont, PdfStringFormat, PdfVerticalAlignment, PdfTextAlignment, PdfWordWrapType, PdfFontFamily, PdfBrushes } from '@syncfusion/ej2-pdf-export';
|
|
1
|
+
import { PointF, PdfColor, PdfPen, PdfSolidBrush, PdfStandardFont, PdfStringFormat, PdfVerticalAlignment, PdfTextAlignment, PdfWordWrapType, PdfFontFamily, PdfBrushes, RectangleF } from '@syncfusion/ej2-pdf-export';
|
|
2
2
|
import { extend, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
3
3
|
import { pixelToPoint, pointToPixel } from '../base/utils';
|
|
4
4
|
/**
|
|
@@ -231,7 +231,7 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
231
231
|
}
|
|
232
232
|
graphics.drawRectangle(rectPen, rectBrush, x, y + pixelToPoint(height), width, page.getClientSize().height);
|
|
233
233
|
if (this.holidayCompleted) {
|
|
234
|
-
var
|
|
234
|
+
var state_1 = graphics.save();
|
|
235
235
|
var font1 = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
|
|
236
236
|
var fontHieght = font1.height;
|
|
237
237
|
var fontSize = font1.size;
|
|
@@ -239,7 +239,7 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
239
239
|
graphics.rotateTransform(-90);
|
|
240
240
|
graphics.translateTransform(-(page.getClientSize().height / 2), -40);
|
|
241
241
|
graphics.drawString(this.holidayLabel, font1, null, PdfBrushes.Black, 10, 10, null);
|
|
242
|
-
graphics.restore(
|
|
242
|
+
graphics.restore(state_1);
|
|
243
243
|
this.holidayCompleted = false;
|
|
244
244
|
}
|
|
245
245
|
if (this.fitHolidayCompleted) {
|
|
@@ -248,12 +248,12 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
248
248
|
var fontHieght = font1.height;
|
|
249
249
|
var fontSize = font1.size;
|
|
250
250
|
graphics.drawRectangle(null, holidayBrush, x + width / 2 - fontSize, y + pixelToPoint(height), fontSize, page.getClientSize().height);
|
|
251
|
-
var
|
|
251
|
+
var state_2 = graphics.save();
|
|
252
252
|
graphics.translateTransform(x + width + width / 2 - fontSize, 40);
|
|
253
253
|
graphics.rotateTransform(-90);
|
|
254
254
|
graphics.translateTransform(-(page.getClientSize().height / 2), -40);
|
|
255
255
|
graphics.drawString(this.holidayLabel, font1, null, PdfBrushes.Black, 10, 10, null);
|
|
256
|
-
graphics.restore(
|
|
256
|
+
graphics.restore(state_2);
|
|
257
257
|
this.fitHolidayCompleted = false;
|
|
258
258
|
}
|
|
259
259
|
var font = new PdfStandardFont(ganttStyle.fontFamily, e.fontSize, e.fontStyle);
|
|
@@ -264,6 +264,8 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
264
264
|
var pLeft = ganttStyle.timeline.padding ? eventArgs.timelineCell.padding.left : 0;
|
|
265
265
|
var pTop = ganttStyle.timeline.padding ? eventArgs.timelineCell.padding.top : 0;
|
|
266
266
|
/* eslint-disable-next-line */
|
|
267
|
+
var state = graphics.save();
|
|
268
|
+
graphics.setClip(new RectangleF(x, y, width, pixelToPoint(height)));
|
|
267
269
|
if (isTopTier) {
|
|
268
270
|
x = x + pLeft + 4;
|
|
269
271
|
}
|
|
@@ -271,6 +273,7 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
271
273
|
x = x + pLeft;
|
|
272
274
|
}
|
|
273
275
|
graphics.drawString(eventArgs.value, font, null, textBrush, x, y + pTop, pixelToPoint(width), pixelToPoint(height), e.format);
|
|
276
|
+
graphics.restore(state);
|
|
274
277
|
};
|
|
275
278
|
return PdfTimeline;
|
|
276
279
|
}());
|