UNPKG

@koalarx/ui

Version:

Koala UI is a Design System developed in Angular whose objective is to facilitate and make your development faster and simpler, making this framework your greatest ally.

45 lines (44 loc) 2.03 kB
import { SelectionModel } from '@angular/cdk/collections'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { BehaviorSubject, Observable } from 'rxjs'; import { FormAbstract } from '@koalarx/ui/form'; import { UntypedFormGroup } from '@angular/forms'; import { MatTableDataSource } from '@angular/material/table'; import { KoalaListFormFilterInterface } from './koala-list-form-filter.interface'; import { KoalaDynamicComponent } from "@koalarx/ui/dynamic-component"; import { KoalaListConfigInterface } from "./koala.list-config.interface"; export declare type KoalaListPageSize = 10 | 20 | 30 | 50 | 100; export declare abstract class ListAbstract extends FormAbstract { private requestFunction; private requestResponseFunction; selection: SelectionModel<object>; limitOptions: number[]; showMenuList: boolean; allSelected$: BehaviorSubject<boolean>; dataSource: MatTableDataSource<any>; typeRequest: 'all' | 'onDemand'; filterParams: BehaviorSubject<KoalaListFormFilterInterface>; filterError$: BehaviorSubject<any>; emptyListComponent?: KoalaDynamicComponent; errorListComponent?: KoalaDynamicComponent; pageSize: KoalaListPageSize; tableId: string; protected config?: KoalaListConfigInterface; protected paginator?: MatPaginator; protected sort?: MatSort; private subscriptionList?; private subscriptionSortList?; private intervalSortList; protected constructor(requestFunction: () => Observable<any>, requestResponseFunction: <T>(results: T[]) => void, formSearch: () => UntypedFormGroup); selectAll(): void; defineStatusSelectAll(status: boolean): boolean; selectItem(): void; search(filter?: any): Promise<void>; protected onDestroy(): void; protected afterViewInit(): Promise<void>; private prepareSearch; private isAllSelected; private runRequestFunction; private scrollTableToTop; }