@syncfusion/ej2-gantt 20.4.42 → 20.4.43
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 +9 -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 +12 -0
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +28 -16
- 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 +10 -10
- package/src/gantt/actions/rowdragdrop.js +25 -16
- package/src/gantt/actions/toolbar.js +3 -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 +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/gantt/_theme.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 +1 -1
- package/styles/gantt/bootstrap5.css +1 -1
- package/styles/gantt/fabric-dark.css +1 -1
- package/styles/gantt/fabric.css +1 -1
- package/styles/gantt/fluent-dark.css +1 -1
- package/styles/gantt/fluent.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
|
@@ -28220,6 +28220,9 @@ var Toolbar$3 = /** @__PURE__ @class */ (function () {
|
|
|
28220
28220
|
* @private
|
|
28221
28221
|
*/
|
|
28222
28222
|
Toolbar$$1.prototype.zoomToFit = function () {
|
|
28223
|
+
if (this.parent.timelineModule.isZoomIn) {
|
|
28224
|
+
this.parent.timelineModule.isZoomIn = false;
|
|
28225
|
+
}
|
|
28223
28226
|
this.parent.timelineModule.processZoomToFit();
|
|
28224
28227
|
this.parent.ganttChartModule.updateScrollLeft(0);
|
|
28225
28228
|
};
|
|
@@ -30658,6 +30661,15 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
30658
30661
|
delete droppedRecord.taskData[this_1.parent.taskFields.segments];
|
|
30659
30662
|
}
|
|
30660
30663
|
}
|
|
30664
|
+
if (this_1.treeGridData.length != 0) {
|
|
30665
|
+
for (var i_1 = 0; i_1 < this_1.treeGridData.length; i_1++) {
|
|
30666
|
+
this_1.treeGridData[parseInt(i_1.toString(), 10)].index = i_1;
|
|
30667
|
+
if (!isNullOrUndefined(this_1.treeGridData[parseInt(i_1.toString(), 10)].parentItem)) {
|
|
30668
|
+
var updatedParent = getValue('uniqueIDCollection.' + this_1.treeGridData[parseInt(i_1.toString(), 10)].parentUniqueID, this_1.parent.treeGrid);
|
|
30669
|
+
this_1.treeGridData[parseInt(i_1.toString(), 10)].parentItem.index = updatedParent.index;
|
|
30670
|
+
}
|
|
30671
|
+
}
|
|
30672
|
+
}
|
|
30661
30673
|
// eslint-disable-next-line
|
|
30662
30674
|
if (!isNullOrUndefined(draggedRecord.parentItem && this_1.updateParentRecords.indexOf(draggedRecord.parentItem) !== -1)) {
|
|
30663
30675
|
this_1.updateParentRecords.push(draggedRecord.parentItem);
|
|
@@ -30671,51 +30683,51 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
30671
30683
|
var uniqueTaskID_1 = this_1.parent.taskFields.id;
|
|
30672
30684
|
if (draggedRecord.index < droppedRecord.index) {
|
|
30673
30685
|
startIndex = draggedRecord.index;
|
|
30674
|
-
var _loop_3 = function (
|
|
30686
|
+
var _loop_3 = function (i_2) {
|
|
30675
30687
|
var currentData = this_1.parent.currentViewData.filter(function (e) {
|
|
30676
|
-
return e[uniqueTaskID_1] === ganttData_1[
|
|
30688
|
+
return e[uniqueTaskID_1] === ganttData_1[i_2][uniqueTaskID_1];
|
|
30677
30689
|
})[0];
|
|
30678
30690
|
if (currentData && currentData.index > droppedRecord.index) {
|
|
30679
30691
|
endIndex = currentData.index;
|
|
30680
30692
|
return "break";
|
|
30681
30693
|
}
|
|
30682
30694
|
};
|
|
30683
|
-
for (var
|
|
30684
|
-
var state_2 = _loop_3(
|
|
30695
|
+
for (var i_2 = 0; i_2 < ganttData_1.length; i_2++) {
|
|
30696
|
+
var state_2 = _loop_3(i_2);
|
|
30685
30697
|
if (state_2 === "break")
|
|
30686
30698
|
break;
|
|
30687
30699
|
}
|
|
30688
30700
|
}
|
|
30689
30701
|
else {
|
|
30690
30702
|
startIndex = droppedRecord.index;
|
|
30691
|
-
var _loop_4 = function (
|
|
30703
|
+
var _loop_4 = function (i_3) {
|
|
30692
30704
|
var currentData = this_1.parent.currentViewData.filter(function (e) {
|
|
30693
|
-
return e[uniqueTaskID_1] === ganttData_1[
|
|
30705
|
+
return e[uniqueTaskID_1] === ganttData_1[i_3][uniqueTaskID_1];
|
|
30694
30706
|
})[0];
|
|
30695
30707
|
if (currentData && currentData.index > draggedRecord.index) {
|
|
30696
30708
|
endIndex = currentData.index;
|
|
30697
30709
|
return "break";
|
|
30698
30710
|
}
|
|
30699
30711
|
};
|
|
30700
|
-
for (var
|
|
30701
|
-
var state_3 = _loop_4(
|
|
30712
|
+
for (var i_3 = 0; i_3 < ganttData_1.length; i_3++) {
|
|
30713
|
+
var state_3 = _loop_4(i_3);
|
|
30702
30714
|
if (state_3 === "break")
|
|
30703
30715
|
break;
|
|
30704
30716
|
}
|
|
30705
30717
|
}
|
|
30706
|
-
var _loop_5 = function (
|
|
30707
|
-
if (!isNullOrUndefined(data_1[
|
|
30708
|
-
data_1[
|
|
30709
|
-
if (!isNullOrUndefined(data_1[
|
|
30718
|
+
var _loop_5 = function (i_4) {
|
|
30719
|
+
if (!isNullOrUndefined(data_1[i_4])) {
|
|
30720
|
+
data_1[i_4].index = i_4;
|
|
30721
|
+
if (!isNullOrUndefined(data_1[i_4].parentItem)) {
|
|
30710
30722
|
var updatedParent = data_1.filter(function (e) {
|
|
30711
|
-
return e.uniqueID === data_1[
|
|
30723
|
+
return e.uniqueID === data_1[i_4].parentUniqueID;
|
|
30712
30724
|
})[0];
|
|
30713
|
-
data_1[
|
|
30725
|
+
data_1[i_4].parentItem.index = updatedParent.index;
|
|
30714
30726
|
}
|
|
30715
30727
|
}
|
|
30716
30728
|
};
|
|
30717
|
-
for (var
|
|
30718
|
-
_loop_5(
|
|
30729
|
+
for (var i_4 = startIndex; i_4 <= endIndex; i_4++) {
|
|
30730
|
+
_loop_5(i_4);
|
|
30719
30731
|
}
|
|
30720
30732
|
}
|
|
30721
30733
|
gObj.rowDragAndDropModule.refreshDataSource();
|