@syncfusion/ej2-gantt 23.1.38 → 23.1.41
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 +18 -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 +21 -11
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +21 -11
- 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/critical-path.js +9 -5
- package/src/gantt/actions/dialog-edit.js +1 -1
- package/src/gantt/actions/edit.js +9 -3
- package/src/gantt/renderer/tooltip.js +3 -3
- package/styles/bootstrap4.css +32 -2
- package/styles/gantt/bootstrap4.css +32 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 23.1.
|
|
3
|
+
* version : 23.1.41
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-gantt@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-gantt@23.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@23.1.39",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-qmaxSxoGo8FGSqkz9vwQ5ZwJUzq/09DO/DKLY7frot25EBgT1cF3xUvWpi/9qrgyqAz7vjy4gUfHSTu09XSplQ==",
|
|
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-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-23.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-23.1.39.tgz",
|
|
27
|
+
"_shasum": "d505c2c3910ba7b673aff9c4a980f87c3e4af30d",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~23.1.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~23.1.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~23.1.
|
|
38
|
+
"@syncfusion/ej2-base": "~23.1.41",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~23.1.41",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~23.1.41",
|
|
41
41
|
"@syncfusion/ej2-data": "~23.1.36",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~23.1.
|
|
43
|
-
"@syncfusion/ej2-grids": "~23.1.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~23.1.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~23.1.41",
|
|
43
|
+
"@syncfusion/ej2-grids": "~23.1.41",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~23.1.40",
|
|
45
45
|
"@syncfusion/ej2-layouts": "~23.1.36",
|
|
46
46
|
"@syncfusion/ej2-lists": "~23.1.36",
|
|
47
|
-
"@syncfusion/ej2-navigations": "~23.1.
|
|
48
|
-
"@syncfusion/ej2-notifications": "~23.1.
|
|
47
|
+
"@syncfusion/ej2-navigations": "~23.1.41",
|
|
48
|
+
"@syncfusion/ej2-notifications": "~23.1.40",
|
|
49
49
|
"@syncfusion/ej2-popups": "~23.1.38",
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~23.1.
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~23.1.41",
|
|
51
51
|
"@syncfusion/ej2-svg-base": "~23.1.36",
|
|
52
|
-
"@syncfusion/ej2-treegrid": "~23.1.
|
|
52
|
+
"@syncfusion/ej2-treegrid": "~23.1.39"
|
|
53
53
|
},
|
|
54
54
|
"deprecated": false,
|
|
55
55
|
"description": "Essential JS 2 Gantt Component",
|
|
@@ -74,6 +74,6 @@
|
|
|
74
74
|
"url": "git+https://github.com/syncfusion/ej2-gantt.git"
|
|
75
75
|
},
|
|
76
76
|
"typings": "index.d.ts",
|
|
77
|
-
"version": "23.1.
|
|
77
|
+
"version": "23.1.41",
|
|
78
78
|
"sideEffects": false
|
|
79
79
|
}
|
|
@@ -624,8 +624,8 @@ var CriticalPath = /** @class */ (function () {
|
|
|
624
624
|
if (record.ganttProperties.progress < 100) {
|
|
625
625
|
record.isCritical = true;
|
|
626
626
|
record.ganttProperties.isCritical = true;
|
|
627
|
-
if (criticalPathIds.indexOf(
|
|
628
|
-
criticalPathIds.push(
|
|
627
|
+
if (criticalPathIds.indexOf(record.ganttProperties.taskId) == -1) {
|
|
628
|
+
criticalPathIds.push(record.ganttProperties.taskId);
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
631
|
}
|
|
@@ -647,9 +647,11 @@ var CriticalPath = /** @class */ (function () {
|
|
|
647
647
|
fromRecord.slack = record.slack;
|
|
648
648
|
fromRecord.isCritical = record.ganttProperties.isCritical;
|
|
649
649
|
fromRecord.ganttProperties.isCritical = record.ganttProperties.isCritical;
|
|
650
|
-
if (criticalPathIds.indexOf(
|
|
650
|
+
if (criticalPathIds.indexOf(fromRecord.ganttProperties.taskId) === -1 && fromRecord.ganttProperties.isCritical && fromRecord.ganttProperties.progress < 100) {
|
|
651
651
|
this.validatedids.push(parseInt(fromRecord.ganttProperties.taskId));
|
|
652
|
-
|
|
652
|
+
if (this.criticalTasks.indexOf(fromRecord) === -1) {
|
|
653
|
+
this.criticalTasks.push(fromRecord);
|
|
654
|
+
}
|
|
653
655
|
}
|
|
654
656
|
if (fromRecord.ganttProperties.predecessorsName) {
|
|
655
657
|
this.updateCriticalTasks(fromRecord, criticalPathIds);
|
|
@@ -734,7 +736,9 @@ var CriticalPath = /** @class */ (function () {
|
|
|
734
736
|
if (flatRecords[index].ganttProperties.progress < 100) {
|
|
735
737
|
flatRecords[index].isCritical = true;
|
|
736
738
|
flatRecords[index].ganttProperties.isCritical = true;
|
|
737
|
-
this.criticalTasks.
|
|
739
|
+
if (this.criticalTasks.indexOf(flatRecords[index]) == -1) {
|
|
740
|
+
this.criticalTasks.push(flatRecords[index]);
|
|
741
|
+
}
|
|
738
742
|
if (criticalPathIds.indexOf(collection[x]['taskid']) === -1) {
|
|
739
743
|
criticalPathIds.push(collection[x]['taskid']);
|
|
740
744
|
}
|
|
@@ -1099,7 +1099,7 @@ var DialogEdit = /** @class */ (function () {
|
|
|
1099
1099
|
else {
|
|
1100
1100
|
if (value === "") {
|
|
1101
1101
|
this.parent.setRecordValue('duration', null, ganttProp, true);
|
|
1102
|
-
if (ganttProp.endDate) {
|
|
1102
|
+
if (ganttProp.endDate && ganttProp.startDate) {
|
|
1103
1103
|
this.parent.setRecordValue('endDate', null, ganttProp, true);
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isNullOrUndefined, isUndefined, extend, setValue, getValue, deleteObject, createElement } from '@syncfusion/ej2-base';
|
|
2
|
-
import { DataManager, Query, ODataAdaptor, WebApiAdaptor } from '@syncfusion/ej2-data';
|
|
2
|
+
import { DataManager, Query, ODataAdaptor, WebApiAdaptor, ODataV4Adaptor } from '@syncfusion/ej2-data';
|
|
3
3
|
import { getUid } from '@syncfusion/ej2-grids';
|
|
4
4
|
import { getSwapKey, isScheduledTask, getTaskData, isRemoteData, getIndex, isCountRequired, updateDates } from '../base/utils';
|
|
5
5
|
import { CellEdit } from './cell-edit';
|
|
@@ -507,6 +507,13 @@ var Edit = /** @class */ (function () {
|
|
|
507
507
|
if (ganttData.ganttProperties.baselineEndDate && ganttData.ganttProperties.baselineEndDate.getHours() === 0 && this.parent.defaultEndTime !== 86400) {
|
|
508
508
|
ganttObj.dataOperation.setTime(this.parent.defaultEndTime, ganttData.ganttProperties.baselineEndDate);
|
|
509
509
|
}
|
|
510
|
+
if ((ganttData.ganttProperties.baselineStartDate && ganttData.ganttProperties.baselineEndDate &&
|
|
511
|
+
(ganttData.ganttProperties.baselineStartDate.getTime() > ganttData.ganttProperties.baselineEndDate.getTime())) ||
|
|
512
|
+
((!isNullOrUndefined(ganttData.ganttProperties.baselineStartDate) && !isNullOrUndefined(ganttData.ganttProperties.startDate) && (ganttData.ganttProperties.baselineStartDate.getTime() === ganttData.ganttProperties.startDate.getTime()))
|
|
513
|
+
&& (!isNullOrUndefined(ganttData.ganttProperties.baselineEndDate) && !isNullOrUndefined(ganttData.ganttProperties.endDate) && (ganttData.ganttProperties.baselineEndDate.toLocaleDateString() === ganttData.ganttProperties.endDate.toLocaleDateString())) &&
|
|
514
|
+
ganttData.ganttProperties.isMilestone)) {
|
|
515
|
+
ganttData.ganttProperties.baselineEndDate = ganttData.ganttProperties.baselineStartDate;
|
|
516
|
+
}
|
|
510
517
|
ganttObj.setRecordValue('baselineEndDate', ganttObj.dataOperation.checkBaselineEndDate(ganttData.ganttProperties.baselineEndDate), ganttData.ganttProperties, true);
|
|
511
518
|
ganttObj.setRecordValue('baselineLeft', ganttObj.dataOperation.calculateBaselineLeft(ganttData.ganttProperties), ganttData.ganttProperties, true);
|
|
512
519
|
ganttObj.setRecordValue('baselineWidth', ganttObj.dataOperation.calculateBaselineWidth(ganttData.ganttProperties), ganttData.ganttProperties, true);
|
|
@@ -3008,8 +3015,7 @@ var Edit = /** @class */ (function () {
|
|
|
3008
3015
|
/* tslint:disable-next-line */
|
|
3009
3016
|
var query = _this.parent.query instanceof Query ? _this.parent.query : new Query();
|
|
3010
3017
|
var adaptor = data_2.adaptor;
|
|
3011
|
-
|
|
3012
|
-
if (!(moduleName == "WebApiAdaptor" || moduleName == "ODataAdaptor" || moduleName == "ODataV4Adaptor") || data_2.dataSource.batchUrl) {
|
|
3018
|
+
if (!(adaptor instanceof WebApiAdaptor || adaptor instanceof ODataAdaptor || adaptor instanceof ODataV4Adaptor) || data_2.dataSource.batchUrl) {
|
|
3013
3019
|
/* tslint:disable-next-line */
|
|
3014
3020
|
var crud = data_2.saveChanges(updatedData_2, _this.parent.taskFields.id, null, query);
|
|
3015
3021
|
crud.then(function (e) {
|
|
@@ -24,7 +24,7 @@ var Tooltip = /** @class */ (function () {
|
|
|
24
24
|
'.e-gantt-parent-taskbar, .e-gantt-milestone, .e-gantt-unscheduled-taskbar' +
|
|
25
25
|
'.e-event-markers, .e-baseline-bar, .e-event-markers,' +
|
|
26
26
|
'.e-connector-line-container, .e-indicator-span, .e-notes-info, .e-gantt-manualparent-milestone,' +
|
|
27
|
-
'.e-taskbar-left-resizer, .e-taskbar-right-resizer, .e-baseline-gantt-milestone, .e-gantt-manualparenttaskbar';
|
|
27
|
+
'.e-taskbar-left-resizer, .e-taskbar-right-resizer, .e-baseline-gantt-milestone-container, .e-gantt-manualparenttaskbar';
|
|
28
28
|
this.toolTipObj.position = 'BottomCenter';
|
|
29
29
|
this.toolTipObj.openDelay = 700;
|
|
30
30
|
this.toolTipObj.enableRtl = this.parent.enableRtl;
|
|
@@ -92,7 +92,7 @@ var Tooltip = /** @class */ (function () {
|
|
|
92
92
|
parent.tooltipModule.getTooltipContent((data.ganttProperties.isMilestone ? 'milestone' : 'taskbar'), data, parent, args) : "";
|
|
93
93
|
}
|
|
94
94
|
else if (args.target.classList.contains('e-baseline-bar') ||
|
|
95
|
-
args.target.classList.contains('e-baseline-gantt-milestone')) {
|
|
95
|
+
args.target.classList.contains('e-baseline-gantt-milestone-container')) {
|
|
96
96
|
var baseLineTemplateNode = void 0;
|
|
97
97
|
if ((parent.tooltipSettings.baseline)) {
|
|
98
98
|
baseLineTemplateNode = parent.tooltipModule.templateCompiler(parent.tooltipSettings.baseline, parent, data, 'TooltipBaselineTemplate');
|
|
@@ -263,7 +263,7 @@ var Tooltip = /** @class */ (function () {
|
|
|
263
263
|
case 'milestone':
|
|
264
264
|
{
|
|
265
265
|
var milestoneStartDate = void 0;
|
|
266
|
-
if (args.target.className.includes('e-baseline-gantt-milestone') && !isNullOrUndefined(data.baselineStartDate)) {
|
|
266
|
+
if (args.target.className.includes('e-baseline-gantt-milestone-container') && !isNullOrUndefined(data.baselineStartDate)) {
|
|
267
267
|
milestoneStartDate = data.baselineStartDate;
|
|
268
268
|
}
|
|
269
269
|
else if (!isNullOrUndefined(data.startDate)) {
|
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;
|
|
@@ -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;
|