@syncfusion/ej2-gantt 24.2.3 → 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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 24.2.3
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.1.47",
3
+ "_id": "@syncfusion/ej2-gantt@24.2.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-aHFD/Y9k33Z6sCbDuptKxMmfGdbJej9yp4ABSvk20uPxEQxYRLMm8bcNJM7G6q/TMGLcAHqteBUBSRGO/pf2UQ==",
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.1.47.tgz",
27
- "_shasum": "83f0370855b39c1c307949bbf6759ae121de6166",
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": {
@@ -39,17 +39,17 @@
39
39
  "@syncfusion/ej2-buttons": "~24.2.3",
40
40
  "@syncfusion/ej2-calendars": "~24.2.3",
41
41
  "@syncfusion/ej2-data": "~24.2.3",
42
- "@syncfusion/ej2-dropdowns": "~24.2.3",
43
- "@syncfusion/ej2-grids": "~24.2.3",
44
- "@syncfusion/ej2-inputs": "~24.2.3",
45
- "@syncfusion/ej2-layouts": "~24.2.3",
46
- "@syncfusion/ej2-lists": "~24.2.3",
47
- "@syncfusion/ej2-navigations": "~24.2.3",
48
- "@syncfusion/ej2-notifications": "~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
49
  "@syncfusion/ej2-popups": "~24.2.3",
50
- "@syncfusion/ej2-richtexteditor": "~24.2.3",
50
+ "@syncfusion/ej2-richtexteditor": "~24.2.4",
51
51
  "@syncfusion/ej2-svg-base": "~24.2.3",
52
- "@syncfusion/ej2-treegrid": "~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.2.3",
77
+ "version": "24.2.4",
78
78
  "sideEffects": false
79
79
  }
@@ -191,6 +191,7 @@ export declare class DialogEdit {
191
191
  private getResourcesModel;
192
192
  private getNotesModel;
193
193
  private createDivElement;
194
+ private createFormElement;
194
195
  private createInputElement;
195
196
  private renderTabItems;
196
197
  private segmentGridActionBegin;
@@ -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.createDivElement('e-edit-form-row', ganttObj.element.id
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];
@@ -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.createDivElement('e-edit-form-column');
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;
@@ -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
  /**
@@ -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 = new PdfStandardFont(this.row.treegrid.ganttStyle.fontFamily, this.style.fontSize, this.style.fontStyle);
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
- height += slr.actualSize.height;
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 */