import { OnInit, OnDestroy, EventEmitter } from '@angular/core'; import { FormControl } from '@angular/forms'; import { ApiVisa, InventoryItemContainerModel, InventoryItemService } from 'blg-akaun-ts-lib'; import { ReplaySubject, Subject } from 'rxjs'; export declare class SelectInvItemDropDownComponent implements OnInit, OnDestroy { private invService; inventory: FormControl; apiVisa: ApiVisa; multiple: boolean; inventoryChange: EventEmitter; serverSideFiltering: FormControl; serverSideSearching: boolean; filteredOptions$: ReplaySubject; inventoryList: InventoryItemContainerModel[]; selectedInventory: InventoryItemContainerModel; protected _onDestroy: Subject; constructor(invService: InventoryItemService); ngOnInit(): void; /** * Server-side inventory-item typeahead. * * Replaces the raw SELECT that went through SubQueryService: * * FROM bl_inv_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 inv-items/query -> InventoryItemUow.generateWhereClauseByCriteria applies * `search_word` as exactly `hdr.code ILIKE ... OR hdr.name ILIKE ...`, and * defaults to `status != 'DELETED'` when no status is sent. This is a * like-for-like replacement of the old WHERE clause. * * One request now instead of one subquery plus one call per hit. The old per-hit * call passed `hdr_guids`, which InventoryItemQueryCriteria does not define * (its guid filter is `guids`), so it matched nothing in particular -- another * reason the single query is the better shape. */ searchBranch(searchText: string): import("rxjs").Observable; onSelect(branchGuid: string): void; ngOnDestroy(): void; }