devexpress-gantt 4.0.1 → 4.0.5

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 CHANGED
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt)
3
- * Version: 4.0.1
4
- * Build date: Wed Dec 15 2021
3
+ * Version: 4.0.5
4
+ * Build date: Wed Jan 26 2022
5
5
  *
6
- * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
6
+ * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
8
8
  */
9
9
  .dx-gantt-tsac{position:relative;overflow:hidden;background-color:white;z-index:6}.dx-gantt-tsa{position:relative}.dx-gantt-hb{position:absolute;left:0;height:0;z-index:6}.dx-gantt-vb{position:absolute;top:0;width:0;z-index:6}.dx-gantt-tm,.dx-gantt-ti,.dx-gantt-tc{position:absolute;top:0;z-index:6}.dx-gantt-tm:before,.dx-gantt-ti:before,.dx-gantt-tc:before{content:"";position:absolute;top:0;width:6px;margin-left:-3px;z-index:6;height:100%}.dx-gantt-si{position:absolute;top:0;white-space:nowrap;box-sizing:border-box}.dx-gantt-taskWrapper,.dx-gantt-milestoneWrapper,.dx-gantt-taskResWrapper{position:absolute;z-index:10;vertical-align:top;white-space:nowrap}.dx-gantt-taskWrapper>div{vertical-align:top}.dx-gantt-taskResWrapper{pointer-events:none}.dx-gantt-task{position:relative;display:inline-block;white-space:nowrap;vertical-align:top}.dx-gantt-tPrg{position:absolute;top:0;height:100%;z-index:0}.dx-gantt-taskTitle,.dx-gantt-taskRes{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dx-gantt-titleIn{position:relative;width:100%;z-index:1}.dx-gantt-titleOut{display:inline-block;width:500px;margin-left:-500px;text-align:right;text-overflow:ellipsis}.dx-gantt-taskRes{display:inline-block;overflow:hidden}.dx-gantt-task,.dx-gantt-taskTitle,.dx-gantt-titleOut,.dx-gantt-taskRes{box-sizing:border-box}.dx-gantt-sel{position:absolute;z-index:5}.dx-gantt-task.dx-gantt-milestone{transform:rotate(45deg);border-radius:0 !important;padding:0}.dx-gantt-task.dx-gantt-smallTask{text-align:center}.dx-gantt-task.dx-gantt-smallTask .dx-gantt-titleIn{padding:0;visibility:hidden}.dx-gantt-conn-h,.dx-gantt-conn-v,.dx-gantt-arrow{position:absolute;z-index:9}.dx-gantt-conn-v{top:0;width:4px;cursor:pointer;border-left-width:1px;border-left-style:solid}.dx-gantt-conn-v.active{border-left-width:2px !important}.dx-gantt-conn-h{left:0;height:4px;cursor:pointer;border-top-width:1px;border-top-style:solid}.dx-gantt-conn-h.active{border-top-width:2px !important}.dx-gantt-arrow{width:0;height:0}.dx-gantt-arrow.dx-gantt-TA{border-left-color:transparent !important;border-right-color:transparent !important;border-top-color:transparent !important}.dx-gantt-arrow.dx-gantt-RA{border-right-color:transparent !important;border-top-color:transparent !important;border-bottom-color:transparent !important}.dx-gantt-arrow.dx-gantt-BA{border-left-color:transparent !important;border-right-color:transparent !important;border-bottom-color:transparent !important}.dx-gantt-arrow.dx-gantt-LA{border-left-color:transparent !important;border-top-color:transparent !important;border-bottom-color:transparent !important}.dx-gantt-nwi{position:absolute;z-index:3}.dx-gantt-altRow{position:absolute;z-index:2}.dx-gantt-task-edit-wrapper{padding-left:1px}.dx-gantt-task-edit-wrapper,.dx-gantt-task-edit-wrapper-successor{position:absolute;z-index:11}.dx-gantt-task-edit-wrapper-custom{background-color:rgba(90,84,84,0.3)}.dx-gantt-task-edit-wrapper-custom.hide-updating{background-color:transparent;pointer-events:none}.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-frame,.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-frame{border:none !important}#dx-gantt-ta.ms-pointer-active,#dx-gantt-ta.ms-pointer-active .dx-gantt-task-edit-frame,#dx-gantt-ta.ms-pointer-active .dx-gantt-task-edit-frame div{-webkit-appearance:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-webkit-user-select:none;user-select:none;-moz-user-select:none}.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-progress,.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-start,.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-end,.dx-gantt-task-edit-wrapper.move .dx-gantt-task-edit-progress,.dx-gantt-task-edit-wrapper.move .dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-wrapper.move .dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-wrapper.hide-dependency .dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-wrapper.hide-dependency .dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-progress,.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-start,.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-end{display:none}.dx-gantt-task-edit-frame,.dx-gantt-task-edit-frame-successor{box-sizing:border-box;height:100%;width:100%;position:absolute;z-index:9}.dx-gantt-task-edit-frame{border:1px solid #269aff}.dx-gantt-task-edit-progress{position:absolute;width:0;height:0;bottom:0;cursor:pointer;border-style:solid;border-width:0 6px 9px 6px;border-color:transparent transparent #269aff transparent;z-index:10}.dx-gantt-task-edit-progress:before{content:"";width:10px;height:4px;background-color:white;position:absolute;bottom:-14px;left:-6px;border:1px solid #269aff;border-top:none}.dx-gantt-task-edit-progress div{position:absolute;bottom:0;cursor:pointer;border-style:solid;border-width:0 5px 7px 5px;border-color:transparent transparent white transparent;z-index:9;top:2px;left:-5px;pointer-events:none}.dx-gantt-task-edit-tooltip{position:absolute;font-family:sans-serif;width:max-content;line-height:16px;font-size:12px;border-radius:2px;display:none;z-index:12}.dx-gantt-task-edit-tooltip-default{padding:6px;color:white;background-color:rgba(0,0,0,0.64)}.dx-gantt-task-edit-tooltip-after:after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:6px solid rgba(0,0,0,0.64);top:-6px;position:absolute}.dx-gantt-task-edit-tooltip-before:before{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid rgba(0,0,0,0.64);bottom:-6px;position:absolute}.dx-gantt-task-edit-tooltip .dx-gantt-task-title{padding-bottom:3px}.dx-gantt-task-edit-tooltip .dx-gantt-status-time tr td:first-child{padding-right:3px}.dx-gantt-task-edit-tooltip .dx-gantt-status-time tr td:first-child,.dx-gantt-task-edit-tooltip .dx-gantt-status-time span:first-child,.dx-gantt-task-edit-tooltip .dx-gantt-task-title{font-weight:600}.dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-successor-dependency-r,.dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-successor-dependency-l{position:absolute;border-radius:50%;top:5px;width:8px;height:8px;background:white;border:1px solid #269aff;cursor:pointer}.dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-successor-dependency-r{left:-10px}.dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-successor-dependency-l{right:-10px}.dx-gantt-task-edit-dependency-r.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-r.dx-gantt-edit-touch,.dx-gantt-task-edit-dependency-l.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-l.dx-gantt-edit-touch{top:3px;width:11px;height:11px}.dx-gantt-task-edit-dependency-r.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-r.dx-gantt-edit-touch{left:-15px}.dx-gantt-task-edit-dependency-l.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-l.dx-gantt-edit-touch{right:-15px}.dx-gantt-task-edit-start,.dx-gantt-task-edit-end{position:absolute;height:100%;width:5px;top:0;cursor:col-resize}.dx-gantt-task-edit-end{right:0}.dx-gantt-task-edit-dependency-line{height:2px;background-color:#269aff;position:absolute;transform-origin:0% 0%;z-index:9}.dx-gantt-touch-action{touch-action:none}
package/dist/dx-gantt.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt)
3
- * Version: 4.0.1
4
- * Build date: Wed Dec 15 2021
3
+ * Version: 4.0.5
4
+ * Build date: Wed Jan 26 2022
5
5
  *
6
- * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
6
+ * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
8
8
  */
9
9
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -1796,6 +1796,7 @@ var TaskAreaStateEventNames = (function () {
1796
1796
  TaskAreaStateEventNames.TASK_AREA_ZOOM_IN = "taskAreaZoomIn";
1797
1797
  TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT = "taskAreaZoomOut";
1798
1798
  TaskAreaStateEventNames.CONTEXTMENU_SHOW = "contextMenuShow";
1799
+ TaskAreaStateEventNames.CONTEXTMENU_HIDE = "contextMenuHide";
1799
1800
  TaskAreaStateEventNames.DEPENDENCY_SELECTION = "dependencySelection";
1800
1801
  TaskAreaStateEventNames.STATE_EXIT = "stateExit";
1801
1802
  TaskAreaStateEventNames.TASK_SELECTION = "taskSelection";
@@ -2499,7 +2500,7 @@ var CollectionBase = (function () {
2499
2500
  this.createItemFromObjectAndAdd(source);
2500
2501
  };
2501
2502
  CollectionBase.prototype.createItemFromObjectAndAdd = function (source) {
2502
- if ((0, common_1.isDefined)(source)) {
2503
+ if ((0, common_1.isDefined)(source) && Object.keys(source).length > 0) {
2503
2504
  var item = this.createItem();
2504
2505
  item.assignFromObject(source);
2505
2506
  this.add(item);
@@ -5232,8 +5233,7 @@ var TaskEditController = (function () {
5232
5233
  enumerable: false,
5233
5234
  configurable: true
5234
5235
  });
5235
- TaskEditController.prototype.show = function (taskIndex, delay) {
5236
- if (delay === void 0) { delay = 0; }
5236
+ TaskEditController.prototype.show = function (taskIndex) {
5237
5237
  if (this.isEditingInProgress || this.disableTaskEditBox)
5238
5238
  return;
5239
5239
  this.taskIndex = taskIndex;
@@ -5246,11 +5246,10 @@ var TaskEditController = (function () {
5246
5246
  else {
5247
5247
  if (!this.isTaskUpdateAllowed())
5248
5248
  this.baseElement.className = this.baseElement.className + " hide-updating";
5249
- if (this.viewItem.isCustom) {
5249
+ if (this.viewItem.isCustom)
5250
5250
  this.baseElement.classList.add(TaskEditController.CLASSNAMES.TASK_EDIT_BOX_CUSTOM);
5251
- delay = this.showInfoDelay;
5252
- }
5253
5251
  }
5252
+ var delay = this.settings.getGanttSettings().editing.taskHoverDelay || 0;
5254
5253
  this.taskDateRange = new DateRange_1.DateRange(this.task.start, this.task.end);
5255
5254
  this.displayTaskEditBox(delay);
5256
5255
  this.displayProgressEdit();
@@ -5668,8 +5667,6 @@ var GanttView = (function () {
5668
5667
  this.initTaskEditController();
5669
5668
  this.history = new History_1.History(this._getHistoryListener());
5670
5669
  this.initFullScreenModeHelper();
5671
- this.onWindowResizelHandler = this.onBrowserWindowResize.bind(this);
5672
- window.addEventListener("resize", this.onWindowResizelHandler);
5673
5670
  this.updateView();
5674
5671
  this._scrollTimeOut = setTimeout(function () {
5675
5672
  _this.scrollLeftByViewType();
@@ -5773,6 +5770,10 @@ var GanttView = (function () {
5773
5770
  GanttView.prototype.showPopupMenu = function (info) {
5774
5771
  this.ganttOwner.showPopupMenu(info);
5775
5772
  };
5773
+ GanttView.prototype.hidePopupMenu = function () {
5774
+ if (this.ganttOwner.hidePopupMenu)
5775
+ this.ganttOwner.hidePopupMenu();
5776
+ };
5776
5777
  GanttView.prototype.collapseAll = function () {
5777
5778
  this.ganttOwner.collapseAll();
5778
5779
  };
@@ -6045,7 +6046,6 @@ var GanttView = (function () {
6045
6046
  GanttView.prototype.cleanMarkup = function () {
6046
6047
  this.renderHelper.taskAreaManagerDetachEvents();
6047
6048
  this.taskEditController.detachEvents();
6048
- window.removeEventListener("resize", this.onWindowResizelHandler);
6049
6049
  this.clearStripLinesUpdater();
6050
6050
  this.renderHelper.reset();
6051
6051
  clearTimeout(this._scrollTimeOut);
@@ -6232,6 +6232,12 @@ var GanttView = (function () {
6232
6232
  else
6233
6233
  this.resetAndUpdate();
6234
6234
  };
6235
+ GanttView.prototype.onBrowserWindowResize = function () {
6236
+ if (this.fullScreenModeHelper.isInFullScreenMode)
6237
+ this.fullScreenModeHelper.adjustControlInFullScreenMode();
6238
+ else
6239
+ this.adjustOwnerControl();
6240
+ };
6235
6241
  GanttView.prototype.setTaskValue = function (id, fieldName, newValue) {
6236
6242
  var manager = this.commandManager;
6237
6243
  var task = this.getTaskByPublicId(id);
@@ -6303,12 +6309,6 @@ var GanttView = (function () {
6303
6309
  if (owner.adjustControl)
6304
6310
  owner.adjustControl();
6305
6311
  };
6306
- GanttView.prototype.onBrowserWindowResize = function () {
6307
- if (this.fullScreenModeHelper.isInFullScreenMode)
6308
- this.fullScreenModeHelper.adjustControlInFullScreenMode();
6309
- else
6310
- this.adjustOwnerControl();
6311
- };
6312
6312
  GanttView.prototype.applySettings = function (settings, preventViewUpdate) {
6313
6313
  if (preventViewUpdate === void 0) { preventViewUpdate = false; }
6314
6314
  var ganttSettings = Settings_1.Settings.parse(settings);
@@ -12144,12 +12144,15 @@ var ScaleCalculator = (function () {
12144
12144
  ScaleCalculator.prototype.getScaleIndexByPos = function (pos, scaleType) {
12145
12145
  scaleType !== null && scaleType !== void 0 ? scaleType : (scaleType = this.viewType);
12146
12146
  var items = scaleType === this.viewType ? this.bottomScaleItems : this.topScaleItems;
12147
- for (var i = 0; i < items.length; i++) {
12148
- var item = items[i];
12149
- if (pos >= item.position.x && pos <= item.position.x + item.size.width)
12150
- return i;
12147
+ var index = -1;
12148
+ if (items.findIndex)
12149
+ index = items.findIndex(function (i) { return pos >= i.position.x && pos <= i.position.x + i.size.width; });
12150
+ else {
12151
+ var item = items.filter(function (i) { return pos >= i.position.x && pos <= i.position.x + i.size.width; })[0];
12152
+ if (item)
12153
+ index = items.indexOf(item);
12151
12154
  }
12152
- return -1;
12155
+ return index;
12153
12156
  };
12154
12157
  ScaleCalculator.prototype.getScaleBorderPosition = function (index, scaleType) {
12155
12158
  var item = this.getScaleItems(scaleType)[index];
@@ -12244,14 +12247,27 @@ var ScaleCalculator = (function () {
12244
12247
  };
12245
12248
  ScaleCalculator.prototype.calculateTopScale = function (scaleType) {
12246
12249
  var items = new Array();
12247
- var currentDate = this.range.start;
12248
- var x = 0;
12249
- while (currentDate.getTime() < this.range.end.getTime()) {
12250
- var nextDate = this.getNextScaleDate(currentDate, scaleType);
12251
- var width = this.getPosInScale(nextDate) - this.getPosInScale(currentDate);
12252
- items.push(new ScaleItemInfo(currentDate, nextDate, new point_1.Point(x, undefined), new size_1.Size(width, 0)));
12253
- currentDate = nextDate;
12254
- x += width;
12250
+ var endRangeTime = this.range.end.getTime();
12251
+ var itemStartDate = this.range.start;
12252
+ var itemStartPos = 0;
12253
+ var lastBottomIndex = 0;
12254
+ while (itemStartDate.getTime() < endRangeTime) {
12255
+ var itemNextDate = this.getNextScaleDate(itemStartDate, scaleType);
12256
+ var nextDateTime = itemNextDate.getTime();
12257
+ for (var i = lastBottomIndex; i < this.bottomScaleItems.length; i++) {
12258
+ var item = this.bottomScaleItems[i];
12259
+ var startTime = item.start.getTime();
12260
+ var endTime = item.end.getTime();
12261
+ var isNextDateInItem = nextDateTime >= startTime && nextDateTime <= endTime;
12262
+ if (isNextDateInItem) {
12263
+ var itemEndPos = (nextDateTime - startTime) / (endTime - startTime) * item.size.width + item.position.x;
12264
+ items.push(new ScaleItemInfo(itemStartDate, itemNextDate, new point_1.Point(itemStartPos, undefined), new size_1.Size(itemEndPos - itemStartPos, 0)));
12265
+ lastBottomIndex = i;
12266
+ itemStartPos = itemEndPos;
12267
+ itemStartDate = itemNextDate;
12268
+ break;
12269
+ }
12270
+ }
12255
12271
  }
12256
12272
  return items;
12257
12273
  };
@@ -12269,18 +12285,6 @@ var ScaleCalculator = (function () {
12269
12285
  }
12270
12286
  return new Date(this.range.end);
12271
12287
  };
12272
- ScaleCalculator.prototype.getPosInScale = function (date) {
12273
- var time = date.getTime();
12274
- for (var i = 0; i < this.bottomScaleItems.length; i++) {
12275
- var item = this.bottomScaleItems[i];
12276
- var startTime = item.start.getTime();
12277
- var endTime = item.end.getTime();
12278
- var width = item.size.width;
12279
- if (time >= startTime && time <= endTime)
12280
- return (time - startTime) / (endTime - startTime) * width + item.position.x;
12281
- }
12282
- return 0;
12283
- };
12284
12288
  ScaleCalculator.prototype.getNextScaleDate = function (start, scaleType) {
12285
12289
  var date;
12286
12290
  switch (scaleType) {
@@ -17597,7 +17601,10 @@ var TaskAreaDefaultState = (function (_super) {
17597
17601
  function TaskAreaDefaultState() {
17598
17602
  return _super !== null && _super.apply(this, arguments) || this;
17599
17603
  }
17600
- TaskAreaDefaultState.prototype.finish = function () { this.clearTimers(); };
17604
+ TaskAreaDefaultState.prototype.finish = function () {
17605
+ this.clearTimers();
17606
+ this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.CONTEXTMENU_HIDE);
17607
+ };
17601
17608
  TaskAreaDefaultState.prototype.onMouseDownInternal = function (evt) { this.onPointerDownBase(evt); };
17602
17609
  TaskAreaDefaultState.prototype.onDocumentPointerDownInternal = function (evt) { this.onPointerDownBase(evt); };
17603
17610
  TaskAreaDefaultState.prototype.onDocumentPointerUpInternal = function (evt) { this.onPointerUpBase(evt); };
@@ -17613,7 +17620,11 @@ var TaskAreaDefaultState = (function (_super) {
17613
17620
  if (isMouse)
17614
17621
  this.changeSelectionOnTouchDown(evt);
17615
17622
  else {
17616
- setTimeout(function () { return _this.changeSelectionOnTouchDown(evt); }, 0);
17623
+ setTimeout(function () {
17624
+ if (!TaskAreaDomHelper_1.TaskAreaDomHelper.isMousePointer(evt))
17625
+ _this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.CONTEXTMENU_HIDE, evt);
17626
+ _this.changeSelectionOnTouchDown(evt);
17627
+ }, 0);
17617
17628
  clearTimeout(this._contextMenuTimer);
17618
17629
  this._contextMenuTimer = setTimeout(function () { return _this.showContextMenuOnTouchDown(evt); }, TaskAreaDefaultState.defaultContextMenuTimeout);
17619
17630
  }
@@ -17628,6 +17639,8 @@ var TaskAreaDefaultState = (function (_super) {
17628
17639
  if (!this._lastEmulatedClickTime) {
17629
17640
  var clickCanceled = !this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_AREA_CLICK, evt, rowIndex);
17630
17641
  clearTimeout(this._dblClickClearTimer);
17642
+ if (TaskAreaDomHelper_1.TaskAreaDomHelper.isMousePointer(evt))
17643
+ this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.CONTEXTMENU_HIDE, evt);
17631
17644
  if (!clickCanceled) {
17632
17645
  this._lastEmulatedClickTime = now;
17633
17646
  this._dblClickClearTimer = setTimeout(function () { delete _this._lastEmulatedClickTime; }, TaskAreaDefaultState.defaultDblClickClearTimeout);
@@ -19215,6 +19228,7 @@ var EditingSettings = (function () {
19215
19228
  this.allowResourceInsert = true;
19216
19229
  this.allowResourceUpdate = true;
19217
19230
  this.allowTaskResourceUpdate = true;
19231
+ this.taskHoverDelay = 0;
19218
19232
  }
19219
19233
  EditingSettings.parse = function (settings) {
19220
19234
  var result = new EditingSettings();
@@ -19239,6 +19253,8 @@ var EditingSettings = (function () {
19239
19253
  result.allowResourceUpdate = settings.allowResourceUpdate;
19240
19254
  if ((0, common_1.isDefined)(settings.allowTaskResourceUpdate))
19241
19255
  result.allowTaskResourceUpdate = settings.allowTaskResourceUpdate;
19256
+ if ((0, common_1.isDefined)(settings.taskHoverDelay))
19257
+ result.taskHoverDelay = settings.taskHoverDelay;
19242
19258
  }
19243
19259
  return result;
19244
19260
  };
@@ -21214,6 +21230,7 @@ var TaskAreaEventsListener = (function () {
21214
21230
  handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_AREA_ZOOM_IN] = this.taskAreaZoomInHandler.bind(this);
21215
21231
  handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT] = this.taskAreaZoomOutHandler.bind(this);
21216
21232
  handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.CONTEXTMENU_SHOW] = this.taskAreaContextMenuShowHandler.bind(this);
21233
+ handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.CONTEXTMENU_HIDE] = this.taskAreaContextMenuHideHandler.bind(this);
21217
21234
  handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_SELECTION] = this.taskSelectionHandler.bind(this);
21218
21235
  handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.DEPENDENCY_SELECTION] = this.dependencySelectionHandler.bind(this);
21219
21236
  handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_EDIT_START] = this.taskEditStartHandler.bind(this);
@@ -21248,6 +21265,9 @@ var TaskAreaEventsListener = (function () {
21248
21265
  TaskAreaEventsListener.prototype.taskAreaContextMenuShowHandler = function (args) {
21249
21266
  this._owner.onTaskAreaContextMenu(args.rowIndex, args.triggerEvent, args.info["type"]);
21250
21267
  };
21268
+ TaskAreaEventsListener.prototype.taskAreaContextMenuHideHandler = function () {
21269
+ this._owner.hidePopupMenu();
21270
+ };
21251
21271
  TaskAreaEventsListener.prototype.taskAreaScrollHandler = function (args) {
21252
21272
  this._owner.updateView();
21253
21273
  };
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt.min)
3
- * Version: 4.0.1
4
- * Build date: Wed Dec 15 2021
3
+ * Version: 4.0.5
4
+ * Build date: Wed Jan 26 2022
5
5
  *
6
- * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
6
+ * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
8
8
  */.dx-gantt-tsac{overflow:hidden;background-color:#fff;z-index:6}.dx-gantt-tsa,.dx-gantt-tsac{position:relative}.dx-gantt-hb{position:absolute;left:0;height:0;z-index:6}.dx-gantt-vb{width:0}.dx-gantt-tc,.dx-gantt-ti,.dx-gantt-tm,.dx-gantt-vb{position:absolute;top:0;z-index:6}.dx-gantt-tc:before,.dx-gantt-ti:before,.dx-gantt-tm:before{content:"";position:absolute;top:0;width:6px;margin-left:-3px;z-index:6;height:100%}.dx-gantt-si{position:absolute;top:0;white-space:nowrap;box-sizing:border-box}.dx-gantt-milestoneWrapper,.dx-gantt-taskResWrapper,.dx-gantt-taskWrapper{position:absolute;z-index:10;vertical-align:top;white-space:nowrap}.dx-gantt-taskWrapper>div{vertical-align:top}.dx-gantt-taskResWrapper{pointer-events:none}.dx-gantt-task{position:relative;display:inline-block;white-space:nowrap;vertical-align:top}.dx-gantt-tPrg{position:absolute;top:0;height:100%;z-index:0}.dx-gantt-taskRes,.dx-gantt-taskTitle{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dx-gantt-titleIn{position:relative;width:100%;z-index:1}.dx-gantt-titleOut{display:inline-block;width:500px;margin-left:-500px;text-align:right;text-overflow:ellipsis}.dx-gantt-taskRes{display:inline-block;overflow:hidden}.dx-gantt-task,.dx-gantt-taskRes,.dx-gantt-taskTitle,.dx-gantt-titleOut{box-sizing:border-box}.dx-gantt-sel{position:absolute;z-index:5}.dx-gantt-task.dx-gantt-milestone{transform:rotate(45deg);border-radius:0!important;padding:0}.dx-gantt-task.dx-gantt-smallTask{text-align:center}.dx-gantt-task.dx-gantt-smallTask .dx-gantt-titleIn{padding:0;visibility:hidden}.dx-gantt-arrow,.dx-gantt-conn-h,.dx-gantt-conn-v{position:absolute;z-index:9}.dx-gantt-conn-v{top:0;width:4px;cursor:pointer;border-left-width:1px;border-left-style:solid}.dx-gantt-conn-v.active{border-left-width:2px!important}.dx-gantt-conn-h{left:0;height:4px;cursor:pointer;border-top-width:1px;border-top-style:solid}.dx-gantt-conn-h.active{border-top-width:2px!important}.dx-gantt-arrow{width:0;height:0}.dx-gantt-arrow.dx-gantt-TA{border-left-color:transparent!important}.dx-gantt-arrow.dx-gantt-RA,.dx-gantt-arrow.dx-gantt-TA{border-right-color:transparent!important;border-top-color:transparent!important}.dx-gantt-arrow.dx-gantt-RA{border-bottom-color:transparent!important}.dx-gantt-arrow.dx-gantt-BA{border-right-color:transparent!important}.dx-gantt-arrow.dx-gantt-BA,.dx-gantt-arrow.dx-gantt-LA{border-left-color:transparent!important;border-bottom-color:transparent!important}.dx-gantt-arrow.dx-gantt-LA{border-top-color:transparent!important}.dx-gantt-nwi{position:absolute;z-index:3}.dx-gantt-altRow{position:absolute;z-index:2}.dx-gantt-task-edit-wrapper{padding-left:1px}.dx-gantt-task-edit-wrapper,.dx-gantt-task-edit-wrapper-successor{position:absolute;z-index:11}.dx-gantt-task-edit-wrapper-custom{background-color:rgba(90,84,84,.3)}.dx-gantt-task-edit-wrapper-custom.hide-updating{background-color:transparent;pointer-events:none}.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-frame,.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-frame{border:none!important}#dx-gantt-ta.ms-pointer-active,#dx-gantt-ta.ms-pointer-active .dx-gantt-task-edit-frame,#dx-gantt-ta.ms-pointer-active .dx-gantt-task-edit-frame div{-webkit-appearance:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-webkit-user-select:none;user-select:none;-moz-user-select:none}.dx-gantt-task-edit-wrapper.hide-dependency .dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-wrapper.hide-dependency .dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-end,.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-progress,.dx-gantt-task-edit-wrapper.hide-updating .dx-gantt-task-edit-start,.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-end,.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-progress,.dx-gantt-task-edit-wrapper.milestone .dx-gantt-task-edit-start,.dx-gantt-task-edit-wrapper.move .dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-wrapper.move .dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-wrapper.move .dx-gantt-task-edit-progress{display:none}.dx-gantt-task-edit-frame,.dx-gantt-task-edit-frame-successor{box-sizing:border-box;height:100%;width:100%;position:absolute;z-index:9}.dx-gantt-task-edit-frame{border:1px solid #269aff}.dx-gantt-task-edit-progress{position:absolute;width:0;height:0;bottom:0;cursor:pointer;border-color:transparent transparent #269aff;border-style:solid;border-width:0 6px 9px;z-index:10}.dx-gantt-task-edit-progress:before{content:"";width:10px;height:4px;background-color:#fff;position:absolute;bottom:-14px;left:-6px;border:1px solid #269aff;border-top:none}.dx-gantt-task-edit-progress div{position:absolute;bottom:0;cursor:pointer;border-color:transparent transparent #fff;border-style:solid;border-width:0 5px 7px;z-index:9;top:2px;left:-5px;pointer-events:none}.dx-gantt-task-edit-tooltip{position:absolute;font-family:sans-serif;width:max-content;line-height:16px;font-size:12px;border-radius:2px;display:none;z-index:12}.dx-gantt-task-edit-tooltip-default{padding:6px;color:#fff;background-color:rgba(0,0,0,.64)}.dx-gantt-task-edit-tooltip-after:after{border-bottom:6px solid rgba(0,0,0,.64);top:-6px}.dx-gantt-task-edit-tooltip-after:after,.dx-gantt-task-edit-tooltip-before:before{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;position:absolute}.dx-gantt-task-edit-tooltip-before:before{border-top:6px solid rgba(0,0,0,.64);bottom:-6px}.dx-gantt-task-edit-tooltip .dx-gantt-task-title{padding-bottom:3px}.dx-gantt-task-edit-tooltip .dx-gantt-status-time tr td:first-child{padding-right:3px}.dx-gantt-task-edit-tooltip .dx-gantt-status-time span:first-child,.dx-gantt-task-edit-tooltip .dx-gantt-status-time tr td:first-child,.dx-gantt-task-edit-tooltip .dx-gantt-task-title{font-weight:600}.dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-successor-dependency-l,.dx-gantt-task-edit-successor-dependency-r{position:absolute;border-radius:50%;top:5px;width:8px;height:8px;background:#fff;border:1px solid #269aff;cursor:pointer}.dx-gantt-task-edit-dependency-r,.dx-gantt-task-edit-successor-dependency-r{left:-10px}.dx-gantt-task-edit-dependency-l,.dx-gantt-task-edit-successor-dependency-l{right:-10px}.dx-gantt-task-edit-dependency-l.dx-gantt-edit-touch,.dx-gantt-task-edit-dependency-r.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-l.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-r.dx-gantt-edit-touch{top:3px;width:11px;height:11px}.dx-gantt-task-edit-dependency-r.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-r.dx-gantt-edit-touch{left:-15px}.dx-gantt-task-edit-dependency-l.dx-gantt-edit-touch,.dx-gantt-task-edit-successor-dependency-l.dx-gantt-edit-touch{right:-15px}.dx-gantt-task-edit-end,.dx-gantt-task-edit-start{position:absolute;height:100%;width:5px;top:0;cursor:col-resize}.dx-gantt-task-edit-end{right:0}.dx-gantt-task-edit-dependency-line{height:2px;background-color:#269aff;position:absolute;transform-origin:0 0;z-index:9}.dx-gantt-touch-action{touch-action:none}