@syncfusion/ej2-gantt 24.2.8 → 24.2.9

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.8
3
+ * version : 24.2.9
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.2.7",
3
+ "_id": "@syncfusion/ej2-gantt@24.2.8",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-3AGEjY04my/08ZHFZqlEAtMNXVuY0fevAT6eeSrfO1AuMjVJDIP+WQpW84I3XqDdnJXzEyKADEMArwv9j0ezYA==",
5
+ "_integrity": "sha512-xnbjCw726UKHbpGDEoiWYxcruRlt/R/Nljn9yzbuYtI8wqDJ3ArJG1ubaJawDpr2C5UzkUjP0DoKkl6EpJfhmQ==",
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.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-24.2.7.tgz",
27
- "_shasum": "e0c70b260e7a97016d1d6cf1ae3a4623f5eba2df",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-24.2.8.tgz",
27
+ "_shasum": "53883ef2d42b9745316df5591517fa8a8b06d173",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
30
30
  "author": {
@@ -37,19 +37,19 @@
37
37
  "dependencies": {
38
38
  "@syncfusion/ej2-base": "~24.2.7",
39
39
  "@syncfusion/ej2-buttons": "~24.2.7",
40
- "@syncfusion/ej2-calendars": "~24.2.8",
40
+ "@syncfusion/ej2-calendars": "~24.2.9",
41
41
  "@syncfusion/ej2-data": "~24.2.3",
42
- "@syncfusion/ej2-dropdowns": "~24.2.8",
43
- "@syncfusion/ej2-grids": "~24.2.8",
44
- "@syncfusion/ej2-inputs": "~24.2.7",
42
+ "@syncfusion/ej2-dropdowns": "~24.2.9",
43
+ "@syncfusion/ej2-grids": "~24.2.9",
44
+ "@syncfusion/ej2-inputs": "~24.2.9",
45
45
  "@syncfusion/ej2-layouts": "~24.2.4",
46
46
  "@syncfusion/ej2-lists": "~24.2.8",
47
47
  "@syncfusion/ej2-navigations": "~24.2.8",
48
48
  "@syncfusion/ej2-notifications": "~24.2.4",
49
- "@syncfusion/ej2-popups": "~24.2.8",
50
- "@syncfusion/ej2-richtexteditor": "~24.2.8",
49
+ "@syncfusion/ej2-popups": "~24.2.9",
50
+ "@syncfusion/ej2-richtexteditor": "~24.2.9",
51
51
  "@syncfusion/ej2-svg-base": "~24.2.3",
52
- "@syncfusion/ej2-treegrid": "~24.2.8"
52
+ "@syncfusion/ej2-treegrid": "~24.2.9"
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.8",
77
+ "version": "24.2.9",
78
78
  "sideEffects": false
79
79
  }
@@ -2459,7 +2459,7 @@ var Edit = /** @class */ (function () {
2459
2459
  var fromRecord = this.parent.getRecordByID(predecessorCollection[count].from);
2460
2460
  var toRecord = this.parent.getRecordByID(predecessorCollection[count].to);
2461
2461
  validPredecessor = this.parent.connectorLineEditModule.validateParentPredecessor(fromRecord, toRecord);
2462
- if (!validPredecessor) {
2462
+ if (!validPredecessor || !this.parent.allowParentDependency) {
2463
2463
  if (predecessorCollection[count].to === parentRecordTaskData.rowUniqueID.toString()) {
2464
2464
  childRecord = this.parent.getRecordByID(predecessorCollection[count].from);
2465
2465
  predecessorIndex = getIndex(predecessorCollection[count], 'from', childRecord.ganttProperties.predecessor, 'to');
@@ -2485,7 +2485,7 @@ var Edit = /** @class */ (function () {
2485
2485
  }
2486
2486
  }
2487
2487
  }
2488
- if (!validPredecessor) {
2488
+ if (!validPredecessor || !this.parent.allowParentDependency) {
2489
2489
  this.parent.setRecordValue('predecessor', updatedPredecessor, parentRecord.ganttProperties, true);
2490
2490
  this.parent.setRecordValue('predecessorsName', '', parentRecord.ganttProperties, true);
2491
2491
  }
@@ -2727,14 +2727,15 @@ var Edit = /** @class */ (function () {
2727
2727
  }
2728
2728
  var _loop_3 = function (i) {
2729
2729
  var originalData = this_3.parent.modifiedRecords[i];
2730
- var treeIndex = this_3.parent.allowRowDragAndDrop ? 1 : 0;
2730
+ var treeIndex = this_3.parent.rowDragAndDropModule && this_3.parent.allowRowDragAndDrop ? 1 : 0;
2731
2731
  var uniqueTaskID = this_3.parent.taskFields.id;
2732
2732
  var originalIndex = this_3.parent.currentViewData.findIndex(function (data) {
2733
2733
  return (data[uniqueTaskID] === originalData[uniqueTaskID]);
2734
2734
  });
2735
2735
  if (this_3.parent.treeGrid.getRows()[originalIndex]) {
2736
+ var row = this_3.parent.treeGrid.grid.getRowObjectFromUID(this_3.parent.treeGrid.grid.getDataRows()[originalIndex].getAttribute('data-uid'));
2736
2737
  this_3.parent.treeGrid.renderModule.cellRender({
2737
- data: originalData, cell: this_3.parent.treeGrid.getRows()[originalIndex].cells[this_3.parent.treeColumnIndex + treeIndex],
2738
+ data: row.data, cell: this_3.parent.treeGrid.getRows()[originalIndex].cells[this_3.parent.treeColumnIndex + treeIndex],
2738
2739
  column: this_3.parent.treeGrid.grid.getColumns()[this_3.parent.treeColumnIndex],
2739
2740
  requestType: 'rowDragAndDrop'
2740
2741
  });
@@ -2414,7 +2414,7 @@ var TaskProcessor = /** @class */ (function (_super) {
2414
2414
  var deleteUpdate = false;
2415
2415
  var ganttProp = parentData.ganttProperties;
2416
2416
  if (this.parent.autoCalculateDateScheduling || this.parent.viewType === "ResourceView") {
2417
- if (parentData.childRecords.length > 0) {
2417
+ if (parentData.childRecords && parentData.childRecords.length > 0) {
2418
2418
  var previousStartDate = ganttProp.isAutoSchedule ? ganttProp.startDate : ganttProp.autoStartDate;
2419
2419
  var previousEndDate = ganttProp.isAutoSchedule ? ganttProp.endDate :
2420
2420
  ganttProp.autoEndDate;
@@ -100,7 +100,7 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
100
100
  progressFormat.alignment = PdfTextAlignment.Right;
101
101
  var isLabelString = false;
102
102
  var updatedWidth;
103
- if (!isNullOrUndefined(this.taskLabel) && (/^[a-zA-Z]/.test(this.taskLabel))) {
103
+ if (!isNullOrUndefined(this.taskLabel) && (/^[a-zA-Z0-9]/.test(this.taskLabel))) {
104
104
  isLabelString = true;
105
105
  progressFormat.alignment = PdfTextAlignment.Left;
106
106
  }
@@ -81,12 +81,6 @@ var PdfTimeline = /** @class */ (function () {
81
81
  }
82
82
  //Secondary header Event Arguments
83
83
  /* eslint-disable-next-line */
84
- if (!this.parent.pdfExportModule.gantt.taskbar.isAutoFit() && this.parent.timelineModule.bottomTier !== "Day") {
85
- var unit = this.parent.perDayWidth;
86
- if (width < unit || (width > unit)) {
87
- width = unit;
88
- }
89
- }
90
84
  this.triggerQueryTimelinecell(page, this.bottomTierPoint.x, this.bottomTierPoint.y, this.bottomTierHeight, width, secondHeader.value, false, secondHeader.startDate);
91
85
  this.bottomTierPoint.x = (this.parent.pdfExportModule.gantt.taskbar.isAutoFit()) ? this.bottomTierPoint.x + width : this.bottomTierPoint.x + pixelToPoint(width);
92
86
  remainWidth -= width;
@@ -122,7 +122,15 @@ var Timeline = /** @class */ (function () {
122
122
  var currentZoomingLevel = this.checkCurrentZoomingLevel();
123
123
  this.isZoomIn = isZoomIn;
124
124
  this.isZooming = true;
125
- var currentLevel = isZoomIn ? currentZoomingLevel + 1 : currentZoomingLevel - 1;
125
+ var currentLevel;
126
+ var level = isZoomIn ? currentZoomingLevel + 1 : currentZoomingLevel - 1;
127
+ var foundLevel = this.parent.zoomingLevels.find(function (tempLevel) { return tempLevel.level === level; });
128
+ if (foundLevel) {
129
+ currentLevel = level;
130
+ }
131
+ else {
132
+ currentLevel = currentZoomingLevel;
133
+ }
126
134
  if (this.parent.toolbarModule) {
127
135
  if (isZoomIn) {
128
136
  if (currentLevel === this.parent.zoomingLevels[this.parent.zoomingLevels.length - 1].level) {