@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
|
@@ -7,6 +7,7 @@ import { LDLabProtocol } from './LabProtocol.js';
|
|
|
7
7
|
import { LDPropertyValue } from './PropertyValue.js';
|
|
8
8
|
import { ResizeArray_map } from '../../Core/Helper/Collections.js';
|
|
9
9
|
import { clean } from '../Helper.js';
|
|
10
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
10
11
|
|
|
11
12
|
class LDLabProcess {
|
|
12
13
|
constructor() {
|
|
@@ -218,5 +219,8 @@ class LDLabProcess {
|
|
|
218
219
|
return lp;
|
|
219
220
|
}
|
|
220
221
|
}
|
|
222
|
+
function LDLabProcess_$reflection() {
|
|
223
|
+
return class_type("ARCtrl.ROCrate.LDLabProcess", void 0, LDLabProcess);
|
|
224
|
+
}
|
|
221
225
|
|
|
222
|
-
export { LDLabProcess };
|
|
226
|
+
export { LDLabProcess, LDLabProcess_$reflection };
|
|
@@ -7,6 +7,7 @@ import { clean } from '../Helper.js';
|
|
|
7
7
|
import { join } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
8
8
|
import { append as append$1, singleton, isEmpty } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
9
9
|
import { createMissingIdentifier } from '../../Core/Helper/Identifier.js';
|
|
10
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
10
11
|
|
|
11
12
|
class LDLabProtocol {
|
|
12
13
|
constructor() {
|
|
@@ -253,5 +254,8 @@ class LDLabProtocol {
|
|
|
253
254
|
return lp;
|
|
254
255
|
}
|
|
255
256
|
}
|
|
257
|
+
function LDLabProtocol_$reflection() {
|
|
258
|
+
return class_type("ARCtrl.ROCrate.LDLabProtocol", void 0, LDLabProtocol);
|
|
259
|
+
}
|
|
256
260
|
|
|
257
|
-
export { LDLabProtocol };
|
|
261
|
+
export { LDLabProtocol, LDLabProtocol_$reflection };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { unwrap, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
2
|
import { LDNode } from '../LDObject.js';
|
|
3
3
|
import { clean } from '../Helper.js';
|
|
4
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
4
5
|
|
|
5
6
|
class LDOrganization {
|
|
6
7
|
constructor() {
|
|
@@ -59,5 +60,8 @@ class LDOrganization {
|
|
|
59
60
|
return o;
|
|
60
61
|
}
|
|
61
62
|
}
|
|
63
|
+
function LDOrganization_$reflection() {
|
|
64
|
+
return class_type("ARCtrl.ROCrate.LDOrganization", void 0, LDOrganization);
|
|
65
|
+
}
|
|
62
66
|
|
|
63
|
-
export { LDOrganization };
|
|
67
|
+
export { LDOrganization, LDOrganization_$reflection };
|
|
@@ -6,6 +6,7 @@ import { LDPostalAddress } from './PostalAddress.js';
|
|
|
6
6
|
import { ResizeArray_map } from '../../Core/Helper/Collections.js';
|
|
7
7
|
import { clean } from '../Helper.js';
|
|
8
8
|
import { tryGetOrcidURL } from '../../Core/Helper/ORCID.js';
|
|
9
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
9
10
|
|
|
10
11
|
class LDPerson {
|
|
11
12
|
constructor() {
|
|
@@ -218,11 +219,12 @@ class LDPerson {
|
|
|
218
219
|
return p.SetProperty(LDPerson.additionalName, n, unwrap(context));
|
|
219
220
|
}
|
|
220
221
|
static tryGetAddress(p, graph, context) {
|
|
222
|
+
let r;
|
|
221
223
|
const matchValue = p.TryGetPropertyAsSingleton(LDPerson.address, unwrap(context));
|
|
222
224
|
let matchResult, r_1, a, s;
|
|
223
225
|
if (matchValue != null) {
|
|
224
226
|
if (value(matchValue) instanceof LDRef) {
|
|
225
|
-
if (value(matchValue), graph != null) {
|
|
227
|
+
if (r = value(matchValue), graph != null) {
|
|
226
228
|
matchResult = 0;
|
|
227
229
|
r_1 = value(matchValue);
|
|
228
230
|
} else {
|
|
@@ -373,5 +375,8 @@ class LDPerson {
|
|
|
373
375
|
return person;
|
|
374
376
|
}
|
|
375
377
|
}
|
|
378
|
+
function LDPerson_$reflection() {
|
|
379
|
+
return class_type("ARCtrl.ROCrate.LDPerson", void 0, LDPerson);
|
|
380
|
+
}
|
|
376
381
|
|
|
377
|
-
export { LDPerson };
|
|
382
|
+
export { LDPerson, LDPerson_$reflection };
|
|
@@ -5,6 +5,7 @@ import { isEmpty, reduce } from '../../../node_modules/@fable-org/fable-library-
|
|
|
5
5
|
import { clean } from '../Helper.js';
|
|
6
6
|
import { createMissingIdentifier } from '../../Core/Helper/Identifier.js';
|
|
7
7
|
import { toText, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
8
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
8
9
|
|
|
9
10
|
class LDPostalAddress {
|
|
10
11
|
constructor() {
|
|
@@ -139,5 +140,8 @@ class LDPostalAddress {
|
|
|
139
140
|
return s;
|
|
140
141
|
}
|
|
141
142
|
}
|
|
143
|
+
function LDPostalAddress_$reflection() {
|
|
144
|
+
return class_type("ARCtrl.ROCrate.LDPostalAddress", void 0, LDPostalAddress);
|
|
145
|
+
}
|
|
142
146
|
|
|
143
|
-
export { LDPostalAddress };
|
|
147
|
+
export { LDPostalAddress, LDPostalAddress_$reflection };
|
|
@@ -5,6 +5,7 @@ import { contains } from '../../../node_modules/@fable-org/fable-library-js/Arra
|
|
|
5
5
|
import { stringHash } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
6
6
|
import { clean } from '../Helper.js';
|
|
7
7
|
import { iterate } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
8
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
8
9
|
|
|
9
10
|
class LDPropertyValue {
|
|
10
11
|
constructor() {
|
|
@@ -340,20 +341,20 @@ class LDPropertyValue {
|
|
|
340
341
|
return LDPropertyValue.validate(pv, unwrap(context)) && LDPropertyValue.getNameAsString(pv, unwrap(context)) === "FragmentDescriptor";
|
|
341
342
|
}
|
|
342
343
|
static validateDOI(pv, context) {
|
|
343
|
-
let id;
|
|
344
|
+
let value$1, id;
|
|
344
345
|
if (LDPropertyValue.validate(pv, unwrap(context))) {
|
|
345
346
|
const matchValue = LDPropertyValue.tryGetNameAsString(pv, unwrap(context));
|
|
346
347
|
const matchValue_1 = LDPropertyValue.tryGetValueAsString(pv, unwrap(context));
|
|
347
348
|
const matchValue_2 = LDPropertyValue.tryGetPropertyIDAsString(pv, unwrap(context));
|
|
348
|
-
let matchResult;
|
|
349
|
+
let matchResult, id_1, name_1, value_1;
|
|
349
350
|
if (matchValue != null) {
|
|
350
351
|
if (matchValue_1 != null) {
|
|
351
352
|
if (matchValue_2 != null) {
|
|
352
|
-
if (value(matchValue_1), id = value(matchValue_2), value(matchValue) === LDPropertyValue.doiKey && id === LDPropertyValue.doiURL) {
|
|
353
|
+
if (value$1 = value(matchValue_1), id = value(matchValue_2), value(matchValue) === LDPropertyValue.doiKey && id === LDPropertyValue.doiURL) {
|
|
353
354
|
matchResult = 0;
|
|
354
|
-
value(matchValue_2);
|
|
355
|
-
value(matchValue);
|
|
356
|
-
value(matchValue_1);
|
|
355
|
+
id_1 = value(matchValue_2);
|
|
356
|
+
name_1 = value(matchValue);
|
|
357
|
+
value_1 = value(matchValue_1);
|
|
357
358
|
} else {
|
|
358
359
|
matchResult = 1;
|
|
359
360
|
}
|
|
@@ -377,20 +378,20 @@ class LDPropertyValue {
|
|
|
377
378
|
}
|
|
378
379
|
}
|
|
379
380
|
static validatePubMedID(pv, context) {
|
|
380
|
-
let id;
|
|
381
|
+
let value$1, id;
|
|
381
382
|
if (LDPropertyValue.validate(pv, unwrap(context))) {
|
|
382
383
|
const matchValue = LDPropertyValue.tryGetNameAsString(pv, unwrap(context));
|
|
383
384
|
const matchValue_1 = LDPropertyValue.tryGetValueAsString(pv, unwrap(context));
|
|
384
385
|
const matchValue_2 = LDPropertyValue.tryGetPropertyIDAsString(pv, unwrap(context));
|
|
385
|
-
let matchResult;
|
|
386
|
+
let matchResult, id_1, name_1, value_1;
|
|
386
387
|
if (matchValue != null) {
|
|
387
388
|
if (matchValue_1 != null) {
|
|
388
389
|
if (matchValue_2 != null) {
|
|
389
|
-
if (value(matchValue_1), id = value(matchValue_2), value(matchValue) === LDPropertyValue.pubmedIDKey && id === LDPropertyValue.pubmedIDURL) {
|
|
390
|
+
if (value$1 = value(matchValue_1), id = value(matchValue_2), value(matchValue) === LDPropertyValue.pubmedIDKey && id === LDPropertyValue.pubmedIDURL) {
|
|
390
391
|
matchResult = 0;
|
|
391
|
-
value(matchValue_2);
|
|
392
|
-
value(matchValue);
|
|
393
|
-
value(matchValue_1);
|
|
392
|
+
id_1 = value(matchValue_2);
|
|
393
|
+
name_1 = value(matchValue);
|
|
394
|
+
value_1 = value(matchValue_1);
|
|
394
395
|
} else {
|
|
395
396
|
matchResult = 1;
|
|
396
397
|
}
|
|
@@ -414,9 +415,9 @@ class LDPropertyValue {
|
|
|
414
415
|
}
|
|
415
416
|
}
|
|
416
417
|
static genId(name, value$1, propertyID, prefix) {
|
|
417
|
-
let value_2, value_1;
|
|
418
|
+
let pid_1, value_2, pid, value_1;
|
|
418
419
|
const prefix_1 = defaultArg(prefix, "PV");
|
|
419
|
-
return clean(value$1 == null ? propertyID != null ? (value(propertyID), `#${prefix_1}_${name}`) : `#${prefix_1}_${name}` : propertyID == null ? (value_2 = value(value$1), `#${prefix_1}_${name}_${value_2}`) : (value(propertyID), value_1 = value(value$1), `#${prefix_1}_${name}_${value_1}`));
|
|
420
|
+
return clean(value$1 == null ? propertyID != null ? (pid_1 = value(propertyID), `#${prefix_1}_${name}`) : `#${prefix_1}_${name}` : propertyID == null ? (value_2 = value(value$1), `#${prefix_1}_${name}_${value_2}`) : (pid = value(propertyID), value_1 = value(value$1), `#${prefix_1}_${name}_${value_1}`));
|
|
420
421
|
}
|
|
421
422
|
static genIdComponent(name, value, propertyID) {
|
|
422
423
|
return LDPropertyValue.genId(name, unwrap(value), unwrap(propertyID), "Component");
|
|
@@ -508,5 +509,8 @@ class LDPropertyValue {
|
|
|
508
509
|
return LDPropertyValue.validatePubMedID(pv, unwrap(context)) ? LDPropertyValue.getValueAsString(pv, unwrap(context)) : void 0;
|
|
509
510
|
}
|
|
510
511
|
}
|
|
512
|
+
function LDPropertyValue_$reflection() {
|
|
513
|
+
return class_type("ARCtrl.ROCrate.LDPropertyValue", void 0, LDPropertyValue);
|
|
514
|
+
}
|
|
511
515
|
|
|
512
|
-
export { LDPropertyValue };
|
|
516
|
+
export { LDPropertyValue, LDPropertyValue_$reflection };
|
|
@@ -4,6 +4,7 @@ import { LDPropertyValue } from './PropertyValue.js';
|
|
|
4
4
|
import { clean } from '../Helper.js';
|
|
5
5
|
import { contains } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
6
6
|
import { stringHash } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
7
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
7
8
|
|
|
8
9
|
class LDSample {
|
|
9
10
|
constructor() {
|
|
@@ -127,5 +128,8 @@ class LDSample {
|
|
|
127
128
|
return s;
|
|
128
129
|
}
|
|
129
130
|
}
|
|
131
|
+
function LDSample_$reflection() {
|
|
132
|
+
return class_type("ARCtrl.ROCrate.LDSample", void 0, LDSample);
|
|
133
|
+
}
|
|
130
134
|
|
|
131
|
-
export { LDSample };
|
|
135
|
+
export { LDSample, LDSample_$reflection };
|
|
@@ -5,6 +5,7 @@ import { LDPerson } from './Person.js';
|
|
|
5
5
|
import { LDDefinedTerm } from './DefinedTerm.js';
|
|
6
6
|
import { LDComment } from './Comment.js';
|
|
7
7
|
import { clean } from '../Helper.js';
|
|
8
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
8
9
|
|
|
9
10
|
class LDScholarlyArticle {
|
|
10
11
|
constructor() {
|
|
@@ -169,5 +170,8 @@ class LDScholarlyArticle {
|
|
|
169
170
|
return s;
|
|
170
171
|
}
|
|
171
172
|
}
|
|
173
|
+
function LDScholarlyArticle_$reflection() {
|
|
174
|
+
return class_type("ARCtrl.ROCrate.LDScholarlyArticle", void 0, LDScholarlyArticle);
|
|
175
|
+
}
|
|
172
176
|
|
|
173
|
-
export { LDScholarlyArticle };
|
|
177
|
+
export { LDScholarlyArticle, LDScholarlyArticle_$reflection };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ActivePatterns_$007CRegex$007C_$007C } from '../Core/Helper/Regex.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { value, defaultArg, unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { toString, FSharpRef } from '../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
4
4
|
import { Uri } from '../../node_modules/@fable-org/fable-library-js/Uri.js';
|
|
5
|
-
import { getEnumerator, disposeSafe, safeHash, stringHash, defaultOf
|
|
5
|
+
import { getEnumerator, disposeSafe, safeHash, comparePrimitives, stringHash, defaultOf } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
6
6
|
import { addToDict, getItemFromDict, tryGetValue } from '../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
7
7
|
import { reduce, map, sort, tryPick } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
8
8
|
import { StringDictionary_ofSeq } from '../Core/Helper/Collections.js';
|
|
9
9
|
import { boxHashSeq, mergeHashes, hash } from '../Core/Helper/HashCodes.js';
|
|
10
|
+
import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
10
11
|
|
|
11
12
|
const IRIHelper_compactIRIRegex = "(?<prefix>.*):(?<suffix>[^\\/][^\\/].*)";
|
|
12
13
|
function IRIHelper_$007CCompactIri$007C_$007C(termDefition) {
|
|
@@ -219,7 +220,8 @@ class LDContext {
|
|
|
219
220
|
outArg = v;
|
|
220
221
|
})), outArg];
|
|
221
222
|
matchValue = patternInput[0] ? patternInput[1] : void 0;
|
|
222
|
-
if (matchValue == null)
|
|
223
|
+
if (matchValue == null) {
|
|
224
|
+
} else {
|
|
223
225
|
const key_4 = IRIHelper_combine(value(matchValue), suffix);
|
|
224
226
|
const value_3 = key;
|
|
225
227
|
const dict_3 = this$.reverseMappings;
|
|
@@ -237,7 +239,8 @@ class LDContext {
|
|
|
237
239
|
outArg_1 = v_2;
|
|
238
240
|
})), outArg_1];
|
|
239
241
|
matchValue_1 = patternInput_1[0] ? patternInput_1[1] : void 0;
|
|
240
|
-
if (matchValue_1 == null)
|
|
242
|
+
if (matchValue_1 == null) {
|
|
243
|
+
} else {
|
|
241
244
|
const term = value(matchValue_1)[1];
|
|
242
245
|
const key_6 = IRIHelper_combine(value$1, value(matchValue_1)[0]);
|
|
243
246
|
const value_4 = term;
|
|
@@ -284,5 +287,11 @@ class LDContext {
|
|
|
284
287
|
throw new Error("TryCompactIRI is Not implemented yet");
|
|
285
288
|
}
|
|
286
289
|
}
|
|
290
|
+
function LDContext_$reflection() {
|
|
291
|
+
return class_type("ARCtrl.ROCrate.LDContext", void 0, LDContext);
|
|
292
|
+
}
|
|
293
|
+
function LDContext_$ctor_7878CD77(mappings, baseContexts) {
|
|
294
|
+
return new LDContext(mappings, baseContexts);
|
|
295
|
+
}
|
|
287
296
|
|
|
288
|
-
export { IRIHelper_$007CCompactIri$007C_$007C, IRIHelper_combine, IRIHelper_combineOptional, IRIHelper_compactIRIRegex, LDContext };
|
|
297
|
+
export { IRIHelper_$007CCompactIri$007C_$007C, IRIHelper_combine, IRIHelper_combineOptional, IRIHelper_compactIRIRegex, LDContext, LDContext_$ctor_7878CD77, LDContext_$reflection };
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { isIterable,
|
|
2
|
-
import { defaultArg, value,
|
|
3
|
-
import { DynamicObj } from '../fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js';
|
|
1
|
+
import { isIterable, equals, identityHash, stringHash, defaultOf, getEnumerator, curry2, structuralHash, isArrayLike } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
2
|
+
import { defaultArg, value, unwrap, some, map } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { DynamicObj, DynamicObj_$reflection } from '../fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js';
|
|
4
4
|
import { mergeHashes } from '../fable_modules/DynamicObj.7.0.1/HashCodes.fs.js';
|
|
5
|
+
import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
5
6
|
import { addToDict, getItemFromDict, tryGetValue } from '../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
6
7
|
import { FSharpRef } from '../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
7
8
|
import { LDContext } from './LDContext.js';
|
|
8
|
-
import { exists, toList, delay,
|
|
9
|
+
import { iterate, filter, choose, exists, toList, delay, enumerateWhile, singleton, empty, tryFind, map as map$1, enumerateFromFunctions, collect, append } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
9
10
|
import { ResizeArray_map } from '../Core/Helper/Collections.js';
|
|
10
11
|
import { List_distinctBy } from '../../node_modules/@fable-org/fable-library-js/Seq2.js';
|
|
11
12
|
|
|
12
13
|
function ActivePattern_$007CNonStringEnumerable$007C_$007C(o) {
|
|
13
14
|
if (typeof o === "string") {
|
|
15
|
+
const s = o;
|
|
14
16
|
return void 0;
|
|
15
17
|
} else if (isIterable(o)) {
|
|
16
18
|
return o;
|
|
@@ -18,6 +20,9 @@ function ActivePattern_$007CNonStringEnumerable$007C_$007C(o) {
|
|
|
18
20
|
return void 0;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
23
|
+
function DynamicObj_DynamicObj__DynamicObj_HasProperty_Z721C83C5(this$, propertyName) {
|
|
24
|
+
return this$.TryGetPropertyValue(propertyName) != null;
|
|
25
|
+
}
|
|
21
26
|
class LDValue {
|
|
22
27
|
constructor(value, valueType) {
|
|
23
28
|
this["valueType@54"] = defaultArg(valueType, "string");
|
|
@@ -49,6 +54,12 @@ class LDValue {
|
|
|
49
54
|
return mergeHashes(123, identityHash(this$.Value)) | 0;
|
|
50
55
|
}
|
|
51
56
|
}
|
|
57
|
+
function LDValue_$reflection() {
|
|
58
|
+
return class_type("ARCtrl.ROCrate.LDValue", void 0, LDValue);
|
|
59
|
+
}
|
|
60
|
+
function LDValue_$ctor_77809003(value, valueType) {
|
|
61
|
+
return new LDValue(value, valueType);
|
|
62
|
+
}
|
|
52
63
|
class LDRef {
|
|
53
64
|
constructor(id) {
|
|
54
65
|
this["id@75"] = id;
|
|
@@ -71,6 +82,12 @@ class LDRef {
|
|
|
71
82
|
return mergeHashes(123, stringHash(this$.Id)) | 0;
|
|
72
83
|
}
|
|
73
84
|
}
|
|
85
|
+
function LDRef_$reflection() {
|
|
86
|
+
return class_type("ARCtrl.ROCrate.LDRef", void 0, LDRef);
|
|
87
|
+
}
|
|
88
|
+
function LDRef_$ctor_Z721C83C5(id) {
|
|
89
|
+
return new LDRef(id);
|
|
90
|
+
}
|
|
74
91
|
class LDGraph extends DynamicObj {
|
|
75
92
|
constructor(id, nodes, context) {
|
|
76
93
|
super();
|
|
@@ -79,11 +96,13 @@ class LDGraph extends DynamicObj {
|
|
|
79
96
|
this["id@94"] = id;
|
|
80
97
|
this.mappings = /* @__PURE__ */ new Map([]);
|
|
81
98
|
this["init@90"] = 1;
|
|
82
|
-
if (context == null)
|
|
99
|
+
if (context == null) {
|
|
100
|
+
} else {
|
|
83
101
|
const ctx = value(context);
|
|
84
102
|
this$.contents.SetContext(ctx);
|
|
85
103
|
}
|
|
86
|
-
if (nodes == null)
|
|
104
|
+
if (nodes == null) {
|
|
105
|
+
} else {
|
|
87
106
|
iterate((node) => {
|
|
88
107
|
addToDict(this.mappings, node.Id, node);
|
|
89
108
|
}, value(nodes));
|
|
@@ -192,6 +211,12 @@ class LDGraph extends DynamicObj {
|
|
|
192
211
|
}, this$.GetDynamicPropertyHelpers());
|
|
193
212
|
}
|
|
194
213
|
}
|
|
214
|
+
function LDGraph_$reflection() {
|
|
215
|
+
return class_type("ARCtrl.ROCrate.LDGraph", void 0, LDGraph, DynamicObj_$reflection());
|
|
216
|
+
}
|
|
217
|
+
function LDGraph_$ctor_5FC797DE(id, nodes, context) {
|
|
218
|
+
return new LDGraph(id, nodes, context);
|
|
219
|
+
}
|
|
195
220
|
class LDNode extends DynamicObj {
|
|
196
221
|
constructor(id, schemaType, additionalType, context) {
|
|
197
222
|
super();
|
|
@@ -201,7 +226,8 @@ class LDNode extends DynamicObj {
|
|
|
201
226
|
this["schemaType@178"] = schemaType;
|
|
202
227
|
this["additionalType@179"] = defaultArg(additionalType, []);
|
|
203
228
|
this["init@175-1"] = 1;
|
|
204
|
-
if (context == null)
|
|
229
|
+
if (context == null) {
|
|
230
|
+
} else {
|
|
205
231
|
const ctx = value(context);
|
|
206
232
|
this$.contents.SetContext(ctx);
|
|
207
233
|
}
|
|
@@ -342,6 +368,7 @@ class LDNode extends DynamicObj {
|
|
|
342
368
|
}
|
|
343
369
|
}
|
|
344
370
|
TryGetPropertyAsSingleNode(propertyName, graph, context) {
|
|
371
|
+
let r;
|
|
345
372
|
const this$ = this;
|
|
346
373
|
const matchValue = this$.TryGetPropertyAsSingleton(propertyName, unwrap(context));
|
|
347
374
|
let matchResult, n, r_1;
|
|
@@ -350,7 +377,7 @@ class LDNode extends DynamicObj {
|
|
|
350
377
|
matchResult = 0;
|
|
351
378
|
n = value(matchValue);
|
|
352
379
|
} else if (value(matchValue) instanceof LDRef) {
|
|
353
|
-
if (value(matchValue), graph != null) {
|
|
380
|
+
if (r = value(matchValue), graph != null) {
|
|
354
381
|
matchResult = 1;
|
|
355
382
|
r_1 = value(matchValue);
|
|
356
383
|
} else {
|
|
@@ -379,9 +406,10 @@ class LDNode extends DynamicObj {
|
|
|
379
406
|
const specificContext = this$.TryGetContext();
|
|
380
407
|
context_1 = LDContext.tryCombineOptional(context, specificContext);
|
|
381
408
|
const collection = choose((o) => {
|
|
409
|
+
let r;
|
|
382
410
|
let matchResult;
|
|
383
411
|
if (o instanceof LDRef) {
|
|
384
|
-
if (graph != null) {
|
|
412
|
+
if (r = o, graph != null) {
|
|
385
413
|
matchResult = 0;
|
|
386
414
|
} else {
|
|
387
415
|
matchResult = 2;
|
|
@@ -402,7 +430,7 @@ class LDNode extends DynamicObj {
|
|
|
402
430
|
if (filter == null) {
|
|
403
431
|
return n;
|
|
404
432
|
} else if (value(filter)(n, context_1)) {
|
|
405
|
-
value(map(curry2, filter));
|
|
433
|
+
const f_1 = value(map(curry2, filter));
|
|
406
434
|
return n;
|
|
407
435
|
} else {
|
|
408
436
|
return void 0;
|
|
@@ -414,7 +442,7 @@ class LDNode extends DynamicObj {
|
|
|
414
442
|
if (filter == null) {
|
|
415
443
|
return n_1;
|
|
416
444
|
} else if (value(filter)(n_1, context_1)) {
|
|
417
|
-
value(map(curry2, filter));
|
|
445
|
+
const f_3 = value(map(curry2, filter));
|
|
418
446
|
return n_1;
|
|
419
447
|
} else {
|
|
420
448
|
return void 0;
|
|
@@ -468,16 +496,17 @@ class LDNode extends DynamicObj {
|
|
|
468
496
|
}
|
|
469
497
|
SetOptionalProperty(propertyName, value$1, context) {
|
|
470
498
|
const this$ = this;
|
|
471
|
-
if (value$1 == null)
|
|
499
|
+
if (value$1 == null) {
|
|
500
|
+
} else {
|
|
472
501
|
const v = value(value$1);
|
|
473
502
|
this$.SetProperty(propertyName, v, unwrap(context));
|
|
474
503
|
}
|
|
475
504
|
}
|
|
476
505
|
HasProperty(propertyName, context) {
|
|
477
|
-
let e;
|
|
506
|
+
let v_2, e;
|
|
478
507
|
const this$ = this;
|
|
479
508
|
const v = this$.TryGetProperty(propertyName, unwrap(context));
|
|
480
|
-
return v != null && (equals(value(v), defaultOf()) ? (value(v), false) : isIterable(value(v)) ? (e = value(v), getEnumerator(e)["System.Collections.IEnumerator.MoveNext"]()) : true);
|
|
509
|
+
return v != null && (equals(value(v), defaultOf()) ? (v_2 = value(v), false) : isIterable(value(v)) ? (e = value(v), getEnumerator(e)["System.Collections.IEnumerator.MoveNext"]()) : true);
|
|
481
510
|
}
|
|
482
511
|
SetContext(context) {
|
|
483
512
|
const this$ = this;
|
|
@@ -527,7 +556,7 @@ class LDNode extends DynamicObj {
|
|
|
527
556
|
if (flattenTo == null) {
|
|
528
557
|
flattenTo_RA = (x_1) => x_1;
|
|
529
558
|
} else {
|
|
530
|
-
value(flattenTo);
|
|
559
|
+
const graph_1 = value(flattenTo);
|
|
531
560
|
flattenTo_RA = (a) => ResizeArray_map(flattenTo_Singleton, a);
|
|
532
561
|
}
|
|
533
562
|
let flattenToAny;
|
|
@@ -623,7 +652,8 @@ class LDNode extends DynamicObj {
|
|
|
623
652
|
void l_2.push(flattenTo_Singleton(thisVal));
|
|
624
653
|
other.SetProperty(pn, l_2);
|
|
625
654
|
}
|
|
626
|
-
} else if (equals(toEqualitor(thisVal), toEqualitor(otherVal)))
|
|
655
|
+
} else if (equals(toEqualitor(thisVal), toEqualitor(otherVal))) {
|
|
656
|
+
} else {
|
|
627
657
|
const l_3 = [flattenTo_Singleton(thisVal), otherVal];
|
|
628
658
|
other.SetProperty(pn, l_3);
|
|
629
659
|
}
|
|
@@ -851,5 +881,11 @@ class LDNode extends DynamicObj {
|
|
|
851
881
|
}
|
|
852
882
|
}
|
|
853
883
|
}
|
|
884
|
+
function LDNode_$reflection() {
|
|
885
|
+
return class_type("ARCtrl.ROCrate.LDNode", void 0, LDNode, DynamicObj_$reflection());
|
|
886
|
+
}
|
|
887
|
+
function LDNode_$ctor_479BCDCF(id, schemaType, additionalType, context) {
|
|
888
|
+
return new LDNode(id, schemaType, additionalType, context);
|
|
889
|
+
}
|
|
854
890
|
|
|
855
|
-
export { ActivePattern_$007CNonStringEnumerable$007C_$007C, LDGraph, LDNode, LDRef, LDValue };
|
|
891
|
+
export { ActivePattern_$007CNonStringEnumerable$007C_$007C, DynamicObj_DynamicObj__DynamicObj_HasProperty_Z721C83C5, LDGraph, LDGraph_$ctor_5FC797DE, LDGraph_$reflection, LDNode, LDNode_$ctor_479BCDCF, LDNode_$reflection, LDRef, LDRef_$ctor_Z721C83C5, LDRef_$reflection, LDValue, LDValue_$ctor_77809003, LDValue_$reflection };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
2
2
|
import { LDNode } from './ROCrate/LDObject.js';
|
|
3
3
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
4
|
+
import { License } from './License.js';
|
|
5
|
+
import { LDContext } from './ROCrate/LDContext.js';
|
|
4
6
|
import { ArcInvestigation } from './Core/ArcTypes.js';
|
|
5
7
|
import { FileSystem } from './FileSystem/FileSystem.js';
|
|
6
8
|
import { Decoder$1, IEncodable } from './fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
@@ -8,9 +10,13 @@ export declare class ROCrate {
|
|
|
8
10
|
constructor();
|
|
9
11
|
}
|
|
10
12
|
export declare function ROCrate_$reflection(): TypeInfo;
|
|
11
|
-
export declare function ROCrate_getDefaultLicense(): string;
|
|
12
13
|
export declare function ROCrate_get_metadataFileDescriptor(): LDNode;
|
|
13
|
-
export declare function
|
|
14
|
-
export declare function
|
|
14
|
+
export declare function ROCrate_createLicenseNode_29619109(license: Option<License>): LDNode;
|
|
15
|
+
export declare function ROCrate_getLicense_Z2F770004(license: LDNode, context?: LDContext): Option<License>;
|
|
16
|
+
export declare function ROCrate_encoder_1E8A3F74(isa: ArcInvestigation, license?: License, fs?: FileSystem): IEncodable;
|
|
17
|
+
/**
|
|
18
|
+
* Returns ArcInvestigation, list of file Ids, and optional License
|
|
19
|
+
*/
|
|
20
|
+
export declare function ROCrate_get_decoder(): Decoder$1<[ArcInvestigation, string[], Option<License>]>;
|
|
15
21
|
export declare function ROCrate_get_decoderDeprecated(): Decoder$1<ArcInvestigation>;
|
|
16
22
|
//# sourceMappingURL=ROCrateIO.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ROCrateIO.d.ts","sourceRoot":"","sources":["../../../src/ARCtrl/ts/ROCrateIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAkB,MAAM,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"ROCrateIO.d.ts","sourceRoot":"","sources":["../../../src/ARCtrl/ts/ROCrateIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAkB,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,EAAgB,MAAM,EAAoB,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAsB,OAAO,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAMnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAO1F,qBAAa,OAAO;;CAGnB;AAED,wBAAgB,mBAAmB,IAAI,QAAQ,CAE9C;AAED,wBAAgB,kCAAkC,IAAI,MAAM,CAK3D;AAED,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,CAWnF;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,CAqClG;AAED,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,UAAU,CAW9G;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,SAAS,CAAC,CAAC,gBAAgB,EAAE,MAAM,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAoB9F;AAED,wBAAgB,6BAA6B,IAAI,SAAS,CAAC,gBAAgB,CAAC,CAE3E"}
|
package/dist/ts/ts/ROCrateIO.js
CHANGED
|
@@ -1,19 +1,26 @@
|
|
|
1
|
+
import { class_type } from '../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
1
2
|
import { LDNode, LDRef } from './ROCrate/LDObject.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
3
|
+
import { LDCreativeWork } from './ROCrate/Generic/CreativeWork.js';
|
|
4
|
+
import { value, unwrap, bind } from '../node_modules/@fable-org/fable-library-js/Option.js';
|
|
5
|
+
import { License } from './License.js';
|
|
6
|
+
import { LDContext } from './ROCrate/LDContext.js';
|
|
7
|
+
import { ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_1695DD5C, ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8 } from './Conversion.js';
|
|
4
8
|
import { LDDataset } from './ROCrate/Generic/Dataset.js';
|
|
5
9
|
import { now } from '../node_modules/@fable-org/fable-library-js/Date.js';
|
|
6
|
-
import { LDContext } from './ROCrate/LDContext.js';
|
|
7
10
|
import { initV1_1, initBioschemasContext } from './ROCrate/ROCrateContext.js';
|
|
8
|
-
import {
|
|
11
|
+
import { encoder, decoder } from './Json/ROCrate/LDGraph.js';
|
|
9
12
|
import { map } from './fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
10
13
|
import { ResizeArray_choose } from './Core/Helper/Collections.js';
|
|
11
14
|
import { LDFile } from './ROCrate/Generic/File.js';
|
|
12
15
|
import { exactlyOne } from '../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
13
|
-
import { decoder } from './Json/ROCrate/LDNode.js';
|
|
16
|
+
import { decoder as decoder$1 } from './Json/ROCrate/LDNode.js';
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
class ROCrate {
|
|
19
|
+
constructor() {
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function ROCrate_$reflection() {
|
|
23
|
+
return class_type("ARCtrl.Json.ARC.ROCrate", void 0, ROCrate);
|
|
17
24
|
}
|
|
18
25
|
function ROCrate_get_metadataFileDescriptor() {
|
|
19
26
|
const node = new LDNode("ro-crate-metadata.json", ["http://schema.org/CreativeWork"]);
|
|
@@ -21,11 +28,56 @@ function ROCrate_get_metadataFileDescriptor() {
|
|
|
21
28
|
node.SetProperty("http://schema.org/about", new LDRef("./"));
|
|
22
29
|
return node;
|
|
23
30
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
31
|
+
function ROCrate_createLicenseNode_29619109(license) {
|
|
32
|
+
if (license == null) {
|
|
33
|
+
return LDCreativeWork.create("#LICENSE", void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, "ALL RIGHTS RESERVED BY THE AUTHORS");
|
|
34
|
+
} else {
|
|
35
|
+
const license_1 = value(license);
|
|
36
|
+
let text;
|
|
37
|
+
const matchValue = license_1.Type;
|
|
38
|
+
text = license_1.Content;
|
|
39
|
+
return LDCreativeWork.create(license_1.Path, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, text);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function ROCrate_getLicense_Z2F770004(license, context) {
|
|
43
|
+
const text = LDCreativeWork.tryGetTextAsString(license, unwrap(context));
|
|
44
|
+
const matchValue = license.Id;
|
|
45
|
+
let matchResult, text_1, path, text_2, path_1;
|
|
46
|
+
if (matchValue === "#LICENSE") {
|
|
47
|
+
if (text != null) {
|
|
48
|
+
if (value(text) === "ALL RIGHTS RESERVED BY THE AUTHORS") {
|
|
49
|
+
matchResult = 0;
|
|
50
|
+
} else {
|
|
51
|
+
matchResult = 1;
|
|
52
|
+
text_1 = value(text);
|
|
53
|
+
}
|
|
54
|
+
} else {
|
|
55
|
+
matchResult = 0;
|
|
56
|
+
}
|
|
57
|
+
} else if (text == null) {
|
|
58
|
+
matchResult = 3;
|
|
59
|
+
path_1 = matchValue;
|
|
60
|
+
} else {
|
|
61
|
+
matchResult = 2;
|
|
62
|
+
path = matchValue;
|
|
63
|
+
text_2 = value(text);
|
|
64
|
+
}
|
|
65
|
+
switch (matchResult) {
|
|
66
|
+
case 0:
|
|
67
|
+
return void 0;
|
|
68
|
+
case 1:
|
|
69
|
+
return new License("fulltext", text_1);
|
|
70
|
+
case 2:
|
|
71
|
+
return new License("fulltext", text_2, path);
|
|
72
|
+
default:
|
|
73
|
+
return new License("fulltext", "", path_1);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function ROCrate_encoder_1E8A3F74(isa, license, fs) {
|
|
77
|
+
const license_1 = ROCrate_createLicenseNode_29619109(license);
|
|
26
78
|
const isa_1 = ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_1695DD5C(isa, unwrap(fs));
|
|
27
79
|
LDDataset.setSDDatePublishedAsDateTime(isa_1, now());
|
|
28
|
-
LDDataset.setLicenseAsCreativeWork(isa_1,
|
|
80
|
+
LDDataset.setLicenseAsCreativeWork(isa_1, license_1);
|
|
29
81
|
const graph = isa_1.Flatten();
|
|
30
82
|
const context = new LDContext(void 0, [initV1_1(), initBioschemasContext()]);
|
|
31
83
|
graph.SetContext(context);
|
|
@@ -47,12 +99,13 @@ function ROCrate_get_decoder() {
|
|
|
47
99
|
return void 0;
|
|
48
100
|
}
|
|
49
101
|
}, graph.Nodes);
|
|
50
|
-
|
|
102
|
+
const license = bind((n_1) => ROCrate_getLicense_Z2F770004(n_1, unwrap(graph.TryGetContext())), LDDataset.tryGetLicenseAsCreativeWork(node, graph, unwrap(graph.TryGetContext())));
|
|
103
|
+
return [ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8(node, graph, unwrap(graph.TryGetContext())), files, license];
|
|
51
104
|
}
|
|
52
|
-
}, decoder
|
|
105
|
+
}, decoder);
|
|
53
106
|
}
|
|
54
107
|
function ROCrate_get_decoderDeprecated() {
|
|
55
|
-
return map((ldnode) => ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8(exactlyOne(LDDataset.getAbouts(ldnode)), void 0, initV1_1()), decoder);
|
|
108
|
+
return map((ldnode) => ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8(exactlyOne(LDDataset.getAbouts(ldnode)), void 0, initV1_1()), decoder$1);
|
|
56
109
|
}
|
|
57
110
|
|
|
58
|
-
export {
|
|
111
|
+
export { ROCrate, ROCrate_$reflection, ROCrate_createLicenseNode_29619109, ROCrate_encoder_1E8A3F74, ROCrate_getLicense_Z2F770004, ROCrate_get_decoder, ROCrate_get_decoderDeprecated, ROCrate_get_metadataFileDescriptor };
|