@trudb/tru-common-lib 0.0.558 → 0.0.559
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.
|
@@ -2658,7 +2658,7 @@ class TruDataGrid {
|
|
|
2658
2658
|
rowStyle: { background: 'white' },
|
|
2659
2659
|
onSelectionChanged: (params) => { },
|
|
2660
2660
|
onCellEditingStopped: (params) => {
|
|
2661
|
-
//this.gridOptions.api.redrawRows({ rowNodes:
|
|
2661
|
+
//this.gridOptions.api.redrawRows({ rowNodes: params.node });
|
|
2662
2662
|
}
|
|
2663
2663
|
};
|
|
2664
2664
|
this.parentToolbarTemplate = null;
|
|
@@ -2867,27 +2867,29 @@ class TruDataGrid {
|
|
|
2867
2867
|
};
|
|
2868
2868
|
}
|
|
2869
2869
|
onCellFocused(event) {
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2870
|
+
if (event.column.colDef.pinned) {
|
|
2871
|
+
this.gridOptions.suppressRowClickSelection = false;
|
|
2872
|
+
}
|
|
2873
|
+
else {
|
|
2874
|
+
this.gridOptions.suppressRowClickSelection = true;
|
|
2875
|
+
this.gridOptions.api.deselectAll();
|
|
2876
|
+
}
|
|
2877
|
+
let columnDefs = this.config.resultConfig.columnDefs;
|
|
2878
|
+
if (event.column.colDef.pinned) {
|
|
2879
|
+
columnDefs.forEach((columnDef, index) => {
|
|
2880
|
+
if (index !== 0)
|
|
2881
|
+
columnDef.headerClass = 'ag-column-focus';
|
|
2882
|
+
});
|
|
2883
|
+
}
|
|
2884
|
+
else {
|
|
2885
|
+
columnDefs.forEach((columnDef, index) => {
|
|
2886
|
+
if (index !== 0 && event.column.colId === columnDef.field)
|
|
2887
|
+
columnDef.headerClass = 'ag-column-focus';
|
|
2888
|
+
else
|
|
2889
|
+
columnDef.headerClass = undefined;
|
|
2890
|
+
});
|
|
2891
|
+
}
|
|
2892
|
+
this.gridOptions.api.setColumnDefs(columnDefs);
|
|
2891
2893
|
}
|
|
2892
2894
|
ngOnInit() {
|
|
2893
2895
|
this.subscribeTo();
|