ngx-deebodata 0.3.6 → 0.3.8
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.
|
@@ -401,6 +401,7 @@ class DataTableService {
|
|
|
401
401
|
closeGroupByOpts = new Subject();
|
|
402
402
|
gridEventWhileGrouped = new Subject();
|
|
403
403
|
gridScrollEndWhileGrouped = new Subject();
|
|
404
|
+
groupedBoundsChange = new Subject();
|
|
404
405
|
mouseupWhileGrouped = new Subject();
|
|
405
406
|
setIdealColumnWidth = new Subject();
|
|
406
407
|
currSelRows = []; //just be an index of mainData
|
|
@@ -466,6 +467,7 @@ class DataTableService {
|
|
|
466
467
|
setTblBounds() {
|
|
467
468
|
this.setTblVertBounds(); //critical, do it again it's ok
|
|
468
469
|
this.setTblHorizBounds();
|
|
470
|
+
this.groupedBoundsChange.next(true);
|
|
469
471
|
}
|
|
470
472
|
elIsAboveFold(el, top) {
|
|
471
473
|
if (el) {
|
|
@@ -2382,6 +2384,7 @@ class RowGroupPanel {
|
|
|
2382
2384
|
this.elifyGrouping = this.common.elifyCol(this.groupValue);
|
|
2383
2385
|
this.count = this.dataTableService.currFilData.filter(d => d[this.dataTableService.currGroup] === this.groupValue).length;
|
|
2384
2386
|
this.dtr = this.common.elifyCol(this.groupValue) + "dataTableRow";
|
|
2387
|
+
this.dataTableService.groupedBoundsChange.subscribe(e => { this.setTblBot(); });
|
|
2385
2388
|
this.dataTableService.gridScrollEndWhileGrouped.subscribe(e => { this.setTblBot(); });
|
|
2386
2389
|
this.dataTableService.gridEventWhileGrouped.subscribe(e => {
|
|
2387
2390
|
const nowOpen = this.open();
|
|
@@ -2491,6 +2494,11 @@ class RowGroupPanel {
|
|
|
2491
2494
|
this.openEvt.emit("row-group-panel-" + this.elifyGrouping);
|
|
2492
2495
|
timer(0).subscribe(() => {
|
|
2493
2496
|
this.setTblBot();
|
|
2497
|
+
const pEl = this.panelDataGrid?.nativeElement;
|
|
2498
|
+
if (pEl) {
|
|
2499
|
+
pEl.scrollBy(1, 1);
|
|
2500
|
+
pEl.scrollBy(0, -1);
|
|
2501
|
+
}
|
|
2494
2502
|
this.setRowNumPlacement();
|
|
2495
2503
|
this._cd.detectChanges();
|
|
2496
2504
|
});
|
|
@@ -2852,7 +2860,7 @@ class RowGroupPanel {
|
|
|
2852
2860
|
const doRows = force || (!this.isScrolling && (gap == 0 || !this.dataTableService.mouseIsDown)) || currTop % this.doRowsMod === 0;
|
|
2853
2861
|
const bel = this.belowArea.nativeElement;
|
|
2854
2862
|
const bbds = bel.getBoundingClientRect();
|
|
2855
|
-
const btop = bbds.top;
|
|
2863
|
+
const btop = bbds.top - gap;
|
|
2856
2864
|
const defNum = this.dataTableService.defltRHgtNum;
|
|
2857
2865
|
let z = this.lastElRowIndex + 1;
|
|
2858
2866
|
let bhToSub = 0;
|
|
@@ -2910,7 +2918,7 @@ class RowGroupPanel {
|
|
|
2910
2918
|
let rows = [];
|
|
2911
2919
|
const ael = this.aboveArea.nativeElement;
|
|
2912
2920
|
const abds = ael.getBoundingClientRect();
|
|
2913
|
-
const rbot = abds.bottom;
|
|
2921
|
+
const rbot = abds.bottom + gap;
|
|
2914
2922
|
const maxRows = this.rows.length;
|
|
2915
2923
|
const defNum = this.dataTableService.defltRHgtNum;
|
|
2916
2924
|
let z = (this.lastElRowIndex - maxRows);
|
|
@@ -6304,7 +6312,7 @@ class NgxDeebodata {
|
|
|
6304
6312
|
const doRows = force || (!this.isScrolling && (gap == 0 || !this.dataTableService.mouseIsDown)) || currTop % this.doRowsMod === 0 || this.belowHgt() === 0;
|
|
6305
6313
|
const bel = this.belowArea.nativeElement;
|
|
6306
6314
|
const bbds = bel.getBoundingClientRect();
|
|
6307
|
-
const btop = bbds.top;
|
|
6315
|
+
const btop = bbds.top - gap;
|
|
6308
6316
|
const defNum = this.dataTableService.defltRHgtNum;
|
|
6309
6317
|
let z = this.lastElRowIndex + 1;
|
|
6310
6318
|
let bhToSub = 0;
|
|
@@ -6360,7 +6368,7 @@ class NgxDeebodata {
|
|
|
6360
6368
|
let rows = [];
|
|
6361
6369
|
const ael = this.aboveArea.nativeElement;
|
|
6362
6370
|
const abds = ael.getBoundingClientRect();
|
|
6363
|
-
const rbot = abds.bottom;
|
|
6371
|
+
const rbot = abds.bottom + gap;
|
|
6364
6372
|
const maxRows = this.rows.length;
|
|
6365
6373
|
const defNum = this.dataTableService.defltRHgtNum;
|
|
6366
6374
|
let z = (this.lastElRowIndex - maxRows);
|