devexpress-gantt 4.1.43 → 4.1.45
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 +45 -20
- package/dist/dx-gantt.min.css +2 -2
- package/dist/dx-gantt.min.js +4 -4
- package/dist/lib/package.json +1 -1
- package/dist/lib/src/Interfaces/IGanttOwner.ts +1 -1
- package/dist/lib/src/View/Api/GanttViewApi.ts +2 -2
- package/dist/lib/src/View/Edit/TaskEditController.ts +2 -1
- package/dist/lib/src/View/Edit/TaskEditTooltip.ts +35 -15
- package/dist/lib/src/View/Settings/InitSettings/TooltipSettings.ts +4 -0
- 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.45
|
|
4
|
+
* Build date: Mon May 22 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 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.45
|
|
4
|
+
* Build date: Mon May 22 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|
|
@@ -5122,7 +5122,8 @@ var TaskEditController = (function () {
|
|
|
5122
5122
|
getTaskTimeTooltipContentTemplate: this.ganttSettings.taskTimeTooltipContentTemplate,
|
|
5123
5123
|
getTaskTooltipContentTemplate: this.ganttSettings.taskTooltipContentTemplate,
|
|
5124
5124
|
destroyTemplate: function (container) { _this.settings.destroyTemplate(container); },
|
|
5125
|
-
formatDate: function (date) { return _this.settings.formatDate(date); }
|
|
5125
|
+
formatDate: function (date) { return _this.settings.formatDate(date); },
|
|
5126
|
+
getTaskAreaContainer: function () { return _this.settings.getRenderHelper().taskAreaContainer; }
|
|
5126
5127
|
});
|
|
5127
5128
|
return tooltipSettings;
|
|
5128
5129
|
},
|
|
@@ -7107,6 +7108,8 @@ var TooltipSettings = (function () {
|
|
|
7107
7108
|
result.destroyTemplate = settings.destroyTemplate;
|
|
7108
7109
|
if ((0, common_1.isDefined)(settings.formatDate))
|
|
7109
7110
|
result.formatDate = settings.formatDate;
|
|
7111
|
+
if ((0, common_1.isDefined)(settings.getTaskAreaContainer))
|
|
7112
|
+
result.getTaskAreaContainer = settings.getTaskAreaContainer;
|
|
7110
7113
|
}
|
|
7111
7114
|
return result;
|
|
7112
7115
|
};
|
|
@@ -16895,6 +16898,13 @@ var TaskEditTooltip = (function () {
|
|
|
16895
16898
|
enumerable: false,
|
|
16896
16899
|
configurable: true
|
|
16897
16900
|
});
|
|
16901
|
+
Object.defineProperty(TaskEditTooltip.prototype, "taskAreaContainer", {
|
|
16902
|
+
get: function () {
|
|
16903
|
+
return this.tooltipSettings.getTaskAreaContainer();
|
|
16904
|
+
},
|
|
16905
|
+
enumerable: false,
|
|
16906
|
+
configurable: true
|
|
16907
|
+
});
|
|
16898
16908
|
Object.defineProperty(TaskEditTooltip.prototype, "taskTooltipContentTemplate", {
|
|
16899
16909
|
get: function () {
|
|
16900
16910
|
return this.tooltipSettings.getTaskTooltipContentTemplate;
|
|
@@ -17013,25 +17023,16 @@ var TaskEditTooltip = (function () {
|
|
|
17013
17023
|
};
|
|
17014
17024
|
TaskEditTooltip.prototype.show = function (posX, autoHide) {
|
|
17015
17025
|
var _this = this;
|
|
17016
|
-
var _a, _b, _c
|
|
17026
|
+
var _a, _b, _c;
|
|
17017
17027
|
if (autoHide === void 0) { autoHide = true; }
|
|
17018
|
-
var arrowHeight = 5;
|
|
17019
|
-
var heightOffset = 15;
|
|
17020
17028
|
(_a = this.defaultTooltip) === null || _a === void 0 ? void 0 : _a.classList.remove(TaskEditTooltip.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_AFTER);
|
|
17021
17029
|
(_b = this.defaultTooltip) === null || _b === void 0 ? void 0 : _b.classList.remove(TaskEditTooltip.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_BEFORE);
|
|
17022
17030
|
this.baseElement.style.display = "block";
|
|
17023
|
-
var
|
|
17024
|
-
var
|
|
17025
|
-
var
|
|
17026
|
-
var
|
|
17027
|
-
|
|
17028
|
-
var topPosition = -this.baseElement.clientHeight - arrowHeight;
|
|
17029
|
-
if (isShowingDown) {
|
|
17030
|
-
topPosition = this.parentElement.clientHeight + arrowHeight;
|
|
17031
|
-
(_c = this.defaultTooltip) === null || _c === void 0 ? void 0 : _c.classList.add(TaskEditTooltip.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_AFTER);
|
|
17032
|
-
}
|
|
17033
|
-
else
|
|
17034
|
-
(_d = this.defaultTooltip) === null || _d === void 0 ? void 0 : _d.classList.add(TaskEditTooltip.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_BEFORE);
|
|
17031
|
+
var leftPosition = this.getLeftPosition(posX);
|
|
17032
|
+
var isShowingUnder = this.needToShowUnderParent();
|
|
17033
|
+
var topPosition = this.getTopPosition(isShowingUnder);
|
|
17034
|
+
var arrowClassName = isShowingUnder ? TaskEditTooltip.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_AFTER : TaskEditTooltip.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_BEFORE;
|
|
17035
|
+
(_c = this.defaultTooltip) === null || _c === void 0 ? void 0 : _c.classList.add(arrowClassName);
|
|
17035
17036
|
this.baseElement.style.left = leftPosition + "px";
|
|
17036
17037
|
this.baseElement.style.top = topPosition + "px";
|
|
17037
17038
|
if (autoHide) {
|
|
@@ -17070,6 +17071,28 @@ var TaskEditTooltip = (function () {
|
|
|
17070
17071
|
endValue.innerText = this.formatDate(end);
|
|
17071
17072
|
return timeElement;
|
|
17072
17073
|
};
|
|
17074
|
+
TaskEditTooltip.prototype.getLeftPosition = function (absolutePosition) {
|
|
17075
|
+
var parentAbsoluteX = dom_1.DomUtils.getAbsolutePositionX(this.parentElement);
|
|
17076
|
+
var leftPosition = absolutePosition - parentAbsoluteX - 2 * TaskEditTooltip.defaultArrowHeight;
|
|
17077
|
+
if (this.taskAreaContainer) {
|
|
17078
|
+
var rightBorder = dom_1.DomUtils.getAbsolutePositionX(this.taskAreaContainer.getElement()) + this.taskAreaContainer.getWidth();
|
|
17079
|
+
var rightOverflow = absolutePosition + this.baseElement.clientWidth - rightBorder;
|
|
17080
|
+
if (rightOverflow > 0)
|
|
17081
|
+
leftPosition -= rightOverflow;
|
|
17082
|
+
}
|
|
17083
|
+
return leftPosition;
|
|
17084
|
+
};
|
|
17085
|
+
TaskEditTooltip.prototype.getTopPosition = function (isShowingUnder) {
|
|
17086
|
+
return isShowingUnder ? this.parentElement.clientHeight + TaskEditTooltip.defaultArrowHeight : -this.baseElement.clientHeight - TaskEditTooltip.defaultArrowHeight;
|
|
17087
|
+
};
|
|
17088
|
+
TaskEditTooltip.prototype.needToShowUnderParent = function () {
|
|
17089
|
+
var _a;
|
|
17090
|
+
var absolutePositionY = dom_1.DomUtils.getAbsolutePositionY(this.parentElement);
|
|
17091
|
+
var distanceToScreenTop = absolutePositionY - this.headerHeight - dom_1.DomUtils.getDocumentScrollTop() - TaskEditTooltip.defaultHeightOffset;
|
|
17092
|
+
var taskAreaContScrollTop = ((_a = this.taskAreaContainer) === null || _a === void 0 ? void 0 : _a.scrollTop) || 0;
|
|
17093
|
+
var distanceToTaskAreaTop = this.parentElement.offsetTop - taskAreaContScrollTop;
|
|
17094
|
+
return this.baseElement.clientHeight > distanceToScreenTop || this.baseElement.clientHeight > distanceToTaskAreaTop;
|
|
17095
|
+
};
|
|
17073
17096
|
TaskEditTooltip.CLASSNAMES = {
|
|
17074
17097
|
TASK_EDIT_PROGRESS_STATUS: "dx-gantt-task-edit-tooltip",
|
|
17075
17098
|
TASK_EDIT_TOOLTIP_DEFAULT: "dx-gantt-task-edit-tooltip-default",
|
|
@@ -17078,6 +17101,8 @@ var TaskEditTooltip = (function () {
|
|
|
17078
17101
|
TASK_EDIT_TOOLTIP_ARROW_BEFORE: "dx-gantt-task-edit-tooltip-before",
|
|
17079
17102
|
TASK_EDIT_TOOLTIP_ARROW_AFTER: "dx-gantt-task-edit-tooltip-after"
|
|
17080
17103
|
};
|
|
17104
|
+
TaskEditTooltip.defaultArrowHeight = 5;
|
|
17105
|
+
TaskEditTooltip.defaultHeightOffset = 15;
|
|
17081
17106
|
return TaskEditTooltip;
|
|
17082
17107
|
}());
|
|
17083
17108
|
exports.TaskEditTooltip = TaskEditTooltip;
|
|
@@ -20821,8 +20846,8 @@ var GanttViewApi = (function () {
|
|
|
20821
20846
|
this.resetAndUpdate();
|
|
20822
20847
|
if (autoPositioning)
|
|
20823
20848
|
this.scrollLeftByViewType();
|
|
20824
|
-
if (this.ganttOwner.
|
|
20825
|
-
this.ganttOwner.
|
|
20849
|
+
if (this.ganttOwner.updateGanttViewType)
|
|
20850
|
+
this.ganttOwner.updateGanttViewType(viewType);
|
|
20826
20851
|
}
|
|
20827
20852
|
};
|
|
20828
20853
|
GanttViewApi.prototype.setViewTypeRange = function (min, max) {
|
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.45
|
|
4
|
+
* Build date: Mon May 22 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|