import { EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; import { ApiVisa, FinancialItemContainerModel, FinancialItemService } from 'blg-akaun-ts-lib'; import { ReplaySubject, Subject } from 'rxjs'; export declare class SelectFiItemDropDownComponent implements OnInit, OnDestroy { private fiItemService; fi: FormControl; apiVisa: ApiVisa; txnType: string; multiple: boolean; label: string; fiChange: EventEmitter; serverSideFiltering: FormControl; serverSideSearching: boolean; filteredOptions$: ReplaySubject; inventoryList: FinancialItemContainerModel[]; selectedInventory: FinancialItemContainerModel; protected _onDestroy: Subject; constructor(fiItemService: FinancialItemService); ngOnInit(): void; /** * Server-side financial-item typeahead. * * Replaces the raw SELECT that went through SubQueryService: * * FROM bl_fi_mst_item_hdr hdr * WHERE hdr.status != 'DELETED' * AND (hdr.code ILIKE '%x%' OR hdr.name ILIKE '%x%') * ORDER BY hdr.name, hdr.guid * * GET fi/fi-items/query -> FinancialItemUow.generateWhereClauseByCriteria * honours `search_word` (FinancialItemHeaderUowHelper.generateClauseForWholeSearch_word, * bound and ILIKE over code, name and the other header text columns) and, in * FinancialItemHeaderUowHelper.generateHeaderWhereClause, defaults to * `status != 'DELETED'` when no status is sent. * * Behaviour notes: * - `search_word` matches more header columns than the old code/name pair * (category, txn_type, descr, remarks, alt item codes, scan_code, ...), so the * typeahead is broader. * - The `txnType` @Input stays unused, exactly as before. The legacy guard read * `(txnType != null || txnType != undefined) || txnType != ''`, which is true * for every value, so the `AND hdr.txn_type = ...` branch never ran. It is * left inert rather than silently switched on here; the criterion to send if * this is ever meant to work is `txn_type` (honoured by * generateHeaderWhereClause). * - One request instead of one subquery plus one getByCriteria per hit. The old * per-hit call also passed `guids` as a single value; that path returned the * containers one at a time and is no longer needed. */ searchfinancialItem(searchText: string): import("rxjs").Observable; onSelect(branchGuid: string): void; ngOnDestroy(): void; }