ngx-deebodata 0.3.9 → 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 +4 -1
- package/fesm2022/ngx-deebodata.mjs +15 -13
- package/fesm2022/ngx-deebodata.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngx-deebodata.d.ts +3 -3
package/README.md
CHANGED
|
@@ -78,7 +78,10 @@ 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
|
+
|
|
84
|
+
|
|
82
85
|
|
|
83
86
|
It's best to pass hex or rgb colors to **color1, color2, pieGraphColors, & altRowColor,** but css colors work too
|
|
84
87
|
|
|
@@ -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)
|
|
@@ -6021,7 +6022,6 @@ class NgxDeebodata {
|
|
|
6021
6022
|
this.execVertScrollUp(this.columnNames, this.columnNames.length, dtb.scrollTop, true);
|
|
6022
6023
|
else
|
|
6023
6024
|
this.execVertScrollDown(this.columnNames, this.columnNames.length, dtb.scrollTop, true);
|
|
6024
|
-
this.handleScrollEnd();
|
|
6025
6025
|
this.execHorizScroll(dtb.scrollLeft);
|
|
6026
6026
|
if (lfs && this.rows.some(r => r.height !== this.dataTableService.defltRHgt))
|
|
6027
6027
|
this.setAllRowsDefHgt();
|
|
@@ -6051,7 +6051,7 @@ class NgxDeebodata {
|
|
|
6051
6051
|
this.clearValidatedEdit();
|
|
6052
6052
|
if (this.finishScrollTO)
|
|
6053
6053
|
this.finishScrollTO.unsubscribe();
|
|
6054
|
-
this.finishScrollTO = timer(
|
|
6054
|
+
this.finishScrollTO = timer(100).subscribe(() => { this.completeScroll(); });
|
|
6055
6055
|
}
|
|
6056
6056
|
execHorizScroll(left) {
|
|
6057
6057
|
const head = this.dataTableHeaders.nativeElement;
|
|
@@ -6215,7 +6215,7 @@ class NgxDeebodata {
|
|
|
6215
6215
|
}
|
|
6216
6216
|
}
|
|
6217
6217
|
}
|
|
6218
|
-
applyToDomRows(rows, cols, colLen, lastVisInd, dir, defNum, newRows) {
|
|
6218
|
+
applyToDomRows(rows, cols, colLen, lastVisInd, dir, defNum, newRows, force) {
|
|
6219
6219
|
const len = this.rows.length;
|
|
6220
6220
|
let nrowsAcctFor = 0;
|
|
6221
6221
|
let chks = [];
|
|
@@ -6295,7 +6295,7 @@ class NgxDeebodata {
|
|
|
6295
6295
|
if (bhToAdd)
|
|
6296
6296
|
this.belowHgt.set((this.belowHgt() + bhToAdd));
|
|
6297
6297
|
}
|
|
6298
|
-
this.finishApplyingDomRows();
|
|
6298
|
+
this.finishApplyingDomRows(force);
|
|
6299
6299
|
}
|
|
6300
6300
|
getLastRowBot() {
|
|
6301
6301
|
const els = document.getElementsByClassName("data-table-row");
|
|
@@ -6354,7 +6354,7 @@ class NgxDeebodata {
|
|
|
6354
6354
|
}
|
|
6355
6355
|
const vlen = this.dataTableService.visibleCols.length;
|
|
6356
6356
|
const lastVisInd = cols.indexOf(this.dataTableService.visibleCols[(vlen - 1)]) + 1;
|
|
6357
|
-
this.applyToDomRows(rows, cols, colLen, lastVisInd, "down", defNum, repl);
|
|
6357
|
+
this.applyToDomRows(rows, cols, colLen, lastVisInd, "down", defNum, repl, force);
|
|
6358
6358
|
});
|
|
6359
6359
|
}
|
|
6360
6360
|
getFirstRowTop() {
|
|
@@ -6411,14 +6411,16 @@ class NgxDeebodata {
|
|
|
6411
6411
|
}
|
|
6412
6412
|
const vlen = this.dataTableService.visibleCols.length;
|
|
6413
6413
|
const lastVisInd = cols.indexOf(this.dataTableService.visibleCols[(vlen - 1)]) + 1;
|
|
6414
|
-
this.applyToDomRows(rows, cols, colLen, lastVisInd, "up", defNum, repl);
|
|
6414
|
+
this.applyToDomRows(rows, cols, colLen, lastVisInd, "up", defNum, repl, force);
|
|
6415
6415
|
});
|
|
6416
6416
|
}
|
|
6417
|
-
finishApplyingDomRows() {
|
|
6417
|
+
finishApplyingDomRows(force) {
|
|
6418
6418
|
this.setRowNumbers();
|
|
6419
6419
|
this.fixRowContainer(0);
|
|
6420
6420
|
this.setLastRowIndex();
|
|
6421
6421
|
this.cleanRowChecks();
|
|
6422
|
+
if (force)
|
|
6423
|
+
this.handleScrollEnd();
|
|
6422
6424
|
}
|
|
6423
6425
|
jumpToRow(row) {
|
|
6424
6426
|
if (this.dataTableBody) {
|