TemplateRef, EventEmitter, ElementRef, forwardRef} from '@angular/core';
import {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';
import {Observable, of, Subject} from 'rxjs';
-import {map, tap, reduce, mergeMap, mapTo, debounceTime, distinctUntilChanged, merge, filter} from 'rxjs/operators';
+import {map, mergeMap, mapTo, debounceTime, distinctUntilChanged, merge, filter} from 'rxjs/operators';
import {NgbTypeahead, NgbTypeaheadSelectItemEvent} from '@ng-bootstrap/ng-bootstrap';
-import {StoreService} from '@eg/core/store.service';
import {IdlService, IdlObject} from '@eg/core/idl.service';
import {PcrudService} from '@eg/core/pcrud.service';
import {OrgService} from '@eg/core/org.service';
constructor(
private elm: ElementRef,
- private store: StoreService,
private idl: IdlService,
private pcrud: PcrudService,
private org: OrgService,
(entry: ComboboxEntry) => this.addAsyncEntry(entry),
err => {},
() => {
- observer.next(searchTerm);
+ observer.next(term);
observer.complete();
}
);
// click action occurred.
if (term === '') { return []; }
- // In sync-data mode, a click displays the full list.
- if (term === '_CLICK_' && !this.asyncDataSource) {
+ // A click displays the full list.
+ if (term === '_CLICK_') {
return this.entrylist;
}