@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: [params.node] });
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
- //if (event.column.colDef.pinned) {
2871
- // this.gridOptions.suppressRowClickSelection = false;
2872
- //} else {
2873
- // this.gridOptions.suppressRowClickSelection = true;
2874
- // this.gridOptions.api.deselectAll();
2875
- //}
2876
- //let columnDefs = this.config.resultConfig.columnDefs;
2877
- //if (event.column.colDef.pinned) {
2878
- // columnDefs.forEach((columnDef: any, index: number) => {
2879
- // if (index !== 0)
2880
- // columnDef.headerClass = 'ag-column-focus';
2881
- // });
2882
- //} else {
2883
- // columnDefs.forEach((columnDef: any, index: number) => {
2884
- // if (index !== 0 && event.column.colId === columnDef.field)
2885
- // columnDef.headerClass = 'ag-column-focus';
2886
- // else
2887
- // columnDef.headerClass = undefined;
2888
- // });
2889
- //}
2890
- //this.gridOptions.api.setColumnDefs(columnDefs);
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();