@nfdi4plants/arctrl 3.0.0-beta.4 → 3.0.0-beta.6
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/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +894 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +121 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +279 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +101 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Choice.js +187 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +156 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +183 -7
- package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +217 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +154 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +20 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Collections.js +30 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +68 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +6 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +98 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +18 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +601 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +10 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +760 -16
- package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +18 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +36 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +35 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +355 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +21 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +133 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +543 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +53 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +673 -41
- package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +197 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +128 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/SystemException.js +8 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/TimeSpan.js +180 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +20 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +406 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +2 -2
- package/dist/ts/ts/ARC.d.ts +12 -5
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +172 -93
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +8 -1
- package/dist/ts/ts/Contract/ArcAssay.js +14 -5
- package/dist/ts/ts/Contract/ArcInvestigation.js +10 -1
- package/dist/ts/ts/Contract/ArcRun.js +19 -6
- package/dist/ts/ts/Contract/ArcStudy.js +19 -6
- package/dist/ts/ts/Contract/ArcWorkflow.js +19 -6
- package/dist/ts/ts/Contract/Contract.js +42 -1
- package/dist/ts/ts/Contract/Datamap.js +61 -17
- package/dist/ts/ts/Contract/Git.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Git.js +22 -6
- package/dist/ts/ts/Contract/License.d.ts +5 -0
- package/dist/ts/ts/Contract/License.d.ts.map +1 -0
- package/dist/ts/ts/Contract/License.js +34 -0
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +31 -6
- package/dist/ts/ts/ContractIO/ContractIO.js +5 -5
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +16 -4
- package/dist/ts/ts/Conversion.js +321 -48
- package/dist/ts/ts/Core/ArcTypes.js +216 -15
- package/dist/ts/ts/Core/Comment.js +11 -1
- package/dist/ts/ts/Core/CommentList.js +77 -2
- package/dist/ts/ts/Core/Conversion.js +123 -43
- package/dist/ts/ts/Core/Data.js +9 -2
- package/dist/ts/ts/Core/DataContext.js +19 -4
- package/dist/ts/ts/Core/DataFile.js +38 -1
- package/dist/ts/ts/Core/DataMap.js +111 -5
- package/dist/ts/ts/Core/Helper/Collections.js +106 -5
- package/dist/ts/ts/Core/Helper/HashCodes.js +4 -4
- package/dist/ts/ts/Core/Helper/Identifier.js +100 -2
- package/dist/ts/ts/Core/Helper/Regex.js +134 -2
- package/dist/ts/ts/Core/Helper/SemVer.js +23 -2
- package/dist/ts/ts/Core/IdentifierSetters.d.ts +3 -1
- package/dist/ts/ts/Core/IdentifierSetters.d.ts.map +1 -1
- package/dist/ts/ts/Core/IdentifierSetters.js +27 -1
- package/dist/ts/ts/Core/OntologyAnnotation.js +4 -1
- package/dist/ts/ts/Core/OntologySourceReference.js +8 -1
- package/dist/ts/ts/Core/Person.js +8 -1
- package/dist/ts/ts/Core/Process/ColumnIndex.js +121 -4
- package/dist/ts/ts/Core/Process/Component.js +37 -4
- package/dist/ts/ts/Core/Process/Factor.js +9 -4
- package/dist/ts/ts/Core/Process/FactorValue.js +61 -4
- package/dist/ts/ts/Core/Process/Material.js +14 -4
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +41 -3
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +67 -4
- package/dist/ts/ts/Core/Process/MaterialType.js +15 -1
- package/dist/ts/ts/Core/Process/Process.js +150 -7
- package/dist/ts/ts/Core/Process/ProcessInput.js +48 -8
- package/dist/ts/ts/Core/Process/ProcessOutput.js +44 -7
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +10 -5
- package/dist/ts/ts/Core/Process/ProcessSequence.js +127 -6
- package/dist/ts/ts/Core/Process/Protocol.js +78 -4
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -2
- package/dist/ts/ts/Core/Process/Sample.js +21 -3
- package/dist/ts/ts/Core/Process/Source.js +13 -3
- package/dist/ts/ts/Core/Publication.js +8 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +34 -25
- package/dist/ts/ts/Core/Table/ArcTableAux.js +150 -23
- package/dist/ts/ts/Core/Table/ArcTables.js +24 -15
- package/dist/ts/ts/Core/Table/CompositeCell.js +7 -3
- package/dist/ts/ts/Core/Table/CompositeColumn.js +8 -4
- package/dist/ts/ts/Core/Table/CompositeHeader.js +18 -15
- package/dist/ts/ts/Core/Template.js +12 -2
- package/dist/ts/ts/Core/Templates.js +8 -4
- package/dist/ts/ts/Core/Value.js +7 -3
- package/dist/ts/ts/CrossAsync.js +11 -1
- package/dist/ts/ts/FileSystem/Commit.js +18 -0
- package/dist/ts/ts/FileSystem/FileSystem.js +8 -3
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +1 -0
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -13
- package/dist/ts/ts/FileSystem/Path.d.ts +2 -0
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +17 -3
- package/dist/ts/ts/Json/Assay.d.ts +1 -1
- package/dist/ts/ts/Json/Assay.js +28 -28
- package/dist/ts/ts/Json/Comment.js +10 -10
- package/dist/ts/ts/Json/Data.js +6 -6
- package/dist/ts/ts/Json/DataMap/DataContext.js +4 -4
- package/dist/ts/ts/Json/DataMap/DataMap.js +2 -2
- package/dist/ts/ts/Json/Decode.js +14 -9
- package/dist/ts/ts/Json/Encode.js +43 -11
- package/dist/ts/ts/Json/Investigation.js +40 -22
- package/dist/ts/ts/Json/OntologyAnnotation.js +5 -5
- package/dist/ts/ts/Json/OntologySourceReference.js +2 -2
- package/dist/ts/ts/Json/Person.js +26 -26
- package/dist/ts/ts/Json/Process/Component.d.ts +6 -4
- package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Component.js +27 -7
- package/dist/ts/ts/Json/Process/Factor.js +3 -3
- package/dist/ts/ts/Json/Process/FactorValue.js +8 -8
- package/dist/ts/ts/Json/Process/Material.js +9 -9
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +8 -8
- package/dist/ts/ts/Json/Process/Process.js +12 -12
- package/dist/ts/ts/Json/Process/ProcessInput.js +4 -4
- package/dist/ts/ts/Json/Process/ProcessOutput.js +3 -3
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +11 -8
- package/dist/ts/ts/Json/Process/Protocol.js +13 -13
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +4 -2
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +21 -12
- package/dist/ts/ts/Json/Process/Sample.js +14 -14
- package/dist/ts/ts/Json/Process/Source.js +9 -9
- package/dist/ts/ts/Json/Process/Value.js +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +1 -1
- package/dist/ts/ts/Json/Publication.js +6 -6
- package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -0
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +3 -3
- package/dist/ts/ts/Json/ROCrate/LDNode.js +19 -19
- package/dist/ts/ts/Json/Run.d.ts +11 -0
- package/dist/ts/ts/Json/Run.d.ts.map +1 -0
- package/dist/ts/ts/Json/Run.js +76 -0
- package/dist/ts/ts/Json/StringTable.js +1 -1
- package/dist/ts/ts/Json/Study.js +34 -34
- package/dist/ts/ts/Json/Table/ArcTable.js +29 -29
- package/dist/ts/ts/Json/Table/CellTable.js +6 -6
- package/dist/ts/ts/Json/Table/CompositeCell.js +4 -4
- package/dist/ts/ts/Json/Table/CompositeHeader.js +2 -2
- package/dist/ts/ts/Json/Table/IOType.js +1 -1
- package/dist/ts/ts/Json/Table/OATable.js +7 -7
- package/dist/ts/ts/Json/Table/Templates.js +92 -6
- package/dist/ts/ts/Json/Workflow.d.ts +11 -0
- package/dist/ts/ts/Json/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/Json/Workflow.js +93 -0
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +17 -1
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +18 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +16 -1
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +25 -1
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +24 -1
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +23 -1
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +35 -1
- package/dist/ts/ts/Json/context/rocrate/rocrate_context.js +61 -0
- package/dist/ts/ts/Json.d.ts +34 -2
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +129 -2
- package/dist/ts/ts/JsonIO/Assay.js +15 -3
- package/dist/ts/ts/JsonIO/Investigation.js +15 -3
- package/dist/ts/ts/JsonIO/LDObject.js +17 -3
- package/dist/ts/ts/JsonIO/OntologyAnnotation.js +12 -2
- package/dist/ts/ts/JsonIO/Person.d.ts +16 -0
- package/dist/ts/ts/JsonIO/Person.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Person.js +67 -0
- package/dist/ts/ts/JsonIO/Run.d.ts +10 -0
- package/dist/ts/ts/JsonIO/Run.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Run.js +50 -0
- package/dist/ts/ts/JsonIO/Study.js +15 -3
- package/dist/ts/ts/JsonIO/Table/Compression.js +3 -3
- package/dist/ts/ts/JsonIO/Table/Templates.js +60 -5
- package/dist/ts/ts/JsonIO/Workflow.d.ts +10 -0
- package/dist/ts/ts/JsonIO/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Workflow.js +50 -0
- package/dist/ts/ts/License.d.ts +39 -0
- package/dist/ts/ts/License.d.ts.map +1 -0
- package/dist/ts/ts/License.js +123 -0
- package/dist/ts/ts/ROCrate/Generic/Comment.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts +69 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.js +450 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts +1 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/Generic/Dataset.js +27 -1
- package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/File.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProcess.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Organization.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Person.js +7 -2
- package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +19 -15
- package/dist/ts/ts/ROCrate/Generic/Sample.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +5 -1
- package/dist/ts/ts/ROCrate/LDContext.js +15 -6
- package/dist/ts/ts/ROCrate/LDObject.js +53 -17
- package/dist/ts/ts/ROCrateIO.d.ts +9 -3
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +67 -14
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +18 -15
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +5 -4
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +40 -17
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +30 -15
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +32 -18
- package/dist/ts/ts/Spreadsheet/ArcRun.js +23 -8
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +22 -7
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +23 -8
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +75 -5
- package/dist/ts/ts/Spreadsheet/DataMap.js +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +4 -4
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +8 -8
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
- package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +6 -3
- package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +9 -3
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -4
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +7 -5
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +10 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +246 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +19 -13
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
- package/dist/ts/ts/Template.Web.js +5 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackage.js +8 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +10 -3
- package/dist/ts/ts/WebRequest/WebRequest.Node.js +1 -0
- package/dist/ts/ts/Xlsx.d.ts +21 -1
- package/dist/ts/ts/Xlsx.d.ts.map +1 -1
- package/dist/ts/ts/Xlsx.js +81 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +18 -2
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -2
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +27 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +14 -3
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +30 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +5 -1
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +65 -2
- package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +257 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +71 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +11 -1
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +188 -11
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +80 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +63 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +17 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/CellBuilder.fs.js +198 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Expression.fs.js +46 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/RowBuilder.fs.js +131 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Types.fs.js +307 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +38 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +11 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +14 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +31 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Cell.fs.js +65 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Column.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Row.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Table.fs.js +34 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +49 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Workbook.fs.js +44 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Worksheet.fs.js +129 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +17 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +42 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Json.fs.js +53 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +9 -9
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +1 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +5 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +730 -23
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +192 -7
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +45 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +15 -2
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +1383 -15
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +45 -4
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +10 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +5 -5
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +16 -6
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +26 -23
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +1 -1
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +8 -8
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +18 -2
- package/package.json +1 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.js +0 -3
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitignore.js +0 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ErrorReason$1_BadOneOf, ErrorReason$1_BadPrimitive } from '../../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { dateTime, resizeArrayOrSingleton } from '../Encode.js';
|
|
3
|
+
import { LDValue, LDRef, LDNode } from '../../ROCrate/LDObject.js';
|
|
4
|
+
import { encoder as encoder$1, decoder as decoder$2 } from './LDValue.js';
|
|
5
|
+
import { encoder as encoder$2, decoder as decoder$3 } from './LDRef.js';
|
|
6
|
+
import { equals, defaultOf, isIterable, getEnumerator, disposeSafe, int32ToString } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
7
7
|
import { list } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
8
|
-
import { toList, delay, map
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { toList, delay, map, enumerateFromFunctions, append, singleton, empty, collect } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
9
|
+
import { encoder as encoder$3, decoder as decoder$1 } from './LDContext.js';
|
|
10
|
+
import { value, unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
11
|
+
import { Getters$2_$ctor_Z4BE6C149, string, Getters$2__get_Errors, map as map$1, oneOf, int, decimal } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
12
12
|
import { Decode_resizeArrayOrSingleton, Helpers_prependPath } from '../Decode.js';
|
|
13
|
-
import {
|
|
13
|
+
import { isEmpty, length, head, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
14
14
|
import { FSharpResult$2_Error, FSharpResult$2_Ok } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
|
|
15
15
|
import { fold } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
16
16
|
|
|
@@ -48,10 +48,10 @@ function genericEncoder(obj) {
|
|
|
48
48
|
return dateTime(d);
|
|
49
49
|
} else if (obj instanceof LDValue) {
|
|
50
50
|
const v = obj;
|
|
51
|
-
return encoder$
|
|
51
|
+
return encoder$1(v);
|
|
52
52
|
} else if (obj instanceof LDRef) {
|
|
53
53
|
const r = obj;
|
|
54
|
-
return encoder$
|
|
54
|
+
return encoder$2(r);
|
|
55
55
|
} else if (obj instanceof LDNode) {
|
|
56
56
|
const o = obj;
|
|
57
57
|
return encoder(o);
|
|
@@ -63,7 +63,7 @@ function genericEncoder(obj) {
|
|
|
63
63
|
};
|
|
64
64
|
} else if (isIterable(obj)) {
|
|
65
65
|
const l = obj;
|
|
66
|
-
return list(toList(delay(() => map
|
|
66
|
+
return list(toList(delay(() => map(genericEncoder, enumerateFromFunctions(() => getEnumerator(l), (enumerator) => enumerator["System.Collections.IEnumerator.MoveNext"](), (enumerator_1) => enumerator_1["System.Collections.IEnumerator.get_Current"]())))));
|
|
67
67
|
} else {
|
|
68
68
|
throw new Error("Unknown type");
|
|
69
69
|
}
|
|
@@ -85,7 +85,7 @@ function encoder(obj) {
|
|
|
85
85
|
}
|
|
86
86
|
}), obj.AdditionalType)]) : empty(), delay(() => {
|
|
87
87
|
let matchValue;
|
|
88
|
-
return append((matchValue = obj.TryGetContext(), matchValue != null ? singleton(["@context", encoder$
|
|
88
|
+
return append((matchValue = obj.TryGetContext(), matchValue != null ? singleton(["@context", encoder$3(value(matchValue))]) : empty()), delay(() => collect((kv) => {
|
|
89
89
|
const l = kv[0].toLocaleLowerCase();
|
|
90
90
|
return l !== "id" && l !== "schematype" && l !== "additionaltype" && l !== "@context" && !l.startsWith("init@") && !l.startsWith("init_") ? singleton([kv[0], genericEncoder(kv[1])]) : empty();
|
|
91
91
|
}, obj.GetProperties(true))));
|
|
@@ -93,7 +93,7 @@ function encoder(obj) {
|
|
|
93
93
|
}));
|
|
94
94
|
return {
|
|
95
95
|
Encode(helpers_3) {
|
|
96
|
-
const arg = map
|
|
96
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_3)], values_1);
|
|
97
97
|
return helpers_3.encodeObject(arg);
|
|
98
98
|
}
|
|
99
99
|
};
|
|
@@ -117,7 +117,7 @@ function getDecoder(expectObject) {
|
|
|
117
117
|
id = objectArg_1.Field("@id", string);
|
|
118
118
|
let context;
|
|
119
119
|
const objectArg_2 = get$.Optional;
|
|
120
|
-
context = objectArg_2.Field("@context", decoder$
|
|
120
|
+
context = objectArg_2.Field("@context", decoder$1);
|
|
121
121
|
const o = new LDNode(id, t, unwrap((arg_7 = Decode_resizeArrayOrSingleton(string), objectArg_3 = get$.Optional, objectArg_3.Field("additionalType", arg_7))));
|
|
122
122
|
const enumerator = getEnumerator(properties);
|
|
123
123
|
try {
|
|
@@ -177,14 +177,14 @@ function getDecoder(expectObject) {
|
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
179
|
if (expectObject_1) {
|
|
180
|
-
return map((value_4) => value_4, decodeObject);
|
|
180
|
+
return map$1((value_4) => value_4, decodeObject);
|
|
181
181
|
} else {
|
|
182
|
-
return oneOf(ofArray([map((value_5) => value_5, decoder$
|
|
182
|
+
return oneOf(ofArray([map$1((value_5) => value_5, decoder$2), map$1((value_6) => value_6, decodeObject), map$1((value_7) => value_7, decoder$3), map$1((value_8) => value_8, resizeArray), map$1((value_9) => value_9, string), map$1((value_10) => value_10, int), map$1((value_11) => value_11, decimal)]));
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
return decode(expectObject);
|
|
186
186
|
}
|
|
187
|
-
const decoder = map((value) => value, getDecoder(true));
|
|
187
|
+
const decoder = map$1((value) => value, getDecoder(true));
|
|
188
188
|
const genericDecoder = getDecoder(false);
|
|
189
189
|
|
|
190
190
|
export { decoder, encoder, genericDecoder, genericEncoder, getDecoder };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Decoder$1, IEncodable } from '../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
2
|
+
import { OntologyAnnotation } from '../Core/OntologyAnnotation.js';
|
|
3
|
+
import { ArcRun } from '../Core/ArcTypes.js';
|
|
4
|
+
import { IMap } from '@fable-org/fable-library-js/Util.js';
|
|
5
|
+
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
6
|
+
import { CompositeCell_$union } from '../Core/Table/CompositeCell.js';
|
|
7
|
+
export declare function encoder(run: ArcRun): IEncodable;
|
|
8
|
+
export declare const decoder: Decoder$1<ArcRun>;
|
|
9
|
+
export declare function encoderCompressed(stringTable: IMap<string, int32>, oaTable: IMap<OntologyAnnotation, int32>, cellTable: IMap<CompositeCell_$union, int32>, run: ArcRun): IEncodable;
|
|
10
|
+
export declare function decoderCompressed(stringTable: string[], oaTable: OntologyAnnotation[], cellTable: CompositeCell_$union[]): Decoder$1<ArcRun>;
|
|
11
|
+
//# sourceMappingURL=Run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Run.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Json/Run.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAqB,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAG9G,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAUnE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAyB/C;AAED,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,MAAM,CAGpC,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,UAAU,CAyBnL;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,SAAS,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC,MAAM,CAAC,CAK5I"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
+
import { map, unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { tryInclude, tryIncludeSeq } from './Encode.js';
|
|
4
|
+
import { OntologyAnnotation_encoder, OntologyAnnotation_decoder } from './OntologyAnnotation.js';
|
|
5
|
+
import { encoder as encoder$1, decoder as decoder$2, encoderCompressed as encoderCompressed$1, decoderCompressed as decoderCompressed$2 } from './DataMap/DataMap.js';
|
|
6
|
+
import { encoder as encoder$2, decoder as decoder$1, encoderCompressed as encoderCompressed$2, decoderCompressed as decoderCompressed$1 } from './Table/ArcTable.js';
|
|
7
|
+
import { encoder as encoder$3, decoder as decoder$3 } from './Person.js';
|
|
8
|
+
import { encoder as encoder$4, decoder as decoder$4 } from './Comment.js';
|
|
9
|
+
import { map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
10
|
+
import { ArcRun } from '../Core/ArcTypes.js';
|
|
11
|
+
import { object, string, resizeArray } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
12
|
+
|
|
13
|
+
function encoder(run) {
|
|
14
|
+
let value;
|
|
15
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["Identifier", (value = run.Identifier, {
|
|
16
|
+
Encode(helpers) {
|
|
17
|
+
return helpers.encodeString(value);
|
|
18
|
+
}
|
|
19
|
+
})], tryInclude("Title", (value_1) => ({
|
|
20
|
+
Encode(helpers_1) {
|
|
21
|
+
return helpers_1.encodeString(value_1);
|
|
22
|
+
}
|
|
23
|
+
}), run.Title), tryInclude("Description", (value_3) => ({
|
|
24
|
+
Encode(helpers_2) {
|
|
25
|
+
return helpers_2.encodeString(value_3);
|
|
26
|
+
}
|
|
27
|
+
}), run.Description), tryInclude("MeasurementType", OntologyAnnotation_encoder, run.MeasurementType), tryInclude("TechnologyType", OntologyAnnotation_encoder, run.TechnologyType), tryInclude("TechnologyPlatform", OntologyAnnotation_encoder, run.TechnologyPlatform), tryInclude("DataMap", encoder$1, run.DataMap), tryIncludeSeq("WorkflowIdentifiers", (value_5) => ({
|
|
28
|
+
Encode(helpers_3) {
|
|
29
|
+
return helpers_3.encodeString(value_5);
|
|
30
|
+
}
|
|
31
|
+
}), run.WorkflowIdentifiers), tryIncludeSeq("Tables", encoder$2, run.Tables), tryIncludeSeq("Performers", encoder$3, run.Performers), tryIncludeSeq("Comments", encoder$4, run.Comments)]));
|
|
32
|
+
return {
|
|
33
|
+
Encode(helpers_4) {
|
|
34
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_4)], values_1);
|
|
35
|
+
return helpers_4.encodeObject(arg);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
const decoder = object((get$) => {
|
|
40
|
+
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10;
|
|
41
|
+
return ArcRun.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("WorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(decoder$1), objectArg_7 = get$.Optional, objectArg_7.Field("Tables", arg_15))), unwrap((objectArg_8 = get$.Optional, objectArg_8.Field("DataMap", decoder$2))), unwrap((arg_19 = resizeArray(decoder$3), objectArg_9 = get$.Optional, objectArg_9.Field("Performers", arg_19))), unwrap((arg_21 = resizeArray(decoder$4), objectArg_10 = get$.Optional, objectArg_10.Field("Comments", arg_21))));
|
|
42
|
+
});
|
|
43
|
+
function encoderCompressed(stringTable, oaTable, cellTable, run) {
|
|
44
|
+
let value;
|
|
45
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["Identifier", (value = run.Identifier, {
|
|
46
|
+
Encode(helpers) {
|
|
47
|
+
return helpers.encodeString(value);
|
|
48
|
+
}
|
|
49
|
+
})], tryInclude("Title", (value_1) => ({
|
|
50
|
+
Encode(helpers_1) {
|
|
51
|
+
return helpers_1.encodeString(value_1);
|
|
52
|
+
}
|
|
53
|
+
}), run.Title), tryInclude("Description", (value_3) => ({
|
|
54
|
+
Encode(helpers_2) {
|
|
55
|
+
return helpers_2.encodeString(value_3);
|
|
56
|
+
}
|
|
57
|
+
}), run.Description), tryInclude("MeasurementType", OntologyAnnotation_encoder, run.MeasurementType), tryInclude("TechnologyType", OntologyAnnotation_encoder, run.TechnologyType), tryInclude("TechnologyPlatform", OntologyAnnotation_encoder, run.TechnologyPlatform), tryInclude("DataMap", (dm) => encoderCompressed$1(stringTable, oaTable, cellTable, dm), run.DataMap), tryIncludeSeq("WorkflowIdentifiers", (value_5) => ({
|
|
58
|
+
Encode(helpers_3) {
|
|
59
|
+
return helpers_3.encodeString(value_5);
|
|
60
|
+
}
|
|
61
|
+
}), run.WorkflowIdentifiers), tryIncludeSeq("Tables", (table) => encoderCompressed$2(stringTable, oaTable, cellTable, table), run.Tables), tryIncludeSeq("Performers", encoder$3, run.Performers), tryIncludeSeq("Comments", encoder$4, run.Comments)]));
|
|
62
|
+
return {
|
|
63
|
+
Encode(helpers_4) {
|
|
64
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_4)], values_1);
|
|
65
|
+
return helpers_4.encodeObject(arg);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function decoderCompressed(stringTable, oaTable, cellTable) {
|
|
70
|
+
return object((get$) => {
|
|
71
|
+
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10;
|
|
72
|
+
return ArcRun.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("WorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(decoderCompressed$1(stringTable, oaTable, cellTable)), objectArg_7 = get$.Optional, objectArg_7.Field("Tables", arg_15))), unwrap((arg_17 = decoderCompressed$2(stringTable, oaTable, cellTable), objectArg_8 = get$.Optional, objectArg_8.Field("DataMap", arg_17))), unwrap((arg_19 = resizeArray(decoder$3), objectArg_9 = get$.Optional, objectArg_9.Field("Performers", arg_19))), unwrap((arg_21 = resizeArray(decoder$4), objectArg_10 = get$.Optional, objectArg_10.Field("Comments", arg_21))));
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { decoder, decoderCompressed, encoder, encoderCompressed };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fill, setItem, map, item } from '../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
2
2
|
import { iterate } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
3
3
|
import { defaultOf } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
4
4
|
import { array, string, int } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
package/dist/ts/ts/Json/Study.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ofArray, map as map$
|
|
4
|
-
import {
|
|
1
|
+
import { ResizeArray_map, Option_fromValueWithDefault } from '../Core/Helper/Collections.js';
|
|
2
|
+
import { defaultArg, value, map, unwrap, bind, defaultArgWith } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { tryFind, choose, ofArray, singleton, map as map$2, empty } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
4
|
+
import { ArcAssay, ArcStudy } from '../Core/ArcTypes.js';
|
|
5
5
|
import { tryInclude, tryIncludeSeq, tryIncludeList } from './Encode.js';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
6
|
+
import { encoder as encoder$1, decoder as decoder$1, ROCrate_encoder as ROCrate_encoder$1, ROCrate_decoder as ROCrate_decoder$3, ISAJson_encoder as ISAJson_encoder$2, ISAJson_decoder as ISAJson_decoder$4 } from './Publication.js';
|
|
7
|
+
import { encoder as encoder$2, decoder as decoder$2, ROCrate_encoder as ROCrate_encoder$2, ROCrate_decoder as ROCrate_decoder$4, ISAJson_encoder as ISAJson_encoder$3, ISAJson_decoder as ISAJson_decoder$3 } from './Person.js';
|
|
8
|
+
import { OntologyAnnotation_encoder, OntologyAnnotation_decoder, OntologyAnnotation_ROCrate_encoderDefinedTerm, OntologyAnnotation_ROCrate_decoderDefinedTerm, OntologyAnnotation_ISAJson_encoder, OntologyAnnotation_ISAJson_decoder } from './OntologyAnnotation.js';
|
|
9
|
+
import { encoder as encoder$3, decoder as decoder$3, encoderCompressed as encoderCompressed$1, decoderCompressed as decoderCompressed$1 } from './Table/ArcTable.js';
|
|
10
|
+
import { encoder as encoder$4, decoder as decoder$4, encoderCompressed as encoderCompressed$2, decoderCompressed as decoderCompressed$2 } from './DataMap/DataMap.js';
|
|
11
|
+
import { encoder as encoder$5, decoder as decoder$5, ROCrate_encoder as ROCrate_encoder$6, ROCrate_decoder as ROCrate_decoder$5, ISAJson_encoder as ISAJson_encoder$6, ISAJson_decoder as ISAJson_decoder$5 } from './Comment.js';
|
|
12
|
+
import { map as map$1, isEmpty } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
13
|
+
import { object, string, resizeArray, list as list$1 } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
14
14
|
import { getEnumerator, disposeSafe } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
15
15
|
import { replace } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { list
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
16
|
+
import { Study_tryFileNameFromIdentifier, Study_tryIdentifierFromFileName, createMissingIdentifier, Study_fileNameFromIdentifier } from '../Core/Helper/Identifier.js';
|
|
17
|
+
import { ARCtrl_ArcTables__ArcTables_GetProcesses, ARCtrl_ArcTables__ArcTables_fromProcesses_Static_62A3309D, Person_setSourceAssayComment, Person_getSourceAssayIdentifiersFromComments, Person_removeSourceAssayComments } from '../Core/Conversion.js';
|
|
18
|
+
import { list } from '../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
19
|
+
import { ROCrate_encoder as ROCrate_encoder$3, ROCrate_decoder as ROCrate_decoder$2, ISAJson_encoder as ISAJson_encoder$4, ISAJson_decoder as ISAJson_decoder$1 } from './Process/Process.js';
|
|
20
|
+
import { ROCrate_encoder as ROCrate_encoder$4, ROCrate_decoder as ROCrate_decoder$1, ISAJson_encoder as ISAJson_encoder$5, ISAJson_decoder as ISAJson_decoder$2 } from './Assay.js';
|
|
21
21
|
import { ROCrate_encoder as ROCrate_encoder$5 } from './Data.js';
|
|
22
22
|
import { getData, getUnits, getFactors, getCharacteristics, getProtocols } from '../Core/Process/ProcessSequence.js';
|
|
23
23
|
import { context_jsonvalue } from './context/rocrate/isa_study_context.js';
|
|
@@ -64,7 +64,7 @@ function encoder(study) {
|
|
|
64
64
|
}), study.RegisteredAssayIdentifiers), tryIncludeSeq("Comments", encoder$5, study.Comments)]));
|
|
65
65
|
return {
|
|
66
66
|
Encode(helpers_6) {
|
|
67
|
-
const arg = map$
|
|
67
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_6)], values_1);
|
|
68
68
|
return helpers_6.encodeObject(arg);
|
|
69
69
|
}
|
|
70
70
|
};
|
|
@@ -102,7 +102,7 @@ function encoderCompressed(stringTable, oaTable, cellTable, study) {
|
|
|
102
102
|
}), study.RegisteredAssayIdentifiers), tryIncludeSeq("Comments", encoder$5, study.Comments)]));
|
|
103
103
|
return {
|
|
104
104
|
Encode(helpers_6) {
|
|
105
|
-
const arg = map$
|
|
105
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_6)], values_1);
|
|
106
106
|
return helpers_6.encodeObject(arg);
|
|
107
107
|
}
|
|
108
108
|
};
|
|
@@ -110,7 +110,7 @@ function encoderCompressed(stringTable, oaTable, cellTable, study) {
|
|
|
110
110
|
function decoderCompressed(stringTable, oaTable, cellTable) {
|
|
111
111
|
return object((get$) => {
|
|
112
112
|
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, arg_11, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10, arg_23, objectArg_11;
|
|
113
|
-
return new ArcStudy((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("SubmissionDate", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("PublicReleaseDate", string))), unwrap((arg_11 = resizeArray(decoder$1), objectArg_5 = get$.Optional, objectArg_5.Field("Publications", arg_11))), unwrap((arg_13 = resizeArray(decoder$2), objectArg_6 = get$.Optional, objectArg_6.Field("Contacts", arg_13))), unwrap((arg_15 = resizeArray(OntologyAnnotation_decoder), objectArg_7 = get$.Optional, objectArg_7.Field("StudyDesignDescriptors", arg_15))), unwrap((arg_17 = resizeArray(decoderCompressed$1(stringTable, oaTable, cellTable)), objectArg_8 = get$.Optional, objectArg_8.Field("Tables", arg_17))), unwrap((arg_19 = decoderCompressed$2(), objectArg_9 = get$.Optional, objectArg_9.Field("DataMap", arg_19))), unwrap((arg_21 = resizeArray(string), objectArg_10 = get$.Optional, objectArg_10.Field("RegisteredAssayIdentifiers", arg_21))), unwrap((arg_23 = resizeArray(decoder$5), objectArg_11 = get$.Optional, objectArg_11.Field("Comments", arg_23))));
|
|
113
|
+
return new ArcStudy((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("SubmissionDate", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("PublicReleaseDate", string))), unwrap((arg_11 = resizeArray(decoder$1), objectArg_5 = get$.Optional, objectArg_5.Field("Publications", arg_11))), unwrap((arg_13 = resizeArray(decoder$2), objectArg_6 = get$.Optional, objectArg_6.Field("Contacts", arg_13))), unwrap((arg_15 = resizeArray(OntologyAnnotation_decoder), objectArg_7 = get$.Optional, objectArg_7.Field("StudyDesignDescriptors", arg_15))), unwrap((arg_17 = resizeArray(decoderCompressed$1(stringTable, oaTable, cellTable)), objectArg_8 = get$.Optional, objectArg_8.Field("Tables", arg_17))), unwrap((arg_19 = decoderCompressed$2(stringTable, oaTable, cellTable), objectArg_9 = get$.Optional, objectArg_9.Field("DataMap", arg_19))), unwrap((arg_21 = resizeArray(string), objectArg_10 = get$.Optional, objectArg_10.Field("RegisteredAssayIdentifiers", arg_21))), unwrap((arg_23 = resizeArray(decoder$5), objectArg_11 = get$.Optional, objectArg_11.Field("Comments", arg_23))));
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
function ROCrate_genID(a) {
|
|
@@ -122,7 +122,7 @@ function ROCrate_genID(a) {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
function ROCrate_encoder(assays, s) {
|
|
125
|
-
let value, value_3, studyName,
|
|
125
|
+
let value, value_3, studyName, assayName_1;
|
|
126
126
|
const fileName = Study_tryFileNameFromIdentifier(s.Identifier);
|
|
127
127
|
const processes = ARCtrl_ArcTables__ArcTables_GetProcesses(s);
|
|
128
128
|
const assays_1 = Helper_getAssayInformation(assays, s);
|
|
@@ -130,7 +130,7 @@ function ROCrate_encoder(assays, s) {
|
|
|
130
130
|
Encode(helpers) {
|
|
131
131
|
return helpers.encodeString(value);
|
|
132
132
|
}
|
|
133
|
-
})], ["@type", list
|
|
133
|
+
})], ["@type", list(singleton({
|
|
134
134
|
Encode(helpers_1) {
|
|
135
135
|
return helpers_1.encodeString("Study");
|
|
136
136
|
}
|
|
@@ -162,10 +162,10 @@ function ROCrate_encoder(assays, s) {
|
|
|
162
162
|
Encode(helpers_8) {
|
|
163
163
|
return helpers_8.encodeString(value_12);
|
|
164
164
|
}
|
|
165
|
-
}), s.PublicReleaseDate), tryIncludeSeq("publications", ROCrate_encoder$1, s.Publications), tryIncludeSeq("people", ROCrate_encoder$2, s.Contacts), tryIncludeList("processSequence", (studyName = s.Identifier, (oa_3) => ROCrate_encoder$3(studyName, void 0, oa_3)), processes), tryIncludeSeq("assays", (
|
|
165
|
+
}), s.PublicReleaseDate), tryIncludeSeq("publications", ROCrate_encoder$1, s.Publications), tryIncludeSeq("people", ROCrate_encoder$2, s.Contacts), tryIncludeList("processSequence", (studyName = s.Identifier, (oa_3) => ROCrate_encoder$3(studyName, void 0, oa_3)), processes), tryIncludeSeq("assays", (assayName_1 = s.Identifier, (a_1) => ROCrate_encoder$4(assayName_1, a_1)), assays_1), tryIncludeList("dataFiles", ROCrate_encoder$5, getData(processes)), tryIncludeSeq("comments", ROCrate_encoder$6, s.Comments), ["@context", context_jsonvalue]]));
|
|
166
166
|
return {
|
|
167
167
|
Encode(helpers_9) {
|
|
168
|
-
const arg = map$
|
|
168
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_9)], values_1);
|
|
169
169
|
return helpers_9.encodeObject(arg);
|
|
170
170
|
}
|
|
171
171
|
};
|
|
@@ -174,15 +174,15 @@ const ROCrate_decoder = object((get$) => {
|
|
|
174
174
|
let objectArg, arg_6, objectArg_2, objectArg_3, objectArg_4, objectArg_5, objectArg_6, arg_16, objectArg_7, arg_18, objectArg_8, arg_20, objectArg_9, arg_22, objectArg_10;
|
|
175
175
|
const identifier = defaultArg(bind(Study_tryIdentifierFromFileName, (objectArg = get$.Optional, objectArg.Field("filename", string))), createMissingIdentifier());
|
|
176
176
|
let assays;
|
|
177
|
-
const arg_3 = list(ROCrate_decoder$
|
|
177
|
+
const arg_3 = list$1(ROCrate_decoder$1);
|
|
178
178
|
const objectArg_1 = get$.Optional;
|
|
179
179
|
assays = objectArg_1.Field("assays", arg_3);
|
|
180
180
|
const assayIdentifiers = map((arg_4) => {
|
|
181
|
-
const collection = map$
|
|
181
|
+
const collection = map$2((a) => a.Identifier, arg_4);
|
|
182
182
|
return Array.from(collection);
|
|
183
183
|
}, assays);
|
|
184
|
-
const tables = map((ps) => ARCtrl_ArcTables__ArcTables_fromProcesses_Static_62A3309D(ps).Tables, (arg_6 = list(ROCrate_decoder$
|
|
185
|
-
return [new ArcStudy(identifier, unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("title", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("description", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("submissionDate", string))), unwrap((objectArg_6 = get$.Optional, objectArg_6.Field("publicReleaseDate", string))), unwrap((arg_16 = resizeArray(ROCrate_decoder$
|
|
184
|
+
const tables = map((ps) => ARCtrl_ArcTables__ArcTables_fromProcesses_Static_62A3309D(ps).Tables, (arg_6 = list$1(ROCrate_decoder$2), objectArg_2 = get$.Optional, objectArg_2.Field("processSequence", arg_6)));
|
|
185
|
+
return [new ArcStudy(identifier, unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("title", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("description", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("submissionDate", string))), unwrap((objectArg_6 = get$.Optional, objectArg_6.Field("publicReleaseDate", string))), unwrap((arg_16 = resizeArray(ROCrate_decoder$3), objectArg_7 = get$.Optional, objectArg_7.Field("publications", arg_16))), unwrap((arg_18 = resizeArray(ROCrate_decoder$4), objectArg_8 = get$.Optional, objectArg_8.Field("people", arg_18))), unwrap((arg_20 = resizeArray(OntologyAnnotation_ROCrate_decoderDefinedTerm), objectArg_9 = get$.Optional, objectArg_9.Field("studyDesignDescriptors", arg_20))), unwrap(tables), void 0, unwrap(assayIdentifiers), unwrap((arg_22 = resizeArray(ROCrate_decoder$5), objectArg_10 = get$.Optional, objectArg_10.Field("comments", arg_22)))), defaultArg(assays, empty())];
|
|
186
186
|
});
|
|
187
187
|
function ISAJson_encoder(idMap, assays, s) {
|
|
188
188
|
const f = (s_1) => {
|
|
@@ -251,7 +251,7 @@ function ISAJson_encoder(idMap, assays, s) {
|
|
|
251
251
|
}), study.PublicReleaseDate), tryIncludeSeq("publications", (oa_2) => ISAJson_encoder$2(idMap, oa_2), study.Publications), tryIncludeSeq("people", (person_2) => ISAJson_encoder$3(idMap, person_2), study.Contacts), tryIncludeSeq("studyDesignDescriptors", (oa_3) => OntologyAnnotation_ISAJson_encoder(idMap, oa_3), study.StudyDesignDescriptors), encodedProtocols, encodedMaterials, tryIncludeList("processSequence", (studyName_1 = s_1.Identifier, (oa_4) => ISAJson_encoder$4(studyName_1, void 0, idMap, oa_4)), processes), tryIncludeSeq("assays", (studyName_2 = s_1.Identifier, (a_2) => ISAJson_encoder$5(studyName_2, idMap, a_2)), assays_1), encodedFactors, encodedCharacteristics, encodedUnits, tryIncludeSeq("comments", (comment) => ISAJson_encoder$6(idMap, comment), study.Comments)]));
|
|
252
252
|
return {
|
|
253
253
|
Encode(helpers_7) {
|
|
254
|
-
const arg = map$
|
|
254
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_7)], values_1);
|
|
255
255
|
return helpers_7.encodeObject(arg);
|
|
256
256
|
}
|
|
257
257
|
};
|
|
@@ -272,13 +272,13 @@ const ISAJson_decoder = Decode_objectNoAdditionalProperties(ISAJson_allowedField
|
|
|
272
272
|
const tables = map((arg_6) => {
|
|
273
273
|
const a = ARCtrl_ArcTables__ArcTables_fromProcesses_Static_62A3309D(arg_6);
|
|
274
274
|
return a.Tables;
|
|
275
|
-
}, (arg_5 = list(ISAJson_decoder$1), objectArg_2 = get$.Optional, objectArg_2.Field("processSequence", arg_5)));
|
|
275
|
+
}, (arg_5 = list$1(ISAJson_decoder$1), objectArg_2 = get$.Optional, objectArg_2.Field("processSequence", arg_5)));
|
|
276
276
|
let assays;
|
|
277
|
-
const arg_8 = list(ISAJson_decoder$
|
|
277
|
+
const arg_8 = list$1(ISAJson_decoder$2);
|
|
278
278
|
const objectArg_3 = get$.Optional;
|
|
279
279
|
assays = objectArg_3.Field("assays", arg_8);
|
|
280
280
|
let personsRaw;
|
|
281
|
-
const arg_10 = resizeArray(ISAJson_decoder$
|
|
281
|
+
const arg_10 = resizeArray(ISAJson_decoder$3);
|
|
282
282
|
const objectArg_4 = get$.Optional;
|
|
283
283
|
personsRaw = objectArg_4.Field("people", arg_10);
|
|
284
284
|
const persons = [];
|
|
@@ -317,10 +317,10 @@ const ISAJson_decoder = Decode_objectNoAdditionalProperties(ISAJson_allowedField
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
const assayIdentifiers = map((arg_11) => {
|
|
320
|
-
const collection = map$
|
|
320
|
+
const collection = map$2((a_1) => a_1.Identifier, arg_11);
|
|
321
321
|
return Array.from(collection);
|
|
322
322
|
}, assays);
|
|
323
|
-
return [new ArcStudy(identifier, unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("title", string))), unwrap((objectArg_6 = get$.Optional, objectArg_6.Field("description", string))), unwrap((objectArg_7 = get$.Optional, objectArg_7.Field("submissionDate", string))), unwrap((objectArg_8 = get$.Optional, objectArg_8.Field("publicReleaseDate", string))), unwrap((arg_21 = resizeArray(ISAJson_decoder$
|
|
323
|
+
return [new ArcStudy(identifier, unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("title", string))), unwrap((objectArg_6 = get$.Optional, objectArg_6.Field("description", string))), unwrap((objectArg_7 = get$.Optional, objectArg_7.Field("submissionDate", string))), unwrap((objectArg_8 = get$.Optional, objectArg_8.Field("publicReleaseDate", string))), unwrap((arg_21 = resizeArray(ISAJson_decoder$4), objectArg_9 = get$.Optional, objectArg_9.Field("publications", arg_21))), unwrap(persons.length === 0 ? void 0 : persons), unwrap((arg_23 = resizeArray(OntologyAnnotation_ISAJson_decoder), objectArg_10 = get$.Optional, objectArg_10.Field("studyDesignDescriptors", arg_23))), unwrap(tables), void 0, unwrap(assayIdentifiers), unwrap((arg_25 = resizeArray(ISAJson_decoder$5), objectArg_11 = get$.Optional, objectArg_11.Field("comments", arg_25)))), defaultArg(assays, empty())];
|
|
324
324
|
});
|
|
325
325
|
|
|
326
326
|
export { Helper_getAssayInformation, ISAJson_allowedFields, ISAJson_decoder, ISAJson_encoder, ROCrate_decoder, ROCrate_encoder, ROCrate_genID, decoder, decoderCompressed, encoder, encoderCompressed };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { arrayHash, equalArrays, getEnumerator, disposeSafe, int32ToString
|
|
2
|
-
import {
|
|
1
|
+
import { compareArrays, arrayHash, equalArrays, getEnumerator, disposeSafe, int32ToString } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
2
|
+
import { encoder as encoder$1, decoder as decoder$2 } from './CompositeCell.js';
|
|
3
3
|
import { getItemFromDict } from '../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
4
4
|
import { ErrorReason$1_BadPrimitive } from '../../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
5
|
-
import { toList, delay,
|
|
6
|
-
import { list
|
|
7
|
-
import {
|
|
5
|
+
import { toList, delay, append, singleton, map, empty } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
6
|
+
import { list } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
7
|
+
import { encoder as encoder$2, decoder as decoder$1 } from './CompositeHeader.js';
|
|
8
8
|
import { intDictionary } from '../Encode.js';
|
|
9
|
-
import { ColumnValueRefs_Constant, ColumnValueRefs_Sparse,
|
|
9
|
+
import { ensureCellHashInValueMap, ColumnValueRefs_Constant, ColumnValueRefs_Sparse, ArcTableValues, Unchecked_setCellAt } from '../../Core/Table/ArcTableAux.js';
|
|
10
10
|
import { ArcTable } from '../../Core/Table/ArcTable.js';
|
|
11
|
-
import {
|
|
11
|
+
import { object, list as list$1, map$0027, tuple2, int, string, map as map$1, resizeArray, array, Helpers_prependPath } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
12
12
|
import { defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
13
|
-
import {
|
|
13
|
+
import { empty as empty$1, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
14
14
|
import { Dictionary } from '../../../node_modules/@fable-org/fable-library-js/MutableMap.js';
|
|
15
|
-
import { empty as empty$
|
|
15
|
+
import { empty as empty$2 } from '../../../node_modules/@fable-org/fable-library-js/Map.js';
|
|
16
16
|
import { Decode_tryOneOf, Decode_intDictionary, Decode_dictionary } from '../Decode.js';
|
|
17
|
-
import { FSharpResult$
|
|
17
|
+
import { FSharpResult$2_Error, FSharpResult$2_Ok } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
|
|
18
18
|
import { decodeCell, encodeCell } from './CellTable.js';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
19
|
+
import { iterateIndexed, fold, setItem, fill, item } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
20
|
+
import { encodeString, decodeString } from '../StringTable.js';
|
|
21
21
|
|
|
22
22
|
function encoder(table) {
|
|
23
23
|
const valueMap = table.Values.ValueMap;
|
|
24
|
-
const cellEncoder = (hash) => encoder$
|
|
24
|
+
const cellEncoder = (hash) => encoder$1(getItemFromDict(valueMap, hash));
|
|
25
25
|
const values = toList(delay(() => {
|
|
26
26
|
let value;
|
|
27
27
|
return append(singleton(["name", (value = table.Name, {
|
|
28
28
|
Encode(helpers) {
|
|
29
29
|
return helpers.encodeString(value);
|
|
30
30
|
}
|
|
31
|
-
})]), delay(() => append(table.Headers.length !== 0 ? singleton(["headers", list
|
|
31
|
+
})]), delay(() => append(table.Headers.length !== 0 ? singleton(["headers", list(toList(delay(() => map(encoder$2, table.Headers))))]) : empty(), delay(() => table.Values.RowCount !== 0 ? append(singleton(["columns", intDictionary((col) => {
|
|
32
32
|
if (col.tag === /* Sparse */
|
|
33
33
|
1) {
|
|
34
34
|
return intDictionary(cellEncoder, col.fields[0]);
|
|
@@ -42,11 +42,11 @@ function encoder(table) {
|
|
|
42
42
|
return helpers_1.encodeSignedIntegralNumber(value_1);
|
|
43
43
|
}
|
|
44
44
|
})]);
|
|
45
|
-
})) : empty
|
|
45
|
+
})) : empty()))));
|
|
46
46
|
}));
|
|
47
47
|
return {
|
|
48
48
|
Encode(helpers_2) {
|
|
49
|
-
const arg = map
|
|
49
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_2)], values);
|
|
50
50
|
return helpers_2.encodeObject(arg);
|
|
51
51
|
}
|
|
52
52
|
};
|
|
@@ -54,9 +54,9 @@ function encoder(table) {
|
|
|
54
54
|
const decoderV2Deprecated = object((get$) => {
|
|
55
55
|
let arg_1, objectArg, arg_3, objectArg_1, objectArg_2;
|
|
56
56
|
let decodedHeader;
|
|
57
|
-
const collection = defaultArg((arg_1 = list(decoder$
|
|
57
|
+
const collection = defaultArg((arg_1 = list$1(decoder$1), objectArg = get$.Optional, objectArg.Field("header", arg_1)), empty$1());
|
|
58
58
|
decodedHeader = Array.from(collection);
|
|
59
|
-
const decodedValues = new Dictionary(defaultArg((arg_3 = map$0027(tuple2(int, int), decoder$
|
|
59
|
+
const decodedValues = new Dictionary(defaultArg((arg_3 = map$0027(tuple2(int, int), decoder$2), objectArg_1 = get$.Optional, objectArg_1.Field("values", arg_3)), empty$2({
|
|
60
60
|
Compare: compareArrays
|
|
61
61
|
})), {
|
|
62
62
|
Equals: equalArrays,
|
|
@@ -76,11 +76,11 @@ const decoderV2Deprecated = object((get$) => {
|
|
|
76
76
|
});
|
|
77
77
|
const decoder = (() => {
|
|
78
78
|
const valueMap = /* @__PURE__ */ new Map([]);
|
|
79
|
-
const cellDecoder = map((cell) => ensureCellHashInValueMap(cell, valueMap), decoder$
|
|
80
|
-
const columnDecoder = Decode_tryOneOf(ofArray([map(ColumnValueRefs_Constant, cellDecoder), map(ColumnValueRefs_Sparse, Decode_intDictionary(cellDecoder))]));
|
|
79
|
+
const cellDecoder = map$1((cell) => ensureCellHashInValueMap(cell, valueMap), decoder$2);
|
|
80
|
+
const columnDecoder = Decode_tryOneOf(ofArray([map$1(ColumnValueRefs_Constant, cellDecoder), map$1(ColumnValueRefs_Sparse, Decode_intDictionary(cellDecoder))]));
|
|
81
81
|
const decoder_1 = object((get$) => {
|
|
82
82
|
let arg_1, objectArg, arg_3, objectArg_1, objectArg_2, objectArg_3;
|
|
83
|
-
const decodedHeader = defaultArg((arg_1 = resizeArray(decoder$
|
|
83
|
+
const decodedHeader = defaultArg((arg_1 = resizeArray(decoder$1), objectArg = get$.Optional, objectArg.Field("headers", arg_1)), []);
|
|
84
84
|
const values = new ArcTableValues(defaultArg((arg_3 = Decode_dictionary(int, columnDecoder), objectArg_1 = get$.Optional, objectArg_1.Field("columns", arg_3)), /* @__PURE__ */ new Map([])), valueMap, defaultArg((objectArg_2 = get$.Optional, objectArg_2.Field("rowCount", int)), 0));
|
|
85
85
|
return ArcTable.fromArcTableValues((objectArg_3 = get$.Required, objectArg_3.Field("name", string)), decodedHeader, values);
|
|
86
86
|
});
|
|
@@ -96,7 +96,7 @@ function decoderCompressedColumn(cellTable, table, columnIndex) {
|
|
|
96
96
|
const matchValue = array(decodeCell(cellTable)).Decode(helper, column);
|
|
97
97
|
if (matchValue.tag === /* Error */
|
|
98
98
|
1) {
|
|
99
|
-
matchValue.fields[0];
|
|
99
|
+
const err = matchValue.fields[0];
|
|
100
100
|
const rangeDecoder = object((get$) => {
|
|
101
101
|
let from;
|
|
102
102
|
const objectArg = get$.Required;
|
|
@@ -157,7 +157,7 @@ function arrayi(decoderi) {
|
|
|
157
157
|
}
|
|
158
158
|
function encoderCompressed(stringTable, oaTable, cellTable, table) {
|
|
159
159
|
const cellEncoder = (hash) => encodeCell(cellTable, getItemFromDict(table.Values.ValueMap, hash));
|
|
160
|
-
const values = toList(delay(() => append(singleton(["n", encodeString(stringTable, table.Name)]), delay(() => append(table.Headers.length !== 0 ? singleton(["h", list
|
|
160
|
+
const values = toList(delay(() => append(singleton(["n", encodeString(stringTable, table.Name)]), delay(() => append(table.Headers.length !== 0 ? singleton(["h", list(toList(delay(() => map(encoder$2, table.Headers))))]) : empty(), delay(() => table.Values.RowCount !== 0 ? append(singleton(["c", intDictionary((col) => {
|
|
161
161
|
if (col.tag === /* Sparse */
|
|
162
162
|
1) {
|
|
163
163
|
return intDictionary(cellEncoder, col.fields[0]);
|
|
@@ -171,10 +171,10 @@ function encoderCompressed(stringTable, oaTable, cellTable, table) {
|
|
|
171
171
|
return helpers.encodeSignedIntegralNumber(value);
|
|
172
172
|
}
|
|
173
173
|
})]);
|
|
174
|
-
})) : empty
|
|
174
|
+
})) : empty()))))));
|
|
175
175
|
return {
|
|
176
176
|
Encode(helpers_1) {
|
|
177
|
-
const arg = map
|
|
177
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_1)], values);
|
|
178
178
|
return helpers_1.encodeObject(arg);
|
|
179
179
|
}
|
|
180
180
|
};
|
|
@@ -183,7 +183,7 @@ function decoderCompressedV2Deprecated(stringTable, oaTable, cellTable) {
|
|
|
183
183
|
return object((get$) => {
|
|
184
184
|
let arg_1, objectArg, arg_3, objectArg_1, arg_5, objectArg_2;
|
|
185
185
|
let decodedHeader;
|
|
186
|
-
const collection = defaultArg((arg_1 = list(decoder$
|
|
186
|
+
const collection = defaultArg((arg_1 = list$1(decoder$1), objectArg = get$.Optional, objectArg.Field("h", arg_1)), empty$1());
|
|
187
187
|
decodedHeader = Array.from(collection);
|
|
188
188
|
const table = ArcTable.create((arg_3 = decodeString(stringTable), objectArg_1 = get$.Required, objectArg_1.Field("n", arg_3)), decodedHeader, []);
|
|
189
189
|
arg_5 = arrayi((columnIndex) => decoderCompressedColumn(cellTable, table, columnIndex)), objectArg_2 = get$.Optional, objectArg_2.Field("c", arg_5);
|
|
@@ -192,11 +192,11 @@ function decoderCompressedV2Deprecated(stringTable, oaTable, cellTable) {
|
|
|
192
192
|
}
|
|
193
193
|
function decoderCompressed(stringTable, oaTable, cellTable) {
|
|
194
194
|
const valueMap = /* @__PURE__ */ new Map([]);
|
|
195
|
-
const cellDecoder = map((i) => ensureCellHashInValueMap(item(i, cellTable), valueMap), int);
|
|
196
|
-
const columnDecoder = Decode_tryOneOf(ofArray([map(ColumnValueRefs_Constant, cellDecoder), map(ColumnValueRefs_Sparse, Decode_intDictionary(cellDecoder))]));
|
|
195
|
+
const cellDecoder = map$1((i) => ensureCellHashInValueMap(item(i, cellTable), valueMap), int);
|
|
196
|
+
const columnDecoder = Decode_tryOneOf(ofArray([map$1(ColumnValueRefs_Constant, cellDecoder), map$1(ColumnValueRefs_Sparse, Decode_intDictionary(cellDecoder))]));
|
|
197
197
|
const decoder_1 = object((get$) => {
|
|
198
198
|
let arg_1, objectArg, arg_3, objectArg_1, objectArg_2, arg_7, objectArg_3;
|
|
199
|
-
const decodedHeader = defaultArg((arg_1 = resizeArray(decoder$
|
|
199
|
+
const decodedHeader = defaultArg((arg_1 = resizeArray(decoder$1), objectArg = get$.Optional, objectArg.Field("h", arg_1)), []);
|
|
200
200
|
const values = new ArcTableValues(defaultArg((arg_3 = Decode_dictionary(int, columnDecoder), objectArg_1 = get$.Optional, objectArg_1.Field("c", arg_3)), /* @__PURE__ */ new Map([])), valueMap, defaultArg((objectArg_2 = get$.Optional, objectArg_2.Field("r", int)), 0));
|
|
201
201
|
return ArcTable.fromArcTableValues((arg_7 = decodeString(stringTable), objectArg_3 = get$.Required, objectArg_3.Field("n", arg_7)), decodedHeader, values);
|
|
202
202
|
});
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { toArray, map
|
|
1
|
+
import { toArray, map, sortBy } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
2
2
|
import { Dictionary_items, Dictionary_tryFind } from '../../Core/Helper/Collections.js';
|
|
3
3
|
import { comparePrimitives } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
4
|
-
import { map, item } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
5
|
-
import {
|
|
4
|
+
import { map as map$1, item } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
5
|
+
import { encoderCompressed, decoderCompressed } from './CompositeCell.js';
|
|
6
6
|
import { array, object, int } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
7
7
|
import { value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
8
8
|
import { addToDict } from '../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
9
9
|
|
|
10
10
|
function arrayFromMap(otm) {
|
|
11
|
-
return toArray(map
|
|
11
|
+
return toArray(map((kv_1) => kv_1[0], sortBy((kv) => kv[1], Dictionary_items(otm), {
|
|
12
12
|
Compare: comparePrimitives
|
|
13
13
|
})));
|
|
14
14
|
}
|
|
15
15
|
function encoder(stringTable, oaTable, ot) {
|
|
16
|
-
const values = map((cc) => encoderCompressed(stringTable, oaTable, cc), ot);
|
|
16
|
+
const values = map$1((cc) => encoderCompressed(stringTable, oaTable, cc), ot);
|
|
17
17
|
return {
|
|
18
18
|
Encode(helpers) {
|
|
19
|
-
const arg = map((v) => v.Encode(helpers), values);
|
|
19
|
+
const arg = map$1((v) => v.Encode(helpers), values);
|
|
20
20
|
return helpers.encodeArray(arg);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OntologyAnnotation_encoder, OntologyAnnotation_decoder } from '../OntologyAnnotation.js';
|
|
2
2
|
import { singleton, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
3
|
-
import {
|
|
3
|
+
import { encoder as encoder$1, decoder as decoder$1, compressedEncoder, compressedDecoder } from '../Data.js';
|
|
4
4
|
import { list } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
5
5
|
import { map } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
6
6
|
import { CompositeCell_FreeText, CompositeCell_Term, CompositeCell_Unitized, CompositeCell_Data } from '../../Core/Table/CompositeCell.js';
|
|
7
7
|
import { object, string, index } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
8
8
|
import { toFail, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { encodeOA, decodeOA } from './OATable.js';
|
|
10
|
+
import { encodeString, decodeString } from '../StringTable.js';
|
|
11
11
|
|
|
12
12
|
function encoder(cc) {
|
|
13
13
|
const oaToJsonString = OntologyAnnotation_encoder;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OntologyAnnotation_encoder, OntologyAnnotation_decoder } from '../OntologyAnnotation.js';
|
|
2
2
|
import { empty, singleton } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
3
|
-
import {
|
|
3
|
+
import { encoder as encoder$1, decoder as decoder$1 } from './IOType.js';
|
|
4
4
|
import { list } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
5
5
|
import { map } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
6
6
|
import { CompositeHeader_Characteristic, CompositeHeader_Parameter, CompositeHeader_Component, CompositeHeader_Factor, CompositeHeader_Input, CompositeHeader_Output, CompositeHeader_ProtocolType, CompositeHeader_ProtocolREF, CompositeHeader_ProtocolDescription, CompositeHeader_ProtocolUri, CompositeHeader_ProtocolVersion, CompositeHeader_Performer, CompositeHeader_Date, CompositeHeader_Comment, CompositeHeader_FreeText } from '../../Core/Table/CompositeHeader.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
2
2
|
import { IOType } from '../../Core/Table/CompositeHeader.js';
|
|
3
|
-
import { andThen,
|
|
3
|
+
import { andThen, succeed, string } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
4
4
|
|
|
5
5
|
function encoder(io) {
|
|
6
6
|
const value = toString(io);
|