import { BaseComponent } from "./base-component"; import { Injector, OnInit } from "@angular/core"; import { MatDialog } from "@angular/material"; import { AEntity } from "../models/a-entity"; import { CrudService } from "../services/crud.service"; export declare abstract class ListComponent> extends BaseComponent implements OnInit { rows: T[]; limit: number; protected _dataProperty: string; protected _service: U; protected _dialog: MatDialog; protected _baseUrl: string; protected readonly baseUrl: string; /** * Create a global class to manage list component actions * @param injector - injector root service used in app.module */ constructor(service: { new (Injector: any): U; }, injector: Injector, baseUrl: string, dataProperty?: string); ngOnInit(): void; protected refresh(): void; changeActivePage(id: number): void; add(): void; delete(model: AEntity, property?: string): void; canAdd(row: T): boolean; canEdit(row: T): boolean; canDelete(row: T): boolean; }