@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.
55 lines (54 loc) • 2.73 kB
TypeScript
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
import { ListAbstract } from './list.abstract';
import { KoalaListItemMenuOptionInterface } from './koala-list-item-menu-option.interface';
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
import { BehaviorSubject, Observable } from 'rxjs';
import { KoalaListFilterInterface } from './koala-list-filter.interface';
import { KoalaDynamicFormService } from '@koalarx/ui/form';
import { KoalaListItemInterface } from './koala-list-item.interface';
import { MatSort, SortDirection } from "@angular/material/sort";
import { DeviceDetectorService } from "ngx-device-detector";
import { KoalaListConfigInterface } from "./koala.list-config.interface";
import { MatPaginator } from "@angular/material/paginator";
import { KoalaListBtnCollapseSubListConfigInterface } from "./koala-list-btn-collapse-sub-list-config.interface";
import * as i0 from "@angular/core";
export declare class ListComponent extends ListAbstract implements OnInit, AfterViewInit, OnDestroy {
private fb;
private dynamicFormService;
private deviceService;
config?: KoalaListConfigInterface;
protected paginator: MatPaginator;
protected sort: MatSort;
customClass?: string;
columnsToShowInList?: string[];
hidePaginator?: boolean;
columnSort?: string;
sortDirection: SortDirection;
itemsMenuListOptions?: KoalaListItemMenuOptionInterface<any>[];
itemsList?: KoalaListItemInterface<any>[];
request?: Observable<any>;
responseIndexName?: string;
responseQtdResultIndexName?: (response: any) => number;
responseRequest?: any;
typeRequest: 'all' | 'onDemand';
filterFormConfig?: KoalaListFilterInterface;
reload?: BehaviorSubject<boolean>;
formFilter?: UntypedFormGroup;
showAdvancedFilter: boolean;
qtdListResult: number;
disabledCheckboxItemList?: (item: any) => boolean;
expandedElement: boolean;
btnCollapseSubListConfig?: KoalaListBtnCollapseSubListConfigInterface<any>;
subListConfig?: (item: any) => KoalaListConfigInterface;
constructor(fb: UntypedFormBuilder, dynamicFormService: KoalaDynamicFormService, deviceService: DeviceDetectorService);
ngOnInit(): void;
ngOnDestroy(): void;
ngAfterViewInit(): void;
filterSubmit(): Promise<void>;
toogleFilter(): void;
haveOptionsOnItemLine(item: any): boolean;
hasFooter(): boolean;
private initConfig;
static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "koala-list", never, { "config": "config"; }, {}, never, ["[itemsSelectList]", "[itemsList]"], false>;
}