N👩
Size: a a a
N👩
N👩
Вキ
N👩
D
N👩
DT
withLatestFrom(…startsWith())
private filterBySearchTerm() {
return withLatestFrom(
this.debouncedSearchTerm$.pipe(
startWith(defaultSearchTerm)
)
).pipe(
map([integrations, searchTerm] => {
return filterBySearchTerm(integrations, searchTerm)
})
);
}
private filterByTags(): MonoTypeOperatorFunction<ReadonlyArray<IUIIntegration>> {
return withLatestFrom(
this.integrationsListFilterStateService.getNested('selectedTagIds').pipe(
startWith(null)
)
).pipe(
map([integrations, tagIds] => {
if (tagIds != null && tagIds.length > 0) {
filterByTags(integrations, tagIds);
} else {
return integrations;
}
})
);
}
АО
DT
АО
DT
DT
DT
KA
return source => combineLatest(source, this.debouncedSearchTerm$).pipe(map(...))
KA
DT
return source => combineLatest(source, this.debouncedSearchTerm$).pipe(map(...))
АО
АО
DT
source$ => combineLatest([source$, new$]).pipe(...))