@syncfusion/ej2-gantt 19.3.45 → 19.3.46
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 +26 -2
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +29 -4
- 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 +12 -12
- package/src/gantt/base/gantt.js +17 -0
- package/src/gantt/base/task-processor.js +10 -2
- package/src/gantt/base/utils.js +2 -2
- package/styles/bootstrap4.css +5 -0
- package/styles/bootstrap5-dark.css +5 -0
- package/styles/bootstrap5.css +5 -0
- package/styles/gantt/bootstrap4.css +5 -0
- package/styles/gantt/bootstrap5-dark.css +5 -0
- package/styles/gantt/bootstrap5.css +5 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.3.
|
|
3
|
+
* version : 19.3.46
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@19.3.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@19.3.45",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-RZLdEJYylDpfailqWhBOXPgh9R/pvL9s1BhtCTXdwpn/lfRqGQV0UlXqvqYnYRfy6DXyzvhfj0kvFX9nnKT1BA==",
|
|
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": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-gantt/-/ej2-gantt-19.3.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-gantt/-/ej2-gantt-19.3.45.tgz",
|
|
27
|
+
"_shasum": "d3e74c79b2a7f546bd6e8ec0effee6cb28b5db87",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@syncfusion/ej2-base": "~19.3.43",
|
|
39
39
|
"@syncfusion/ej2-buttons": "~19.3.44",
|
|
40
|
-
"@syncfusion/ej2-calendars": "~19.3.
|
|
41
|
-
"@syncfusion/ej2-data": "~19.3.
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~19.3.
|
|
43
|
-
"@syncfusion/ej2-grids": "~19.3.
|
|
40
|
+
"@syncfusion/ej2-calendars": "~19.3.46",
|
|
41
|
+
"@syncfusion/ej2-data": "~19.3.46",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~19.3.46",
|
|
43
|
+
"@syncfusion/ej2-grids": "~19.3.46",
|
|
44
44
|
"@syncfusion/ej2-inputs": "~19.3.44",
|
|
45
45
|
"@syncfusion/ej2-layouts": "~19.3.44",
|
|
46
46
|
"@syncfusion/ej2-lists": "~19.3.45",
|
|
47
|
-
"@syncfusion/ej2-navigations": "~19.3.
|
|
47
|
+
"@syncfusion/ej2-navigations": "~19.3.46",
|
|
48
48
|
"@syncfusion/ej2-popups": "~19.3.43",
|
|
49
|
-
"@syncfusion/ej2-richtexteditor": "~19.3.
|
|
50
|
-
"@syncfusion/ej2-treegrid": "~19.3.
|
|
49
|
+
"@syncfusion/ej2-richtexteditor": "~19.3.46",
|
|
50
|
+
"@syncfusion/ej2-treegrid": "~19.3.46"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
53
53
|
"description": "Essential JS 2 Gantt Component",
|
|
@@ -75,6 +75,6 @@
|
|
|
75
75
|
"url": "git+https://github.com/syncfusion/ej2-gantt.git"
|
|
76
76
|
},
|
|
77
77
|
"typings": "index.d.ts",
|
|
78
|
-
"version": "19.3.
|
|
78
|
+
"version": "19.3.46",
|
|
79
79
|
"sideEffects": false
|
|
80
80
|
}
|
package/src/gantt/base/gantt.js
CHANGED
|
@@ -1354,6 +1354,23 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
1354
1354
|
this.treeGrid.height = this.ganttHeight - toolbarHeight -
|
|
1355
1355
|
this.treeGrid.grid.getHeaderContent().offsetHeight;
|
|
1356
1356
|
this.splitterModule.splitterObject.height = (this.ganttHeight - toolbarHeight).toString();
|
|
1357
|
+
if (!isNullOrUndefined(this.chartVerticalLineContainer)) {
|
|
1358
|
+
this.chartVerticalLineContainer.style.height = this.ganttHeight + 'px';
|
|
1359
|
+
}
|
|
1360
|
+
if (!isNullOrUndefined(this.dayMarkersModule)) {
|
|
1361
|
+
var holidayContainer = getValue('nonworkingDayRender.holidayContainer', this.dayMarkersModule);
|
|
1362
|
+
var weekendContainer = getValue('nonworkingDayRender.weekendContainer', this.dayMarkersModule);
|
|
1363
|
+
var eventMarkersContainer = getValue('eventMarkerRender.eventMarkersContainer', this.dayMarkersModule);
|
|
1364
|
+
if (holidayContainer) {
|
|
1365
|
+
holidayContainer.style.height = this.ganttHeight + 'px';
|
|
1366
|
+
}
|
|
1367
|
+
if (weekendContainer) {
|
|
1368
|
+
weekendContainer.style.height = this.ganttHeight + 'px';
|
|
1369
|
+
}
|
|
1370
|
+
if (eventMarkersContainer) {
|
|
1371
|
+
eventMarkersContainer.style.height = this.ganttHeight + 'px';
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1357
1374
|
this.splitterModule.splitterObject.width = this.ganttWidth.toString();
|
|
1358
1375
|
this.ganttChartModule.scrollObject.
|
|
1359
1376
|
setHeight(this.ganttHeight - this.ganttChartModule.chartTimelineContainer.offsetHeight - toolbarHeight);
|
|
@@ -650,6 +650,7 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
650
650
|
}
|
|
651
651
|
};
|
|
652
652
|
TaskProcessor.prototype.addTaskData = function (ganttData, data, isLoad) {
|
|
653
|
+
var _this = this;
|
|
653
654
|
var taskSettings = this.parent.taskFields;
|
|
654
655
|
var dataManager = this.parent.dataSource;
|
|
655
656
|
if (isLoad) {
|
|
@@ -658,8 +659,15 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
658
659
|
if (taskSettings.parentID) {
|
|
659
660
|
var id = data[taskSettings.id];
|
|
660
661
|
var index = this.taskIds.indexOf(id.toString());
|
|
661
|
-
var
|
|
662
|
-
this.parent.
|
|
662
|
+
var tempData_1 = (index > -1) ? this.dataArray[index] : {};
|
|
663
|
+
if (!isNullOrUndefined(this.parent.taskFields.segmentId)) {
|
|
664
|
+
var segmentDataCollection = this.segmentCollection.
|
|
665
|
+
filter(function (x) { return x.key === tempData_1[_this.parent.taskFields.id]; });
|
|
666
|
+
if (segmentDataCollection.length > 0) {
|
|
667
|
+
tempData_1[this.parent.taskFields.segments] = segmentDataCollection[0].items;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
this.parent.setRecordValue('taskData', tempData_1, ganttData);
|
|
663
671
|
}
|
|
664
672
|
else {
|
|
665
673
|
this.parent.setRecordValue('taskData', data, ganttData);
|
package/src/gantt/base/utils.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { isNullOrUndefined, extend, getValue } from '@syncfusion/ej2-base';
|
|
5
5
|
import { DataManager, UrlAdaptor, WebApiAdaptor, ODataAdaptor } from '@syncfusion/ej2-data';
|
|
6
|
-
import { WebMethodAdaptor, CacheAdaptor, RemoteSaveAdaptor, ODataV4Adaptor
|
|
6
|
+
import { WebMethodAdaptor, CacheAdaptor, RemoteSaveAdaptor, ODataV4Adaptor } from '@syncfusion/ej2-data';
|
|
7
7
|
/**
|
|
8
8
|
* @param {Element} elem .
|
|
9
9
|
* @param {string} selector .
|
|
@@ -75,7 +75,7 @@ export function isRemoteData(dataSource) {
|
|
|
75
75
|
return (adaptor instanceof ODataAdaptor || (adaptor instanceof ODataV4Adaptor) ||
|
|
76
76
|
(adaptor instanceof WebApiAdaptor) || (adaptor instanceof WebMethodAdaptor) ||
|
|
77
77
|
(adaptor instanceof CacheAdaptor) || (adaptor instanceof RemoteSaveAdaptor) ||
|
|
78
|
-
|
|
78
|
+
adaptor instanceof UrlAdaptor);
|
|
79
79
|
}
|
|
80
80
|
return false;
|
|
81
81
|
}
|
package/styles/bootstrap4.css
CHANGED
|
@@ -358,6 +358,11 @@
|
|
|
358
358
|
background: transparent;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
+
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|
|
362
|
+
.e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
|
|
363
|
+
background: #e9ecef;
|
|
364
|
+
}
|
|
365
|
+
|
|
361
366
|
.e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
|
|
362
367
|
.e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
|
|
363
368
|
.e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
|
|
@@ -64,6 +64,11 @@
|
|
|
64
64
|
background: transparent;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|
|
68
|
+
.e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
|
|
69
|
+
background: #343a40;
|
|
70
|
+
}
|
|
71
|
+
|
|
67
72
|
.e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
|
|
68
73
|
.e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
|
|
69
74
|
.e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
|
package/styles/bootstrap5.css
CHANGED
|
@@ -64,6 +64,11 @@
|
|
|
64
64
|
background: transparent;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|
|
68
|
+
.e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
|
|
69
|
+
background: #e9ecef;
|
|
70
|
+
}
|
|
71
|
+
|
|
67
72
|
.e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
|
|
68
73
|
.e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
|
|
69
74
|
.e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
|
|
@@ -358,6 +358,11 @@
|
|
|
358
358
|
background: transparent;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
+
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|
|
362
|
+
.e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
|
|
363
|
+
background: #e9ecef;
|
|
364
|
+
}
|
|
365
|
+
|
|
361
366
|
.e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
|
|
362
367
|
.e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
|
|
363
368
|
.e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
|
|
@@ -64,6 +64,11 @@
|
|
|
64
64
|
background: transparent;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|
|
68
|
+
.e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
|
|
69
|
+
background: #343a40;
|
|
70
|
+
}
|
|
71
|
+
|
|
67
72
|
.e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
|
|
68
73
|
.e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
|
|
69
74
|
.e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
|
|
@@ -64,6 +64,11 @@
|
|
|
64
64
|
background: transparent;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|
|
68
|
+
.e-float-input.e-control-wrapper.e-ddl.e-readonly input[readonly] {
|
|
69
|
+
background: #e9ecef;
|
|
70
|
+
}
|
|
71
|
+
|
|
67
72
|
.e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
|
|
68
73
|
.e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
|
|
69
74
|
.e-control.e-dropdownlist .e-input-group:not(.e-disabled) .e-ddl-icon:active,
|