@trudb/tru-common-lib 0.2.85 → 0.2.87

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.
@@ -6195,6 +6195,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
6195
6195
 
6196
6196
  class TruDataGridHeaderFilter {
6197
6197
  filterParams;
6198
+ guiFilterParams;
6198
6199
  gui;
6199
6200
  filterText = '';
6200
6201
  typesOfSort = [];
@@ -6251,12 +6252,14 @@ class TruDataGridHeaderFilter {
6251
6252
  return this.gui;
6252
6253
  }
6253
6254
  afterGuiAttached(params) {
6255
+ this.guiFilterParams = params;
6254
6256
  }
6255
6257
  onFilterInputChanged() {
6256
6258
  this.filterParams.filterChangedCallback();
6257
6259
  }
6258
6260
  onSortSelection = (changeEvent) => {
6259
6261
  this.filterParams.colDef.headerComponentParams.setSort(changeEvent.options[0].value.value, false);
6262
+ this.guiFilterParams.hidePopup();
6260
6263
  };
6261
6264
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDataGridHeaderFilter, deps: [], target: i0.ɵɵFactoryTarget.Component });
6262
6265
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.3", type: TruDataGridHeaderFilter, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
@@ -7076,7 +7079,7 @@ class TruDataGrid {
7076
7079
  rowCount = 'Rows: 0';
7077
7080
  selectedRowCount = 'Selected: 0';
7078
7081
  gridOptions = {
7079
- getRowId: (params) => { return params.data.$entity.Ref; },
7082
+ getRowId: (params) => { return params.data.$entity.Ref.toString(); },
7080
7083
  animateRows: false,
7081
7084
  rowSelection: 'multiple',
7082
7085
  rowStyle: { background: 'white' },