UNPKG

@gooddata/react-components

Version:

GoodData.UI - A powerful JavaScript library for building analytical applications

12 lines (11 loc) 1.03 kB
import { AFM, Execution } from "@gooddata/typings"; import { ISortModelItem } from "./agGridTypes"; import { ColDef } from "ag-grid-community"; export declare const getAttributeSortItemFieldAndDirection: (sortItem: AFM.IAttributeSortItem, attributeHeaders: Execution.IAttributeHeader[]) => [string, string]; export declare const getMeasureSortItemFieldAndDirection: (sortItem: AFM.IMeasureSortItem, measureHeaderItems: Execution.IMeasureHeaderItem[]) => [string, string]; export declare const getSortItemByColId: (execution: Execution.IExecutionResponses, colId: string, direction: AFM.SortDirection, originalSortItems: AFM.SortItem[]) => AFM.SortItem; export declare function isSortedByFirstAttibute(columnDefs: ColDef[], resultSpec: AFM.IResultSpec): boolean; export declare const getSortsFromModel: (sortModel: ISortModelItem[], execution: Execution.IExecutionResponses, originalSortItems?: AFM.SortItem[]) => AFM.SortItem[]; export declare const assignSorting: (colDef: ColDef, sortingMap: { [key: string]: string; }) => void;