@syncfusion/ej2-gantt 24.1.43 → 24.1.44
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/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/dist/ej2-gantt.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +13 -2
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +13 -2
- package/dist/es6/ej2-gantt.es5.js.map +1 -1
- package/dist/global/ej2-gantt.min.js +2 -2
- package/dist/global/ej2-gantt.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/gantt/actions/context-menu.js +1 -1
- package/src/gantt/actions/edit.js +2 -0
- package/src/gantt/actions/keyboard.js +4 -1
- package/src/gantt/base/gantt.js +6 -0
|
@@ -14807,7 +14807,10 @@ var FocusModule = /** @__PURE__ @class */ (function () {
|
|
|
14807
14807
|
var selectingRowIndex = expandedRecords.indexOf(selectedItem);
|
|
14808
14808
|
var currentSelectingRecord = e.action === 'downArrow' ? expandedRecords[selectingRowIndex + 1] :
|
|
14809
14809
|
expandedRecords[selectingRowIndex - 1];
|
|
14810
|
-
|
|
14810
|
+
var activeElement = this.parent['args'];
|
|
14811
|
+
if (document.activeElement != activeElement) {
|
|
14812
|
+
ganttObj.selectionModule.selectRow(ganttObj.currentViewData.indexOf(currentSelectingRecord), false, true);
|
|
14813
|
+
}
|
|
14811
14814
|
}
|
|
14812
14815
|
else if (ganttObj.selectionSettings.mode === 'Cell' && ganttObj.selectionModule.getSelectedRowCellIndexes().length > 0) {
|
|
14813
14816
|
var selectCellIndex = ganttObj.selectionModule.getSelectedRowCellIndexes();
|
|
@@ -15685,6 +15688,12 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
15685
15688
|
}
|
|
15686
15689
|
};
|
|
15687
15690
|
Gantt.prototype.keyActionHandler = function (e) {
|
|
15691
|
+
if (this.enableContextMenu && this.contextMenuModule && (e.action === 'downArrow' || e.action === 'upArrow') && document.getElementById(this.element.id + '_contextmenu') && this['args']) {
|
|
15692
|
+
var firstMenuItem = this['args'];
|
|
15693
|
+
if (!isNullOrUndefined(firstMenuItem)) {
|
|
15694
|
+
(firstMenuItem).focus();
|
|
15695
|
+
}
|
|
15696
|
+
}
|
|
15688
15697
|
if (e.target && (e.action === 'downArrow' || e.action === 'upArrow') && e.target === this.element.querySelector('.e-rowcell')) {
|
|
15689
15698
|
this.treeGrid.grid.notify('key-pressed', e);
|
|
15690
15699
|
}
|
|
@@ -29087,6 +29096,8 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
29087
29096
|
if (args.data[tempTaskID] != args.data['ganttProperties']['taskId']) {
|
|
29088
29097
|
args.data['ganttProperties']['taskId'] = args.data[tempTaskID];
|
|
29089
29098
|
args.newTaskData[tempTaskID] = args.data[tempTaskID];
|
|
29099
|
+
args.data['ganttProperties']['rowUniqueID'] = args.data[tempTaskID].toString();
|
|
29100
|
+
_this.parent.ids.push(args.data[tempTaskID].toString());
|
|
29090
29101
|
}
|
|
29091
29102
|
}
|
|
29092
29103
|
if (!args.cancel) {
|
|
@@ -33574,7 +33585,7 @@ var ContextMenu$2 = /** @__PURE__ @class */ (function () {
|
|
|
33574
33585
|
};
|
|
33575
33586
|
ContextMenu$$1.prototype.contextMenuOpen = function (args) {
|
|
33576
33587
|
this.isOpen = true;
|
|
33577
|
-
var firstMenuItem = args.element.querySelectorAll('li:not(.e-menu-hide):not(.e-disabled)')[0];
|
|
33588
|
+
var firstMenuItem = this.parent['args'] = args.element.querySelectorAll('li:not(.e-menu-hide):not(.e-disabled)')[0];
|
|
33578
33589
|
if (!isNullOrUndefined(firstMenuItem)) {
|
|
33579
33590
|
addClass([firstMenuItem], 'e-focused');
|
|
33580
33591
|
}
|