@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
|
@@ -14382,7 +14382,10 @@ class FocusModule {
|
|
|
14382
14382
|
const selectingRowIndex = expandedRecords.indexOf(selectedItem);
|
|
14383
14383
|
const currentSelectingRecord = e.action === 'downArrow' ? expandedRecords[selectingRowIndex + 1] :
|
|
14384
14384
|
expandedRecords[selectingRowIndex - 1];
|
|
14385
|
-
|
|
14385
|
+
const activeElement = this.parent['args'];
|
|
14386
|
+
if (document.activeElement != activeElement) {
|
|
14387
|
+
ganttObj.selectionModule.selectRow(ganttObj.currentViewData.indexOf(currentSelectingRecord), false, true);
|
|
14388
|
+
}
|
|
14386
14389
|
}
|
|
14387
14390
|
else if (ganttObj.selectionSettings.mode === 'Cell' && ganttObj.selectionModule.getSelectedRowCellIndexes().length > 0) {
|
|
14388
14391
|
const selectCellIndex = ganttObj.selectionModule.getSelectedRowCellIndexes();
|
|
@@ -15244,6 +15247,12 @@ let Gantt = class Gantt extends Component {
|
|
|
15244
15247
|
}
|
|
15245
15248
|
}
|
|
15246
15249
|
keyActionHandler(e) {
|
|
15250
|
+
if (this.enableContextMenu && this.contextMenuModule && (e.action === 'downArrow' || e.action === 'upArrow') && document.getElementById(this.element.id + '_contextmenu') && this['args']) {
|
|
15251
|
+
const firstMenuItem = this['args'];
|
|
15252
|
+
if (!isNullOrUndefined(firstMenuItem)) {
|
|
15253
|
+
(firstMenuItem).focus();
|
|
15254
|
+
}
|
|
15255
|
+
}
|
|
15247
15256
|
if (e.target && (e.action === 'downArrow' || e.action === 'upArrow') && e.target === this.element.querySelector('.e-rowcell')) {
|
|
15248
15257
|
this.treeGrid.grid.notify('key-pressed', e);
|
|
15249
15258
|
}
|
|
@@ -28523,6 +28532,8 @@ class Edit$2 {
|
|
|
28523
28532
|
if (args.data[tempTaskID] != args.data['ganttProperties']['taskId']) {
|
|
28524
28533
|
args.data['ganttProperties']['taskId'] = args.data[tempTaskID];
|
|
28525
28534
|
args.newTaskData[tempTaskID] = args.data[tempTaskID];
|
|
28535
|
+
args.data['ganttProperties']['rowUniqueID'] = args.data[tempTaskID].toString();
|
|
28536
|
+
this.parent.ids.push(args.data[tempTaskID].toString());
|
|
28526
28537
|
}
|
|
28527
28538
|
}
|
|
28528
28539
|
if (!args.cancel) {
|
|
@@ -32964,7 +32975,7 @@ class ContextMenu$2 {
|
|
|
32964
32975
|
}
|
|
32965
32976
|
contextMenuOpen(args) {
|
|
32966
32977
|
this.isOpen = true;
|
|
32967
|
-
const firstMenuItem = args.element.querySelectorAll('li:not(.e-menu-hide):not(.e-disabled)')[0];
|
|
32978
|
+
const firstMenuItem = this.parent['args'] = args.element.querySelectorAll('li:not(.e-menu-hide):not(.e-disabled)')[0];
|
|
32968
32979
|
if (!isNullOrUndefined(firstMenuItem)) {
|
|
32969
32980
|
addClass([firstMenuItem], 'e-focused');
|
|
32970
32981
|
}
|