UNPKG

@nfdi4plants/swate-components

Version:

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

40 lines 2.41 kB
import { FSharpList } from '@fable-org/fable-library-js/List.js'; import { CompositeHeader_$union } from '../../ARCtrl.Core.3.0.0-beta.12/Table/CompositeHeader.fs.js'; import { int32 } from '@fable-org/fable-library-js/Int32.js'; import { CompositeColumn } from '../../ARCtrl.Core.3.0.0-beta.12/Table/CompositeColumn.fs.js'; import { FsTable } from '../../FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js'; import { FsWorksheet } from '../../FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js'; import { Option } from '@fable-org/fable-library-js/Option.js'; import { ArcTableValues } from '../../ARCtrl.Core.3.0.0-beta.12/Table/ArcTableAux.fs.js'; import { ArcTable } from '../../ARCtrl.Core.3.0.0-beta.12/Table/ArcTable.fs.js'; /** * Iterates over elements of the input list and groups adjacent elements. * A new group is started when the specified predicate holds about the element * of the list (and at the beginning of the iteration). * * For example: * List.groupWhen isOdd [3;3;2;4;1;2] = [[3]; [3; 2; 4]; [1; 2]] */ export declare function Aux_List_groupWhen<$a>(f: ((arg0: $a) => boolean), list: FSharpList<$a>): FSharpList<FSharpList<$a>>; export declare function classifyHeaderOrder(header: CompositeHeader_$union): int32; export declare function classifyColumnOrder(column: CompositeColumn): int32; export declare const helperColumnStrings: FSharpList<string>; export declare function groupColumnsByHeader(stringCellColumns: string[][]): string[][][]; /** * Returns the annotation table of the worksheet if it exists, else returns None */ export declare function tryAnnotationTable(sheet: FsWorksheet): Option<FsTable>; /** * Groups and parses a collection of single columns into the according ISA composite columns */ export declare function composeColumns(stringCellColumns: string[][]): CompositeColumn[]; /** * Groups and parses a collection of single columns into the according ISA composite columns */ export declare function composeArcTableValues(stringCellColumns: string[][]): [CompositeHeader_$union[], ArcTableValues]; /** * Returns the protocol described by the headers and a function for parsing the values of the matrix to the processes of this protocol */ export declare function tryFromFsWorksheet(sheet: FsWorksheet): Option<ArcTable>; export declare function toFsWorksheet(index: Option<int32>, table: ArcTable): FsWorksheet; //# sourceMappingURL=ArcTable.fs.d.ts.map