@datorama/core 22.2.4 → 22.2.5

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.
@@ -1,5 +1,5 @@
1
1
  import { ColDef, GridOptions, ICellRendererParams, IGetRowsParams, MenuItemDef, RowNode } from 'ag-grid-community';
2
- import { DatoGridFilterSections, ListItem } from '../grid-filter/grid-filter.types';
2
+ import { DatoGridExternalFilter, DatoGridFilterSections, ListItem } from '../grid-filter/grid-filter.types';
3
3
  import { DatoServerPaginationConfig } from '../grid-pagination/grid-pagination.types';
4
4
  import { AgGridEvent } from 'ag-grid-community/dist/lib/events';
5
5
  import { RowAction } from '../grid-toolbar/grid-toolbar.types';
@@ -151,4 +151,5 @@ export declare type GridRowsSelectionData = {
151
151
  export declare type GridChangeEvent = {
152
152
  type: string;
153
153
  data: RowNode[];
154
- } & Partial<DatoGridSettings>;
154
+ filter: DatoGridExternalFilter[];
155
+ } | Partial<DatoGridSettings>;
@@ -10,7 +10,7 @@ import { Observable } from 'rxjs';
10
10
  import { AgGridNg2 } from 'ag-grid-angular';
11
11
  import { GridQuery } from '../grid-store/grid.query';
12
12
  import { GridService } from '../grid-store/grid.service';
13
- import { DatoGridOptions, DatoGridSort } from '../grid/grid-v2.types';
13
+ import { DatoGridOptions, DatoGridSort, GridChangeEvent } from '../grid/grid-v2.types';
14
14
  import { IconRegistry } from '../../services/icon-registry';
15
15
  import { DatoCustomHeaderTemplateComponent } from '../grid-custom-header/custom-header-template.component';
16
16
  import { GridAction, RowAction } from '../grid-toolbar/grid-toolbar.types';
@@ -30,7 +30,7 @@ export declare class DatoGridControllerComponent implements OnDestroy, AfterCont
30
30
  private hotkeys;
31
31
  private storageAPI;
32
32
  customHeadersTemplates: QueryList<DatoCustomHeaderTemplateComponent>;
33
- onGridChange: EventEmitter<any>;
33
+ onGridChange: EventEmitter<GridChangeEvent>;
34
34
  rowActions: RowAction[];
35
35
  gridActions: GridAction[];
36
36
  set gridOptions(gridOptions: DatoGridOptions);
@@ -74,7 +74,6 @@ export declare type DatoGridConditionalFilter = {
74
74
  export declare type DatoGridExternalFilter = {
75
75
  field: string;
76
76
  filter: DatoGridFilter;
77
- pivotFieldsMap?: HashMap<string>;
78
77
  };
79
78
  export declare type DatoGridFiltersMap = HashMap<DatoGridFilter>;
80
79
  export declare type ServerSidePaginationRangeCondition = {
@@ -42,7 +42,7 @@ export declare class GridQuery extends Query<GridStoreState> implements OnDestro
42
42
  getSelectedRowNodes(onlyFirstRow: false): RowNode[];
43
43
  getFilter(): DatoGridFiltersMap;
44
44
  selectFilter(): Observable<DatoGridFiltersMap>;
45
- filterChanged(): Observable<DatoGridExternalFilter[]>;
45
+ getExternalFilter(): DatoGridExternalFilter[];
46
46
  getSearchTerm(): string;
47
47
  selectSearchTerm(): Observable<string>;
48
48
  waitForGrid(): Observable<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datorama/core",
3
- "version": "22.2.4",
3
+ "version": "22.2.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "8.2.14",
6
6
  "@angular/core": "8.2.14",