ngx-deebodata 0.2.8 → 0.2.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.
|
@@ -5740,7 +5740,7 @@ class NgxDeebodata {
|
|
|
5740
5740
|
const left = event.target.scrollLeft;
|
|
5741
5741
|
/*horiz scroll*/
|
|
5742
5742
|
if (left !== this.horizRest())
|
|
5743
|
-
|
|
5743
|
+
this.execHorizScroll(left);
|
|
5744
5744
|
/*horiz scroll*/
|
|
5745
5745
|
/*vert scroll*/
|
|
5746
5746
|
if (top === this.verticalRest || this.lockVScroll) {
|
|
@@ -5750,7 +5750,7 @@ class NgxDeebodata {
|
|
|
5750
5750
|
return this.setRowSelChecksPlacement();
|
|
5751
5751
|
}
|
|
5752
5752
|
this.isScrolling = true;
|
|
5753
|
-
|
|
5753
|
+
this.execVertScroll(top);
|
|
5754
5754
|
/*vert scroll*/
|
|
5755
5755
|
if (top % 2 === 0)
|
|
5756
5756
|
this.clearValidatedEdit();
|
|
@@ -5911,9 +5911,9 @@ class NgxDeebodata {
|
|
|
5911
5911
|
if (gap > 0) {
|
|
5912
5912
|
let h = 0;
|
|
5913
5913
|
let z = this.lastElRowIndex + 1;
|
|
5914
|
-
const last = document.getElementById("dataTableRow" + this.lastElRowIndex)
|
|
5915
|
-
if
|
|
5916
|
-
|
|
5914
|
+
// const last = document.getElementById("dataTableRow" + this.lastElRowIndex)
|
|
5915
|
+
// if(last && this.dataTableService.elIsBelowFold(last, this.dataTableService.tblBot))
|
|
5916
|
+
// return;
|
|
5917
5917
|
let bhToSub = 0;
|
|
5918
5918
|
let ahToAdd = 0;
|
|
5919
5919
|
const rowsInGap = Math.ceil(gap / defNum);
|
|
@@ -5950,13 +5950,13 @@ class NgxDeebodata {
|
|
|
5950
5950
|
}
|
|
5951
5951
|
h += 1;
|
|
5952
5952
|
}
|
|
5953
|
-
this.rows = [...this.rows, ...rowsToAdd];
|
|
5954
5953
|
if (bhToSub)
|
|
5955
5954
|
this.belowHgt.set(Math.max(0, this.belowHgt() - bhToSub));
|
|
5956
|
-
|
|
5957
|
-
this.dtChecks = [...this.dtChecks, ...chksToAdd];
|
|
5955
|
+
this.rows = [...this.rows, ...rowsToAdd];
|
|
5958
5956
|
if (ahToAdd)
|
|
5959
5957
|
this.aboveHgt.set(this.aboveHgt() + ahToAdd);
|
|
5958
|
+
if (chksToAdd.length)
|
|
5959
|
+
this.dtChecks = [...this.dtChecks, ...chksToAdd];
|
|
5960
5960
|
this.setLastRowIndex();
|
|
5961
5961
|
}
|
|
5962
5962
|
}
|
|
@@ -5977,6 +5977,8 @@ class NgxDeebodata {
|
|
|
5977
5977
|
return;
|
|
5978
5978
|
let bhToAdd = 0;
|
|
5979
5979
|
let ahToSub = 0;
|
|
5980
|
+
let mRows = [...this.rows];
|
|
5981
|
+
let mChks = [...this.dtChecks];
|
|
5980
5982
|
const rowsInGap = Math.ceil(gap / defNum);
|
|
5981
5983
|
const min = Math.max(0, (z - rowsInGap));
|
|
5982
5984
|
for (z; z >= min; z--) {
|
|
@@ -6001,8 +6003,8 @@ class NgxDeebodata {
|
|
|
6001
6003
|
cells.push(cell);
|
|
6002
6004
|
}
|
|
6003
6005
|
nRow.cells = [...cells];
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
+
mRows = [nRow, ...mRows];
|
|
6007
|
+
mChks = [index, ...mChks];
|
|
6006
6008
|
ahToSub += defNum;
|
|
6007
6009
|
}
|
|
6008
6010
|
}
|
|
@@ -6011,6 +6013,8 @@ class NgxDeebodata {
|
|
|
6011
6013
|
}
|
|
6012
6014
|
if (ahToSub)
|
|
6013
6015
|
this.aboveHgt.set(Math.max(0, (this.aboveHgt() - ahToSub)));
|
|
6016
|
+
this.rows = [...mRows];
|
|
6017
|
+
this.dtChecks = [...mChks];
|
|
6014
6018
|
if (bhToAdd)
|
|
6015
6019
|
this.belowHgt.set(this.belowHgt() + bhToAdd);
|
|
6016
6020
|
}
|