ngx-deebodata 0.3.5 → 0.3.7

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();
@@ -2595,10 +2598,7 @@ class RowGroupPanel {
2595
2598
  const dtb = this.panelDataGrid?.nativeElement;
2596
2599
  if (dtb) {
2597
2600
  const lfs = this.dataTableService.listenForScroll();
2598
- if (this.scrollDir === "down")
2599
- this.execVertScrollUp(this.columns, this.columns.length, dtb.scrollTop, true);
2600
- else
2601
- this.execVertScrollDown(this.columns, this.columns.length, dtb.scrollTop, true);
2601
+ this.execVertScrollUp(this.columns, this.columns.length, dtb.scrollTop, true);
2602
2602
  this.handleScrollEnd();
2603
2603
  this.execHorizScroll(dtb.scrollLeft);
2604
2604
  if (lfs && this.rows.some(r => r.height !== this.dataTableService.defltRHgt))