@catull/igniteui-angular
Version:
Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps
70 lines (69 loc) • 3.83 kB
TypeScript
import { Subject } from 'rxjs';
import { ISortingExpression } from '../data-operations/sorting-expression.interface';
import { IgxGridCellComponent } from './cell.component';
import { IgxGridBaseDirective } from './grid-base.directive';
import { IgxRowDirective } from './row.directive';
import { IFilteringOperation } from '../data-operations/filtering-condition';
import { IFilteringExpressionsTree } from '../data-operations/filtering-expressions-tree';
import { IgxCell, IgxRow } from './selection/selection.service';
import { GridType } from './common/grid.interface';
import { ColumnType } from './common/column.interface';
/**
*@hidden
*/
export declare class GridBaseAPIService<T extends IgxGridBaseDirective & GridType> {
grid: T;
protected destroyMap: Map<string, Subject<boolean>>;
get_column_by_name(name: string): ColumnType;
get_summary_data(): any[];
/**
* @hidden
* @internal
*/
getRowData(rowID: any): any;
escape_editMode(): void;
get_cell_inEditMode(): IgxCell;
get_row_index_in_data(rowID: any): number;
get_row_by_key(rowSelector: any): IgxRowDirective<IgxGridBaseDirective & GridType>;
get_row_by_index(rowIndex: number): IgxRowDirective<IgxGridBaseDirective & GridType>;
get_cell_by_key(rowSelector: any, field: string): IgxGridCellComponent;
get_cell_by_index(rowIndex: number, columnIndex: number): IgxGridCellComponent;
get_cell_by_visible_index(rowIndex: number, columnIndex: number): IgxGridCellComponent;
submit_value(): void;
update_cell(cell: IgxCell, value: any): import("./grid").IGridEditEventArgs;
/**
* Updates related row of provided grid's data source with provided new row value
* @param grid Grid to update data for
* @param rowID ID of the row to update
* @param rowValueInDataSource Initial value of the row as it is in data source
* @param rowCurrentValue Current value of the row as it is with applied previous transactions
* @param rowNewValue New value of the row
*/
protected updateData(grid: any, rowID: any, rowValueInDataSource: any, rowCurrentValue: any, rowNewValue: {
[x: string]: any;
}): void;
_update_row(row: IgxRow, value?: any): void;
update_row(row: IgxRow, value: any): import("./grid").IGridEditEventArgs;
protected update_row_in_array(value: any, rowID: any, index: number): void;
sort(expression: ISortingExpression): void;
sort_multiple(expressions: ISortingExpression[]): void;
filter(fieldName: string, term: any, conditionOrExpressionsTree: IFilteringOperation | IFilteringExpressionsTree, ignoreCase: boolean): void;
filter_global(term: any, condition: any, ignoreCase: any): void;
clear_filter(fieldName: string): void;
clear_sort(fieldName: string): void;
protected prepare_filtering_expression(filteringState: IFilteringExpressionsTree, fieldName: string, searchVal: any, conditionOrExpressionsTree: IFilteringOperation | IFilteringExpressionsTree, ignoreCase: boolean, insertAtIndex?: number): void;
protected prepare_sorting_expression(stateCollections: Array<Array<any>>, expression: ISortingExpression): void;
protected remove_grouping_expression(fieldName: any): void;
clear_groupby(name?: string | Array<string>): void;
should_apply_number_style(column: ColumnType): boolean;
get_data(): any[];
get_all_data(includeTransactions?: boolean): any[];
get_filtered_data(): any[];
protected getSortStrategyPerColumn(fieldName: string): import("../data-operations/sorting-strategy").ISortingStrategy;
addRowToData(rowData: any): void;
deleteRowFromData(rowID: any, index: number): void;
deleteRowById(rowId: any): void;
get_row_id(rowData: any): any;
row_deleted_transaction(rowID: any): boolean;
atInexistingPage(): boolean;
}