import { OnChanges, OnInit, QueryList, SimpleChanges } from '@angular/core'; import { FormBuilder, FormGroup } from '@angular/forms'; import { KnoraApiConnection, ResourceClassDefinition, ResourcePropertyDefinition } from '@dasch-swiss/dsp-js'; import { SelectResourceClassComponent } from './select-resource-class/select-resource-class.component'; import { SelectPropertyComponent } from './select-property/select-property.component'; export declare class ResourceAndPropertySelectionComponent implements OnInit, OnChanges { private _fb; private _dspApiConnection; formGroup: FormGroup; activeOntology: string; resourceClassRestriction?: string; topLevel: any; form: FormGroup; activeResourceClass: ResourceClassDefinition; activeProperties: boolean[]; resourceClasses: ResourceClassDefinition[]; properties: ResourcePropertyDefinition[]; resourceClassComponent: SelectResourceClassComponent; propertyComponents: QueryList; constructor(_fb: FormBuilder, _dspApiConnection: KnoraApiConnection); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; getResourceClassesAndPropertiesForOntology(ontologyIri: string): void; getPropertiesForResourceClass(resourceClassIri: string | null): void; /** * @ignore * Add a property to the search form. * @returns void */ addProperty(): void; /** * @ignore * Remove the last property from the search form. * @returns void */ removeProperty(): void; /** * @ignore * Resets the form (selected resource class and specified properties) preserving the active ontology. */ resetForm(): void; }