@syncfusion/ej2-gantt 23.1.39 → 23.1.42
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 +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 +176 -128
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +176 -128
- 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 +15 -15
- package/src/gantt/actions/chart-scroll.js +6 -1
- package/src/gantt/actions/critical-path.js +10 -5
- package/src/gantt/actions/edit.js +12 -2
- package/src/gantt/actions/rowdragdrop.js +6 -6
- package/src/gantt/actions/taskbar-edit.d.ts +4 -1
- package/src/gantt/actions/taskbar-edit.js +65 -80
- package/src/gantt/base/gantt-chart.js +35 -18
- package/src/gantt/export/export-helper.js +11 -11
- package/src/gantt/renderer/chart-rows.js +26 -5
- package/src/gantt/renderer/connector-line.js +6 -1
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4.css +33 -3
- 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/_layout.scss +1 -1
- package/styles/gantt/bootstrap-dark.css +1 -1
- package/styles/gantt/bootstrap.css +1 -1
- package/styles/gantt/bootstrap4.css +33 -3
- 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/material3-dark.css +1 -1
- package/styles/gantt/material3.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/material3-dark.css +1 -1
- package/styles/material3.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind.css +1 -1
|
@@ -1851,7 +1851,12 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1851
1851
|
if (!tr) {
|
|
1852
1852
|
tr = this.ganttChartTableBody.childNodes[rowIndex];
|
|
1853
1853
|
}
|
|
1854
|
-
|
|
1854
|
+
if (this.parent.ganttChartModule.isExpandAll || this.parent.ganttChartModule.isCollapseAll) {
|
|
1855
|
+
tr['style'].height = this.parent.treeGrid.getRowByIndex(rowIndex)['style'].height = this.parent.rowHeight + 'px';
|
|
1856
|
+
}
|
|
1857
|
+
else {
|
|
1858
|
+
tr['style'].height = this.parent.treeGrid.getRows()[rowIndex]['style'].height = this.parent.rowHeight + 'px';
|
|
1859
|
+
}
|
|
1855
1860
|
this.parent.contentHeight = treeGridContentHeight;
|
|
1856
1861
|
var rowIDs = [];
|
|
1857
1862
|
var rowCounts = 0;
|
|
@@ -1868,7 +1873,12 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1868
1873
|
rowCounts++;
|
|
1869
1874
|
tr.children[0]['style'].verticalAlign = 'baseline';
|
|
1870
1875
|
tr.getElementsByClassName('e-taskbar-main-container')[k]['style'].marginTop = (rowCounts * this.parent.rowHeight) + this.taskBarMarginTop + 'px';
|
|
1871
|
-
|
|
1876
|
+
if (this.parent.ganttChartModule.isExpandAll || this.parent.ganttChartModule.isCollapseAll) {
|
|
1877
|
+
tr['style'].height = this.parent.treeGrid.getRowByIndex(rowIndex)['style'].height = parseInt(tr['style'].height) + this.parent.rowHeight + 'px';
|
|
1878
|
+
}
|
|
1879
|
+
else {
|
|
1880
|
+
tr['style'].height = this.parent.treeGrid.getRows()[rowIndex]['style'].height = parseInt(tr['style'].height) + this.parent.rowHeight + 'px';
|
|
1881
|
+
}
|
|
1872
1882
|
}
|
|
1873
1883
|
}
|
|
1874
1884
|
else {
|
|
@@ -1901,7 +1911,12 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1901
1911
|
if (index !== -1 && selectedItem) {
|
|
1902
1912
|
var data = selectedItem;
|
|
1903
1913
|
if (!this.parent.allowTaskbarOverlap && this.parent.viewType === 'ResourceView' && data.expanded) {
|
|
1904
|
-
|
|
1914
|
+
if (this.parent.ganttChartModule.isExpandAll || this.parent.ganttChartModule.isCollapseAll) {
|
|
1915
|
+
tr['style'].height = this.parent.treeGrid.getRowByIndex(index)['style'].height = this.parent.rowHeight + 'px';
|
|
1916
|
+
}
|
|
1917
|
+
else {
|
|
1918
|
+
tr['style'].height = this.parent.treeGrid.getRows()[index]['style'].height = this.parent.rowHeight + 'px';
|
|
1919
|
+
}
|
|
1905
1920
|
}
|
|
1906
1921
|
if (this.parent.viewType === 'ResourceView' && data.hasChildRecords && !data.expanded && this.parent.enableMultiTaskbar) {
|
|
1907
1922
|
tr.replaceChild(this.getResourceParent(data).childNodes[0], tr.childNodes[0]);
|
|
@@ -1962,8 +1977,14 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1962
1977
|
addClass([cloneElement], 'collpse-parent-border');
|
|
1963
1978
|
var id = tRow.querySelector('.' + cls.taskBarMainContainer).getAttribute('rowUniqueId');
|
|
1964
1979
|
var ganttData = this.parent.getRecordByID(id);
|
|
1965
|
-
|
|
1966
|
-
|
|
1980
|
+
if (!(isNullOrUndefined(ganttData)) && ganttData.ganttProperties.segments && ganttData.ganttProperties.segments.length > 0) {
|
|
1981
|
+
var segmentedTasks = cloneElement.getElementsByClassName('e-segmented-taskbar');
|
|
1982
|
+
for (var i = 0; i < segmentedTasks.length; i++) {
|
|
1983
|
+
this.triggerQueryTaskbarInfoByIndex(segmentedTasks[i], ganttData);
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
else if (this.parent.queryTaskbarInfo) {
|
|
1987
|
+
var mainTaskbar = (cloneElement.querySelector('.e-gantt-child-taskbar'));
|
|
1967
1988
|
this.triggerQueryTaskbarInfoByIndex(mainTaskbar, ganttData);
|
|
1968
1989
|
}
|
|
1969
1990
|
var zIndex = "";
|
|
@@ -465,7 +465,9 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
|
|
468
|
+
if (!this.parent.enableVirtualization) {
|
|
469
|
+
heightValue = Math.abs(parentOverlapTopValue - childOverlapTopValue);
|
|
470
|
+
}
|
|
469
471
|
}
|
|
470
472
|
if (this.parent.currentViewData[data.parentIndex] && this.parent.currentViewData[data.childIndex] && this.parent.allowParentDependency) {
|
|
471
473
|
var fromRecordIsParent = this.parent.currentViewData[data.parentIndex].hasChildRecords;
|
|
@@ -556,6 +558,9 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
556
558
|
d: this.arrowPath,
|
|
557
559
|
class: cls.connectorLineArrow
|
|
558
560
|
});
|
|
561
|
+
var outlineColor = (this.lineColor) && !(this.parent.enableCriticalPath) ? this.lineColor : '';
|
|
562
|
+
this.connectorPath.setAttribute('style', "stroke: " + outlineColor);
|
|
563
|
+
this.arrowlinePath.setAttribute('style', "fill: " + outlineColor);
|
|
559
564
|
// Append the path element to the group element
|
|
560
565
|
this.groupObject.appendChild(this.connectorPath);
|
|
561
566
|
this.groupObject.appendChild(this.arrowlinePath);
|
package/styles/bootstrap.css
CHANGED
package/styles/bootstrap4.css
CHANGED
|
@@ -354,13 +354,24 @@
|
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
357
|
-
font-size:
|
|
357
|
+
font-size: 12px;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.e-bigger .e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon,
|
|
361
|
+
.e-bigger.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
362
|
+
font-size: 14px;
|
|
358
363
|
}
|
|
359
364
|
|
|
360
|
-
.e-
|
|
365
|
+
.e-small .e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon,
|
|
366
|
+
.e-small.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
361
367
|
font-size: 10px;
|
|
362
368
|
}
|
|
363
369
|
|
|
370
|
+
.e-small.e-bigger .e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon,
|
|
371
|
+
.e-small.e-bigger.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
372
|
+
font-size: 12px;
|
|
373
|
+
}
|
|
374
|
+
|
|
364
375
|
.e-bigger.e-small .e-ddl.e-popup .e-list-item, .e-bigger.e-small .e-ddl.e-popup .e-list-group-item, .e-bigger.e-small .e-ddl.e-popup .e-fixed-head {
|
|
365
376
|
font-size: 14px;
|
|
366
377
|
line-height: 34px;
|
|
@@ -402,6 +413,25 @@
|
|
|
402
413
|
border-right-width: 0;
|
|
403
414
|
}
|
|
404
415
|
|
|
416
|
+
.e-input-group.e-multiselect.e-control-wrapper .e-input-group-icon.e-ddl-icon::before {
|
|
417
|
+
font-size: 12px;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.e-bigger .e-input-group.e-multiselect.e-control-wrapper .e-input-group-icon.e-ddl-icon::before,
|
|
421
|
+
.e-bigger.e-input-group.e-multiselect.e-control-wrapper .e-input-group-icon.e-ddl-icon::before {
|
|
422
|
+
font-size: 14px;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.e-small .e-input-group.e-multiselect.e-control-wrapper .e-input-group-icon.e-ddl-icon::before,
|
|
426
|
+
.e-small.e-input-group.e-multiselect.e-control-wrapper .e-input-group-icon.e-ddl-icon::before {
|
|
427
|
+
font-size: 10px;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.e-small.e-bigger .e-input-group.e-multiselect.e-control-wrapper .e-input-group-icon.e-ddl-icon::before,
|
|
431
|
+
.e-small.e-bigger.e-input-group.e-multiselect.e-control-wrapper .e-input-group-icon.e-ddl-icon::before {
|
|
432
|
+
font-size: 12px;
|
|
433
|
+
}
|
|
434
|
+
|
|
405
435
|
.e-multiselect.e-rtl .e-input-group-icon.e-ddl-icon {
|
|
406
436
|
border-left-width: 0;
|
|
407
437
|
border-radius: 4px 0 0 4px;
|
|
@@ -1122,7 +1152,7 @@
|
|
|
1122
1152
|
box-sizing: border-box;
|
|
1123
1153
|
}
|
|
1124
1154
|
.e-gantt .e-gantt-chart .e-zero-spacing {
|
|
1125
|
-
border-spacing: 0
|
|
1155
|
+
border-spacing: 0;
|
|
1126
1156
|
}
|
|
1127
1157
|
.e-gantt .e-gantt-chart .e-chart-row:first-child .e-chart-row-border {
|
|
1128
1158
|
border-top: 0;
|
package/styles/bootstrap5.css
CHANGED
package/styles/fabric-dark.css
CHANGED
package/styles/fabric.css
CHANGED
package/styles/fluent-dark.css
CHANGED
package/styles/fluent.css
CHANGED
|
@@ -354,13 +354,24 @@
|
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
357
|
-
font-size:
|
|
357
|
+
font-size: 12px;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.e-bigger .e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon,
|
|
361
|
+
.e-bigger.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
362
|
+
font-size: 14px;
|
|
358
363
|
}
|
|
359
364
|
|
|
360
|
-
.e-
|
|
365
|
+
.e-small .e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon,
|
|
366
|
+
.e-small.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
361
367
|
font-size: 10px;
|
|
362
368
|
}
|
|
363
369
|
|
|
370
|
+
.e-small.e-bigger .e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon,
|
|
371
|
+
.e-small.e-bigger.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
372
|
+
font-size: 12px;
|
|
373
|
+
}
|
|
374
|
+
|
|
364
375
|
.e-bigger.e-small .e-ddl.e-popup .e-list-item, .e-bigger.e-small .e-ddl.e-popup .e-list-group-item, .e-bigger.e-small .e-ddl.e-popup .e-fixed-head {
|
|
365
376
|
font-size: 14px;
|
|
366
377
|
line-height: 34px;
|
|
@@ -402,6 +413,25 @@
|
|
|
402
413
|
border-right-width: 0;
|
|
403
414
|
}
|
|
404
415
|
|
|
416
|
+
.e-input-group.e-multiselect.e-control-wrapper .e-input-group-icon.e-ddl-icon::before {
|
|
417
|
+
font-size: 12px;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.e-bigger .e-input-group.e-multiselect.e-control-wrapper .e-input-group-icon.e-ddl-icon::before,
|
|
421
|
+
.e-bigger.e-input-group.e-multiselect.e-control-wrapper .e-input-group-icon.e-ddl-icon::before {
|
|
422
|
+
font-size: 14px;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.e-small .e-input-group.e-multiselect.e-control-wrapper .e-input-group-icon.e-ddl-icon::before,
|
|
426
|
+
.e-small.e-input-group.e-multiselect.e-control-wrapper .e-input-group-icon.e-ddl-icon::before {
|
|
427
|
+
font-size: 10px;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.e-small.e-bigger .e-input-group.e-multiselect.e-control-wrapper .e-input-group-icon.e-ddl-icon::before,
|
|
431
|
+
.e-small.e-bigger.e-input-group.e-multiselect.e-control-wrapper .e-input-group-icon.e-ddl-icon::before {
|
|
432
|
+
font-size: 12px;
|
|
433
|
+
}
|
|
434
|
+
|
|
405
435
|
.e-multiselect.e-rtl .e-input-group-icon.e-ddl-icon {
|
|
406
436
|
border-left-width: 0;
|
|
407
437
|
border-radius: 4px 0 0 4px;
|
|
@@ -1122,7 +1152,7 @@
|
|
|
1122
1152
|
box-sizing: border-box;
|
|
1123
1153
|
}
|
|
1124
1154
|
.e-gantt .e-gantt-chart .e-zero-spacing {
|
|
1125
|
-
border-spacing: 0
|
|
1155
|
+
border-spacing: 0;
|
|
1126
1156
|
}
|
|
1127
1157
|
.e-gantt .e-gantt-chart .e-chart-row:first-child .e-chart-row-border {
|
|
1128
1158
|
border-top: 0;
|
package/styles/gantt/fabric.css
CHANGED
package/styles/gantt/fluent.css
CHANGED
package/styles/highcontrast.css
CHANGED
package/styles/material-dark.css
CHANGED
package/styles/material.css
CHANGED
package/styles/material3.css
CHANGED
package/styles/tailwind-dark.css
CHANGED
package/styles/tailwind.css
CHANGED