@syncfusion/ej2-gantt 24.1.47 → 24.2.4
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 +20 -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 +29 -12
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +29 -12
- 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 +20 -20
- package/src/gantt/actions/dialog-edit.d.ts +1 -0
- package/src/gantt/actions/dialog-edit.js +7 -4
- package/src/gantt/base/gantt-chart.js +1 -1
- package/src/gantt/base/gantt.js +0 -3
- package/src/gantt/base/task-processor.js +1 -1
- package/src/gantt/export/pdf-base/pdf-grid-table.js +20 -3
- 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.
|
|
3
|
+
* version : 24.2.4
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@24.2.3",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-HoyReH09UNuKZybVo+r3qyujSMYtoBhR7BZlrEJjWe2cE3PNgXDiXHlVKRL+YhHwpoAq7j4pJ+L710k9LEAEzA==",
|
|
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.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-24.2.3.tgz",
|
|
27
|
+
"_shasum": "d038f7274fde23046fbe4ac726a913a69287029f",
|
|
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.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~24.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~24.
|
|
41
|
-
"@syncfusion/ej2-data": "~24.
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~24.
|
|
43
|
-
"@syncfusion/ej2-grids": "~24.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~24.
|
|
45
|
-
"@syncfusion/ej2-layouts": "~24.
|
|
46
|
-
"@syncfusion/ej2-lists": "~24.
|
|
47
|
-
"@syncfusion/ej2-navigations": "~24.
|
|
48
|
-
"@syncfusion/ej2-notifications": "~24.
|
|
49
|
-
"@syncfusion/ej2-popups": "~24.
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~24.
|
|
51
|
-
"@syncfusion/ej2-svg-base": "~24.
|
|
52
|
-
"@syncfusion/ej2-treegrid": "~24.
|
|
38
|
+
"@syncfusion/ej2-base": "~24.2.3",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~24.2.3",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~24.2.3",
|
|
41
|
+
"@syncfusion/ej2-data": "~24.2.3",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~24.2.4",
|
|
43
|
+
"@syncfusion/ej2-grids": "~24.2.4",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~24.2.4",
|
|
45
|
+
"@syncfusion/ej2-layouts": "~24.2.4",
|
|
46
|
+
"@syncfusion/ej2-lists": "~24.2.4",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~24.2.4",
|
|
48
|
+
"@syncfusion/ej2-notifications": "~24.2.4",
|
|
49
|
+
"@syncfusion/ej2-popups": "~24.2.3",
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~24.2.4",
|
|
51
|
+
"@syncfusion/ej2-svg-base": "~24.2.3",
|
|
52
|
+
"@syncfusion/ej2-treegrid": "~24.2.4"
|
|
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.
|
|
77
|
+
"version": "24.2.4",
|
|
78
78
|
"sideEffects": false
|
|
79
79
|
}
|
|
@@ -4,7 +4,7 @@ import { Dialog } from '@syncfusion/ej2-popups';
|
|
|
4
4
|
import { Tab } from '@syncfusion/ej2-navigations';
|
|
5
5
|
import { Grid, Edit, Toolbar as GridToolbar, Page, getObject } from '@syncfusion/ej2-grids';
|
|
6
6
|
import { ForeignKey, getActualProperties } from '@syncfusion/ej2-grids';
|
|
7
|
-
import { RichTextEditor, Toolbar as RTEToolbar, Link, HtmlEditor, QuickToolbar, Count } from '@syncfusion/ej2-richtexteditor';
|
|
7
|
+
import { RichTextEditor, Toolbar as RTEToolbar, Link, HtmlEditor, QuickToolbar, Count, Table } from '@syncfusion/ej2-richtexteditor';
|
|
8
8
|
import { TextBox, NumericTextBox, MaskedTextBox, FormValidator } from '@syncfusion/ej2-inputs';
|
|
9
9
|
import { CheckBox } from '@syncfusion/ej2-buttons';
|
|
10
10
|
import { DatePicker, DateTimePicker } from '@syncfusion/ej2-calendars';
|
|
@@ -1886,6 +1886,9 @@ var DialogEdit = /** @class */ (function () {
|
|
|
1886
1886
|
DialogEdit.prototype.createDivElement = function (className, id) {
|
|
1887
1887
|
return createElement('div', { className: className, id: id });
|
|
1888
1888
|
};
|
|
1889
|
+
DialogEdit.prototype.createFormElement = function (className, id) {
|
|
1890
|
+
return createElement('form', { className: className, id: id });
|
|
1891
|
+
};
|
|
1889
1892
|
DialogEdit.prototype.createInputElement = function (className, id, fieldName, type) {
|
|
1890
1893
|
return createElement(type || 'input', {
|
|
1891
1894
|
className: className, attrs: {
|
|
@@ -2000,7 +2003,7 @@ var DialogEdit = /** @class */ (function () {
|
|
|
2000
2003
|
DialogEdit.prototype.renderGeneralTab = function (itemName) {
|
|
2001
2004
|
var ganttObj = this.parent;
|
|
2002
2005
|
var itemModel = this.beforeOpenArgs[itemName];
|
|
2003
|
-
var divElement = this.
|
|
2006
|
+
var divElement = this.createFormElement('e-edit-form-row', ganttObj.element.id
|
|
2004
2007
|
+ '' + itemName + 'TabContainer');
|
|
2005
2008
|
for (var _i = 0, _a = Object.keys(itemModel); _i < _a.length; _i++) {
|
|
2006
2009
|
var key = _a[_i];
|
|
@@ -2282,7 +2285,7 @@ var DialogEdit = /** @class */ (function () {
|
|
|
2282
2285
|
inputModel.enableHtmlSanitizer = this.parent.enableHtmlSanitizer;
|
|
2283
2286
|
var ganttProp = this.editedRecord.ganttProperties;
|
|
2284
2287
|
var divElement = this.createDivElement('', ganttObj.element.id + '' + itemName + 'TabContainer');
|
|
2285
|
-
RichTextEditor.Inject(RTEToolbar, Link, HtmlEditor, QuickToolbar, Count);
|
|
2288
|
+
RichTextEditor.Inject(RTEToolbar, Link, HtmlEditor, QuickToolbar, Count, Table);
|
|
2286
2289
|
inputModel.value = ganttProp.notes;
|
|
2287
2290
|
var notesColumn = this.parent.columnByField[this.parent.taskFields.notes];
|
|
2288
2291
|
if (notesColumn.allowEditing === false || notesColumn.isPrimaryKey || this.parent.readOnly) {
|
|
@@ -2296,7 +2299,7 @@ var DialogEdit = /** @class */ (function () {
|
|
|
2296
2299
|
var _this = this;
|
|
2297
2300
|
var ganttId = this.parent.element.id;
|
|
2298
2301
|
var ganttData = this.editedRecord;
|
|
2299
|
-
var divElement = this.
|
|
2302
|
+
var divElement = this.createFormElement('e-edit-form-column');
|
|
2300
2303
|
var inputElement;
|
|
2301
2304
|
var editArgs = { column: column, data: ganttData };
|
|
2302
2305
|
if (!isNullOrUndefined(column.edit) && isNullOrUndefined(column.edit.params)) {
|
|
@@ -611,7 +611,7 @@ var GanttChart = /** @class */ (function () {
|
|
|
611
611
|
*/
|
|
612
612
|
GanttChart.prototype.ganttChartMove = function (e) {
|
|
613
613
|
if (this.parent.editSettings.allowTaskbarEditing) {
|
|
614
|
-
if (this.parent.element.getElementsByClassName('e-clone-taskbar').length > 0) {
|
|
614
|
+
if (this.parent.element.getElementsByClassName('e-clone-taskbar').length > 0 && !this.parent.enableRtl) {
|
|
615
615
|
var xValue = void 0;
|
|
616
616
|
if (e.type === 'touchmove' || e.type === 'touchstart' || e.type === 'touchend') {
|
|
617
617
|
xValue = e['changedTouches'][0].pageX;
|
package/src/gantt/base/gantt.js
CHANGED
|
@@ -229,9 +229,6 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
229
229
|
if (isNullOrUndefined(this.resourceFields.unit)) { //set resourceUnit as unit if not mapping
|
|
230
230
|
this.setProperties({ resourceFields: { unit: 'unit' } }, true);
|
|
231
231
|
}
|
|
232
|
-
if (!isNullOrUndefined(this.taskFields.work)) {
|
|
233
|
-
this.setProperties({ taskType: 'FixedWork' }, true);
|
|
234
|
-
}
|
|
235
232
|
this.taskIds = [];
|
|
236
233
|
};
|
|
237
234
|
/**
|
|
@@ -1246,7 +1246,7 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
1246
1246
|
if (this.getSecondsInDecimal(sDate) === this.parent.defaultStartTime && isValid) {
|
|
1247
1247
|
sDate.setHours(0, 0, 0, 0);
|
|
1248
1248
|
}
|
|
1249
|
-
if (this.getSecondsInDecimal(eDate) === this.parent.defaultEndTime) {
|
|
1249
|
+
if (this.getSecondsInDecimal(eDate) === this.parent.defaultEndTime && isValid) {
|
|
1250
1250
|
eDate.setHours(24);
|
|
1251
1251
|
}
|
|
1252
1252
|
if (this.getSecondsInDecimal(eDate) === this.parent.defaultStartTime) {
|
|
@@ -63,6 +63,12 @@ var PdfTreeGridCell = /** @class */ (function () {
|
|
|
63
63
|
if (typeof this.value === 'string') {
|
|
64
64
|
/* eslint-disable-next-line */
|
|
65
65
|
var font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, this.style.fontStyle);
|
|
66
|
+
if (this.row.isParentRow) {
|
|
67
|
+
font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, PdfFontStyle.Bold);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, this.style.fontStyle);
|
|
71
|
+
}
|
|
66
72
|
if (this.row.treegrid.ganttStyle.font) {
|
|
67
73
|
font = this.row.treegrid.ganttStyle.font;
|
|
68
74
|
}
|
|
@@ -98,13 +104,24 @@ var PdfTreeGridCell = /** @class */ (function () {
|
|
|
98
104
|
currentValue = !(isNullOrUndefined(this.remainingString) || this.remainingString === '') ? this.remainingString : this.value;
|
|
99
105
|
}
|
|
100
106
|
/* eslint-disable */
|
|
101
|
-
var font =
|
|
107
|
+
var font = null;
|
|
108
|
+
if (this.row.isParentRow) {
|
|
109
|
+
font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, PdfFontStyle.Bold);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
font = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, this.style.fontStyle);
|
|
113
|
+
}
|
|
102
114
|
if (this.row.treegrid.ganttStyle.font) {
|
|
103
115
|
font = this.row.treegrid.ganttStyle.font;
|
|
104
116
|
}
|
|
105
117
|
/* eslint-disable */
|
|
106
118
|
var slr = layouter.layout(currentValue, font, this.style.format, new SizeF(width, 0), false, new SizeF(0, 0));
|
|
107
|
-
|
|
119
|
+
if (currentValue.length > 80) {
|
|
120
|
+
height += slr.actualSize.height + 20;
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
height += slr.actualSize.height;
|
|
124
|
+
}
|
|
108
125
|
height += (this.style.borders.top.width + this.style.borders.bottom.width) * 2;
|
|
109
126
|
}
|
|
110
127
|
height += this.row.treegrid.style.cellPadding.top + this.row.treegrid.style.cellPadding.bottom;
|
|
@@ -196,7 +213,7 @@ var PdfTreeGridCell = /** @class */ (function () {
|
|
|
196
213
|
if (this.finishedDrawingCell) {
|
|
197
214
|
temp = (this.remainingString === '') ? this.remainingString : this.value;
|
|
198
215
|
/* eslint-disable-next-line */
|
|
199
|
-
graphics.drawString(temp, font, textPen, textBrush, (innerLayoutArea.x + leftAdjustment), this.isHeaderCell ? innerLayoutArea.y - 16 : innerLayoutArea.y, (innerLayoutArea.width - leftAdjustment - padding), (innerLayoutArea.height - padding), this.style.format);
|
|
216
|
+
graphics.drawString(temp, font, textPen, textBrush, (innerLayoutArea.x + leftAdjustment), this.isHeaderCell ? innerLayoutArea.y - 16 : innerLayoutArea.y - 3, (innerLayoutArea.width - leftAdjustment - padding), (innerLayoutArea.height - padding), this.style.format);
|
|
200
217
|
}
|
|
201
218
|
else {
|
|
202
219
|
/* eslint-disable-next-line */
|
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