ngx-deebodata 0.0.8 → 0.1.0
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.
|
@@ -1895,7 +1895,7 @@ class DataCellComponent {
|
|
|
1895
1895
|
this.execFreeEdit();
|
|
1896
1896
|
}
|
|
1897
1897
|
checkValEditOpts(event) {
|
|
1898
|
-
event && event.preventDefault()
|
|
1898
|
+
event && event.preventDefault();
|
|
1899
1899
|
const opt = document.getElementsByClassName("edit-input-opt")[0];
|
|
1900
1900
|
const btn = opt?.firstElementChild;
|
|
1901
1901
|
if (opt && btn) {
|
|
@@ -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
|
}
|
|
@@ -6398,11 +6414,11 @@ class NgxDeebodata {
|
|
|
6398
6414
|
}
|
|
6399
6415
|
if (co2) {
|
|
6400
6416
|
this.dataTableService.themeColor2 = co2;
|
|
6401
|
-
rule2 = ".col-header, .data-table-footer, .btn-fil-comp{background-color: " + co2 + " !important}";
|
|
6417
|
+
rule2 = ".col-header, .data-table-footer, .btn-fil-comp, .skip-to-options div{background-color: " + co2 + " !important}";
|
|
6402
6418
|
const tblbxSh = "0 -1px 3px 1px ";
|
|
6403
6419
|
const tblFbxSh = "0 1px 3px -3px ";
|
|
6404
6420
|
if (this.dataTableService.mainDataLen) {
|
|
6405
|
-
rule2 = ".col-header, .btn-fil-comp{background-color: " + co2 + " !important}";
|
|
6421
|
+
rule2 = ".col-header, .btn-fil-comp, .skip-to-options div{background-color: " + co2 + " !important}";
|
|
6406
6422
|
rule3 = ".data-table{ box-shadow: " + tblbxSh + co2 + "; -webkit-box-shadow: " + tblbxSh + co2 + "; -moz-box-shadow: " + tblbxSh + co2 + "}";
|
|
6407
6423
|
rule6 = ".data-table-footer{background-color: " + co2 + "; box-shadow: " + tblFbxSh + co2 + "; -webkit-box-shadow: " + tblFbxSh + co2 + "; -moz-box-shadow: " + tblFbxSh + co2 + "}";
|
|
6408
6424
|
}
|