devexpress-gantt 4.1.4 → 4.1.8

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.1.4
4
- * Build date: Tue Dec 28 2021
3
+ * Version: 4.1.8
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.1.4
4
- * Build date: Tue Dec 28 2021
3
+ * Version: 4.1.8
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) {
@@ -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";
@@ -2512,7 +2513,7 @@ var CollectionBase = (function () {
2512
2513
  this.createItemFromObjectAndAdd(source);
2513
2514
  };
2514
2515
  CollectionBase.prototype.createItemFromObjectAndAdd = function (source) {
2515
- if ((0, common_1.isDefined)(source)) {
2516
+ if ((0, common_1.isDefined)(source) && Object.keys(source).length > 0) {
2516
2517
  var item = this.createItem();
2517
2518
  item.assignFromObject(source);
2518
2519
  this.add(item);
@@ -5167,8 +5168,7 @@ var TaskEditController = (function () {
5167
5168
  enumerable: false,
5168
5169
  configurable: true
5169
5170
  });
5170
- TaskEditController.prototype.show = function (taskIndex, delay) {
5171
- if (delay === void 0) { delay = 0; }
5171
+ TaskEditController.prototype.show = function (taskIndex) {
5172
5172
  if (this.isEditingInProgress || this.disableTaskEditBox)
5173
5173
  return;
5174
5174
  this.taskIndex = taskIndex;
@@ -5181,11 +5181,10 @@ var TaskEditController = (function () {
5181
5181
  else {
5182
5182
  if (!this.isTaskUpdateAllowed())
5183
5183
  this.baseElement.className = this.baseElement.className + " hide-updating";
5184
- if (this.viewItem.isCustom) {
5184
+ if (this.viewItem.isCustom)
5185
5185
  this.baseElement.classList.add(TaskEditController.CLASSNAMES.TASK_EDIT_BOX_CUSTOM);
5186
- delay = this.showInfoDelay;
5187
- }
5188
5186
  }
5187
+ var delay = this.settings.getGanttSettings().editing.taskHoverDelay || 0;
5189
5188
  this.taskDateRange = new DateRange_1.DateRange(this.task.start, this.task.end);
5190
5189
  this.displayTaskEditBox(delay);
5191
5190
  this.displayProgressEdit();
@@ -5603,8 +5602,6 @@ var GanttView = (function () {
5603
5602
  this.initTaskEditController();
5604
5603
  this.history = new History_1.History(this._getHistoryListener());
5605
5604
  this.initFullScreenModeHelper();
5606
- this.onWindowResizelHandler = this.onBrowserWindowResize.bind(this);
5607
- window.addEventListener("resize", this.onWindowResizelHandler);
5608
5605
  this.updateView();
5609
5606
  this._scrollTimeOut = setTimeout(function () {
5610
5607
  _this.scrollLeftByViewType();
@@ -5708,6 +5705,10 @@ var GanttView = (function () {
5708
5705
  GanttView.prototype.showPopupMenu = function (info) {
5709
5706
  this.ganttOwner.showPopupMenu(info);
5710
5707
  };
5708
+ GanttView.prototype.hidePopupMenu = function () {
5709
+ if (this.ganttOwner.hidePopupMenu)
5710
+ this.ganttOwner.hidePopupMenu();
5711
+ };
5711
5712
  GanttView.prototype.collapseAll = function () {
5712
5713
  this.ganttOwner.collapseAll();
5713
5714
  };
@@ -5980,7 +5981,6 @@ var GanttView = (function () {
5980
5981
  GanttView.prototype.cleanMarkup = function () {
5981
5982
  this.renderHelper.taskAreaManagerDetachEvents();
5982
5983
  this.taskEditController.detachEvents();
5983
- window.removeEventListener("resize", this.onWindowResizelHandler);
5984
5984
  this.clearStripLinesUpdater();
5985
5985
  this.renderHelper.reset();
5986
5986
  clearTimeout(this._scrollTimeOut);
@@ -6167,6 +6167,12 @@ var GanttView = (function () {
6167
6167
  else
6168
6168
  this.resetAndUpdate();
6169
6169
  };
6170
+ GanttView.prototype.onBrowserWindowResize = function () {
6171
+ if (this.fullScreenModeHelper.isInFullScreenMode)
6172
+ this.fullScreenModeHelper.adjustControlInFullScreenMode();
6173
+ else
6174
+ this.adjustOwnerControl();
6175
+ };
6170
6176
  GanttView.prototype.setTaskValue = function (id, fieldName, newValue) {
6171
6177
  var manager = this.commandManager;
6172
6178
  var task = this.getTaskByPublicId(id);
@@ -6238,12 +6244,6 @@ var GanttView = (function () {
6238
6244
  if (owner.adjustControl)
6239
6245
  owner.adjustControl();
6240
6246
  };
6241
- GanttView.prototype.onBrowserWindowResize = function () {
6242
- if (this.fullScreenModeHelper.isInFullScreenMode)
6243
- this.fullScreenModeHelper.adjustControlInFullScreenMode();
6244
- else
6245
- this.adjustOwnerControl();
6246
- };
6247
6247
  GanttView.prototype.applySettings = function (settings, preventViewUpdate) {
6248
6248
  if (preventViewUpdate === void 0) { preventViewUpdate = false; }
6249
6249
  var ganttSettings = Settings_1.Settings.parse(settings);
@@ -12104,12 +12104,15 @@ var ScaleCalculator = (function () {
12104
12104
  ScaleCalculator.prototype.getScaleIndexByPos = function (pos, scaleType) {
12105
12105
  scaleType !== null && scaleType !== void 0 ? scaleType : (scaleType = this.viewType);
12106
12106
  var items = scaleType === this.viewType ? this.bottomScaleItems : this.topScaleItems;
12107
- for (var i = 0; i < items.length; i++) {
12108
- var item = items[i];
12109
- if (pos >= item.position.x && pos <= item.position.x + item.size.width)
12110
- return i;
12107
+ var index = -1;
12108
+ if (items.findIndex)
12109
+ index = items.findIndex(function (i) { return pos >= i.position.x && pos <= i.position.x + i.size.width; });
12110
+ else {
12111
+ var item = items.filter(function (i) { return pos >= i.position.x && pos <= i.position.x + i.size.width; })[0];
12112
+ if (item)
12113
+ index = items.indexOf(item);
12111
12114
  }
12112
- return -1;
12115
+ return index;
12113
12116
  };
12114
12117
  ScaleCalculator.prototype.getScaleBorderPosition = function (index, scaleType) {
12115
12118
  var item = this.getScaleItems(scaleType)[index];
@@ -12204,14 +12207,27 @@ var ScaleCalculator = (function () {
12204
12207
  };
12205
12208
  ScaleCalculator.prototype.calculateTopScale = function (scaleType) {
12206
12209
  var items = new Array();
12207
- var currentDate = this.range.start;
12208
- var x = 0;
12209
- while (currentDate.getTime() < this.range.end.getTime()) {
12210
- var nextDate = this.getNextScaleDate(currentDate, scaleType);
12211
- var width = this.getPosInScale(nextDate) - this.getPosInScale(currentDate);
12212
- items.push(new ScaleItemInfo(currentDate, nextDate, new point_1.Point(x, undefined), new size_1.Size(width, 0)));
12213
- currentDate = nextDate;
12214
- x += width;
12210
+ var endRangeTime = this.range.end.getTime();
12211
+ var itemStartDate = this.range.start;
12212
+ var itemStartPos = 0;
12213
+ var lastBottomIndex = 0;
12214
+ while (itemStartDate.getTime() < endRangeTime) {
12215
+ var itemNextDate = this.getNextScaleDate(itemStartDate, scaleType);
12216
+ var nextDateTime = itemNextDate.getTime();
12217
+ for (var i = lastBottomIndex; i < this.bottomScaleItems.length; i++) {
12218
+ var item = this.bottomScaleItems[i];
12219
+ var startTime = item.start.getTime();
12220
+ var endTime = item.end.getTime();
12221
+ var isNextDateInItem = nextDateTime >= startTime && nextDateTime <= endTime;
12222
+ if (isNextDateInItem) {
12223
+ var itemEndPos = (nextDateTime - startTime) / (endTime - startTime) * item.size.width + item.position.x;
12224
+ items.push(new ScaleItemInfo(itemStartDate, itemNextDate, new point_1.Point(itemStartPos, undefined), new size_1.Size(itemEndPos - itemStartPos, 0)));
12225
+ lastBottomIndex = i;
12226
+ itemStartPos = itemEndPos;
12227
+ itemStartDate = itemNextDate;
12228
+ break;
12229
+ }
12230
+ }
12215
12231
  }
12216
12232
  return items;
12217
12233
  };
@@ -12229,18 +12245,6 @@ var ScaleCalculator = (function () {
12229
12245
  }
12230
12246
  return new Date(this.range.end);
12231
12247
  };
12232
- ScaleCalculator.prototype.getPosInScale = function (date) {
12233
- var time = date.getTime();
12234
- for (var i = 0; i < this.bottomScaleItems.length; i++) {
12235
- var item = this.bottomScaleItems[i];
12236
- var startTime = item.start.getTime();
12237
- var endTime = item.end.getTime();
12238
- var width = item.size.width;
12239
- if (time >= startTime && time <= endTime)
12240
- return (time - startTime) / (endTime - startTime) * width + item.position.x;
12241
- }
12242
- return 0;
12243
- };
12244
12248
  ScaleCalculator.prototype.getNextScaleDate = function (start, scaleType) {
12245
12249
  var date;
12246
12250
  switch (scaleType) {
@@ -17706,7 +17710,10 @@ var TaskAreaDefaultState = (function (_super) {
17706
17710
  function TaskAreaDefaultState() {
17707
17711
  return _super !== null && _super.apply(this, arguments) || this;
17708
17712
  }
17709
- TaskAreaDefaultState.prototype.finish = function () { this.clearTimers(); };
17713
+ TaskAreaDefaultState.prototype.finish = function () {
17714
+ this.clearTimers();
17715
+ this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.CONTEXTMENU_HIDE);
17716
+ };
17710
17717
  TaskAreaDefaultState.prototype.onMouseDownInternal = function (evt) { this.onPointerDownBase(evt); };
17711
17718
  TaskAreaDefaultState.prototype.onDocumentPointerDownInternal = function (evt) { this.onPointerDownBase(evt); };
17712
17719
  TaskAreaDefaultState.prototype.onDocumentPointerUpInternal = function (evt) { this.onPointerUpBase(evt); };
@@ -17722,7 +17729,11 @@ var TaskAreaDefaultState = (function (_super) {
17722
17729
  if (isMouse)
17723
17730
  this.changeSelectionOnTouchDown(evt);
17724
17731
  else {
17725
- setTimeout(function () { return _this.changeSelectionOnTouchDown(evt); }, 0);
17732
+ setTimeout(function () {
17733
+ if (!TaskAreaDomHelper_1.TaskAreaDomHelper.isMousePointer(evt))
17734
+ _this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.CONTEXTMENU_HIDE, evt);
17735
+ _this.changeSelectionOnTouchDown(evt);
17736
+ }, 0);
17726
17737
  clearTimeout(this._contextMenuTimer);
17727
17738
  this._contextMenuTimer = setTimeout(function () { return _this.showContextMenuOnTouchDown(evt); }, TaskAreaDefaultState.defaultContextMenuTimeout);
17728
17739
  }
@@ -17737,6 +17748,8 @@ var TaskAreaDefaultState = (function (_super) {
17737
17748
  if (!this._lastEmulatedClickTime) {
17738
17749
  var clickCanceled = !this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_AREA_CLICK, evt, rowIndex);
17739
17750
  clearTimeout(this._dblClickClearTimer);
17751
+ if (TaskAreaDomHelper_1.TaskAreaDomHelper.isMousePointer(evt))
17752
+ this.raiseEvent(TaskAreaStateEventNames_1.TaskAreaStateEventNames.CONTEXTMENU_HIDE, evt);
17740
17753
  if (!clickCanceled) {
17741
17754
  this._lastEmulatedClickTime = now;
17742
17755
  this._dblClickClearTimer = setTimeout(function () { delete _this._lastEmulatedClickTime; }, TaskAreaDefaultState.defaultDblClickClearTimeout);
@@ -19324,6 +19337,7 @@ var EditingSettings = (function () {
19324
19337
  this.allowResourceInsert = true;
19325
19338
  this.allowResourceUpdate = true;
19326
19339
  this.allowTaskResourceUpdate = true;
19340
+ this.taskHoverDelay = 0;
19327
19341
  }
19328
19342
  EditingSettings.parse = function (settings) {
19329
19343
  var result = new EditingSettings();
@@ -19348,6 +19362,8 @@ var EditingSettings = (function () {
19348
19362
  result.allowResourceUpdate = settings.allowResourceUpdate;
19349
19363
  if ((0, common_1.isDefined)(settings.allowTaskResourceUpdate))
19350
19364
  result.allowTaskResourceUpdate = settings.allowTaskResourceUpdate;
19365
+ if ((0, common_1.isDefined)(settings.taskHoverDelay))
19366
+ result.taskHoverDelay = settings.taskHoverDelay;
19351
19367
  }
19352
19368
  return result;
19353
19369
  };
@@ -21323,6 +21339,7 @@ var TaskAreaEventsListener = (function () {
21323
21339
  handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_AREA_ZOOM_IN] = this.taskAreaZoomInHandler.bind(this);
21324
21340
  handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT] = this.taskAreaZoomOutHandler.bind(this);
21325
21341
  handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.CONTEXTMENU_SHOW] = this.taskAreaContextMenuShowHandler.bind(this);
21342
+ handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.CONTEXTMENU_HIDE] = this.taskAreaContextMenuHideHandler.bind(this);
21326
21343
  handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_SELECTION] = this.taskSelectionHandler.bind(this);
21327
21344
  handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.DEPENDENCY_SELECTION] = this.dependencySelectionHandler.bind(this);
21328
21345
  handlers[TaskAreaStateEventNames_1.TaskAreaStateEventNames.TASK_EDIT_START] = this.taskEditStartHandler.bind(this);
@@ -21357,6 +21374,9 @@ var TaskAreaEventsListener = (function () {
21357
21374
  TaskAreaEventsListener.prototype.taskAreaContextMenuShowHandler = function (args) {
21358
21375
  this._owner.onTaskAreaContextMenu(args.rowIndex, args.triggerEvent, args.info["type"]);
21359
21376
  };
21377
+ TaskAreaEventsListener.prototype.taskAreaContextMenuHideHandler = function () {
21378
+ this._owner.hidePopupMenu();
21379
+ };
21360
21380
  TaskAreaEventsListener.prototype.taskAreaScrollHandler = function (args) {
21361
21381
  this._owner.updateView();
21362
21382
  };
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * DevExpress Gantt (dx-gantt.min)
3
- * Version: 4.1.4
4
- * Build date: Tue Dec 28 2021
3
+ * Version: 4.1.8
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}