@datorama/core 22.0.6 → 22.2.0

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.
@@ -103,7 +103,6 @@ export declare type DatoGridSortDirection = 'asc' | 'desc';
103
103
  export declare type DatoGridSort = {
104
104
  colId: string;
105
105
  sort: DatoGridSortDirection;
106
- pivotColIndex?: number;
107
106
  colField?: string;
108
107
  };
109
108
  export declare type DatoGridServerSortDirection = 'ASC' | 'DESC';
@@ -51,6 +51,7 @@ export declare class DatoGridControllerComponent implements OnDestroy, AfterCont
51
51
  private normalizeOptions;
52
52
  setGridRows<T>(data: T[]): void;
53
53
  setGridFilters(filters: DatoGridExternalFilter[]): void;
54
+ setGridSort(sort: DatoGridSort): void;
54
55
  onFilterChanged(): Observable<DatoGridExternalFilter[]>;
55
56
  onSortChanged(): Observable<DatoGridSort>;
56
57
  private getGridIcons;
@@ -9,7 +9,7 @@ import { IconRegistry, SvgRegistry } from '../../services/icon-registry';
9
9
  import { DatoGridSettings, NormalizeOptionsParams, ServerSidePaginationConfig } from './grid.store.types';
10
10
  import { GridStore } from './grid.store';
11
11
  import { GridStorageAPI } from '../grid-settings';
12
- import { DatoGridColumnDef, DatoGridGetRowsParams, DatoGridOptions, DatoGridTreeConfig } from '../grid/grid-v2.types';
12
+ import { DatoGridColumnDef, DatoGridGetRowsParams, DatoGridOptions, DatoGridSort, DatoGridTreeConfig } from '../grid/grid-v2.types';
13
13
  import { CoreEventLogger, CoreEventTypes } from '../../event-logger';
14
14
  import { HashMap } from '../../utils/types';
15
15
  export declare class GridService implements OnDestroy {
@@ -82,6 +82,7 @@ export declare class GridService implements OnDestroy {
82
82
  clearColumnFilter(columnField: string): void;
83
83
  setColumnFilter(column: Column, filter: DatoGridFilter, notifyGrid?: boolean): void;
84
84
  setGridFilters(filters: DatoGridExternalFilter[]): void;
85
+ setGridSort({ colId, sort }: DatoGridSort): void;
85
86
  private updateFilter;
86
87
  setSearchTerm(searchTerm: string): void;
87
88
  setServerSidePagination(config: Partial<ServerSidePaginationConfig>): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datorama/core",
3
- "version": "22.0.6",
3
+ "version": "22.2.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "8.2.14",
6
6
  "@angular/core": "8.2.14",