import { OnDestroy, OnInit } from '@angular/core'; import { FormBuilder, FormGroup } from '@angular/forms'; import { ResourceClassDefinition, ResourcePropertyDefinition } from '@dasch-swiss/dsp-js'; import { Subscription } from 'rxjs'; import { SortingService } from '../../../../action/services/sorting.service'; import { PropertyWithValue } from './specify-property-value/operator'; import { SpecifyPropertyValueComponent } from './specify-property-value/specify-property-value.component'; export declare class SelectPropertyComponent implements OnInit, OnDestroy { private _fb; private _sortingService; formGroup: FormGroup; index: number; topLevel: boolean; private _properties; set properties(value: ResourcePropertyDefinition[]); get properties(): ResourcePropertyDefinition[]; private _activeResourceClass?; set activeResourceClass(value: ResourceClassDefinition); specifyPropertyValue: SpecifyPropertyValueComponent; propertySelected: ResourcePropertyDefinition; form: FormGroup; propIndex: string; propertyChangesSubscription: Subscription; constructor(_fb: FormBuilder, _sortingService: SortingService); ngOnInit(): void; ngOnDestroy(): void; /** * Indicates if property can be used as a sort criterion. * Property has to have cardinality or max cardinality 1 for the chosen resource class. * * We cannot sort by properties whose cardinality is greater than 1. * Return boolean */ sortCriterion(): boolean; /** * Returns the selected property with the specified value. */ getPropertySelectedWithValue(): PropertyWithValue; }