UNPKG

@nfdi4plants/swate-components

Version:

Customizable React components for ontology annotation, based on Swate and the ARC.

44 lines 2.82 kB
import { Record } from '@fable-org/fable-library-js/Types.js'; import { Option } from '@fable-org/fable-library-js/Option.js'; import { Factor } from './Factor.fs.js'; import { OntologyAnnotation } from '../OntologyAnnotation.fs.js'; import { IISAPrintable } from '../Helper/Printer.fs.js'; import { Value_$union } from '../Value.fs.js'; import { IEquatable } from '@fable-org/fable-library-js/Util.js'; import { IPropertyValue } from '../IPropertyValue.fs.js'; import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js'; export declare class FactorValue extends Record implements IEquatable<FactorValue>, IPropertyValue, IISAPrintable { readonly ID: Option<string>; readonly Category: Option<Factor>; readonly Value: Option<Value_$union>; readonly Unit: Option<OntologyAnnotation>; constructor(ID: Option<string>, Category: Option<Factor>, Value: Option<Value_$union>, Unit: Option<OntologyAnnotation>); Print(): string; PrintCompact(): string; AlternateName(): Option<string>; MeasurementMethod(): Option<string>; Description(): Option<string>; GetCategory(): Option<OntologyAnnotation>; GetValue(): Option<Value_$union>; GetUnit(): Option<OntologyAnnotation>; GetAdditionalType(): string; } export declare function FactorValue_$reflection(): TypeInfo; export declare function FactorValue_make(id: Option<string>, category: Option<Factor>, value: Option<Value_$union>, unit: Option<OntologyAnnotation>): FactorValue; export declare function FactorValue_create_30BDC49(Id?: string, Category?: Factor, Value?: Value_$union, Unit?: OntologyAnnotation): FactorValue; export declare function FactorValue_get_empty(): FactorValue; export declare function FactorValue__get_ValueText(this$: FactorValue): string; export declare function FactorValue__get_ValueWithUnitText(this$: FactorValue): string; export declare function FactorValue__get_NameText(this$: FactorValue): string; export declare function FactorValue__MapCategory_658CFBF6(this$: FactorValue, f: ((arg0: OntologyAnnotation) => OntologyAnnotation)): FactorValue; export declare function FactorValue__SetCategory_ZDED3A0F(this$: FactorValue, c: OntologyAnnotation): FactorValue; /** * Returns the name of the factor value as string */ export declare function FactorValue_getNameAsString_7105C732(fv: FactorValue): string; /** * Returns true if the given name matches the name of the factor value */ export declare function FactorValue_nameEqualsString(name: string, fv: FactorValue): boolean; export declare function FactorValue_createAsPV(alternateName: Option<string>, measurementMethod: Option<string>, description: Option<string>, category: Option<OntologyAnnotation>, value: Option<Value_$union>, unit: Option<OntologyAnnotation>): FactorValue; //# sourceMappingURL=FactorValue.fs.d.ts.map