devexpress-gantt 3.1.28 → 3.1.29
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 +17 -14
- package/dist/dx-gantt.min.css +2 -2
- package/dist/dx-gantt.min.js +5 -5
- 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: 3.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 3.1.29
|
|
4
|
+
* Build date: Thu Nov 11 2021
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2021 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: 3.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 3.1.29
|
|
4
|
+
* Build date: Thu Nov 11 2021
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|
|
@@ -3788,6 +3788,10 @@ var TaskAreaDomHelper = (function () {
|
|
|
3788
3788
|
source === Enums_1.TaskAreaEventSource.TaskEdit_DependencyStart ||
|
|
3789
3789
|
source === Enums_1.TaskAreaEventSource.TaskEdit_DependencyFinish;
|
|
3790
3790
|
};
|
|
3791
|
+
TaskAreaDomHelper.isMouseEvent = function (evt) { return evt instanceof MouseEvent; };
|
|
3792
|
+
TaskAreaDomHelper.isTouchEvent = function (evt) { return window.TouchEvent && (evt instanceof TouchEvent); };
|
|
3793
|
+
TaskAreaDomHelper.isPointerEvent = function (evt) { return window.PointerEvent && (evt instanceof PointerEvent); };
|
|
3794
|
+
TaskAreaDomHelper.isMousePointer = function (evt) { return this.isPointerEvent(evt) && evt.pointerType === "mouse"; };
|
|
3791
3795
|
TaskAreaDomHelper.classToSource = (_a = {},
|
|
3792
3796
|
_a[TaskEditController_1.TaskEditController.CLASSNAMES.TASK_EDIT_PROGRESS] = Enums_1.TaskAreaEventSource.TaskEdit_Progress,
|
|
3793
3797
|
_a[TaskEditController_1.TaskEditController.CLASSNAMES.TASK_EDIT_START] = Enums_1.TaskAreaEventSource.TaskEdit_Start,
|
|
@@ -3829,9 +3833,9 @@ var TaskAreaStateBase = (function () {
|
|
|
3829
3833
|
}
|
|
3830
3834
|
TaskAreaStateBase.prototype.start = function () { };
|
|
3831
3835
|
TaskAreaStateBase.prototype.finish = function () { };
|
|
3832
|
-
TaskAreaStateBase.prototype.isTouchEvent = function (evt) { return evt
|
|
3833
|
-
TaskAreaStateBase.prototype.isPointerEvent = function (evt) { return evt
|
|
3834
|
-
TaskAreaStateBase.prototype.isMouseEvent = function (evt) { return evt
|
|
3836
|
+
TaskAreaStateBase.prototype.isTouchEvent = function (evt) { return TaskAreaDomHelper_1.TaskAreaDomHelper.isTouchEvent(evt); };
|
|
3837
|
+
TaskAreaStateBase.prototype.isPointerEvent = function (evt) { return TaskAreaDomHelper_1.TaskAreaDomHelper.isPointerEvent(evt); };
|
|
3838
|
+
TaskAreaStateBase.prototype.isMouseEvent = function (evt) { return TaskAreaDomHelper_1.TaskAreaDomHelper.isMouseEvent(evt); };
|
|
3835
3839
|
TaskAreaStateBase.prototype.onMouseWheel = function (evt) { };
|
|
3836
3840
|
TaskAreaStateBase.prototype.onScroll = function (evt) { this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_AREA_SCROLL); };
|
|
3837
3841
|
TaskAreaStateBase.prototype.onKeyDown = function (evt) {
|
|
@@ -3872,7 +3876,7 @@ var TaskAreaStateBase = (function () {
|
|
|
3872
3876
|
this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_AREA_DBLCLICK, evt, this.getClickedRowIndex(evt));
|
|
3873
3877
|
};
|
|
3874
3878
|
TaskAreaStateBase.prototype.onTaskAreaLeave = function (evt) {
|
|
3875
|
-
var isMouseLeave = evt
|
|
3879
|
+
var isMouseLeave = this.isPointerEvent(evt) ? TaskAreaDomHelper_1.TaskAreaDomHelper.isMousePointer(evt) : true;
|
|
3876
3880
|
if (isMouseLeave) {
|
|
3877
3881
|
this.isCursorInArea = false;
|
|
3878
3882
|
this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_EDIT_END, evt);
|
|
@@ -3902,8 +3906,8 @@ var TaskAreaStateBase = (function () {
|
|
|
3902
3906
|
};
|
|
3903
3907
|
TaskAreaStateBase.prototype.processPointerMove = function (evt) {
|
|
3904
3908
|
var _a;
|
|
3905
|
-
var isTouchEvent = evt
|
|
3906
|
-
var isPointerEvent = evt
|
|
3909
|
+
var isTouchEvent = this.isTouchEvent(evt);
|
|
3910
|
+
var isPointerEvent = this.isPointerEvent(evt);
|
|
3907
3911
|
(_a = this.position) !== null && _a !== void 0 ? _a : (this.position = new point_1.Point(evt_1.EvtUtils.getEventX(evt), evt_1.EvtUtils.getEventY(evt)));
|
|
3908
3912
|
var isMove = Math.abs(this.position.x - evt_1.EvtUtils.getEventX(evt)) > 2 || Math.abs(this.position.y - evt_1.EvtUtils.getEventY(evt)) > 2;
|
|
3909
3913
|
var isOutsideTouch = (isTouchEvent || isPointerEvent) && this.checkAndProcessTouchOutsideArea(evt);
|
|
@@ -17288,8 +17292,8 @@ var TaskAreaStateController = (function () {
|
|
|
17288
17292
|
var key = evt.pointerId;
|
|
17289
17293
|
delete this._pointers[key];
|
|
17290
17294
|
};
|
|
17291
|
-
TaskAreaStateController.prototype.isTouchEvent = function (evt) { return evt
|
|
17292
|
-
TaskAreaStateController.prototype.isPointerEvent = function (evt) { return evt
|
|
17295
|
+
TaskAreaStateController.prototype.isTouchEvent = function (evt) { return TaskAreaDomHelper_1.TaskAreaDomHelper.isTouchEvent(evt); };
|
|
17296
|
+
TaskAreaStateController.prototype.isPointerEvent = function (evt) { return TaskAreaDomHelper_1.TaskAreaDomHelper.isPointerEvent(evt); };
|
|
17293
17297
|
TaskAreaStateController.prototype._getActivePointersCount = function (evt) {
|
|
17294
17298
|
if (this.isTouchEvent(evt))
|
|
17295
17299
|
return evt.touches.length;
|
|
@@ -17302,7 +17306,7 @@ var TaskAreaStateController = (function () {
|
|
|
17302
17306
|
TaskAreaStateController.prototype._canStartDrag = function (evt) {
|
|
17303
17307
|
if (this._getActivePointersCount(evt) > 1)
|
|
17304
17308
|
return false;
|
|
17305
|
-
var isMouse =
|
|
17309
|
+
var isMouse = TaskAreaDomHelper_1.TaskAreaDomHelper.isMousePointer(evt);
|
|
17306
17310
|
if (isMouse && !evt_1.EvtUtils.isLeftButtonPressed(evt))
|
|
17307
17311
|
return false;
|
|
17308
17312
|
if (TaskAreaDomHelper_1.TaskAreaDomHelper.isConnectorLine(evt))
|
|
@@ -17566,7 +17570,7 @@ var TaskAreaDefaultState = (function (_super) {
|
|
|
17566
17570
|
var _this = this;
|
|
17567
17571
|
evt.preventDefault();
|
|
17568
17572
|
this._lastTouchRowIndex = this.getClickedRowIndex(evt);
|
|
17569
|
-
var isMouse = this.
|
|
17573
|
+
var isMouse = this.isPointerEvent(evt) ? TaskAreaDomHelper_1.TaskAreaDomHelper.isMousePointer(evt) : this.isMouseEvent(evt);
|
|
17570
17574
|
if (isMouse)
|
|
17571
17575
|
this.changeSelectionOnTouchDown(evt);
|
|
17572
17576
|
else {
|
|
@@ -17595,10 +17599,9 @@ var TaskAreaDefaultState = (function (_super) {
|
|
|
17595
17599
|
}
|
|
17596
17600
|
};
|
|
17597
17601
|
TaskAreaDefaultState.prototype.canToEmulateClick = function (evt) {
|
|
17598
|
-
var _a;
|
|
17599
17602
|
var isDependency = TaskAreaDomHelper_1.TaskAreaDomHelper.isConnectorLine(evt);
|
|
17600
17603
|
var canEmulate = !isDependency && this.getClickedRowIndex(evt) === this._lastTouchRowIndex;
|
|
17601
|
-
if (canEmulate && (
|
|
17604
|
+
if (canEmulate && TaskAreaDomHelper_1.TaskAreaDomHelper.isMousePointer(evt))
|
|
17602
17605
|
canEmulate && (canEmulate = evt.button !== 2);
|
|
17603
17606
|
return canEmulate;
|
|
17604
17607
|
};
|
package/dist/dx-gantt.min.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExpress Gantt (dx-gantt.min)
|
|
3
|
-
* Version: 3.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 3.1.29
|
|
4
|
+
* Build date: Thu Nov 11 2021
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|