import { EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; import { ApiVisa, CashbookContainerModel, CashbookService } from 'blg-akaun-ts-lib'; import { ReplaySubject, Subject } from 'rxjs'; export declare class SelectCashbookDropDownComponent implements OnInit, OnDestroy { private cashbookService; apiVisa: ApiVisa; cashbook: FormControl; required: boolean; cashbookChange: EventEmitter; cashbookSelected: EventEmitter; serverSideFiltering: FormControl; serverSideSearching: boolean; filteredOptions$: ReplaySubject; cashbookList: CashbookContainerModel[]; selectedCashbook: CashbookContainerModel; filteredCashbook: any; protected _onDestroy: Subject; constructor(cashbookService: CashbookService); ngOnInit(): void; /** * Server-side cashbook typeahead. * * Replaces the raw SELECT that went through SubQueryService: * * FROM bl_fi_mst_cashbook_hdr hdr * WHERE hdr.status != 'DELETED' * AND (hdr.code ILIKE '%x%' OR hdr.name ILIKE '%x%') * ORDER BY hdr.name, hdr.guid * * GET erp/cashbooks/query -> CashbookUow.getByCriteria -> * generateWhereClauseByCriteriaUpdated applies `search_word` (bound, ILIKE over * code, name and acc_no) and defaults to `status != 'DELETED'`. * * Behaviour notes: * - `search_word` also matches acc_no, so the typeahead is slightly broader. * - One request now instead of one subquery plus one call per hit. The old * per-hit call passed `hdr_guids`, which CashbookQueryCriteria does not define * (its guid filter is `guids`), so that criterion was ignored. */ searchCashbook(searchText: string): import("rxjs").Observable; onSelect(cashbookGuid: string): void; ngOnDestroy(): void; }