@syncfusion/ej2-gantt 19.3.47 → 19.3.48
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.umd.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +32 -1
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +82 -42
- 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/context-menu.js +5 -0
- package/src/gantt/actions/rowdragdrop.js +74 -41
- package/src/gantt/actions/taskbar-edit.js +3 -1
|
@@ -16139,6 +16139,7 @@ class TaskbarEdit extends DateProcessor {
|
|
|
16139
16139
|
showHideTaskBarEditingElements(element, secondElement, fadeConnectorLine) {
|
|
16140
16140
|
secondElement = secondElement ? secondElement : this.editElement;
|
|
16141
16141
|
let isShowProgressResizer = this.parent.taskFields.progress ? true : false;
|
|
16142
|
+
let isShowConnectorPoints = true;
|
|
16142
16143
|
if (this.parent.readOnly) {
|
|
16143
16144
|
return;
|
|
16144
16145
|
}
|
|
@@ -16148,6 +16149,7 @@ class TaskbarEdit extends DateProcessor {
|
|
|
16148
16149
|
if (!isNullOrUndefined(parentRecord)) {
|
|
16149
16150
|
if (!parentRecord.expanded) {
|
|
16150
16151
|
isShowProgressResizer = false;
|
|
16152
|
+
isShowConnectorPoints = false;
|
|
16151
16153
|
}
|
|
16152
16154
|
}
|
|
16153
16155
|
}
|
|
@@ -16174,7 +16176,7 @@ class TaskbarEdit extends DateProcessor {
|
|
|
16174
16176
|
if (!isNullOrUndefined(this.parent.taskFields.dependency)
|
|
16175
16177
|
&& (element.querySelector('.' + connectorPointLeft)
|
|
16176
16178
|
|| element.parentElement.querySelector('.' + connectorPointLeft))
|
|
16177
|
-
&&
|
|
16179
|
+
&& isShowConnectorPoints) {
|
|
16178
16180
|
const connectorElement = !isNullOrUndefined(element.querySelector('.' + connectorPointLeft)) ?
|
|
16179
16181
|
element : element.parentElement;
|
|
16180
16182
|
addClass([connectorElement.querySelector('.' + connectorPointLeft)], [connectorPointLeftHover]);
|
|
@@ -26059,6 +26061,11 @@ class ContextMenu$2 {
|
|
|
26059
26061
|
const target = args.event ? args.event.target :
|
|
26060
26062
|
!this.parent.focusModule ? this.parent.focusModule.getActiveElement() :
|
|
26061
26063
|
this.parent.ganttChartModule.targetElement;
|
|
26064
|
+
// Closed edited cell before opening context menu
|
|
26065
|
+
// eslint-disable-next-line
|
|
26066
|
+
if (!isNullOrUndefined(this.parent.editModule) && this.parent.editModule.cellEditModule && this.parent.editModule.cellEditModule.isCellEdit && target.parentElement.classList.contains('e-row')) {
|
|
26067
|
+
this.parent.treeGrid.closeEdit();
|
|
26068
|
+
}
|
|
26062
26069
|
if (!isNullOrUndefined(args.element) && args.element.id === this.parent.element.id + '_contextmenu') {
|
|
26063
26070
|
this.clickedPosition = getValue('event', args).clientX;
|
|
26064
26071
|
}
|
|
@@ -26818,6 +26825,30 @@ class RowDD$1 {
|
|
|
26818
26825
|
this.updateParentRecords.push(draggedRecord.parentItem);
|
|
26819
26826
|
}
|
|
26820
26827
|
}
|
|
26828
|
+
if (!this.parent.enableVirtualization) {
|
|
26829
|
+
let data = gObj.flatData;
|
|
26830
|
+
let startIndex;
|
|
26831
|
+
let endIndex;
|
|
26832
|
+
if (draggedRecord.index < droppedRecord.index) {
|
|
26833
|
+
startIndex = draggedRecord.index;
|
|
26834
|
+
endIndex = droppedRecord.index;
|
|
26835
|
+
}
|
|
26836
|
+
else {
|
|
26837
|
+
startIndex = droppedRecord.index;
|
|
26838
|
+
endIndex = draggedRecord.index;
|
|
26839
|
+
}
|
|
26840
|
+
for (let i = startIndex; i <= endIndex; i++) {
|
|
26841
|
+
if (!isNullOrUndefined(data[i])) {
|
|
26842
|
+
data[i].index = i;
|
|
26843
|
+
if (!isNullOrUndefined(data[i].parentItem)) {
|
|
26844
|
+
let updatedParent = data.filter((e) => {
|
|
26845
|
+
return e.uniqueID === data[i].parentUniqueID;
|
|
26846
|
+
})[0];
|
|
26847
|
+
data[i].parentItem.index = updatedParent.index;
|
|
26848
|
+
}
|
|
26849
|
+
}
|
|
26850
|
+
}
|
|
26851
|
+
}
|
|
26821
26852
|
gObj.rowDragAndDropModule.refreshDataSource();
|
|
26822
26853
|
}
|
|
26823
26854
|
if (this.dropPosition === 'middleSegment') {
|