import { EmploymentContract, Avatar } from "@salaxy/core"; import { SalaxyContext } from "../../services/index"; /** Provides a standard user interface to edit a worker object. */ export declare class NgContractListComponent { protected context: SalaxyContext; /** * Property based on which the groupedList is grouped. */ groupBy: "employer" | "worker" | "otherParty" | "year" | "month" | "status"; /** Limit number of items to show in the list */ limitTo: number; /** * A comma separated list of statuses that are used as filter for the list. * In JavaScript */ filterStatuses: string | string[]; constructor(context: SalaxyContext); /** * Gets the Avatar of other party in a contract: * Employer or Worker */ getOtherParty(contract: EmploymentContract): Avatar; /** The item that is currently in edit / detail view */ readonly current: EmploymentContract; /** * Delete the item from repository. * Note that this may not always be possible. At least check model.isReadOnly * @param id - Identifier for the item to be deleted. */ delete(id: string): void; /** * List grouped based on groupBy value */ readonly groupedList: { key: string; value: any; }[]; /** * List of contracts * The list is filtered if a filter is set */ readonly list: EmploymentContract[]; /** Sets the current ID for the contract */ setCurrentId(id: string): void; /** Creates a new contract */ createNew(): void; }