@trudb/tru-common-lib 0.2.86 → 0.2.88

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.
@@ -3996,10 +3996,7 @@ class TruDetailViewBase {
3996
3996
  let index = this.entities.indexOf(this.entity);
3997
3997
  this.entities.splice(index, 1);
3998
3998
  if (!this.entities.length) {
3999
- index = this.view.window.views.indexOf(this.view);
4000
- if (index > -1) {
4001
- this.view.window.views.splice(index, 1);
4002
- }
3999
+ this.view.window.goToPreviousView();
4003
4000
  }
4004
4001
  }
4005
4002
  return true;
@@ -6195,6 +6192,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
6195
6192
 
6196
6193
  class TruDataGridHeaderFilter {
6197
6194
  filterParams;
6195
+ guiFilterParams;
6198
6196
  gui;
6199
6197
  filterText = '';
6200
6198
  typesOfSort = [];
@@ -6251,12 +6249,14 @@ class TruDataGridHeaderFilter {
6251
6249
  return this.gui;
6252
6250
  }
6253
6251
  afterGuiAttached(params) {
6252
+ this.guiFilterParams = params;
6254
6253
  }
6255
6254
  onFilterInputChanged() {
6256
6255
  this.filterParams.filterChangedCallback();
6257
6256
  }
6258
6257
  onSortSelection = (changeEvent) => {
6259
6258
  this.filterParams.colDef.headerComponentParams.setSort(changeEvent.options[0].value.value, false);
6259
+ this.guiFilterParams.hidePopup();
6260
6260
  };
6261
6261
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDataGridHeaderFilter, deps: [], target: i0.ɵɵFactoryTarget.Component });
6262
6262
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.3", type: TruDataGridHeaderFilter, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
@@ -7907,6 +7907,7 @@ class WindowConfig {
7907
7907
  contextFilters = [];
7908
7908
  parentDataContext = null;
7909
7909
  parentView = null;
7910
+ goToPreviousView = () => { };
7910
7911
  closed = () => { };
7911
7912
  destroy = () => {
7912
7913
  while (this.unsubscribes.length)