import { EventEmitter, OnInit } from '@angular/core'; import { FormBuilder, FormControl, FormGroup, ValidatorFn } from '@angular/forms'; import { KnoraApiConfig } from '@dasch-swiss/dsp-js'; import { SearchParams } from '../../viewer/views/list-view/list-view.component'; import { AdvancedSearchParamsService } from '../services/advanced-search-params.service'; /** * @ignore * Validator checking that the query does not contain a certain term, here OFFSET * * @param {RegExp} termRe */ export declare function forbiddenTermValidator(termRe: RegExp): ValidatorFn; export declare class ExpertSearchComponent implements OnInit { private _dspApiConfig; private _searchParamsService; private _fb; /** * The data event emitter of type SearchParams * * @param search */ search: EventEmitter; expertSearchForm: FormGroup; queryFormControl: FormControl; iriBaseUrl: string; defaultGravsearchQuery: string; constructor(_dspApiConfig: KnoraApiConfig, _searchParamsService: AdvancedSearchParamsService, _fb: FormBuilder); ngOnInit(): void; /** * @ignore * Reset the form to the initial state. */ resetForm(): void; /** * @ignore * Send the gravsearch query to the result view by emitting the gravsearch as an output. */ submitQuery(): void; /** * @ignore * Generate the whole gravsearch query matching the query given by the form. */ private _generateGravsearch; /** * Get the IRI base url without configured api protocol. * The protocol in this case is always http * TODO: move to DSP-JS-Lib similar to `get ApiUrl` */ private getIriBaseUrl; }