@syncfusion/ej2-gantt 21.2.9 → 22.1.34
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/.eslintrc.json +1 -0
- package/CHANGELOG.md +23 -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 +751 -715
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +790 -755
- 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 +19 -18
- package/src/gantt/actions/connector-line-edit.js +21 -26
- package/src/gantt/actions/context-menu.js +2 -2
- package/src/gantt/actions/critical-path.js +4 -9
- package/src/gantt/actions/day-markers.js +4 -1
- package/src/gantt/actions/edit.js +9 -6
- package/src/gantt/actions/pdf-export.js +1 -1
- package/src/gantt/actions/taskbar-edit.d.ts +6 -0
- package/src/gantt/actions/taskbar-edit.js +120 -45
- package/src/gantt/base/css-constants.d.ts +5 -10
- package/src/gantt/base/css-constants.js +5 -10
- package/src/gantt/base/date-processor.js +10 -20
- package/src/gantt/base/enum.d.ts +215 -231
- package/src/gantt/base/gantt-chart.js +112 -5
- package/src/gantt/base/gantt-model.d.ts +6 -3
- package/src/gantt/base/gantt.d.ts +7 -3
- package/src/gantt/base/gantt.js +17 -13
- package/src/gantt/base/interface.d.ts +36 -1
- package/src/gantt/base/task-processor.js +21 -18
- package/src/gantt/base/tree-grid.js +1 -1
- package/src/gantt/export/export-helper.js +1 -0
- package/src/gantt/export/pdf-connector-line.d.ts +4 -4
- package/src/gantt/export/pdf-connector-line.js +11 -22
- package/src/gantt/export/pdf-gantt.d.ts +1 -2
- package/src/gantt/export/pdf-gantt.js +4 -4
- package/src/gantt/models/column.d.ts +8 -4
- package/src/gantt/models/edit-settings-model.d.ts +1 -0
- package/src/gantt/models/edit-settings.d.ts +1 -0
- package/src/gantt/models/filter-settings-model.d.ts +3 -0
- package/src/gantt/models/filter-settings.d.ts +3 -0
- package/src/gantt/models/search-settings-model.d.ts +1 -0
- package/src/gantt/models/search-settings.d.ts +1 -0
- package/src/gantt/models/sort-settings-model.d.ts +1 -0
- package/src/gantt/models/sort-settings.d.ts +1 -0
- package/src/gantt/models/tooltip-settings-model.d.ts +8 -4
- package/src/gantt/models/tooltip-settings.d.ts +8 -4
- package/src/gantt/renderer/chart-rows.d.ts +1 -1
- package/src/gantt/renderer/chart-rows.js +27 -65
- package/src/gantt/renderer/connector-line.d.ts +23 -0
- package/src/gantt/renderer/connector-line.js +287 -384
- package/src/gantt/renderer/edit-tooltip.js +4 -4
- package/src/gantt/renderer/nonworking-day.js +2 -2
- package/src/gantt/renderer/tooltip.d.ts +3 -3
- package/src/gantt/renderer/tooltip.js +103 -76
- package/styles/bootstrap-dark.css +27 -47
- package/styles/bootstrap.css +29 -49
- package/styles/bootstrap4.css +29 -49
- package/styles/bootstrap5-dark.css +27 -47
- package/styles/bootstrap5.css +27 -47
- package/styles/fabric-dark.css +27 -47
- package/styles/fabric.css +27 -47
- package/styles/fluent-dark.css +28 -47
- package/styles/fluent.css +28 -47
- package/styles/gantt/_layout.scss +53 -7
- package/styles/gantt/_material3-dark-definition.scss +1 -0
- package/styles/gantt/_material3-definition.scss +220 -0
- package/styles/gantt/_theme.scss +53 -53
- package/styles/gantt/bootstrap-dark.css +27 -47
- package/styles/gantt/bootstrap.css +29 -49
- package/styles/gantt/bootstrap4.css +29 -49
- package/styles/gantt/bootstrap5-dark.css +27 -47
- package/styles/gantt/bootstrap5.css +27 -47
- package/styles/gantt/fabric-dark.css +27 -47
- package/styles/gantt/fabric.css +27 -47
- package/styles/gantt/fluent-dark.css +28 -47
- package/styles/gantt/fluent.css +28 -47
- package/styles/gantt/highcontrast-light.css +27 -47
- package/styles/gantt/highcontrast.css +27 -47
- package/styles/gantt/icons/_material3-dark.scss +1 -0
- package/styles/gantt/material-dark.css +27 -47
- package/styles/gantt/material.css +27 -47
- package/styles/gantt/material3-dark.css +2184 -0
- package/styles/gantt/material3-dark.scss +23 -0
- package/styles/gantt/material3.css +2240 -0
- package/styles/gantt/material3.scss +23 -0
- package/styles/gantt/tailwind-dark.css +27 -47
- package/styles/gantt/tailwind.css +27 -47
- package/styles/highcontrast-light.css +27 -47
- package/styles/highcontrast.css +27 -47
- package/styles/material-dark.css +27 -47
- package/styles/material.css +27 -47
- package/styles/material3-dark.css +2184 -0
- package/styles/material3-dark.scss +3 -0
- package/styles/material3.css +2240 -0
- package/styles/material3.scss +3 -0
- package/styles/tailwind-dark.css +27 -47
- package/styles/tailwind.css +27 -47
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 22.1.34
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"_from": "@syncfusion/ej2-gantt@*",
|
|
3
3
|
"_id": "@syncfusion/ej2-gantt@21.2.8",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-EhE/zbDbsyf8hUtXYHwZAQ3cLvRuNfdT30nDDv1DDb8zUV5h9ubQSDffrGKzcteA298ZxgqJFBXzoMnLwnTjDw==",
|
|
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-
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-gantt/-/ej2-gantt-21.2.8.tgz",
|
|
27
|
+
"_shasum": "4ddaeaec8c5dd0d49ecadbbb803f5eafaca906c1",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,20 +35,21 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~
|
|
39
|
-
"@syncfusion/ej2-buttons": "~
|
|
40
|
-
"@syncfusion/ej2-calendars": "~
|
|
41
|
-
"@syncfusion/ej2-data": "~
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~
|
|
43
|
-
"@syncfusion/ej2-grids": "~
|
|
44
|
-
"@syncfusion/ej2-inputs": "~
|
|
45
|
-
"@syncfusion/ej2-layouts": "~
|
|
46
|
-
"@syncfusion/ej2-lists": "~
|
|
47
|
-
"@syncfusion/ej2-navigations": "~
|
|
48
|
-
"@syncfusion/ej2-notifications": "~
|
|
49
|
-
"@syncfusion/ej2-popups": "~
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~
|
|
51
|
-
"@syncfusion/ej2-
|
|
38
|
+
"@syncfusion/ej2-base": "~22.1.34",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~22.1.34",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~22.1.34",
|
|
41
|
+
"@syncfusion/ej2-data": "~22.1.34",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~22.1.34",
|
|
43
|
+
"@syncfusion/ej2-grids": "~22.1.34",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~22.1.34",
|
|
45
|
+
"@syncfusion/ej2-layouts": "~22.1.34",
|
|
46
|
+
"@syncfusion/ej2-lists": "~22.1.34",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~22.1.34",
|
|
48
|
+
"@syncfusion/ej2-notifications": "~22.1.34",
|
|
49
|
+
"@syncfusion/ej2-popups": "~22.1.34",
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~22.1.34",
|
|
51
|
+
"@syncfusion/ej2-svg-base": "~22.1.34",
|
|
52
|
+
"@syncfusion/ej2-treegrid": "~22.1.34"
|
|
52
53
|
},
|
|
53
54
|
"deprecated": false,
|
|
54
55
|
"description": "Essential JS 2 Gantt Component",
|
|
@@ -73,6 +74,6 @@
|
|
|
73
74
|
"url": "git+https://github.com/syncfusion/ej2-gantt.git"
|
|
74
75
|
},
|
|
75
76
|
"typings": "index.d.ts",
|
|
76
|
-
"version": "
|
|
77
|
+
"version": "22.1.34",
|
|
77
78
|
"sideEffects": false
|
|
78
79
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isNullOrUndefined, isUndefined
|
|
2
|
-
import {
|
|
1
|
+
import { isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
|
|
2
|
+
import { getValue, createElement, extend } from '@syncfusion/ej2-base';
|
|
3
3
|
import * as cls from '../base/css-constants';
|
|
4
4
|
import { parentsUntil, formatString, isScheduledTask, getIndex } from '../base/utils';
|
|
5
5
|
import { Dialog } from '@syncfusion/ej2-popups';
|
|
@@ -44,10 +44,11 @@ var ConnectorLineEdit = /** @class */ (function () {
|
|
|
44
44
|
* @private
|
|
45
45
|
*/
|
|
46
46
|
ConnectorLineEdit.prototype.getConnectorLineHoverElement = function (target) {
|
|
47
|
-
var isOnLine = parentsUntil(target, cls.
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
|
|
47
|
+
var isOnLine = parentsUntil(target, cls.connectorLineSVG);
|
|
48
|
+
var isArrow = parentsUntil(target, cls.connectorLineArrow);
|
|
49
|
+
var isCriticalLine = parentsUntil(target, cls.criticalConnectorLineSVG);
|
|
50
|
+
var isCriticalArrow = parentsUntil(target, cls.criticalConnectorArrowSVG);
|
|
51
|
+
if (isOnLine || isArrow || isCriticalLine || isCriticalArrow) {
|
|
51
52
|
return parentsUntil(target, cls.connectorLineContainer);
|
|
52
53
|
}
|
|
53
54
|
else {
|
|
@@ -81,16 +82,13 @@ var ConnectorLineEdit = /** @class */ (function () {
|
|
|
81
82
|
*/
|
|
82
83
|
ConnectorLineEdit.prototype.addHighlight = function (element) {
|
|
83
84
|
this.connectorLineElement = element;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
addClass(element.querySelectorAll('.' + cls.connectorLineLeftArrow), [cls.criticalConnectorLineLeftArrowHover]);
|
|
85
|
+
var pathElement = element.querySelector('.' + cls.connectorLineSVG);
|
|
86
|
+
var criticalElement = element.querySelector('.' + cls.criticalConnectorLineSVG);
|
|
87
|
+
if (pathElement) {
|
|
88
|
+
pathElement.setAttribute('stroke-width', '2');
|
|
89
89
|
}
|
|
90
90
|
else {
|
|
91
|
-
|
|
92
|
-
addClass(element.querySelectorAll('.' + cls.connectorLineRightArrow), [cls.connectorLineRightArrowHover]);
|
|
93
|
-
addClass(element.querySelectorAll('.' + cls.connectorLineLeftArrow), [cls.connectorLineLeftArrowHover]);
|
|
91
|
+
criticalElement.setAttribute('stroke-width', '2');
|
|
94
92
|
}
|
|
95
93
|
};
|
|
96
94
|
/**
|
|
@@ -100,17 +98,14 @@ var ConnectorLineEdit = /** @class */ (function () {
|
|
|
100
98
|
* @private
|
|
101
99
|
*/
|
|
102
100
|
ConnectorLineEdit.prototype.removeHighlight = function () {
|
|
103
|
-
if (
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
removeClass(this.connectorLineElement.querySelectorAll('.' + cls.connectorLineLeftArrow), [cls.criticalConnectorLineLeftArrowHover]);
|
|
101
|
+
if (this.connectorLineElement) {
|
|
102
|
+
var pathElement = this.connectorLineElement.querySelector('.' + cls.connectorLineSVG);
|
|
103
|
+
var criticalElement = this.connectorLineElement.querySelector('.' + cls.criticalConnectorLineSVG);
|
|
104
|
+
if (pathElement) {
|
|
105
|
+
pathElement.setAttribute('stroke-width', '1');
|
|
109
106
|
}
|
|
110
107
|
else {
|
|
111
|
-
|
|
112
|
-
removeClass(this.connectorLineElement.querySelectorAll('.' + cls.connectorLineRightArrow), [cls.connectorLineRightArrowHover]);
|
|
113
|
-
removeClass(this.connectorLineElement.querySelectorAll('.' + cls.connectorLineLeftArrow), [cls.connectorLineLeftArrowHover]);
|
|
108
|
+
criticalElement.setAttribute('stroke-width', '1');
|
|
114
109
|
}
|
|
115
110
|
this.connectorLineElement = null;
|
|
116
111
|
}
|
|
@@ -177,8 +172,8 @@ var ConnectorLineEdit = /** @class */ (function () {
|
|
|
177
172
|
this.parent.connectorLineModule.expandedRecords = this.parent.virtualScrollModule && this.parent.enableVirtualization ?
|
|
178
173
|
this.parent.updatedRecords : this.parent.getExpandedRecords(this.parent.updatedRecords);
|
|
179
174
|
var editedConnectorLineString = this.getEditedConnectorLineString(editedRecord);
|
|
180
|
-
this.parent.connectorLineModule.
|
|
181
|
-
this.parent.connectorLineModule.
|
|
175
|
+
this.parent.connectorLineModule.svgObject.innerHTML =
|
|
176
|
+
this.parent.connectorLineModule.svgObject.innerHTML + editedConnectorLineString;
|
|
182
177
|
};
|
|
183
178
|
ConnectorLineEdit.prototype.idFromPredecessor = function (pre) {
|
|
184
179
|
var preArray = pre.split(',');
|
|
@@ -826,9 +821,9 @@ var ConnectorLineEdit = /** @class */ (function () {
|
|
|
826
821
|
ConnectorLineEdit.prototype.validateTypes = function (ganttRecord, data) {
|
|
827
822
|
var predecessor = this.parent.predecessorModule.getValidPredecessor(ganttRecord);
|
|
828
823
|
var parentGanttRecord;
|
|
829
|
-
var ganttTaskData;
|
|
830
824
|
this.validationPredecessor = [];
|
|
831
825
|
var violatedParent;
|
|
826
|
+
var ganttTaskData;
|
|
832
827
|
var violateType;
|
|
833
828
|
var startDate = this.parent.predecessorModule.getPredecessorDate(ganttRecord, predecessor);
|
|
834
829
|
if (data) {
|
|
@@ -281,7 +281,7 @@ var ContextMenu = /** @class */ (function () {
|
|
|
281
281
|
splitTaskDuration = Math.ceil(currentTaskDifference / this.parent.timelineSettings.timelineUnitSize);
|
|
282
282
|
splitTaskDuration -= 1;
|
|
283
283
|
}
|
|
284
|
-
var contextMenuClickDate = this.parent.dataOperation.getEndDate(startDate, splitTaskDuration, (this.parent.
|
|
284
|
+
var contextMenuClickDate = this.parent.dataOperation.getEndDate(startDate, splitTaskDuration, (this.parent.timelineModule.customTimelineSettings.bottomTier.unit !== "None") ? this.parent.timelineModule.customTimelineSettings.bottomTier.unit.toLocaleLowerCase() : this.parent.timelineModule.customTimelineSettings.topTier.unit.toLocaleLowerCase(), this.rowData, false);
|
|
285
285
|
return contextMenuClickDate;
|
|
286
286
|
};
|
|
287
287
|
ContextMenu.prototype.contextMenuBeforeOpen = function (args) {
|
|
@@ -291,7 +291,7 @@ var ContextMenu = /** @class */ (function () {
|
|
|
291
291
|
this.parent.ganttChartModule.targetElement;
|
|
292
292
|
// Closed edited cell before opening context menu
|
|
293
293
|
// eslint-disable-next-line
|
|
294
|
-
if (!isNullOrUndefined(this.parent.editModule) && this.parent.editModule.cellEditModule && this.parent.editModule.cellEditModule.isCellEdit && target.parentElement.classList.contains('e-row')
|
|
294
|
+
if (!isNullOrUndefined(this.parent.editModule) && this.parent.editModule.cellEditModule && this.parent.editModule.cellEditModule.isCellEdit && target.parentElement.classList.contains('e-row')) {
|
|
295
295
|
this.parent.treeGrid.closeEdit();
|
|
296
296
|
}
|
|
297
297
|
if (!isNullOrUndefined(args.element) && args.element.id === this.parent.element.id + '_contextmenu') {
|
|
@@ -737,11 +737,8 @@ var CriticalPath = /** @class */ (function () {
|
|
|
737
737
|
}
|
|
738
738
|
if (element && (this_2.parent.viewType === 'ProjectView' || (this_2.parent.viewType === 'ResourceView' &&
|
|
739
739
|
!criticalData.hasChildRecords))) {
|
|
740
|
-
if (element.getElementsByClassName('e-milestone
|
|
741
|
-
addClass(element.querySelectorAll('.e-milestone
|
|
742
|
-
}
|
|
743
|
-
if (element.getElementsByClassName('e-milestone-bottom')[0]) {
|
|
744
|
-
addClass(element.querySelectorAll('.e-milestone-bottom'), cls.criticalMilestoneBottom);
|
|
740
|
+
if (element.getElementsByClassName('e-gantt-milestone')[0]) {
|
|
741
|
+
addClass(element.querySelectorAll('.e-gantt-milestone'), cls.criticalMilestone);
|
|
745
742
|
}
|
|
746
743
|
if (element.getElementsByClassName('e-gantt-child-taskbar-inner-div').length > 0) {
|
|
747
744
|
addClass(element.querySelectorAll('.e-gantt-child-taskbar-inner-div'), cls.criticalChildTaskBarInnerDiv);
|
|
@@ -783,11 +780,9 @@ var CriticalPath = /** @class */ (function () {
|
|
|
783
780
|
currentdata['taskid'] + 'child' + checkint);
|
|
784
781
|
if (lineElement.length > 0) {
|
|
785
782
|
addClass(this.parent.element.querySelectorAll('#ConnectorLineparent' + currentdata['taskid'] + 'child' +
|
|
786
|
-
checkint)[0].querySelectorAll('.e-line'), cls.
|
|
787
|
-
addClass(this.parent.element.querySelectorAll('#ConnectorLineparent' + currentdata['taskid'] + 'child' +
|
|
788
|
-
checkint)[0].querySelectorAll('.e-connector-line-right-arrow'), cls.criticalConnectorLineRightArrow);
|
|
783
|
+
checkint)[0].querySelectorAll('.e-connector-line'), cls.criticalConnectorLineSVG);
|
|
789
784
|
addClass(this.parent.element.querySelectorAll('#ConnectorLineparent' + currentdata['taskid'] + 'child' +
|
|
790
|
-
checkint)[0].querySelectorAll('.e-connector-line-
|
|
785
|
+
checkint)[0].querySelectorAll('.e-connector-line-arrow'), cls.criticalConnectorArrowSVG);
|
|
791
786
|
}
|
|
792
787
|
}
|
|
793
788
|
}
|
|
@@ -37,9 +37,12 @@ var DayMarkers = /** @class */ (function () {
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
DayMarkers.prototype.refreshMarkers = function () {
|
|
40
|
-
this.eventMarkerRender.renderEventMarkers();
|
|
41
40
|
this.nonworkingDayRender.renderWeekends();
|
|
42
41
|
this.nonworkingDayRender.renderHolidays();
|
|
42
|
+
if (this.parent.gridLines === 'Vertical' || this.parent.gridLines === 'Both') {
|
|
43
|
+
this.parent['renderChartVerticalLines']();
|
|
44
|
+
}
|
|
45
|
+
this.eventMarkerRender.renderEventMarkers();
|
|
43
46
|
};
|
|
44
47
|
DayMarkers.prototype.updateHeight = function () {
|
|
45
48
|
this.nonworkingDayRender.updateContainerHeight();
|
|
@@ -917,6 +917,10 @@ var Edit = /** @class */ (function () {
|
|
|
917
917
|
if (data.hasChildRecords && ganttProp.isAutoSchedule) {
|
|
918
918
|
this.parent.setRecordValue('startDate', ganttProp.autoStartDate, ganttProp, true);
|
|
919
919
|
this.parent.setRecordValue('endDate', ganttProp.autoEndDate, ganttProp, true);
|
|
920
|
+
this.parent.setRecordValue('StartDate', ganttProp.autoStartDate, data, true);
|
|
921
|
+
this.parent.setRecordValue('EndDate', ganttProp.autoEndDate, data, true);
|
|
922
|
+
this.parent.setRecordValue('taskData.StartDate', ganttProp.autoStartDate, data, true);
|
|
923
|
+
this.parent.setRecordValue('taskData.EndDate', ganttProp.autoEndDate, data, true);
|
|
920
924
|
this.parent.setRecordValue('width', this.parent.dataOperation.calculateWidth(data, true), ganttProp, true);
|
|
921
925
|
this.parent.setRecordValue('left', this.parent.dataOperation.calculateLeft(ganttProp, true), ganttProp, true);
|
|
922
926
|
this.parent.setRecordValue('progressWidth', this.parent.dataOperation.getProgressWidth(ganttProp.width, ganttProp.progress), ganttProp, true);
|
|
@@ -925,8 +929,8 @@ var Edit = /** @class */ (function () {
|
|
|
925
929
|
else if (data.hasChildRecords && !ganttProp.isAutoSchedule) {
|
|
926
930
|
this.parent.dataOperation.updateWidthLeft(data);
|
|
927
931
|
this.parent.dataOperation.calculateDuration(data);
|
|
928
|
-
this.parent.setRecordValue('autoStartDate', ganttProp.
|
|
929
|
-
this.parent.setRecordValue('autoEndDate', ganttProp.
|
|
932
|
+
this.parent.setRecordValue('autoStartDate', ganttProp.autoStartDate, ganttProp, true);
|
|
933
|
+
this.parent.setRecordValue('autoEndDate', ganttProp.autoEndDate, ganttProp, true);
|
|
930
934
|
this.parent.setRecordValue('autoDuration', this.parent.dataOperation.calculateAutoDuration(data), ganttProp, true);
|
|
931
935
|
this.parent.dataOperation.updateAutoWidthLeft(data);
|
|
932
936
|
}
|
|
@@ -1151,7 +1155,6 @@ var Edit = /** @class */ (function () {
|
|
|
1151
1155
|
}
|
|
1152
1156
|
if (childRecords.length) {
|
|
1153
1157
|
this.parent.dataOperation.updateParentItems(ganttRecord, true);
|
|
1154
|
-
this.parent.dataOperation.updateGanttData();
|
|
1155
1158
|
}
|
|
1156
1159
|
};
|
|
1157
1160
|
/**
|
|
@@ -1364,8 +1367,8 @@ var Edit = /** @class */ (function () {
|
|
|
1364
1367
|
}
|
|
1365
1368
|
}
|
|
1366
1369
|
if (this.parent.isConnectorLineUpdate && !isNullOrUndefined(this.parent.connectorLineEditModule)) {
|
|
1367
|
-
this.parent.updatedConnectorLineCollection = [];
|
|
1368
|
-
this.parent.connectorLineIds = [];
|
|
1370
|
+
// this.parent.updatedConnectorLineCollection = [];
|
|
1371
|
+
// this.parent.connectorLineIds = [];
|
|
1369
1372
|
this.parent.connectorLineEditModule.refreshEditedRecordConnectorLine(this.parent.editedRecords);
|
|
1370
1373
|
this.updateScheduleDatesOnEditing(args);
|
|
1371
1374
|
}
|
|
@@ -2744,6 +2747,7 @@ var Edit = /** @class */ (function () {
|
|
|
2744
2747
|
this.parent.treeGrid.parentData = [];
|
|
2745
2748
|
this.parent.addDeleteRecord = true;
|
|
2746
2749
|
this.parent.selectedRowIndex = 0;
|
|
2750
|
+
this.parent.treeGrid['isAddedFromGantt'] = true;
|
|
2747
2751
|
this.parent.treeGrid.refresh();
|
|
2748
2752
|
if (this.parent.enableImmutableMode) {
|
|
2749
2753
|
this.parent.modifiedRecords = args.modifiedRecords;
|
|
@@ -2893,7 +2897,6 @@ var Edit = /** @class */ (function () {
|
|
|
2893
2897
|
var args = {};
|
|
2894
2898
|
args = this.constructTaskAddedEventArgs(cAddedRecord_1, this.parent.editedRecords, 'beforeAdd');
|
|
2895
2899
|
this.parent.trigger('actionBegin', args, function (args) {
|
|
2896
|
-
_this.parent.previousRecords = {};
|
|
2897
2900
|
if (!isNullOrUndefined(_this.parent.loadingIndicator) && _this.parent.loadingIndicator.indicatorType === "Shimmer") {
|
|
2898
2901
|
_this.parent.showMaskRow();
|
|
2899
2902
|
}
|
|
@@ -115,7 +115,7 @@ var PdfExport = /** @class */ (function () {
|
|
|
115
115
|
var format = new PdfTreeGridLayoutFormat();
|
|
116
116
|
format.break = PdfLayoutBreakType.FitElement;
|
|
117
117
|
var layouter = _this.gantt.drawGrid(pdfPage, 0, 0, format);
|
|
118
|
-
_this.gantt.drawChart(layouter
|
|
118
|
+
_this.gantt.drawChart(layouter);
|
|
119
119
|
if (!isMultipleExport) {
|
|
120
120
|
if (!_this.isBlob) {
|
|
121
121
|
// save the PDF
|
|
@@ -52,6 +52,12 @@ export declare class TaskbarEdit extends DateProcessor {
|
|
|
52
52
|
topValue: number;
|
|
53
53
|
draggedRecordMarginTop: number;
|
|
54
54
|
dragMoveY: number;
|
|
55
|
+
private realTaskbarElement;
|
|
56
|
+
private cloneTaskbarElement;
|
|
57
|
+
private taskbarElement;
|
|
58
|
+
private taskbarResizer;
|
|
59
|
+
private currentIndex;
|
|
60
|
+
private currentData;
|
|
55
61
|
constructor(ganttObj?: Gantt);
|
|
56
62
|
private wireEvents;
|
|
57
63
|
/**
|