ngx-deebodata 0.3.9 → 0.4.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.
package/README.md CHANGED
@@ -78,7 +78,8 @@ export class App {
78
78
  | `altRowColor` | `string` | `""` | alternate row color (css, hex, rgb) |
79
79
  | `myColumnStyles` | `ColumnStyles[]` | `[]` | pass css styles to specific values in a column |
80
80
  | `myColumnValueColors` | `ColumnValueColors[]` | `[]` | assign a color to a value in pie, line, and bar graphs |
81
- | `forceGrouping` | `string[]` | `[]` | array of column names to force grouping - gives dropdown filter & pie graphs for the column |
81
+ | `forceGrouping` | `string[]` | `[]` | array of column names to force grouping - gives dropdown filter & pie graphs for the column |
82
+
82
83
 
83
84
  It's best to pass hex or rgb colors to **color1, color2, pieGraphColors, & altRowColor,** but css colors work too
84
85
 
@@ -6021,7 +6021,6 @@ class NgxDeebodata {
6021
6021
  this.execVertScrollUp(this.columnNames, this.columnNames.length, dtb.scrollTop, true);
6022
6022
  else
6023
6023
  this.execVertScrollDown(this.columnNames, this.columnNames.length, dtb.scrollTop, true);
6024
- this.handleScrollEnd();
6025
6024
  this.execHorizScroll(dtb.scrollLeft);
6026
6025
  if (lfs && this.rows.some(r => r.height !== this.dataTableService.defltRHgt))
6027
6026
  this.setAllRowsDefHgt();
@@ -6051,7 +6050,7 @@ class NgxDeebodata {
6051
6050
  this.clearValidatedEdit();
6052
6051
  if (this.finishScrollTO)
6053
6052
  this.finishScrollTO.unsubscribe();
6054
- this.finishScrollTO = timer(150).subscribe(() => { this.completeScroll(); });
6053
+ this.finishScrollTO = timer(100).subscribe(() => { this.completeScroll(); });
6055
6054
  }
6056
6055
  execHorizScroll(left) {
6057
6056
  const head = this.dataTableHeaders.nativeElement;
@@ -6215,7 +6214,7 @@ class NgxDeebodata {
6215
6214
  }
6216
6215
  }
6217
6216
  }
6218
- applyToDomRows(rows, cols, colLen, lastVisInd, dir, defNum, newRows) {
6217
+ applyToDomRows(rows, cols, colLen, lastVisInd, dir, defNum, newRows, force) {
6219
6218
  const len = this.rows.length;
6220
6219
  let nrowsAcctFor = 0;
6221
6220
  let chks = [];
@@ -6295,7 +6294,7 @@ class NgxDeebodata {
6295
6294
  if (bhToAdd)
6296
6295
  this.belowHgt.set((this.belowHgt() + bhToAdd));
6297
6296
  }
6298
- this.finishApplyingDomRows();
6297
+ this.finishApplyingDomRows(force);
6299
6298
  }
6300
6299
  getLastRowBot() {
6301
6300
  const els = document.getElementsByClassName("data-table-row");
@@ -6354,7 +6353,7 @@ class NgxDeebodata {
6354
6353
  }
6355
6354
  const vlen = this.dataTableService.visibleCols.length;
6356
6355
  const lastVisInd = cols.indexOf(this.dataTableService.visibleCols[(vlen - 1)]) + 1;
6357
- this.applyToDomRows(rows, cols, colLen, lastVisInd, "down", defNum, repl);
6356
+ this.applyToDomRows(rows, cols, colLen, lastVisInd, "down", defNum, repl, force);
6358
6357
  });
6359
6358
  }
6360
6359
  getFirstRowTop() {
@@ -6411,14 +6410,16 @@ class NgxDeebodata {
6411
6410
  }
6412
6411
  const vlen = this.dataTableService.visibleCols.length;
6413
6412
  const lastVisInd = cols.indexOf(this.dataTableService.visibleCols[(vlen - 1)]) + 1;
6414
- this.applyToDomRows(rows, cols, colLen, lastVisInd, "up", defNum, repl);
6413
+ this.applyToDomRows(rows, cols, colLen, lastVisInd, "up", defNum, repl, force);
6415
6414
  });
6416
6415
  }
6417
- finishApplyingDomRows() {
6416
+ finishApplyingDomRows(force) {
6418
6417
  this.setRowNumbers();
6419
6418
  this.fixRowContainer(0);
6420
6419
  this.setLastRowIndex();
6421
6420
  this.cleanRowChecks();
6421
+ if (force)
6422
+ this.handleScrollEnd();
6422
6423
  }
6423
6424
  jumpToRow(row) {
6424
6425
  if (this.dataTableBody) {