import { ElementRef, EventEmitter, OnChanges, OnInit, Renderer2, SimpleChanges } from '@angular/core'; import { IAtxTableActions } from '../interfaces'; /** dark * * Display model into Table with next features: * - Sort * - Order * - Pagination */ export declare class AtxTableComponent implements OnInit, OnChanges { private renderer; private elementRef; /** * @ViewChilda tableBody */ tableBody: ElementRef; /** * Properties required for maintenance features and usability of tables has : page, total, offset, included * - Included has it contain model of table */ readonly model: any; /** * Flag to manage has row has selectable or not */ hasSelectable: boolean; /** * Flag to indicate style tables has Dark or default */ readonly dark: boolean; /** * Title of table. */ readonly title: string; readonly hover: boolean; /** * Flag to indicate style tables style has Stripped */ readonly striped: boolean; /** * Object to indicate from model, which element are header of table for show this value. */ readonly headers: string[]; readonly bordered: boolean; readonly theadColor: string; readonly borderless: boolean; /** * Inidicate with class default from boostrap, size of table. */ readonly size: string; /** * When this attribute has True select all element of model into table and return elements selected. */ readonly hasSelectAll: boolean; /** * Object with elements selected into table by default. */ readonly rowsSelected: object; /** * Object indicate actions and callback to interact with table. */ readonly actions: IAtxTableActions; readonly align: string; /** * Flag for manage if pagination elements, are visible or hidden */ readonly hasPagination: boolean; /** * When table has Selectable, this flag indicate if multi or single select */ readonly hasMultiselect: boolean; readonly justifyContentPagination: string; /** * Event dispatch when sorted table */ readonly fireSort: EventEmitter; /** * Event dispatch when change pagination of table */ readonly fireChangePage: EventEmitter; /** * Event dispatch when select one row from Table, emit element select or Group element Selected when has multiple select. */ readonly fireSelectRow: EventEmitter; order: string; sorted: string; hasActions: boolean; hasPrivate: boolean; hasParentChild: boolean; elementsSelected: object[]; hasInit: boolean; constructor(renderer: Renderer2, elementRef: ElementRef); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; private setRowsSelectsByDefault(); getSortedClass(th: any): any; sort(label: any): void; onPopConfirmEvent(element: any, callback: any): void; selectRow(elementSelected: object): void; private singleSelect(elementSelected); private multiSelect(elementSelected); onSelectAllElements(): void; hasSelected(element: any): boolean; hasObject(key: any): boolean; hasDate(key: any): boolean; showChildrens(id: any): void; private toggleOrder(); reset(): void; }