@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';
|
|
@@ -85,7 +85,7 @@ function isRemoteData(dataSource) {
|
|
|
85
85
|
return (adaptor instanceof ODataAdaptor || (adaptor instanceof ODataV4Adaptor) ||
|
|
86
86
|
(adaptor instanceof WebApiAdaptor) || (adaptor instanceof WebMethodAdaptor) ||
|
|
87
87
|
(adaptor instanceof CacheAdaptor) || (adaptor instanceof RemoteSaveAdaptor) ||
|
|
88
|
-
|
|
88
|
+
adaptor instanceof UrlAdaptor);
|
|
89
89
|
}
|
|
90
90
|
return false;
|
|
91
91
|
}
|
|
@@ -2113,6 +2113,13 @@ class TaskProcessor extends DateProcessor {
|
|
|
2113
2113
|
const id = data[taskSettings.id];
|
|
2114
2114
|
const index = this.taskIds.indexOf(id.toString());
|
|
2115
2115
|
const tempData = (index > -1) ? this.dataArray[index] : {};
|
|
2116
|
+
if (!isNullOrUndefined(this.parent.taskFields.segmentId)) {
|
|
2117
|
+
const segmentDataCollection = this.segmentCollection.
|
|
2118
|
+
filter((x) => x.key === tempData[this.parent.taskFields.id]);
|
|
2119
|
+
if (segmentDataCollection.length > 0) {
|
|
2120
|
+
tempData[this.parent.taskFields.segments] = segmentDataCollection[0].items;
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2116
2123
|
this.parent.setRecordValue('taskData', tempData, ganttData);
|
|
2117
2124
|
}
|
|
2118
2125
|
else {
|
|
@@ -13253,6 +13260,23 @@ let Gantt = class Gantt extends Component {
|
|
|
13253
13260
|
this.treeGrid.height = this.ganttHeight - toolbarHeight -
|
|
13254
13261
|
this.treeGrid.grid.getHeaderContent().offsetHeight;
|
|
13255
13262
|
this.splitterModule.splitterObject.height = (this.ganttHeight - toolbarHeight).toString();
|
|
13263
|
+
if (!isNullOrUndefined(this.chartVerticalLineContainer)) {
|
|
13264
|
+
this.chartVerticalLineContainer.style.height = this.ganttHeight + 'px';
|
|
13265
|
+
}
|
|
13266
|
+
if (!isNullOrUndefined(this.dayMarkersModule)) {
|
|
13267
|
+
const holidayContainer$$1 = getValue('nonworkingDayRender.holidayContainer', this.dayMarkersModule);
|
|
13268
|
+
const weekendContainer$$1 = getValue('nonworkingDayRender.weekendContainer', this.dayMarkersModule);
|
|
13269
|
+
const eventMarkersContainer$$1 = getValue('eventMarkerRender.eventMarkersContainer', this.dayMarkersModule);
|
|
13270
|
+
if (holidayContainer$$1) {
|
|
13271
|
+
holidayContainer$$1.style.height = this.ganttHeight + 'px';
|
|
13272
|
+
}
|
|
13273
|
+
if (weekendContainer$$1) {
|
|
13274
|
+
weekendContainer$$1.style.height = this.ganttHeight + 'px';
|
|
13275
|
+
}
|
|
13276
|
+
if (eventMarkersContainer$$1) {
|
|
13277
|
+
eventMarkersContainer$$1.style.height = this.ganttHeight + 'px';
|
|
13278
|
+
}
|
|
13279
|
+
}
|
|
13256
13280
|
this.splitterModule.splitterObject.width = this.ganttWidth.toString();
|
|
13257
13281
|
this.ganttChartModule.scrollObject.
|
|
13258
13282
|
setHeight(this.ganttHeight - this.ganttChartModule.chartTimelineContainer.offsetHeight - toolbarHeight);
|