devexpress-gantt 4.1.69 → 4.1.71
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 +33 -15
- package/dist/dx-gantt.min.css +2 -2
- package/dist/dx-gantt.min.js +1 -1
- package/dist/dx-gantt.min.js.LICENSE.txt +2 -2
- package/dist/lib/package.json +4 -3
- package/dist/lib/src/Export/Pdf/Calculator.ts +3 -2
- package/dist/lib/src/View/Edit/TaskEditController.ts +10 -3
- package/dist/lib/src/View/Events/States/StateController.ts +1 -1
- package/dist/lib/src/View/Events/States/TaskAreaStateBase.ts +6 -4
- package/dist/lib/src/View/Events/States/TaskAreaStateEventNames.ts +1 -0
- package/dist/lib/src/View/Events/States/TaskEditState.ts +2 -0
- package/dist/lib/src/View/Events/TaskAreaEventsListener.ts +4 -0
- package/package.json +4 -4
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: Wed
|
|
3
|
+
* Version: 4.1.71
|
|
4
|
+
* Build date: Wed Sep 30 2026
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2026 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: Wed
|
|
3
|
+
* Version: 4.1.71
|
|
4
|
+
* Build date: Wed Sep 30 2026
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|
|
@@ -232,8 +232,6 @@ var Browser = (function () {
|
|
|
232
232
|
}
|
|
233
233
|
documentElementClassName += 'dxBrowserVersion-' + Browser.MajorVersion;
|
|
234
234
|
if (typeof document !== 'undefined' && document && document.documentElement) {
|
|
235
|
-
if (document.documentElement.className !== '')
|
|
236
|
-
documentElementClassName = ' ' + documentElementClassName;
|
|
237
235
|
Browser.Info = documentElementClassName;
|
|
238
236
|
Browser.applyClassNamesOnDemand(document.documentElement, documentElementClassName);
|
|
239
237
|
}
|
|
@@ -242,6 +240,8 @@ var Browser = (function () {
|
|
|
242
240
|
return new Promise(function (resolve) {
|
|
243
241
|
resolveBrowserClassNames = resolve;
|
|
244
242
|
}).then(function () {
|
|
243
|
+
if (documentElement.className !== '')
|
|
244
|
+
documentElementClassName = ' ' + documentElementClassName;
|
|
245
245
|
documentElement.className += documentElementClassName;
|
|
246
246
|
});
|
|
247
247
|
};
|
|
@@ -4455,7 +4455,7 @@ var GanttExportCalculator = (function () {
|
|
|
4455
4455
|
});
|
|
4456
4456
|
Object.defineProperty(GanttExportCalculator.prototype, "layoutCalculator", {
|
|
4457
4457
|
get: function () {
|
|
4458
|
-
return this.
|
|
4458
|
+
return this.taskAreaHelper.layoutCalculator;
|
|
4459
4459
|
},
|
|
4460
4460
|
enumerable: false,
|
|
4461
4461
|
configurable: true
|
|
@@ -4805,7 +4805,8 @@ var GanttExportCalculator = (function () {
|
|
|
4805
4805
|
var start = ranges[index][0];
|
|
4806
4806
|
var end = ranges[index][1];
|
|
4807
4807
|
for (var j = start; j <= end; j++) {
|
|
4808
|
-
var
|
|
4808
|
+
var scaleStart = this.layoutCalculator.getScaleItemStart(j, helper.scales[index]);
|
|
4809
|
+
var cell = new CellDef_1.CellDef(this._owner.renderHelper.getScaleItemTextByStart(scaleStart, helper.scales[index]));
|
|
4809
4810
|
cell.styles.cellPadding.assign(0);
|
|
4810
4811
|
cell.styles.minCellHeight = this.taskAreaHelper.headerRowHeight;
|
|
4811
4812
|
var cellWidth = index === 0 ? helper.scaleTopWidths[j] : helper.scaleBottomWidths[j];
|
|
@@ -13206,6 +13207,9 @@ var TaskEditController = (function () {
|
|
|
13206
13207
|
else
|
|
13207
13208
|
showFunc();
|
|
13208
13209
|
};
|
|
13210
|
+
TaskEditController.prototype.beginEditingInteraction = function () {
|
|
13211
|
+
this.isEditingInProgress = true;
|
|
13212
|
+
};
|
|
13209
13213
|
TaskEditController.prototype.endEditing = function () {
|
|
13210
13214
|
this.isEditingInProgress = false;
|
|
13211
13215
|
this.hide();
|
|
@@ -13279,11 +13283,12 @@ var TaskEditController = (function () {
|
|
|
13279
13283
|
return;
|
|
13280
13284
|
this.baseElement.className = this.baseElement.className + " move";
|
|
13281
13285
|
this.isEditingInProgress = true;
|
|
13282
|
-
var
|
|
13286
|
+
var calculator = this.renderHelper.gridLayoutCalculator;
|
|
13287
|
+
var positionX = this.clampResizePosition(position.x, this.wrapInfo.position.x, calculator.getTotalWidth());
|
|
13283
13288
|
var width = positionX - this.wrapInfo.position.x;
|
|
13284
13289
|
this.baseElement.style.width = (width < 1 ? 0 : width) + "px";
|
|
13285
13290
|
var startDate = this.task.start;
|
|
13286
|
-
var date =
|
|
13291
|
+
var date = calculator.getDateByPos(positionX);
|
|
13287
13292
|
date.setSeconds(0);
|
|
13288
13293
|
if (date < startDate || width < 1)
|
|
13289
13294
|
this.taskDateRange.end.setTime(startDate.getTime());
|
|
@@ -13305,7 +13310,7 @@ var TaskEditController = (function () {
|
|
|
13305
13310
|
return;
|
|
13306
13311
|
this.baseElement.className = this.baseElement.className + " move";
|
|
13307
13312
|
this.isEditingInProgress = true;
|
|
13308
|
-
var positionX =
|
|
13313
|
+
var positionX = this.clampResizePosition(position.x, 0, this.wrapInfo.position.x + this.wrapInfo.size.width);
|
|
13309
13314
|
var width = this.wrapInfo.size.width - (positionX - this.wrapInfo.position.x);
|
|
13310
13315
|
this.baseElement.style.left = positionX + "px";
|
|
13311
13316
|
this.baseElement.style.width = (width < 1 ? 0 : width) + "px";
|
|
@@ -13380,6 +13385,9 @@ var TaskEditController = (function () {
|
|
|
13380
13385
|
}
|
|
13381
13386
|
return newDate;
|
|
13382
13387
|
};
|
|
13388
|
+
TaskEditController.prototype.clampResizePosition = function (positionX, minX, maxX) {
|
|
13389
|
+
return Math.min(Math.max(positionX, minX), maxX);
|
|
13390
|
+
};
|
|
13383
13391
|
TaskEditController.prototype.startDependency = function (pos) {
|
|
13384
13392
|
this.dependencyLine = document.createElement("DIV");
|
|
13385
13393
|
this.dependencyLine.className = TaskEditController.CLASSNAMES.TASK_EDIT_DEPENDENCY_LINE;
|
|
@@ -14009,7 +14017,7 @@ var TaskAreaStateController = (function () {
|
|
|
14009
14017
|
var touchCount = this._getActivePointersCount(evt);
|
|
14010
14018
|
var isOutside = !this.isInTaskArea(evt);
|
|
14011
14019
|
var processed = touchCount >= 2 || isOutside;
|
|
14012
|
-
if (touchCount > 2 || isOutside)
|
|
14020
|
+
if (touchCount > 2 || (isOutside && !this._state.stayActiveWhileOutside))
|
|
14013
14021
|
this.switchState(TaskAreaDefaultState_1.TaskAreaDefaultState);
|
|
14014
14022
|
else if (touchCount === 2)
|
|
14015
14023
|
this.switchState(TaskAreaZoomState_1.TaskAreaZoomState);
|
|
@@ -14391,6 +14399,7 @@ var TaskAreaDomHelper_1 = __webpack_require__(9091);
|
|
|
14391
14399
|
var TaskAreaStateEventNames_1 = __webpack_require__(6118);
|
|
14392
14400
|
var TaskAreaStateBase = (function () {
|
|
14393
14401
|
function TaskAreaStateBase(listener, taskArea, cellSize) {
|
|
14402
|
+
this.stayActiveWhileOutside = false;
|
|
14394
14403
|
this.position = new point_1.Point(-1, -1);
|
|
14395
14404
|
this.isCursorInArea = false;
|
|
14396
14405
|
this._listener = listener;
|
|
@@ -14445,7 +14454,8 @@ var TaskAreaStateBase = (function () {
|
|
|
14445
14454
|
var isMouseLeave = this.isPointerEvent(evt) ? TaskAreaDomHelper_1.TaskAreaDomHelper.isMousePointer(evt) : true;
|
|
14446
14455
|
if (isMouseLeave) {
|
|
14447
14456
|
this.isCursorInArea = false;
|
|
14448
|
-
this.
|
|
14457
|
+
if (!this.stayActiveWhileOutside)
|
|
14458
|
+
this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_EDIT_END, evt);
|
|
14449
14459
|
}
|
|
14450
14460
|
this.onTaskAreaLeaveInternal(evt);
|
|
14451
14461
|
};
|
|
@@ -14477,7 +14487,7 @@ var TaskAreaStateBase = (function () {
|
|
|
14477
14487
|
(_a = this.position) !== null && _a !== void 0 ? _a : (this.position = new point_1.Point(evt_1.EvtUtils.getEventX(evt), evt_1.EvtUtils.getEventY(evt)));
|
|
14478
14488
|
var isMove = Math.abs(this.position.x - evt_1.EvtUtils.getEventX(evt)) > 2 || Math.abs(this.position.y - evt_1.EvtUtils.getEventY(evt)) > 2;
|
|
14479
14489
|
var isOutsideTouch = (isTouchEvent || isPointerEvent) && this.checkAndProcessTouchOutsideArea(evt);
|
|
14480
|
-
if (isOutsideTouch || !isMove)
|
|
14490
|
+
if ((isOutsideTouch && !this.stayActiveWhileOutside) || !isMove)
|
|
14481
14491
|
return;
|
|
14482
14492
|
if (isTouchEvent || isPointerEvent)
|
|
14483
14493
|
evt.preventDefault();
|
|
@@ -14491,7 +14501,7 @@ var TaskAreaStateBase = (function () {
|
|
|
14491
14501
|
}
|
|
14492
14502
|
};
|
|
14493
14503
|
TaskAreaStateBase.prototype.processPointerUp = function (evt) {
|
|
14494
|
-
if (!this.checkAndProcessTouchOutsideArea(evt)) {
|
|
14504
|
+
if (this.stayActiveWhileOutside || !this.checkAndProcessTouchOutsideArea(evt)) {
|
|
14495
14505
|
evt.preventDefault();
|
|
14496
14506
|
if (this.isTouchEvent(evt))
|
|
14497
14507
|
this.onTouchEndInternal(evt);
|
|
@@ -14510,7 +14520,7 @@ var TaskAreaStateBase = (function () {
|
|
|
14510
14520
|
TaskAreaStateBase.prototype.onTaskAreaLeaveInternal = function (evt) { };
|
|
14511
14521
|
TaskAreaStateBase.prototype.checkAndProcessTouchOutsideArea = function (evt) {
|
|
14512
14522
|
var isOutside = !this.isInTaskArea(evt);
|
|
14513
|
-
if (isOutside)
|
|
14523
|
+
if (isOutside && !this.stayActiveWhileOutside)
|
|
14514
14524
|
this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_EDIT_END, evt);
|
|
14515
14525
|
this.isCursorInArea = !isOutside;
|
|
14516
14526
|
return isOutside;
|
|
@@ -14587,6 +14597,7 @@ var TaskAreaStateEventNames = (function () {
|
|
|
14587
14597
|
TaskAreaStateEventNames.STATE_EXIT = "stateExit";
|
|
14588
14598
|
TaskAreaStateEventNames.TASK_SELECTION = "taskSelection";
|
|
14589
14599
|
TaskAreaStateEventNames.TASK_EDIT_START = "taskEditStart";
|
|
14600
|
+
TaskAreaStateEventNames.TASK_EDIT_INTERACTION_START = "taskEditInteractionStart";
|
|
14590
14601
|
TaskAreaStateEventNames.TASK_EDIT_END = "taskEditEnd";
|
|
14591
14602
|
TaskAreaStateEventNames.TASK_LEAVE = "taskLeave";
|
|
14592
14603
|
TaskAreaStateEventNames.TASK_PROCESS_MOVE = "taskProcessMove";
|
|
@@ -14789,11 +14800,14 @@ var TaskDragBaseState_1 = __webpack_require__(7484);
|
|
|
14789
14800
|
var TaskEditState = (function (_super) {
|
|
14790
14801
|
tslib_1.__extends(TaskEditState, _super);
|
|
14791
14802
|
function TaskEditState() {
|
|
14792
|
-
|
|
14803
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
14804
|
+
_this.stayActiveWhileOutside = true;
|
|
14805
|
+
return _this;
|
|
14793
14806
|
}
|
|
14794
14807
|
TaskEditState.prototype.onStartInternal = function (evt) {
|
|
14795
14808
|
var _a;
|
|
14796
14809
|
(_a = this._source) !== null && _a !== void 0 ? _a : (this._source = TaskAreaDomHelper_1.TaskAreaDomHelper.getEventSource(evt_1.EvtUtils.getEventSource(evt)));
|
|
14810
|
+
this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_EDIT_INTERACTION_START, evt);
|
|
14797
14811
|
};
|
|
14798
14812
|
TaskEditState.prototype.onEndInternal = function (_evt) { this.raiseEvent(this.getEventOnEndKey(), _evt); };
|
|
14799
14813
|
TaskEditState.prototype.onDragInternal = function (position) {
|
|
@@ -14955,6 +14969,7 @@ var TaskAreaEventsListener = (function () {
|
|
|
14955
14969
|
handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_SELECTION] = this.taskSelectionHandler.bind(this);
|
|
14956
14970
|
handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.DEPENDENCY_SELECTION] = this.dependencySelectionHandler.bind(this);
|
|
14957
14971
|
handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_EDIT_START] = this.taskEditStartHandler.bind(this);
|
|
14972
|
+
handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_EDIT_INTERACTION_START] = this.taskEditInteractionStartHandler.bind(this);
|
|
14958
14973
|
handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_EDIT_END] = this.taskEditEndHandler.bind(this);
|
|
14959
14974
|
handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_LEAVE] = this.taskLeaveHandler.bind(this);
|
|
14960
14975
|
handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_PROCESS_MOVE] = this.taskProcessMoveHandler.bind(this);
|
|
@@ -15035,6 +15050,9 @@ var TaskAreaEventsListener = (function () {
|
|
|
15035
15050
|
this.taskEditController.show(args.rowIndex);
|
|
15036
15051
|
this.taskEditController.showTaskInfo(evt_1.EvtUtils.getEventX(args.triggerEvent));
|
|
15037
15052
|
};
|
|
15053
|
+
TaskAreaEventsListener.prototype.taskEditInteractionStartHandler = function () {
|
|
15054
|
+
this.taskEditController.beginEditingInteraction();
|
|
15055
|
+
};
|
|
15038
15056
|
TaskAreaEventsListener.prototype.taskLeaveHandler = function (args) {
|
|
15039
15057
|
this.taskEditController.cancel();
|
|
15040
15058
|
};
|
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: Wed
|
|
3
|
+
* Version: 4.1.71
|
|
4
|
+
* Build date: Wed Sep 30 2026
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|