@trudb/tru-common-lib 0.0.633 → 0.0.634

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.
@@ -3192,29 +3192,27 @@ class TruDataGrid {
3192
3192
  };
3193
3193
  }
3194
3194
  onCellFocused(event) {
3195
- if (event.column.colDef.pinned) {
3196
- this.gridOptions.suppressRowClickSelection = false;
3197
- }
3198
- else {
3199
- this.gridOptions.suppressRowClickSelection = true;
3200
- this.gridOptions.api.deselectAll();
3201
- }
3202
- let columnDefs = this.config.resultConfig.columnDefs;
3203
- if (event.column.colDef.pinned) {
3204
- columnDefs.forEach((columnDef, index) => {
3205
- if (index !== 0)
3206
- columnDef.headerClass = 'ag-column-focus';
3207
- });
3208
- }
3209
- else {
3210
- columnDefs.forEach((columnDef, index) => {
3211
- if (index !== 0 && event.column.colId === columnDef.field)
3212
- columnDef.headerClass = 'ag-column-focus';
3213
- else
3214
- columnDef.headerClass = undefined;
3215
- });
3216
- }
3217
- this.gridOptions.api.setColumnDefs(columnDefs);
3195
+ //if (event.column.colDef.pinned) {
3196
+ // this.gridOptions.suppressRowClickSelection = false;
3197
+ //} else {
3198
+ // this.gridOptions.suppressRowClickSelection = true;
3199
+ // this.gridOptions.api.deselectAll();
3200
+ //}
3201
+ //let columnDefs = this.config.resultConfig.columnDefs;
3202
+ //if (event.column.colDef.pinned) {
3203
+ // columnDefs.forEach((columnDef: any, index: number) => {
3204
+ // if (index !== 0)
3205
+ // columnDef.headerClass = 'ag-column-focus';
3206
+ // });
3207
+ //} else {
3208
+ // columnDefs.forEach((columnDef: any, index: number) => {
3209
+ // if (index !== 0 && event.column.colId === columnDef.field)
3210
+ // columnDef.headerClass = 'ag-column-focus';
3211
+ // else
3212
+ // columnDef.headerClass = undefined;
3213
+ // });
3214
+ //}
3215
+ //this.gridOptions.api.setColumnDefs(columnDefs);
3218
3216
  }
3219
3217
  ngOnInit() {
3220
3218
  this.subscribeTo();