@syncfusion/ej2-gantt 19.3.47 → 19.3.56
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 +35 -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 +38 -3
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +88 -44
- 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 +18 -18
- package/src/gantt/actions/context-menu.js +6 -1
- package/src/gantt/actions/dialog-edit.js +3 -1
- package/src/gantt/actions/rowdragdrop.js +74 -41
- package/src/gantt/actions/taskbar-edit.js +3 -1
- package/src/gantt/base/gantt.js +2 -0
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark.css +2 -1
- package/styles/bootstrap5.css +2 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.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 +2 -1
- package/styles/gantt/bootstrap5.css +2 -1
- package/styles/gantt/fabric-dark.css +1 -1
- package/styles/gantt/fabric.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/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/tailwind-dark.css +1 -1
- package/styles/tailwind.css +1 -1
|
@@ -12272,6 +12272,8 @@ let Gantt = class Gantt extends Component {
|
|
|
12272
12272
|
renderGantt(isChange) {
|
|
12273
12273
|
// predecessor calculation
|
|
12274
12274
|
if (this.predecessorModule && this.taskFields.dependency) {
|
|
12275
|
+
this.predecessorModule['parentIds'] = [];
|
|
12276
|
+
this.predecessorModule['parentRecord'] = [];
|
|
12275
12277
|
this.predecessorModule.updatePredecessors();
|
|
12276
12278
|
if (this.isInPredecessorValidation && this.enableValidation) {
|
|
12277
12279
|
this.predecessorModule.updatedRecordsDateByPredecessor();
|
|
@@ -16139,6 +16141,7 @@ class TaskbarEdit extends DateProcessor {
|
|
|
16139
16141
|
showHideTaskBarEditingElements(element, secondElement, fadeConnectorLine) {
|
|
16140
16142
|
secondElement = secondElement ? secondElement : this.editElement;
|
|
16141
16143
|
let isShowProgressResizer = this.parent.taskFields.progress ? true : false;
|
|
16144
|
+
let isShowConnectorPoints = true;
|
|
16142
16145
|
if (this.parent.readOnly) {
|
|
16143
16146
|
return;
|
|
16144
16147
|
}
|
|
@@ -16148,6 +16151,7 @@ class TaskbarEdit extends DateProcessor {
|
|
|
16148
16151
|
if (!isNullOrUndefined(parentRecord)) {
|
|
16149
16152
|
if (!parentRecord.expanded) {
|
|
16150
16153
|
isShowProgressResizer = false;
|
|
16154
|
+
isShowConnectorPoints = false;
|
|
16151
16155
|
}
|
|
16152
16156
|
}
|
|
16153
16157
|
}
|
|
@@ -16174,7 +16178,7 @@ class TaskbarEdit extends DateProcessor {
|
|
|
16174
16178
|
if (!isNullOrUndefined(this.parent.taskFields.dependency)
|
|
16175
16179
|
&& (element.querySelector('.' + connectorPointLeft)
|
|
16176
16180
|
|| element.parentElement.querySelector('.' + connectorPointLeft))
|
|
16177
|
-
&&
|
|
16181
|
+
&& isShowConnectorPoints) {
|
|
16178
16182
|
const connectorElement = !isNullOrUndefined(element.querySelector('.' + connectorPointLeft)) ?
|
|
16179
16183
|
element : element.parentElement;
|
|
16180
16184
|
addClass([connectorElement.querySelector('.' + connectorPointLeft)], [connectorPointLeftHover]);
|
|
@@ -17771,7 +17775,8 @@ class DialogEdit {
|
|
|
17771
17775
|
datetimepickeredit: DateTimePicker,
|
|
17772
17776
|
maskededit: MaskedTextBox,
|
|
17773
17777
|
numericedit: NumericTextBox,
|
|
17774
|
-
stringedit: TextBox
|
|
17778
|
+
stringedit: TextBox,
|
|
17779
|
+
defaultedit: TextBox
|
|
17775
17780
|
};
|
|
17776
17781
|
this.processDialogFields();
|
|
17777
17782
|
this.wireEvents();
|
|
@@ -18423,6 +18428,7 @@ class DialogEdit {
|
|
|
18423
18428
|
fieldsModel[column.field] = checkboxModel;
|
|
18424
18429
|
break;
|
|
18425
18430
|
}
|
|
18431
|
+
case 'defaultedit':
|
|
18426
18432
|
case 'stringedit':
|
|
18427
18433
|
{
|
|
18428
18434
|
const textBox = common;
|
|
@@ -26059,6 +26065,11 @@ class ContextMenu$2 {
|
|
|
26059
26065
|
const target = args.event ? args.event.target :
|
|
26060
26066
|
!this.parent.focusModule ? this.parent.focusModule.getActiveElement() :
|
|
26061
26067
|
this.parent.ganttChartModule.targetElement;
|
|
26068
|
+
// Closed edited cell before opening context menu
|
|
26069
|
+
// eslint-disable-next-line
|
|
26070
|
+
if (!isNullOrUndefined(this.parent.editModule) && this.parent.editModule.cellEditModule && this.parent.editModule.cellEditModule.isCellEdit && target.parentElement.classList.contains('e-row')) {
|
|
26071
|
+
this.parent.treeGrid.closeEdit();
|
|
26072
|
+
}
|
|
26062
26073
|
if (!isNullOrUndefined(args.element) && args.element.id === this.parent.element.id + '_contextmenu') {
|
|
26063
26074
|
this.clickedPosition = getValue('event', args).clientX;
|
|
26064
26075
|
}
|
|
@@ -26298,7 +26309,7 @@ class ContextMenu$2 {
|
|
|
26298
26309
|
}
|
|
26299
26310
|
contextMenuOpen(args) {
|
|
26300
26311
|
this.isOpen = true;
|
|
26301
|
-
const firstMenuItem = args.element.querySelectorAll('li:not(.e-menu-hide)')[0];
|
|
26312
|
+
const firstMenuItem = args.element.querySelectorAll('li:not(.e-menu-hide):not(.e-disabled)')[0];
|
|
26302
26313
|
addClass([firstMenuItem], 'e-focused');
|
|
26303
26314
|
}
|
|
26304
26315
|
getMenuItems() {
|
|
@@ -26818,6 +26829,30 @@ class RowDD$1 {
|
|
|
26818
26829
|
this.updateParentRecords.push(draggedRecord.parentItem);
|
|
26819
26830
|
}
|
|
26820
26831
|
}
|
|
26832
|
+
if (!this.parent.enableVirtualization) {
|
|
26833
|
+
let data = gObj.flatData;
|
|
26834
|
+
let startIndex;
|
|
26835
|
+
let endIndex;
|
|
26836
|
+
if (draggedRecord.index < droppedRecord.index) {
|
|
26837
|
+
startIndex = draggedRecord.index;
|
|
26838
|
+
endIndex = droppedRecord.index;
|
|
26839
|
+
}
|
|
26840
|
+
else {
|
|
26841
|
+
startIndex = droppedRecord.index;
|
|
26842
|
+
endIndex = draggedRecord.index;
|
|
26843
|
+
}
|
|
26844
|
+
for (let i = startIndex; i <= endIndex; i++) {
|
|
26845
|
+
if (!isNullOrUndefined(data[i])) {
|
|
26846
|
+
data[i].index = i;
|
|
26847
|
+
if (!isNullOrUndefined(data[i].parentItem)) {
|
|
26848
|
+
let updatedParent = data.filter((e) => {
|
|
26849
|
+
return e.uniqueID === data[i].parentUniqueID;
|
|
26850
|
+
})[0];
|
|
26851
|
+
data[i].parentItem.index = updatedParent.index;
|
|
26852
|
+
}
|
|
26853
|
+
}
|
|
26854
|
+
}
|
|
26855
|
+
}
|
|
26821
26856
|
gObj.rowDragAndDropModule.refreshDataSource();
|
|
26822
26857
|
}
|
|
26823
26858
|
if (this.dropPosition === 'middleSegment') {
|