@netgrif/components
Version:
Netgrif Application Engine frontend Angular components
29 lines (28 loc) • 2.67 kB
TypeScript
import { Type } from '@angular/core';
import { AbstractSearchComponent, BaseFilter, CategoryResolverService, DialogService, LoggerService, SearchService, SearchComponentConfiguration, UserFiltersService, AllowedNetsService, Category, ViewIdService, Filter, DataGroup } from '@netgrif/components-core';
import { TranslateService } from '@ngx-translate/core';
import * as i0 from "@angular/core";
/**
* Converts search categories provided by the {@link NAE_SEARCH_CATEGORIES}
* injection token in the old (pre 5.6.0) format, to the new format.
*
* If no search categories are provided converts the default search categories into search categories
* based on the base filter filter type.
*
* @param categoryResolverService service for serialisation and deserialization of search categories
* @param baseFilter determines the default categories used if no categories are provided, injected by the {@link NAE_BASE_FILTER}
* injection token
* @param defaultCaseSearchCategories the default case search categories, injected by the {@link NAE_DEFAULT_CASE_SEARCH_CATEGORIES}
* injection token
* @param defaultTaskSearchCategories the default task search categories, injected by the {@link NAE_DEFAULT_TASK_SEARCH_CATEGORIES}
* injection token
* @param naeSearchCategories optionally the search category instances, or the search category classes. Instances are converted to classes.
* If no categories are provided the default ones based on the base filter filter type will be returned.
* Injected by the {@link NAE_SEARCH_CATEGORIES} injection token.
*/
export declare function searchCategoryConverter(categoryResolverService: CategoryResolverService, baseFilter: BaseFilter, defaultCaseSearchCategories: Array<Type<Category<any>>>, defaultTaskSearchCategories: Array<Type<Category<any>>>, naeSearchCategories?: Array<Category<any>> | Array<Type<Category<any>>>): Array<Type<Category<any>>>;
export declare class SearchComponent extends AbstractSearchComponent {
constructor(searchService: SearchService, logger: LoggerService, dialogService: DialogService, translate: TranslateService, userFilterService: UserFiltersService, allowedNetsService: AllowedNetsService, viewIdService: ViewIdService, searchCategories: Array<Type<Category<any>>>, configuration: SearchComponentConfiguration, filtersFilter?: Filter, navigationItemTaskData?: Array<DataGroup>);
static ɵfac: i0.ɵɵFactoryDeclaration<SearchComponent, [null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
static ɵcmp: i0.ɵɵComponentDeclaration<SearchComponent, "nc-search", never, {}, {}, never, never, false, never>;
}