import { ElementRef, EventEmitter, OnInit } from "@angular/core"; import { FormControl } from "@angular/forms"; import { MatAutocompleteSelectedEvent } from "@angular/material/autocomplete"; import { MatChipInputEvent } from "@angular/material/chips"; import { Store } from "@ngrx/store"; import { CompanyService } from "blg-akaun-ts-lib"; import { PermissionStates } from "../../modules/permission/permission-controller/root"; import { SearchStates } from "../../modules/search/search-controller/states"; import { Observable } from "rxjs"; export declare class CompanyComponent implements OnInit { private companyService; private readonly store; private readonly permissionStore; companyControl: FormControl; selectionChange: EventEmitter; viewModelStore: any; ColumnViewActions: any; ColumnViewSelectors: any; readPermissionDefintion: any; userPermissionTarget$: Observable; private subs; separatorKeysCodes: number[]; filteredCompanies$: Observable; companies: any[]; allCompanies: any[]; toppingsControl: FormControl; companyInput: ElementRef; companyTargets: string[]; constructor(companyService: CompanyService, store: Store, permissionStore: Store); ngOnInit(): void; add(event: MatChipInputEvent): void; remove(company: string): void; selected(event: MatAutocompleteSelectedEvent): void; /** * Company autocomplete for the advanced-search chip list. * * Replaces the raw SELECT that went through SubQueryService: * * FROM bl_fi_mst_comp hdr * WHERE (hdr.name ILIKE '%x%' OR hdr.code ILIKE '%x%') * AND hdr.status = 'ACTIVE' * [AND hdr.guid IN ()] * LIMIT 10 * * CompanyUow.generateWhereClauseByCriteria (behind the companies query endpoint) * honours every part as criteria: `search_word` (bound, ILIKE over code, name and * comp_registration_num), `status`, and `hdr_guids` for the permission-target * scoping. The LIMIT 10 becomes the pagination limit. * * Behaviour notes: * - `search_word` also matches comp_registration_num. * - The permission-target scoping is preserved exactly: when companyTargets is * empty no guid criterion is sent, as before. * - One request now instead of a subquery plus one getByGuid per hit. */ filterCompany(search: string): void; optionClicked(event: Event, company: any): void; toggleSelection(company: any): void; onReset(): void; ngOnDestroy(): void; }