ag-grid-enterprise
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
23 lines (22 loc) • 1.63 kB
TypeScript
import type { AgEventType, FuncColsService, GetDataPath, IClientSideRowModel, RowNode, SetFilterParams, ValueService } from 'ag-grid-community';
import { AgPromise } from 'ag-grid-community';
/** @param V type of value in the Set Filter */
export declare class ClientSideValuesExtractor<V> {
private readonly rowModel;
private readonly filterParams;
private readonly createKey;
private readonly caseFormat;
private readonly funcColsService;
private readonly valueService;
private readonly treeDataOrGrouping;
private readonly treeData;
private readonly getDataPath;
private readonly groupAllowUnbalanced;
private readonly addManagedEventListeners;
constructor(rowModel: IClientSideRowModel, filterParams: SetFilterParams<any, V>, createKey: (value: V | null | undefined, node?: RowNode) => string | null, caseFormat: <T extends string | null>(valueToFormat: T) => typeof valueToFormat, funcColsService: FuncColsService, valueService: ValueService, treeDataOrGrouping: boolean, treeData: boolean, getDataPath: GetDataPath | undefined, groupAllowUnbalanced: boolean, addManagedEventListeners: (handlers: Partial<Record<AgEventType, (event?: any) => void>>) => (() => null)[]);
extractUniqueValuesAsync(predicate: (node: RowNode) => boolean, existingValues?: Map<string | null, V | null>): AgPromise<Map<string | null, V | null>>;
extractUniqueValues(predicate: (node: RowNode) => boolean, existingValues?: Map<string | null, V | null>): Map<string | null, V | null>;
private addValueForTreeDataOrGrouping;
private getValue;
private extractExistingFormattedKeys;
}