devexpress-gantt 4.1.5 → 4.1.9
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/dist/dx-gantt.css +2 -2
- package/dist/dx-gantt.js +55 -23
- package/dist/dx-gantt.min.css +2 -2
- package/dist/dx-gantt.min.js +4 -4
- package/package.json +1 -1
package/dist/dx-gantt.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExpress Gantt (dx-gantt)
|
|
3
|
-
* Version: 4.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 4.1.9
|
|
4
|
+
* Build date: Wed Feb 02 2022
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|
package/dist/dx-gantt.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExpress Gantt (dx-gantt)
|
|
3
|
-
* Version: 4.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 4.1.9
|
|
4
|
+
* Build date: Wed Feb 02 2022
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|
|
@@ -1809,6 +1809,7 @@ var TaskAreaStateEventNames = (function () {
|
|
|
1809
1809
|
TaskAreaStateEventNames.TASK_AREA_ZOOM_IN = "taskAreaZoomIn";
|
|
1810
1810
|
TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT = "taskAreaZoomOut";
|
|
1811
1811
|
TaskAreaStateEventNames.CONTEXTMENU_SHOW = "contextMenuShow";
|
|
1812
|
+
TaskAreaStateEventNames.CONTEXTMENU_HIDE = "contextMenuHide";
|
|
1812
1813
|
TaskAreaStateEventNames.DEPENDENCY_SELECTION = "dependencySelection";
|
|
1813
1814
|
TaskAreaStateEventNames.STATE_EXIT = "stateExit";
|
|
1814
1815
|
TaskAreaStateEventNames.TASK_SELECTION = "taskSelection";
|
|
@@ -2907,7 +2908,8 @@ var GridLayoutCalculator = (function () {
|
|
|
2907
2908
|
return new size_1.Size(width, 0);
|
|
2908
2909
|
};
|
|
2909
2910
|
GridLayoutCalculator.prototype.getTaskProgressWidth = function (index) {
|
|
2910
|
-
|
|
2911
|
+
var progress = Math.max(Math.min(this.getTask(index).progress, 100), 0);
|
|
2912
|
+
return this.getTaskWidth(index) * progress / 100;
|
|
2911
2913
|
};
|
|
2912
2914
|
GridLayoutCalculator.prototype.getTaskTextElementInfo = function (index, isInsideText) {
|
|
2913
2915
|
var result = new GridElementInfo_1.GridElementInfo();
|
|
@@ -3086,7 +3088,10 @@ var GridLayoutCalculator = (function () {
|
|
|
3086
3088
|
return this.getWidthByDateRange(this.range.start, date);
|
|
3087
3089
|
};
|
|
3088
3090
|
GridLayoutCalculator.prototype.getWidthByDateRange = function (start, end) {
|
|
3089
|
-
return Math.max(
|
|
3091
|
+
return Math.max(this.getDistanceBetweenDates(start, end), 0);
|
|
3092
|
+
};
|
|
3093
|
+
GridLayoutCalculator.prototype.getDistanceBetweenDates = function (start, end) {
|
|
3094
|
+
return DateUtils_1.DateUtils.getRangeTickCount(start, end, this.viewType) * this.tickSize.width;
|
|
3090
3095
|
};
|
|
3091
3096
|
GridLayoutCalculator.prototype.getDateByPos = function (position) {
|
|
3092
3097
|
if (this.viewType === Enums_1.ViewType.Months || this.viewType === Enums_1.ViewType.Quarter)
|
|
@@ -5167,8 +5172,7 @@ var TaskEditController = (function () {
|
|
|
5167
5172
|
enumerable: false,
|
|
5168
5173
|
configurable: true
|
|
5169
5174
|
});
|
|
5170
|
-
TaskEditController.prototype.show = function (taskIndex
|
|
5171
|
-
if (delay === void 0) { delay = 0; }
|
|
5175
|
+
TaskEditController.prototype.show = function (taskIndex) {
|
|
5172
5176
|
if (this.isEditingInProgress || this.disableTaskEditBox)
|
|
5173
5177
|
return;
|
|
5174
5178
|
this.taskIndex = taskIndex;
|
|
@@ -5181,11 +5185,10 @@ var TaskEditController = (function () {
|
|
|
5181
5185
|
else {
|
|
5182
5186
|
if (!this.isTaskUpdateAllowed())
|
|
5183
5187
|
this.baseElement.className = this.baseElement.className + " hide-updating";
|
|
5184
|
-
if (this.viewItem.isCustom)
|
|
5188
|
+
if (this.viewItem.isCustom)
|
|
5185
5189
|
this.baseElement.classList.add(TaskEditController.CLASSNAMES.TASK_EDIT_BOX_CUSTOM);
|
|
5186
|
-
delay = this.showInfoDelay;
|
|
5187
|
-
}
|
|
5188
5190
|
}
|
|
5191
|
+
var delay = this.settings.getGanttSettings().editing.taskHoverDelay || 0;
|
|
5189
5192
|
this.taskDateRange = new DateRange_1.DateRange(this.task.start, this.task.end);
|
|
5190
5193
|
this.displayTaskEditBox(delay);
|
|
5191
5194
|
this.displayProgressEdit();
|
|
@@ -5603,8 +5606,6 @@ var GanttView = (function () {
|
|
|
5603
5606
|
this.initTaskEditController();
|
|
5604
5607
|
this.history = new History_1.History(this._getHistoryListener());
|
|
5605
5608
|
this.initFullScreenModeHelper();
|
|
5606
|
-
this.onWindowResizelHandler = this.onBrowserWindowResize.bind(this);
|
|
5607
|
-
window.addEventListener("resize", this.onWindowResizelHandler);
|
|
5608
5609
|
this.updateView();
|
|
5609
5610
|
this._scrollTimeOut = setTimeout(function () {
|
|
5610
5611
|
_this.scrollLeftByViewType();
|
|
@@ -5708,6 +5709,10 @@ var GanttView = (function () {
|
|
|
5708
5709
|
GanttView.prototype.showPopupMenu = function (info) {
|
|
5709
5710
|
this.ganttOwner.showPopupMenu(info);
|
|
5710
5711
|
};
|
|
5712
|
+
GanttView.prototype.hidePopupMenu = function () {
|
|
5713
|
+
if (this.ganttOwner.hidePopupMenu)
|
|
5714
|
+
this.ganttOwner.hidePopupMenu();
|
|
5715
|
+
};
|
|
5711
5716
|
GanttView.prototype.collapseAll = function () {
|
|
5712
5717
|
this.ganttOwner.collapseAll();
|
|
5713
5718
|
};
|
|
@@ -5980,7 +5985,6 @@ var GanttView = (function () {
|
|
|
5980
5985
|
GanttView.prototype.cleanMarkup = function () {
|
|
5981
5986
|
this.renderHelper.taskAreaManagerDetachEvents();
|
|
5982
5987
|
this.taskEditController.detachEvents();
|
|
5983
|
-
window.removeEventListener("resize", this.onWindowResizelHandler);
|
|
5984
5988
|
this.clearStripLinesUpdater();
|
|
5985
5989
|
this.renderHelper.reset();
|
|
5986
5990
|
clearTimeout(this._scrollTimeOut);
|
|
@@ -6167,6 +6171,12 @@ var GanttView = (function () {
|
|
|
6167
6171
|
else
|
|
6168
6172
|
this.resetAndUpdate();
|
|
6169
6173
|
};
|
|
6174
|
+
GanttView.prototype.onBrowserWindowResize = function () {
|
|
6175
|
+
if (this.fullScreenModeHelper.isInFullScreenMode)
|
|
6176
|
+
this.fullScreenModeHelper.adjustControlInFullScreenMode();
|
|
6177
|
+
else
|
|
6178
|
+
this.adjustOwnerControl();
|
|
6179
|
+
};
|
|
6170
6180
|
GanttView.prototype.setTaskValue = function (id, fieldName, newValue) {
|
|
6171
6181
|
var manager = this.commandManager;
|
|
6172
6182
|
var task = this.getTaskByPublicId(id);
|
|
@@ -6238,12 +6248,6 @@ var GanttView = (function () {
|
|
|
6238
6248
|
if (owner.adjustControl)
|
|
6239
6249
|
owner.adjustControl();
|
|
6240
6250
|
};
|
|
6241
|
-
GanttView.prototype.onBrowserWindowResize = function () {
|
|
6242
|
-
if (this.fullScreenModeHelper.isInFullScreenMode)
|
|
6243
|
-
this.fullScreenModeHelper.adjustControlInFullScreenMode();
|
|
6244
|
-
else
|
|
6245
|
-
this.adjustOwnerControl();
|
|
6246
|
-
};
|
|
6247
6251
|
GanttView.prototype.applySettings = function (settings, preventViewUpdate) {
|
|
6248
6252
|
if (preventViewUpdate === void 0) { preventViewUpdate = false; }
|
|
6249
6253
|
var ganttSettings = Settings_1.Settings.parse(settings);
|
|
@@ -12393,7 +12397,7 @@ var TaskAreaExportHelper = (function () {
|
|
|
12393
12397
|
Object.defineProperty(TaskAreaExportHelper.prototype, "customRangeLeftOffset", {
|
|
12394
12398
|
get: function () {
|
|
12395
12399
|
var _a;
|
|
12396
|
-
(_a = this._customRangeLeftOffset) !== null && _a !== void 0 ? _a : (this._customRangeLeftOffset =
|
|
12400
|
+
(_a = this._customRangeLeftOffset) !== null && _a !== void 0 ? _a : (this._customRangeLeftOffset = this.layoutCalculator.getDistanceBetweenDates(this.startDate, this.ownerStartDate));
|
|
12397
12401
|
return this._customRangeLeftOffset;
|
|
12398
12402
|
},
|
|
12399
12403
|
enumerable: false,
|
|
@@ -12740,7 +12744,7 @@ var TaskAreaExportHelper = (function () {
|
|
|
12740
12744
|
get: function () {
|
|
12741
12745
|
var _this = this;
|
|
12742
12746
|
var _a;
|
|
12743
|
-
(_a = this._connectorLines) !== null && _a !== void 0 ? _a : (this._connectorLines = this._owner.renderHelper.
|
|
12747
|
+
(_a = this._connectorLines) !== null && _a !== void 0 ? _a : (this._connectorLines = this._owner.renderHelper.allConnectorLines.filter(function (l) { return _this.isLineVisible(l); }));
|
|
12744
12748
|
return this._connectorLines;
|
|
12745
12749
|
},
|
|
12746
12750
|
enumerable: false,
|
|
@@ -12873,7 +12877,7 @@ var TaskAreaExportHelper = (function () {
|
|
|
12873
12877
|
});
|
|
12874
12878
|
Object.defineProperty(TaskAreaExportHelper.prototype, "hasCustomRangeOutOfRender", {
|
|
12875
12879
|
get: function () {
|
|
12876
|
-
return this.startDate.getTime()
|
|
12880
|
+
return this.startDate.getTime() !== this.ownerStartDate.getTime() || this.endDate.getTime() !== this.ownerEndDate.getTime();
|
|
12877
12881
|
},
|
|
12878
12882
|
enumerable: false,
|
|
12879
12883
|
configurable: true
|
|
@@ -13025,6 +13029,10 @@ var GanttPdfExportProps = (function () {
|
|
|
13025
13029
|
this.pageSize = new size_1.Size(width, height);
|
|
13026
13030
|
}
|
|
13027
13031
|
}
|
|
13032
|
+
else if ((0, common_1.isDefined)(source.pageSize)) {
|
|
13033
|
+
var size = source.pageSize;
|
|
13034
|
+
this.pageSize = size instanceof size_1.Size ? size.clone() : new size_1.Size(size.width, size.height);
|
|
13035
|
+
}
|
|
13028
13036
|
if ((0, common_1.isDefined)(source.exportMode))
|
|
13029
13037
|
this.exportMode = this.getEnumValue(Enums_1.ExportMode, source.exportMode);
|
|
13030
13038
|
if ((0, common_1.isDefined)(source.dateRange)) {
|
|
@@ -16035,6 +16043,14 @@ var RenderHelper = (function () {
|
|
|
16035
16043
|
enumerable: false,
|
|
16036
16044
|
configurable: true
|
|
16037
16045
|
});
|
|
16046
|
+
Object.defineProperty(RenderHelper.prototype, "allConnectorLines", {
|
|
16047
|
+
get: function () {
|
|
16048
|
+
var lines = this.gridLayoutCalculator.tileToDependencyMap.reduce(function (acc, tile) { return acc = acc.concat(tile); }, []);
|
|
16049
|
+
return lines;
|
|
16050
|
+
},
|
|
16051
|
+
enumerable: false,
|
|
16052
|
+
configurable: true
|
|
16053
|
+
});
|
|
16038
16054
|
Object.defineProperty(RenderHelper.prototype, "resourcesElements", {
|
|
16039
16055
|
get: function () {
|
|
16040
16056
|
return this._resourceRender.resourcesElements;
|
|
@@ -17710,7 +17726,10 @@ var TaskAreaDefaultState = (function (_super) {
|
|
|
17710
17726
|
function TaskAreaDefaultState() {
|
|
17711
17727
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
17712
17728
|
}
|
|
17713
|
-
TaskAreaDefaultState.prototype.finish = function () {
|
|
17729
|
+
TaskAreaDefaultState.prototype.finish = function () {
|
|
17730
|
+
this.clearTimers();
|
|
17731
|
+
this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.CONTEXTMENU_HIDE);
|
|
17732
|
+
};
|
|
17714
17733
|
TaskAreaDefaultState.prototype.onMouseDownInternal = function (evt) { this.onPointerDownBase(evt); };
|
|
17715
17734
|
TaskAreaDefaultState.prototype.onDocumentPointerDownInternal = function (evt) { this.onPointerDownBase(evt); };
|
|
17716
17735
|
TaskAreaDefaultState.prototype.onDocumentPointerUpInternal = function (evt) { this.onPointerUpBase(evt); };
|
|
@@ -17726,7 +17745,11 @@ var TaskAreaDefaultState = (function (_super) {
|
|
|
17726
17745
|
if (isMouse)
|
|
17727
17746
|
this.changeSelectionOnTouchDown(evt);
|
|
17728
17747
|
else {
|
|
17729
|
-
setTimeout(function () {
|
|
17748
|
+
setTimeout(function () {
|
|
17749
|
+
if (!TaskAreaDomHelper_1.TaskAreaDomHelper.isMousePointer(evt))
|
|
17750
|
+
_this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.CONTEXTMENU_HIDE, evt);
|
|
17751
|
+
_this.changeSelectionOnTouchDown(evt);
|
|
17752
|
+
}, 0);
|
|
17730
17753
|
clearTimeout(this._contextMenuTimer);
|
|
17731
17754
|
this._contextMenuTimer = setTimeout(function () { return _this.showContextMenuOnTouchDown(evt); }, TaskAreaDefaultState.defaultContextMenuTimeout);
|
|
17732
17755
|
}
|
|
@@ -17741,6 +17764,8 @@ var TaskAreaDefaultState = (function (_super) {
|
|
|
17741
17764
|
if (!this._lastEmulatedClickTime) {
|
|
17742
17765
|
var clickCanceled = !this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_AREA_CLICK, evt, rowIndex);
|
|
17743
17766
|
clearTimeout(this._dblClickClearTimer);
|
|
17767
|
+
if (TaskAreaDomHelper_1.TaskAreaDomHelper.isMousePointer(evt))
|
|
17768
|
+
this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.CONTEXTMENU_HIDE, evt);
|
|
17744
17769
|
if (!clickCanceled) {
|
|
17745
17770
|
this._lastEmulatedClickTime = now;
|
|
17746
17771
|
this._dblClickClearTimer = setTimeout(function () { delete _this._lastEmulatedClickTime; }, TaskAreaDefaultState.defaultDblClickClearTimeout);
|
|
@@ -19328,6 +19353,7 @@ var EditingSettings = (function () {
|
|
|
19328
19353
|
this.allowResourceInsert = true;
|
|
19329
19354
|
this.allowResourceUpdate = true;
|
|
19330
19355
|
this.allowTaskResourceUpdate = true;
|
|
19356
|
+
this.taskHoverDelay = 0;
|
|
19331
19357
|
}
|
|
19332
19358
|
EditingSettings.parse = function (settings) {
|
|
19333
19359
|
var result = new EditingSettings();
|
|
@@ -19352,6 +19378,8 @@ var EditingSettings = (function () {
|
|
|
19352
19378
|
result.allowResourceUpdate = settings.allowResourceUpdate;
|
|
19353
19379
|
if ((0, common_1.isDefined)(settings.allowTaskResourceUpdate))
|
|
19354
19380
|
result.allowTaskResourceUpdate = settings.allowTaskResourceUpdate;
|
|
19381
|
+
if ((0, common_1.isDefined)(settings.taskHoverDelay))
|
|
19382
|
+
result.taskHoverDelay = settings.taskHoverDelay;
|
|
19355
19383
|
}
|
|
19356
19384
|
return result;
|
|
19357
19385
|
};
|
|
@@ -21327,6 +21355,7 @@ var TaskAreaEventsListener = (function () {
|
|
|
21327
21355
|
handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_AREA_ZOOM_IN] = this.taskAreaZoomInHandler.bind(this);
|
|
21328
21356
|
handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT] = this.taskAreaZoomOutHandler.bind(this);
|
|
21329
21357
|
handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.CONTEXTMENU_SHOW] = this.taskAreaContextMenuShowHandler.bind(this);
|
|
21358
|
+
handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.CONTEXTMENU_HIDE] = this.taskAreaContextMenuHideHandler.bind(this);
|
|
21330
21359
|
handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_SELECTION] = this.taskSelectionHandler.bind(this);
|
|
21331
21360
|
handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.DEPENDENCY_SELECTION] = this.dependencySelectionHandler.bind(this);
|
|
21332
21361
|
handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_EDIT_START] = this.taskEditStartHandler.bind(this);
|
|
@@ -21361,6 +21390,9 @@ var TaskAreaEventsListener = (function () {
|
|
|
21361
21390
|
TaskAreaEventsListener.prototype.taskAreaContextMenuShowHandler = function (args) {
|
|
21362
21391
|
this._owner.onTaskAreaContextMenu(args.rowIndex, args.triggerEvent, args.info["type"]);
|
|
21363
21392
|
};
|
|
21393
|
+
TaskAreaEventsListener.prototype.taskAreaContextMenuHideHandler = function () {
|
|
21394
|
+
this._owner.hidePopupMenu();
|
|
21395
|
+
};
|
|
21364
21396
|
TaskAreaEventsListener.prototype.taskAreaScrollHandler = function (args) {
|
|
21365
21397
|
this._owner.updateView();
|
|
21366
21398
|
};
|
package/dist/dx-gantt.min.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExpress Gantt (dx-gantt.min)
|
|
3
|
-
* Version: 4.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 4.1.9
|
|
4
|
+
* Build date: Wed Feb 02 2022
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|