ngx-deebodata 0.0.8 → 0.0.9
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.
|
@@ -1903,8 +1903,14 @@ class DataCellComponent {
|
|
|
1903
1903
|
}
|
|
1904
1904
|
else {
|
|
1905
1905
|
const nxtCell = this.cellElem.nativeElement?.parentElement?.nextElementSibling?.firstElementChild;
|
|
1906
|
-
if (nxtCell)
|
|
1906
|
+
if (nxtCell) {
|
|
1907
1907
|
nxtCell.focus();
|
|
1908
|
+
}
|
|
1909
|
+
else {
|
|
1910
|
+
const nxtRowCell = document.querySelector("#dataTableRow" + (parseInt(this.rowId.replace(/^dataTableRow/, "")) + 1) + " .data-cell:not(.col-header-minimized)");
|
|
1911
|
+
if (nxtRowCell)
|
|
1912
|
+
nxtRowCell.focus();
|
|
1913
|
+
}
|
|
1908
1914
|
}
|
|
1909
1915
|
}
|
|
1910
1916
|
execFreeEdit() {
|
|
@@ -6104,10 +6110,20 @@ class NgxDeebodata {
|
|
|
6104
6110
|
handleFDragTab(e) {
|
|
6105
6111
|
if (e && this.common.isTabKey(e)) {
|
|
6106
6112
|
const cell = document.getElementsByClassName("dragger-cell-focused")[0];
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6113
|
+
if (cell) {
|
|
6114
|
+
const nxtCell = cell.parentElement?.nextElementSibling?.firstElementChild;
|
|
6115
|
+
if (nxtCell) {
|
|
6116
|
+
this.dataTableService.autoScrollOnEdit = true;
|
|
6117
|
+
setTimeout(() => { nxtCell.focus(); });
|
|
6118
|
+
}
|
|
6119
|
+
else {
|
|
6120
|
+
const nxtRow = cell.parentElement?.parentElement?.nextElementSibling;
|
|
6121
|
+
if (nxtRow) {
|
|
6122
|
+
const nxtRowCell = document.querySelector("#" + nxtRow.id + " .data-cell:not(.col-header-minimized)");
|
|
6123
|
+
if (nxtRowCell)
|
|
6124
|
+
nxtRowCell.focus();
|
|
6125
|
+
}
|
|
6126
|
+
}
|
|
6111
6127
|
}
|
|
6112
6128
|
}
|
|
6113
6129
|
}
|