import * as i0 from '@angular/core'; import { EventEmitter } from '@angular/core'; declare enum SearchType { searchWithSubHeader = "searchWithSubHeader", searchAll = "searchAll", searchInChildren = "searchInChildren" } declare class SelectionTableComponent { filterValue: string; itemHiddenFlag: {}; /** * Flag for showing the filter input box */ filter: boolean; /** * name of the key column */ keyColumn: string; /** * table data */ tableSource: any[]; /** * Flag for showing the checkbox */ checkbox: boolean; /** * Flag for multiple selection */ multiSelection: boolean; /** * Flag for click row to select */ clickToSelect: boolean; /** * columns need to be hidden */ hiddenColumns: string[]; /** * column used for tooltip */ tooltipColumn: string; /** * search style for the filter */ searchStyle: SearchType; /** * search column for the filter */ searchColumn: string; /** * selection change event */ change: EventEmitter; /** * triggered by clicking the */ onClick(e: any, row: any): void; /** * Triggered by the changing of checkbox. * Toggle the value of the checkbox; * If multiSelection is false, will clear the previous selections. */ onChange(event: any, row: any): void; /** * Get all the columns that need to be displayed. * "header", "checked" and columns in hiddenColumns will be excluded. */ get columns(): string[]; /** * Get the text for the subtitle column * 'select', 'header', 'checked' and columns in hiddenColumns will be excluded. * Return the first item if there are multiple items in the subtitle row. */ get headColumn(): string; /** * Get the key column. If it is empty, use the first column (excluded the selection column). */ get key(): string; /** * Get the table source after the filter being applied. * There are three types of filter: * searchWithSubHeader: search including the sub header (only), if any children are picked, the relative parent will be picked as well * searchAll: search including the sub header, all it's children will be picked as well, * if any children are picked, the relative parent will be picked as well * searchInChildren: search excluding the sub header, * if any children are picked, the relative parent will be picked as well */ get tableSourceAfterFiltered(): any[]; /** * Toggle the sub items of current row */ toggleSubTopic(event: any, row: any): void; /** * Check whether the sub items are in hidden status by key. */ isSubTopicHidden(key: any): boolean; /** * get all sub items by key. */ private _getSubItems; /** * Get parent item of the provided key row */ private _getParentSearchItem; /** * Get sub items of the provided key row. */ private _getSubSearchItems; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export { SearchType, SelectionTableComponent };