@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, Internationalization, KeyboardEvents, L10n, NotifyPropertyChanges, Property, addClass, append, classList, closest, compile, createElement, deleteObject, extend, formatUnit, getValue, isNullOrUndefined, isObject, isObjectArray, isUndefined, merge, remove, removeClass, setValue } from '@syncfusion/ej2-base';
|
|
2
2
|
import { Dialog, Tooltip, createSpinner, hideSpinner, showSpinner } from '@syncfusion/ej2-popups';
|
|
3
3
|
import { Edit, ForeignKey, Grid, Page, Predicate, Toolbar, ValueFormatter, click, filterAfterOpen, getActualProperties, getCustomDateFormat, getFilterMenuPostion, getForeignData, getObject, getUid, parentsUntil, setCssInGridPopUp } from '@syncfusion/ej2-grids';
|
|
4
|
-
import { CacheAdaptor, DataManager, DataUtil, Deferred,
|
|
4
|
+
import { CacheAdaptor, DataManager, DataUtil, Deferred, ODataAdaptor, ODataV4Adaptor, Query, RemoteSaveAdaptor, UrlAdaptor, WebApiAdaptor, WebMethodAdaptor } from '@syncfusion/ej2-data';
|
|
5
5
|
import { ColumnMenu, ContextMenu, Edit as Edit$1, ExcelExport, Filter, Reorder, Resize, RowDD, Selection, Sort, TreeGrid, VirtualScroll } from '@syncfusion/ej2-treegrid';
|
|
6
6
|
import { Splitter } from '@syncfusion/ej2-layouts';
|
|
7
7
|
import { ContextMenu as ContextMenu$1, Tab, Toolbar as Toolbar$1 } from '@syncfusion/ej2-navigations';
|
|
@@ -86,7 +86,7 @@ function isRemoteData(dataSource) {
|
|
|
86
86
|
return (adaptor instanceof ODataAdaptor || (adaptor instanceof ODataV4Adaptor) ||
|
|
87
87
|
(adaptor instanceof WebApiAdaptor) || (adaptor instanceof WebMethodAdaptor) ||
|
|
88
88
|
(adaptor instanceof CacheAdaptor) || (adaptor instanceof RemoteSaveAdaptor) ||
|
|
89
|
-
|
|
89
|
+
adaptor instanceof UrlAdaptor);
|
|
90
90
|
}
|
|
91
91
|
return false;
|
|
92
92
|
}
|
|
@@ -2142,6 +2142,7 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
2142
2142
|
}
|
|
2143
2143
|
};
|
|
2144
2144
|
TaskProcessor.prototype.addTaskData = function (ganttData, data, isLoad) {
|
|
2145
|
+
var _this = this;
|
|
2145
2146
|
var taskSettings = this.parent.taskFields;
|
|
2146
2147
|
var dataManager = this.parent.dataSource;
|
|
2147
2148
|
if (isLoad) {
|
|
@@ -2150,8 +2151,15 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
2150
2151
|
if (taskSettings.parentID) {
|
|
2151
2152
|
var id = data[taskSettings.id];
|
|
2152
2153
|
var index = this.taskIds.indexOf(id.toString());
|
|
2153
|
-
var
|
|
2154
|
-
this.parent.
|
|
2154
|
+
var tempData_1 = (index > -1) ? this.dataArray[index] : {};
|
|
2155
|
+
if (!isNullOrUndefined(this.parent.taskFields.segmentId)) {
|
|
2156
|
+
var segmentDataCollection = this.segmentCollection.
|
|
2157
|
+
filter(function (x) { return x.key === tempData_1[_this.parent.taskFields.id]; });
|
|
2158
|
+
if (segmentDataCollection.length > 0) {
|
|
2159
|
+
tempData_1[this.parent.taskFields.segments] = segmentDataCollection[0].items;
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
this.parent.setRecordValue('taskData', tempData_1, ganttData);
|
|
2155
2163
|
}
|
|
2156
2164
|
else {
|
|
2157
2165
|
this.parent.setRecordValue('taskData', data, ganttData);
|
|
@@ -13668,6 +13676,23 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
13668
13676
|
this.treeGrid.height = this.ganttHeight - toolbarHeight -
|
|
13669
13677
|
this.treeGrid.grid.getHeaderContent().offsetHeight;
|
|
13670
13678
|
this.splitterModule.splitterObject.height = (this.ganttHeight - toolbarHeight).toString();
|
|
13679
|
+
if (!isNullOrUndefined(this.chartVerticalLineContainer)) {
|
|
13680
|
+
this.chartVerticalLineContainer.style.height = this.ganttHeight + 'px';
|
|
13681
|
+
}
|
|
13682
|
+
if (!isNullOrUndefined(this.dayMarkersModule)) {
|
|
13683
|
+
var holidayContainer$$1 = getValue('nonworkingDayRender.holidayContainer', this.dayMarkersModule);
|
|
13684
|
+
var weekendContainer$$1 = getValue('nonworkingDayRender.weekendContainer', this.dayMarkersModule);
|
|
13685
|
+
var eventMarkersContainer$$1 = getValue('eventMarkerRender.eventMarkersContainer', this.dayMarkersModule);
|
|
13686
|
+
if (holidayContainer$$1) {
|
|
13687
|
+
holidayContainer$$1.style.height = this.ganttHeight + 'px';
|
|
13688
|
+
}
|
|
13689
|
+
if (weekendContainer$$1) {
|
|
13690
|
+
weekendContainer$$1.style.height = this.ganttHeight + 'px';
|
|
13691
|
+
}
|
|
13692
|
+
if (eventMarkersContainer$$1) {
|
|
13693
|
+
eventMarkersContainer$$1.style.height = this.ganttHeight + 'px';
|
|
13694
|
+
}
|
|
13695
|
+
}
|
|
13671
13696
|
this.splitterModule.splitterObject.width = this.ganttWidth.toString();
|
|
13672
13697
|
this.ganttChartModule.scrollObject.
|
|
13673
13698
|
setHeight(this.ganttHeight - this.ganttChartModule.chartTimelineContainer.offsetHeight - toolbarHeight);
|