ngx-deebodata 0.4.0 → 0.4.1
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,9 @@ 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
|
+
|
|
83
|
+
|
|
82
84
|
|
|
83
85
|
|
|
84
86
|
It's best to pass hex or rgb colors to **color1, color2, pieGraphColors, & altRowColor,** but css colors work too
|
|
@@ -2604,7 +2604,6 @@ class RowGroupPanel {
|
|
|
2604
2604
|
if (dtb) {
|
|
2605
2605
|
const lfs = this.dataTableService.listenForScroll();
|
|
2606
2606
|
this.execVertScrollUp(this.columns, this.columns.length, dtb.scrollTop, true);
|
|
2607
|
-
this.handleScrollEnd();
|
|
2608
2607
|
this.execHorizScroll(dtb.scrollLeft);
|
|
2609
2608
|
if (lfs && this.rows.some(r => r.height !== this.dataTableService.defltRHgt))
|
|
2610
2609
|
this.setAllRowsDefHgt();
|
|
@@ -2625,7 +2624,7 @@ class RowGroupPanel {
|
|
|
2625
2624
|
this.execVertScroll(top);
|
|
2626
2625
|
if (this.finishScrollTO)
|
|
2627
2626
|
this.finishScrollTO.unsubscribe();
|
|
2628
|
-
this.finishScrollTO = timer(
|
|
2627
|
+
this.finishScrollTO = timer(100).subscribe(() => { this.completeScroll(); });
|
|
2629
2628
|
/*vert scroll*/
|
|
2630
2629
|
}
|
|
2631
2630
|
execHorizScroll(left, reverse) {
|
|
@@ -2771,7 +2770,7 @@ class RowGroupPanel {
|
|
|
2771
2770
|
}
|
|
2772
2771
|
}
|
|
2773
2772
|
}
|
|
2774
|
-
applyToDomRows(rows, rnums, cols, colLen, lastVisInd, dir, defNum, newRows) {
|
|
2773
|
+
applyToDomRows(rows, rnums, cols, colLen, lastVisInd, dir, defNum, newRows, force) {
|
|
2775
2774
|
const len = this.rows.length;
|
|
2776
2775
|
let nrowsAcctFor = 0;
|
|
2777
2776
|
if (dir === "down") {
|
|
@@ -2843,7 +2842,7 @@ class RowGroupPanel {
|
|
|
2843
2842
|
this.belowHgt.set((this.belowHgt() + bhToAdd));
|
|
2844
2843
|
}
|
|
2845
2844
|
this.rowNums = [...rnums];
|
|
2846
|
-
this.finishApplyingDomRows();
|
|
2845
|
+
this.finishApplyingDomRows(force);
|
|
2847
2846
|
}
|
|
2848
2847
|
getLastRowBot() {
|
|
2849
2848
|
const els = document.getElementsByClassName("rows-for-" + this.elifyGrouping);
|
|
@@ -2963,13 +2962,15 @@ class RowGroupPanel {
|
|
|
2963
2962
|
numsToAdd = rows.map(r => (r.elInd + 1)).sort((a, b) => a - b);
|
|
2964
2963
|
const vlen = this.dataTableService.visibleCols.length;
|
|
2965
2964
|
const lastVisInd = cols.indexOf(this.dataTableService.visibleCols[(vlen - 1)]) + 1;
|
|
2966
|
-
this.applyToDomRows(rows, numsToAdd, cols, colLen, lastVisInd, "up", defNum, repl);
|
|
2965
|
+
this.applyToDomRows(rows, numsToAdd, cols, colLen, lastVisInd, "up", defNum, repl, force);
|
|
2967
2966
|
});
|
|
2968
2967
|
}
|
|
2969
|
-
finishApplyingDomRows() {
|
|
2968
|
+
finishApplyingDomRows(force) {
|
|
2970
2969
|
this.setRowNumPlacement();
|
|
2971
2970
|
this.fixRowContainer(0);
|
|
2972
2971
|
this.setLastRowIndex();
|
|
2972
|
+
if (force)
|
|
2973
|
+
this.handleScrollEnd();
|
|
2973
2974
|
}
|
|
2974
2975
|
// execCellEdit(event: any) {//{ element: el, column: this.cell.column, value: val }
|
|
2975
2976
|
// this.cellEdit.emit(event)
|