@nfdi4plants/arctrl 1.1.0 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARC.js +53 -35
- package/{Contracts/Contracts.ARCtrl.js → Contract/ARC.js} +4 -2
- package/Contract/ArcAssay.js +102 -0
- package/Contract/ArcInvestigation.js +78 -0
- package/Contract/ArcStudy.js +102 -0
- package/Contract/Contract.js +3 -3
- package/{Contracts/Contracts.Git.js → Contract/Git.js} +5 -5
- package/{ISA/ISA/ArcTypes → Core}/ArcTypes.js +307 -295
- package/Core/Comment.js +97 -0
- package/{ISA/ISA/JsonTypes → Core}/CommentList.js +12 -18
- package/Core/Conversion.js +1056 -0
- package/Core/Helper/Collections.js +318 -0
- package/Core/Helper/HashCodes.js +39 -0
- package/{ISA/ISA → Core/Helper}/Identifier.js +67 -2
- package/{ISA/ISA → Core/Helper}/Regex.js +3 -3
- package/{SemVer.js → Core/Helper/SemVer.js} +8 -8
- package/{ISA/ISA/ArcTypes → Core}/IdentifierSetters.js +1 -1
- package/Core/OntologyAnnotation.js +186 -0
- package/Core/OntologySourceReference.js +92 -0
- package/Core/Person.js +194 -0
- package/Core/Process/ColumnIndex.js +248 -0
- package/Core/Process/Component.js +188 -0
- package/{ISA/ISA/JsonTypes → Core/Process}/Data.js +8 -8
- package/{ISA/ISA/JsonTypes → Core/Process}/DataFile.js +3 -3
- package/Core/Process/Factor.js +109 -0
- package/{ISA/ISA/JsonTypes → Core/Process}/FactorValue.js +32 -13
- package/{ISA/ISA/JsonTypes → Core/Process}/Material.js +9 -9
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttribute.js +17 -17
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttributeValue.js +35 -16
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialType.js +3 -3
- package/{ISA/ISA/JsonTypes → Core/Process}/Process.js +46 -79
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessInput.js +42 -42
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessOutput.js +36 -36
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessParameterValue.js +26 -7
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessSequence.js +21 -25
- package/{ISA/ISA/JsonTypes → Core/Process}/Protocol.js +26 -57
- package/{ISA/ISA/JsonTypes → Core/Process}/ProtocolParameter.js +10 -10
- package/{ISA/ISA/JsonTypes → Core/Process}/Sample.js +12 -12
- package/{ISA/ISA/JsonTypes → Core/Process}/Source.js +9 -9
- package/{ISA/ISA/JsonTypes → Core/Process}/Value.js +24 -31
- package/Core/Publication.js +116 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +49 -155
- package/Core/Table/ArcTableAux.js +532 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTables.js +20 -32
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeCell.js +19 -76
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeColumn.js +9 -8
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeHeader.js +14 -34
- package/{Templates → Core}/Template.js +16 -17
- package/Core/Templates.js +84 -0
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +46 -8
- package/FileSystem/Path.js +10 -2
- package/Json/ARC.js +25 -0
- package/Json/Assay.js +202 -0
- package/Json/Comment.js +130 -0
- package/Json/ConverterOptions.js +18 -0
- package/Json/Decode.js +128 -0
- package/Json/Encode.js +45 -0
- package/Json/Investigation.js +220 -0
- package/Json/OntologyAnnotation.js +169 -0
- package/Json/OntologySourceReference.js +122 -0
- package/Json/Person.js +250 -0
- package/Json/Process/AssayMaterials.js +22 -0
- package/Json/Process/Component.js +79 -0
- package/Json/Process/Data.js +102 -0
- package/Json/Process/DataFile.js +81 -0
- package/Json/Process/Factor.js +48 -0
- package/Json/Process/FactorValue.js +53 -0
- package/Json/Process/Material.js +107 -0
- package/Json/Process/MaterialAttribute.js +45 -0
- package/Json/Process/MaterialAttributeValue.js +70 -0
- package/Json/Process/MaterialType.js +60 -0
- package/Json/Process/Process.js +107 -0
- package/Json/Process/ProcessInput.js +59 -0
- package/Json/Process/ProcessOutput.js +71 -0
- package/Json/Process/ProcessParameterValue.js +69 -0
- package/Json/Process/ProcessSequence.js +53 -0
- package/Json/Process/PropertyValue.js +82 -0
- package/Json/Process/Protocol.js +147 -0
- package/Json/Process/ProtocolParameter.js +45 -0
- package/Json/Process/Sample.js +134 -0
- package/Json/Process/Source.js +101 -0
- package/Json/Process/StudyMaterials.js +24 -0
- package/Json/Process/Value.js +42 -0
- package/Json/Publication.js +142 -0
- package/Json/StringTable.js +44 -0
- package/Json/Study.js +306 -0
- package/Json/Table/ArcTable.js +223 -0
- package/Json/Table/CellTable.js +40 -0
- package/Json/Table/CompositeCell.js +65 -0
- package/Json/Table/CompositeHeader.js +57 -0
- package/Json/Table/Compression.js +38 -0
- package/Json/Table/IOType.js +37 -0
- package/Json/Table/OATable.js +40 -0
- package/Json/Table/Templates.js +107 -0
- package/Json/context/rocrate/isa_assay_context.js +32 -0
- package/Json/context/rocrate/isa_comment_context.js +23 -0
- package/Json/context/rocrate/isa_component_context.js +24 -0
- package/Json/context/rocrate/isa_data_context.js +25 -0
- package/Json/context/rocrate/isa_factor_context.js +25 -0
- package/Json/context/rocrate/isa_factor_value_context.js +23 -0
- package/Json/context/rocrate/isa_investigation_context.js +33 -0
- package/Json/context/rocrate/isa_material_attribute_context.js +23 -0
- package/Json/context/rocrate/isa_material_attribute_value_context.js +23 -0
- package/Json/context/rocrate/isa_material_context.js +26 -0
- package/Json/context/rocrate/isa_ontology_annotation_context.js +23 -0
- package/Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
- package/Json/context/rocrate/isa_organization_context.js +22 -0
- package/Json/context/rocrate/isa_person_context.js +33 -0
- package/Json/context/rocrate/isa_process_context.js +29 -0
- package/Json/context/rocrate/isa_process_parameter_value_context.js +23 -0
- package/Json/context/rocrate/isa_protocol_context.js +28 -0
- package/Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
- package/Json/context/rocrate/isa_publication_context.js +25 -0
- package/Json/context/rocrate/isa_sample_context.js +24 -0
- package/Json/context/rocrate/isa_source_context.js +25 -0
- package/Json/context/rocrate/isa_study_context.js +40 -0
- package/Json/context/rocrate/property_value_context.js +4 -0
- package/Json/context/rocrate/rocrate_context.js +23 -0
- package/Json.js +193 -0
- package/README.md +50 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
- package/Spreadsheet/AnnotationTable/CompositeColumn.js +59 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeHeader.js +10 -10
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcAssay.js +11 -11
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcInvestigation.js +34 -37
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcStudy.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/CollectionAux.js +8 -8
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
- package/Spreadsheet/Metadata/Comment.js +71 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Contacts.js +28 -30
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Conversions.js +22 -16
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/DesignDescriptors.js +1 -1
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Factors.js +23 -22
- package/Spreadsheet/Metadata/OntologyAnnotation.js +64 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/OntologySourceReference.js +22 -24
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Protocols.js +17 -17
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Publication.js +29 -31
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/SparseTable.js +34 -28
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Study.js +38 -40
- package/{Templates/Template.Spreadsheet.js → Spreadsheet/Template.js} +31 -31
- package/Template.Web.js +27 -0
- package/WebRequest/WebRequest.Node.js +15 -0
- package/WebRequest/WebRequest.js +10 -29
- package/Xlsx.js +85 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js +14 -14
- package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +4 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs +1390 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +1230 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs +233 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +113 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +28 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs +76 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +33 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/{Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs → Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/Thoth.Json.Core.AssemblyInfo.fs} +8 -7
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs +79 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +85 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs +32 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +45 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +21 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +18 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +19 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Array.d.ts +4 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Array.js +124 -86
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
- package/fable_modules/fable-library-js.4.16.0/CHANGELOG.md +47 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -17
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.js +0 -43
- package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.d.ts +9 -0
- package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.js +21 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.js +340 -42
- package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.d.ts +12 -0
- package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.js +27 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.js +3 -3
- package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.js +7 -7
- package/fable_modules/fable-library-js.4.16.0/Result.d.ts +37 -0
- package/fable_modules/fable-library-js.4.16.0/Result.js +165 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.js +2 -2
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.d.ts +1 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.js +8 -5
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +15 -7
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +46 -36
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.d.ts +9 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.js +60 -8
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.js +2 -13
- package/fable_modules/fable-library-js.4.16.0/big.d.ts +338 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/package.json +4 -3
- package/fable_modules/project_cracked.json +1 -1
- package/index.js +14 -12
- package/package.json +1 -1
- package/Contracts/Contracts.ArcTypes.js +0 -268
- package/FileSystemTree.js +0 -51
- package/ISA/ISA/ArcTypes/ArcTableAux.js +0 -1155
- package/ISA/ISA/ArcTypes/CompositeRow.js +0 -111
- package/ISA/ISA/Builder/Types.js +0 -243
- package/ISA/ISA/Fable.js +0 -123
- package/ISA/ISA/Helper.js +0 -503
- package/ISA/ISA/JsonTypes/Assay.js +0 -620
- package/ISA/ISA/JsonTypes/AssayMaterials.js +0 -39
- package/ISA/ISA/JsonTypes/ColumnIndex.js +0 -246
- package/ISA/ISA/JsonTypes/Comment.js +0 -58
- package/ISA/ISA/JsonTypes/Component.js +0 -165
- package/ISA/ISA/JsonTypes/Factor.js +0 -128
- package/ISA/ISA/JsonTypes/Investigation.js +0 -204
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +0 -196
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +0 -85
- package/ISA/ISA/JsonTypes/Person.js +0 -137
- package/ISA/ISA/JsonTypes/Publication.js +0 -105
- package/ISA/ISA/JsonTypes/Study.js +0 -942
- package/ISA/ISA/JsonTypes/StudyMaterials.js +0 -45
- package/ISA/ISA/UIHelper.js +0 -19
- package/ISA/ISA.Json/ArcTypes/ArcAssay.js +0 -282
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -93
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -170
- package/ISA/ISA.Json/ArcTypes/ArcTable.js +0 -178
- package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -46
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -77
- package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +0 -82
- package/ISA/ISA.Json/ArcTypes/IOType.js +0 -35
- package/ISA/ISA.Json/ArcTypes/OATable.js +0 -48
- package/ISA/ISA.Json/Assay.js +0 -105
- package/ISA/ISA.Json/Comment.js +0 -84
- package/ISA/ISA.Json/ConverterOptions.js +0 -33
- package/ISA/ISA.Json/Data.js +0 -271
- package/ISA/ISA.Json/Decode.js +0 -46
- package/ISA/ISA.Json/Factor.js +0 -194
- package/ISA/ISA.Json/GEncode.js +0 -15
- package/ISA/ISA.Json/Investigation.js +0 -114
- package/ISA/ISA.Json/Material.js +0 -233
- package/ISA/ISA.Json/Ontology.js +0 -223
- package/ISA/ISA.Json/Person.js +0 -204
- package/ISA/ISA.Json/Process.js +0 -291
- package/ISA/ISA.Json/Protocol.js +0 -242
- package/ISA/ISA.Json/Publication.js +0 -92
- package/ISA/ISA.Json/StringTable.js +0 -43
- package/ISA/ISA.Json/Study.js +0 -212
- package/ISA/ISA.Json/Validation/Fable.js +0 -69
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +0 -88
- package/ISA/ISA.Json/Validation/ValidationResult.js +0 -45
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +0 -59
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +0 -60
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
- package/Path.js +0 -10
- package/Templates/Template.Json.js +0 -83
- package/Templates/Template.Web.js +0 -27
- package/Templates/Templates.js +0 -82
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs +0 -1366
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +0 -1798
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs +0 -621
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +0 -472
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs +0 -31
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +0 -8
- package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +0 -30
- package/fable_modules/Thoth.Json.10.1.0/Types.fs +0 -59
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +0 -98
- package/fable_modules/Thoth.Json.10.1.0/package.json +0 -5
- package/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
- package/fable_modules/fable-library.4.5.0/MapUtil.d.ts +0 -10
- /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/README.md +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { defaultArg, unwrap } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
2
|
+
import { ResizeArray_map } from "./Helper/Collections.js";
|
|
3
|
+
import { boxHashSeq, boxHashOption, boxHashArray } from "./Helper/HashCodes.js";
|
|
4
|
+
import { safeHash } from "../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
5
|
+
import { class_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
6
|
+
|
|
7
|
+
export class OntologySourceReference {
|
|
8
|
+
constructor(description, file, name, version, comments) {
|
|
9
|
+
this._description = description;
|
|
10
|
+
this._file = file;
|
|
11
|
+
this._name = name;
|
|
12
|
+
this._version = version;
|
|
13
|
+
this._comments = defaultArg(comments, []);
|
|
14
|
+
}
|
|
15
|
+
get Description() {
|
|
16
|
+
const this$ = this;
|
|
17
|
+
return unwrap(this$._description);
|
|
18
|
+
}
|
|
19
|
+
set Description(description) {
|
|
20
|
+
const this$ = this;
|
|
21
|
+
this$._description = description;
|
|
22
|
+
}
|
|
23
|
+
get File() {
|
|
24
|
+
const this$ = this;
|
|
25
|
+
return unwrap(this$._file);
|
|
26
|
+
}
|
|
27
|
+
set File(file) {
|
|
28
|
+
const this$ = this;
|
|
29
|
+
this$._file = file;
|
|
30
|
+
}
|
|
31
|
+
get Name() {
|
|
32
|
+
const this$ = this;
|
|
33
|
+
return unwrap(this$._name);
|
|
34
|
+
}
|
|
35
|
+
set Name(name) {
|
|
36
|
+
const this$ = this;
|
|
37
|
+
this$._name = name;
|
|
38
|
+
}
|
|
39
|
+
get Version() {
|
|
40
|
+
const this$ = this;
|
|
41
|
+
return unwrap(this$._version);
|
|
42
|
+
}
|
|
43
|
+
set Version(version) {
|
|
44
|
+
const this$ = this;
|
|
45
|
+
this$._version = version;
|
|
46
|
+
}
|
|
47
|
+
get Comments() {
|
|
48
|
+
const this$ = this;
|
|
49
|
+
return this$._comments;
|
|
50
|
+
}
|
|
51
|
+
set Comments(comments) {
|
|
52
|
+
const this$ = this;
|
|
53
|
+
this$._comments = comments;
|
|
54
|
+
}
|
|
55
|
+
static make(description, file, name, version, comments) {
|
|
56
|
+
return new OntologySourceReference(unwrap(description), unwrap(file), unwrap(name), unwrap(version), comments);
|
|
57
|
+
}
|
|
58
|
+
static create(description, file, name, version, comments) {
|
|
59
|
+
const comments_1 = defaultArg(comments, []);
|
|
60
|
+
return OntologySourceReference.make(description, file, name, version, comments_1);
|
|
61
|
+
}
|
|
62
|
+
static get empty() {
|
|
63
|
+
return OntologySourceReference.create();
|
|
64
|
+
}
|
|
65
|
+
Copy() {
|
|
66
|
+
const this$ = this;
|
|
67
|
+
const nextComments = ResizeArray_map((c) => c.Copy(), this$.Comments);
|
|
68
|
+
const description = this$.Description;
|
|
69
|
+
const file = this$.File;
|
|
70
|
+
const name = this$.Name;
|
|
71
|
+
const version = this$.Version;
|
|
72
|
+
return OntologySourceReference.make(description, file, name, version, nextComments);
|
|
73
|
+
}
|
|
74
|
+
GetHashCode() {
|
|
75
|
+
const this$ = this;
|
|
76
|
+
return boxHashArray([boxHashOption(this$.Description), boxHashOption(this$.File), boxHashOption(this$.Name), boxHashOption(this$.Version), boxHashSeq(this$.Comments)]) | 0;
|
|
77
|
+
}
|
|
78
|
+
Equals(obj) {
|
|
79
|
+
let t;
|
|
80
|
+
const this$ = this;
|
|
81
|
+
return (obj instanceof OntologySourceReference) && ((t = obj, safeHash(this$) === safeHash(t)));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function OntologySourceReference_$reflection() {
|
|
86
|
+
return class_type("ARCtrl.OntologySourceReference", void 0, OntologySourceReference);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function OntologySourceReference_$ctor_7C9A7CF8(description, file, name, version, comments) {
|
|
90
|
+
return new OntologySourceReference(description, file, name, version, comments);
|
|
91
|
+
}
|
|
92
|
+
|
package/Core/Person.js
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { map as map_1, defaultArg, unwrap } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
2
|
+
import { tryFind } from "../fable_modules/fable-library-js.4.16.0/Array.js";
|
|
3
|
+
import { equals } from "../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
4
|
+
import { ofArray, choose, map, singleton, append } from "../fable_modules/fable-library-js.4.16.0/List.js";
|
|
5
|
+
import { ResizeArray_map } from "./Helper/Collections.js";
|
|
6
|
+
import { hash, boxHashSeq, boxHashOption, boxHashArray } from "./Helper/HashCodes.js";
|
|
7
|
+
import { StringBuilder__Append_Z721C83C5, StringBuilder_$ctor } from "../fable_modules/fable-library-js.4.16.0/System.Text.js";
|
|
8
|
+
import { printf, toText, join } from "../fable_modules/fable-library-js.4.16.0/String.js";
|
|
9
|
+
import { length } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
|
|
10
|
+
import { toString } from "../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
11
|
+
import { class_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
12
|
+
|
|
13
|
+
export class Person {
|
|
14
|
+
constructor(orcid, lastName, firstName, midInitials, email, phone, fax, address, affiliation, roles, comments) {
|
|
15
|
+
this._orcid = orcid;
|
|
16
|
+
this._lastName = lastName;
|
|
17
|
+
this._firstName = firstName;
|
|
18
|
+
this._midInitials = midInitials;
|
|
19
|
+
this._email = email;
|
|
20
|
+
this._phone = phone;
|
|
21
|
+
this._fax = fax;
|
|
22
|
+
this._address = address;
|
|
23
|
+
this._affiliation = affiliation;
|
|
24
|
+
this._roles = defaultArg(roles, []);
|
|
25
|
+
this._comments = defaultArg(comments, []);
|
|
26
|
+
}
|
|
27
|
+
get ORCID() {
|
|
28
|
+
const this$ = this;
|
|
29
|
+
return unwrap(this$._orcid);
|
|
30
|
+
}
|
|
31
|
+
set ORCID(orcid) {
|
|
32
|
+
const this$ = this;
|
|
33
|
+
this$._orcid = orcid;
|
|
34
|
+
}
|
|
35
|
+
get FirstName() {
|
|
36
|
+
const this$ = this;
|
|
37
|
+
return unwrap(this$._firstName);
|
|
38
|
+
}
|
|
39
|
+
set FirstName(firstName) {
|
|
40
|
+
const this$ = this;
|
|
41
|
+
this$._firstName = firstName;
|
|
42
|
+
}
|
|
43
|
+
get LastName() {
|
|
44
|
+
const this$ = this;
|
|
45
|
+
return unwrap(this$._lastName);
|
|
46
|
+
}
|
|
47
|
+
set LastName(lastName) {
|
|
48
|
+
const this$ = this;
|
|
49
|
+
this$._lastName = lastName;
|
|
50
|
+
}
|
|
51
|
+
get MidInitials() {
|
|
52
|
+
const this$ = this;
|
|
53
|
+
return unwrap(this$._midInitials);
|
|
54
|
+
}
|
|
55
|
+
set MidInitials(midInitials) {
|
|
56
|
+
const this$ = this;
|
|
57
|
+
this$._midInitials = midInitials;
|
|
58
|
+
}
|
|
59
|
+
get Address() {
|
|
60
|
+
const this$ = this;
|
|
61
|
+
return unwrap(this$._address);
|
|
62
|
+
}
|
|
63
|
+
set Address(address) {
|
|
64
|
+
const this$ = this;
|
|
65
|
+
this$._address = address;
|
|
66
|
+
}
|
|
67
|
+
get Affiliation() {
|
|
68
|
+
const this$ = this;
|
|
69
|
+
return unwrap(this$._affiliation);
|
|
70
|
+
}
|
|
71
|
+
set Affiliation(affiliation) {
|
|
72
|
+
const this$ = this;
|
|
73
|
+
this$._affiliation = affiliation;
|
|
74
|
+
}
|
|
75
|
+
get EMail() {
|
|
76
|
+
const this$ = this;
|
|
77
|
+
return unwrap(this$._email);
|
|
78
|
+
}
|
|
79
|
+
set EMail(email) {
|
|
80
|
+
const this$ = this;
|
|
81
|
+
this$._email = email;
|
|
82
|
+
}
|
|
83
|
+
get Phone() {
|
|
84
|
+
const this$ = this;
|
|
85
|
+
return unwrap(this$._phone);
|
|
86
|
+
}
|
|
87
|
+
set Phone(phone) {
|
|
88
|
+
const this$ = this;
|
|
89
|
+
this$._phone = phone;
|
|
90
|
+
}
|
|
91
|
+
get Fax() {
|
|
92
|
+
const this$ = this;
|
|
93
|
+
return unwrap(this$._fax);
|
|
94
|
+
}
|
|
95
|
+
set Fax(fax) {
|
|
96
|
+
const this$ = this;
|
|
97
|
+
this$._fax = fax;
|
|
98
|
+
}
|
|
99
|
+
get Roles() {
|
|
100
|
+
const this$ = this;
|
|
101
|
+
return this$._roles;
|
|
102
|
+
}
|
|
103
|
+
set Roles(roles) {
|
|
104
|
+
const this$ = this;
|
|
105
|
+
this$._roles = roles;
|
|
106
|
+
}
|
|
107
|
+
get Comments() {
|
|
108
|
+
const this$ = this;
|
|
109
|
+
return this$._comments;
|
|
110
|
+
}
|
|
111
|
+
set Comments(comments) {
|
|
112
|
+
const this$ = this;
|
|
113
|
+
this$._comments = comments;
|
|
114
|
+
}
|
|
115
|
+
static make(orcid, lastName, firstName, midInitials, email, phone, fax, address, affiliation, roles, comments) {
|
|
116
|
+
return new Person(unwrap(orcid), unwrap(lastName), unwrap(firstName), unwrap(midInitials), unwrap(email), unwrap(phone), unwrap(fax), unwrap(address), unwrap(affiliation), roles, comments);
|
|
117
|
+
}
|
|
118
|
+
static create(orcid, lastName, firstName, midInitials, email, phone, fax, address, affiliation, roles, comments) {
|
|
119
|
+
const roles_1 = defaultArg(roles, []);
|
|
120
|
+
const comments_1 = defaultArg(comments, []);
|
|
121
|
+
return Person.make(orcid, lastName, firstName, midInitials, email, phone, fax, address, affiliation, roles_1, comments_1);
|
|
122
|
+
}
|
|
123
|
+
static get empty() {
|
|
124
|
+
return Person.create();
|
|
125
|
+
}
|
|
126
|
+
static tryGetByFullName(firstName, midInitials, lastName, persons) {
|
|
127
|
+
return tryFind((p) => {
|
|
128
|
+
if (midInitials === "") {
|
|
129
|
+
if (equals(p.FirstName, firstName)) {
|
|
130
|
+
return equals(p.LastName, lastName);
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
else if (equals(p.FirstName, firstName) && equals(p.MidInitials, midInitials)) {
|
|
137
|
+
return equals(p.LastName, lastName);
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
}, persons);
|
|
143
|
+
}
|
|
144
|
+
static existsByFullName(firstName, midInitials, lastName, persons) {
|
|
145
|
+
return persons.some((p) => ((midInitials === "") ? (equals(p.FirstName, firstName) && equals(p.LastName, lastName)) : ((equals(p.FirstName, firstName) && equals(p.MidInitials, midInitials)) && equals(p.LastName, lastName))));
|
|
146
|
+
}
|
|
147
|
+
static add(persons, person) {
|
|
148
|
+
return append(persons, singleton(person));
|
|
149
|
+
}
|
|
150
|
+
static removeByFullName(firstName, midInitials, lastName, persons) {
|
|
151
|
+
return persons.filter((p) => ((midInitials === "") ? !(equals(p.FirstName, firstName) && equals(p.LastName, lastName)) : !((equals(p.FirstName, firstName) && equals(p.MidInitials, midInitials)) && equals(p.LastName, lastName))));
|
|
152
|
+
}
|
|
153
|
+
Copy() {
|
|
154
|
+
const this$ = this;
|
|
155
|
+
const nextComments = ResizeArray_map((c) => c.Copy(), this$.Comments);
|
|
156
|
+
const nextRoles = ResizeArray_map((c_1) => c_1.Copy(), this$.Roles);
|
|
157
|
+
const orcid = this$.ORCID;
|
|
158
|
+
const lastName = this$.LastName;
|
|
159
|
+
const firstName = this$.FirstName;
|
|
160
|
+
const midInitials = this$.MidInitials;
|
|
161
|
+
const email = this$.EMail;
|
|
162
|
+
const phone = this$.Phone;
|
|
163
|
+
const fax = this$.Fax;
|
|
164
|
+
const address = this$.Address;
|
|
165
|
+
const affiliation = this$.Affiliation;
|
|
166
|
+
return Person.make(orcid, lastName, firstName, midInitials, email, phone, fax, address, affiliation, nextRoles, nextComments);
|
|
167
|
+
}
|
|
168
|
+
GetHashCode() {
|
|
169
|
+
const this$ = this;
|
|
170
|
+
return boxHashArray([boxHashOption(this$.ORCID), boxHashOption(this$.LastName), boxHashOption(this$.FirstName), boxHashOption(this$.MidInitials), boxHashOption(this$.EMail), boxHashOption(this$.Phone), boxHashOption(this$.Fax), boxHashOption(this$.Address), boxHashOption(this$.Affiliation), boxHashSeq(this$.Roles), boxHashSeq(this$.Comments)]) | 0;
|
|
171
|
+
}
|
|
172
|
+
Equals(obj) {
|
|
173
|
+
const this$ = this;
|
|
174
|
+
return hash(this$) === hash(obj);
|
|
175
|
+
}
|
|
176
|
+
toString() {
|
|
177
|
+
let arg, arg_1;
|
|
178
|
+
const this$ = this;
|
|
179
|
+
const sb = StringBuilder_$ctor();
|
|
180
|
+
StringBuilder__Append_Z721C83C5(sb, "Person {\n\t");
|
|
181
|
+
StringBuilder__Append_Z721C83C5(sb, join(",\n\t", map((tupledArg_1) => toText(printf("%s = %A"))(tupledArg_1[0])(tupledArg_1[1]), choose((tupledArg) => map_1((o) => [tupledArg[0], o], tupledArg[1]), ofArray([["FirstName", this$.FirstName], ["LastName", this$.LastName], ["MidInitials", this$.MidInitials], ["EMail", this$.EMail], ["Phone", this$.Phone], ["Address", this$.Address], ["Affiliation", this$.Affiliation], ["Fax", this$.Fax], ["ORCID", this$.ORCID], ["Roles", (length(this$.Roles) > 0) ? ((arg = this$.Roles, toText(printf("%A"))(arg))) : void 0], ["Comments", (length(this$.Comments) > 0) ? ((arg_1 = this$.Comments, toText(printf("%A"))(arg_1))) : void 0]])))));
|
|
182
|
+
StringBuilder__Append_Z721C83C5(sb, "\n}");
|
|
183
|
+
return toString(sb);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function Person_$reflection() {
|
|
188
|
+
return class_type("ARCtrl.Person", void 0, Person);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export function Person_$ctor_Z2F6491B5(orcid, lastName, firstName, midInitials, email, phone, fax, address, affiliation, roles, comments) {
|
|
192
|
+
return new Person(orcid, lastName, firstName, midInitials, email, phone, fax, address, affiliation, roles, comments);
|
|
193
|
+
}
|
|
194
|
+
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { tryParse } from "../../fable_modules/fable-library-js.4.16.0/Int32.js";
|
|
2
|
+
import { FSharpRef } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
3
|
+
import { Comment$ } from "../Comment.js";
|
|
4
|
+
import { int32ToString } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
5
|
+
import { value, bind } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
6
|
+
import { tryItem } from "../CommentList.js";
|
|
7
|
+
import { Factor } from "./Factor.js";
|
|
8
|
+
import { MaterialAttribute_fromString_5980DC03 } from "./MaterialAttribute.js";
|
|
9
|
+
import { ProtocolParameter } from "./ProtocolParameter.js";
|
|
10
|
+
import { Component_fromISAString_7C9A7CF8 } from "./Component.js";
|
|
11
|
+
|
|
12
|
+
function tryInt(str) {
|
|
13
|
+
let matchValue;
|
|
14
|
+
let outArg = 0;
|
|
15
|
+
matchValue = [tryParse(str, 511, false, 32, new FSharpRef(() => outArg, (v) => {
|
|
16
|
+
outArg = (v | 0);
|
|
17
|
+
})), outArg];
|
|
18
|
+
if (matchValue[0]) {
|
|
19
|
+
return matchValue[1];
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
return void 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const orderName = "ColumnIndex";
|
|
27
|
+
|
|
28
|
+
export function createOrderComment(index) {
|
|
29
|
+
return Comment$.create(orderName, int32ToString(index));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function tryGetIndex(comments) {
|
|
33
|
+
return bind(tryInt, tryItem(orderName, comments));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function setOntologyAnnotationIndexInplace(i, oa) {
|
|
37
|
+
void (oa.Comments.push(createOrderComment(i)));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function setOntologyAnnotationIndex(i, oa) {
|
|
41
|
+
const oac = oa.Copy();
|
|
42
|
+
setOntologyAnnotationIndexInplace(i, oac);
|
|
43
|
+
return oac;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function tryGetOntologyAnnotationIndex(oa) {
|
|
47
|
+
return tryGetIndex(oa.Comments);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function tryGetParameterIndex(param) {
|
|
51
|
+
return bind((oa) => tryGetIndex(oa.Comments), param.ParameterName);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function tryGetParameterColumnIndex(paramValue) {
|
|
55
|
+
return bind(tryGetParameterIndex, paramValue.Category);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function tryGetFactorIndex(factor) {
|
|
59
|
+
return bind((oa) => tryGetIndex(oa.Comments), factor.FactorType);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function tryGetFactorColumnIndex(factorValue) {
|
|
63
|
+
return bind(tryGetFactorIndex, factorValue.Category);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function tryGetCharacteristicIndex(characteristic) {
|
|
67
|
+
return bind((oa) => tryGetIndex(oa.Comments), characteristic.CharacteristicType);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function tryGetCharacteristicColumnIndex(characteristicValue) {
|
|
71
|
+
return bind(tryGetCharacteristicIndex, characteristicValue.Category);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function tryGetComponentIndex(comp) {
|
|
75
|
+
return bind((oa) => tryGetIndex(oa.Comments), comp.ComponentType);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Create a ISAJson Factor from ISATab string entries
|
|
80
|
+
*/
|
|
81
|
+
export function ARCtrl_OntologyAnnotation__OntologyAnnotation_fromStringWithColumnIndex_Static(name, term, source, accession, valueIndex) {
|
|
82
|
+
return Factor.fromString(name, term, source, accession, [createOrderComment(valueIndex)]);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function ARCtrl_OntologyAnnotation__OntologyAnnotation_getColumnIndex_Static_ZDED3A0F(f) {
|
|
86
|
+
return value(tryGetOntologyAnnotationIndex(f));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function ARCtrl_OntologyAnnotation__OntologyAnnotation_GetColumnIndex(this$) {
|
|
90
|
+
return value(tryGetOntologyAnnotationIndex(this$));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function ARCtrl_OntologyAnnotation__OntologyAnnotation_tryGetColumnIndex_Static_ZDED3A0F(f) {
|
|
94
|
+
return tryGetOntologyAnnotationIndex(f);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function ARCtrl_OntologyAnnotation__OntologyAnnotation_TryGetColumnIndex(this$) {
|
|
98
|
+
return tryGetOntologyAnnotationIndex(this$);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function ARCtrl_OntologyAnnotation__OntologyAnnotation_setColumnIndex_Static(i, oa) {
|
|
102
|
+
return setOntologyAnnotationIndex(i, oa);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function ARCtrl_OntologyAnnotation__OntologyAnnotation_SetColumnIndex_Z524259A4(this$, i) {
|
|
106
|
+
setOntologyAnnotationIndexInplace(i, this$);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Create a ISAJson Factor from ISATab string entries
|
|
111
|
+
*/
|
|
112
|
+
export function ARCtrl_Process_Factor__Factor_fromStringWithColumnIndex_Static(name, term, source, accession, valueIndex) {
|
|
113
|
+
return Factor.fromString(name, term, source, accession, [createOrderComment(valueIndex)]);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function ARCtrl_Process_Factor__Factor_getColumnIndex_Static_7206F0D9(f) {
|
|
117
|
+
return value(tryGetFactorIndex(f));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function ARCtrl_Process_Factor__Factor_GetColumnIndex(this$) {
|
|
121
|
+
return value(tryGetFactorIndex(this$));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function ARCtrl_Process_Factor__Factor_tryGetColumnIndex_Static_7206F0D9(f) {
|
|
125
|
+
return tryGetFactorIndex(f);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function ARCtrl_Process_Factor__Factor_TryGetColumnIndex(this$) {
|
|
129
|
+
return tryGetFactorIndex(this$);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function ARCtrl_Process_FactorValue__FactorValue_getColumnIndex_Static_7105C732(f) {
|
|
133
|
+
return value(tryGetFactorColumnIndex(f));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function ARCtrl_Process_FactorValue__FactorValue_GetColumnIndex(this$) {
|
|
137
|
+
return value(tryGetFactorColumnIndex(this$));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function ARCtrl_Process_FactorValue__FactorValue_tryGetColumnIndex_Static_7105C732(f) {
|
|
141
|
+
return tryGetFactorColumnIndex(f);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function ARCtrl_Process_FactorValue__FactorValue_TryGetColumnIndex(this$) {
|
|
145
|
+
return tryGetFactorColumnIndex(this$);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Create a ISAJson characteristic from ISATab string entries
|
|
150
|
+
*/
|
|
151
|
+
export function ARCtrl_Process_MaterialAttribute__MaterialAttribute_fromStringWithColumnIndex_Static(term, source, accession, valueIndex) {
|
|
152
|
+
return MaterialAttribute_fromString_5980DC03(term, source, accession, [createOrderComment(valueIndex)]);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function ARCtrl_Process_MaterialAttribute__MaterialAttribute_getColumnIndex_Static_Z1E3B85DD(m) {
|
|
156
|
+
return value(tryGetCharacteristicIndex(m));
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function ARCtrl_Process_MaterialAttribute__MaterialAttribute_GetColumnIndex(this$) {
|
|
160
|
+
return value(tryGetCharacteristicIndex(this$));
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function ARCtrl_Process_MaterialAttribute__MaterialAttribute_tryGetColumnIndex_Static_Z1E3B85DD(m) {
|
|
164
|
+
return tryGetCharacteristicIndex(m);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function ARCtrl_Process_MaterialAttribute__MaterialAttribute_TryGetColumnIndex(this$) {
|
|
168
|
+
return tryGetCharacteristicIndex(this$);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function ARCtrl_Process_MaterialAttributeValue__MaterialAttributeValue_getColumnIndex_Static_Z772273B8(m) {
|
|
172
|
+
return value(tryGetCharacteristicColumnIndex(m));
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export function ARCtrl_Process_MaterialAttributeValue__MaterialAttributeValue_GetColumnIndex(this$) {
|
|
176
|
+
return value(tryGetCharacteristicColumnIndex(this$));
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export function ARCtrl_Process_MaterialAttributeValue__MaterialAttributeValue_tryGetColumnIndex_Static_Z772273B8(m) {
|
|
180
|
+
return tryGetCharacteristicColumnIndex(m);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function ARCtrl_Process_MaterialAttributeValue__MaterialAttributeValue_TryGetColumnIndex(this$) {
|
|
184
|
+
return tryGetCharacteristicColumnIndex(this$);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Create a ISAJson parameter from ISATab string entries
|
|
189
|
+
*/
|
|
190
|
+
export function ARCtrl_Process_ProtocolParameter__ProtocolParameter_fromStringWithColumnIndex_Static(term, source, accession, valueIndex) {
|
|
191
|
+
return ProtocolParameter.fromString(term, source, accession, [createOrderComment(valueIndex)]);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export function ARCtrl_Process_ProtocolParameter__ProtocolParameter_getColumnIndex_Static_Z11F87B15(p) {
|
|
195
|
+
return value(tryGetParameterIndex(p));
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export function ARCtrl_Process_ProtocolParameter__ProtocolParameter_GetColumnIndex(this$) {
|
|
199
|
+
return value(tryGetParameterIndex(this$));
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export function ARCtrl_Process_ProtocolParameter__ProtocolParameter_tryGetColumnIndex_Static_Z11F87B15(p) {
|
|
203
|
+
return tryGetParameterIndex(p);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export function ARCtrl_Process_ProtocolParameter__ProtocolParameter_TryGetColumnIndex(this$) {
|
|
207
|
+
return tryGetParameterIndex(this$);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export function ARCtrl_Process_ProcessParameterValue__ProcessParameterValue_getColumnIndex_Static_Z1576263(p) {
|
|
211
|
+
return value(tryGetParameterColumnIndex(p));
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export function ARCtrl_Process_ProcessParameterValue__ProcessParameterValue_GetColumnIndex(this$) {
|
|
215
|
+
return value(tryGetParameterColumnIndex(this$));
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export function ARCtrl_Process_ProcessParameterValue__ProcessParameterValue_tryGetColumnIndex_Static_Z1576263(p) {
|
|
219
|
+
return tryGetParameterColumnIndex(p);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export function ARCtrl_Process_ProcessParameterValue__ProcessParameterValue_TryGetColumnIndex(this$) {
|
|
223
|
+
return tryGetParameterColumnIndex(this$);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Create a ISAJson Factor from ISATab string entries
|
|
228
|
+
*/
|
|
229
|
+
export function ARCtrl_Process_Component__Component_fromStringWithColumnIndex_Static(name, term, source, accession, valueIndex) {
|
|
230
|
+
return Component_fromISAString_7C9A7CF8(name, term, source, accession, [createOrderComment(valueIndex)]);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export function ARCtrl_Process_Component__Component_getColumnIndex_Static_Z685B8F25(f) {
|
|
234
|
+
return value(tryGetComponentIndex(f));
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export function ARCtrl_Process_Component__Component_GetColumnIndex(this$) {
|
|
238
|
+
return value(tryGetComponentIndex(this$));
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export function ARCtrl_Process_Component__Component_tryGetColumnIndex_Static_Z685B8F25(f) {
|
|
242
|
+
return tryGetComponentIndex(f);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export function ARCtrl_Process_Component__Component_TryGetColumnIndex(this$) {
|
|
246
|
+
return tryGetComponentIndex(this$);
|
|
247
|
+
}
|
|
248
|
+
|