@nfdi4plants/arctrl 2.0.1 → 2.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARC.js +43 -108
- package/Contract/ARC.js +1 -1
- package/Contract/ArcAssay.js +37 -14
- package/Contract/ArcInvestigation.js +4 -4
- package/Contract/ArcStudy.js +37 -14
- package/Contract/Contract.js +6 -6
- package/Contract/Datamap.js +5 -5
- package/Contract/Git.js +6 -6
- package/Contract/ValidationPackagesConfig.js +5 -5
- package/Core/ArcTypes.js +17 -17
- package/Core/Comment.js +16 -9
- package/Core/CommentList.js +6 -6
- package/Core/Conversion.js +64 -64
- package/Core/Data.js +11 -11
- package/Core/DataContext.js +4 -4
- package/Core/DataFile.js +2 -2
- package/Core/DataMap.js +4 -4
- package/Core/Helper/Collections.js +11 -11
- package/Core/Helper/HashCodes.js +5 -5
- package/Core/Helper/Identifier.js +9 -9
- package/Core/Helper/Regex.js +38 -38
- package/Core/Helper/SemVer.js +8 -8
- package/Core/OntologyAnnotation.js +11 -11
- package/Core/OntologySourceReference.js +4 -4
- package/Core/Person.js +11 -11
- package/Core/Process/ColumnIndex.js +7 -7
- package/Core/Process/Component.js +10 -10
- package/Core/Process/Factor.js +6 -6
- package/Core/Process/FactorValue.js +10 -10
- package/Core/Process/Material.js +5 -5
- package/Core/Process/MaterialAttribute.js +4 -4
- package/Core/Process/MaterialAttributeValue.js +10 -10
- package/Core/Process/MaterialType.js +2 -2
- package/Core/Process/Process.js +19 -19
- package/Core/Process/ProcessInput.js +16 -16
- package/Core/Process/ProcessOutput.js +16 -16
- package/Core/Process/ProcessParameterValue.js +10 -10
- package/Core/Process/ProcessSequence.js +6 -6
- package/Core/Process/Protocol.js +5 -5
- package/Core/Process/ProtocolParameter.js +4 -4
- package/Core/Process/Sample.js +5 -5
- package/Core/Process/Source.js +5 -5
- package/Core/Publication.js +10 -10
- package/Core/Table/ArcTable.js +35 -28
- package/Core/Table/ArcTableAux.js +22 -22
- package/Core/Table/ArcTables.js +14 -14
- package/Core/Table/CompositeCell.js +6 -6
- package/Core/Table/CompositeColumn.js +5 -5
- package/Core/Table/CompositeHeader.js +9 -9
- package/Core/Template.js +7 -7
- package/Core/Templates.js +8 -8
- package/Core/Value.js +11 -11
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +14 -14
- package/FileSystem/Path.js +3 -3
- package/Json/ARC.js +21 -15
- package/Json/Assay.js +108 -169
- package/Json/Comment.js +84 -122
- package/Json/ConverterOptions.js +2 -2
- package/Json/Data.js +100 -107
- package/Json/DataFile.js +22 -57
- package/Json/DataMap/DataContext.js +25 -16
- package/Json/DataMap/DataMap.js +11 -7
- package/Json/Decode.js +11 -14
- package/Json/Encode.js +24 -13
- package/Json/IDTable.js +14 -3
- package/Json/Investigation.js +194 -176
- package/Json/OntologyAnnotation.js +113 -127
- package/Json/OntologySourceReference.js +93 -111
- package/Json/Person.js +204 -135
- package/Json/Process/AssayMaterials.js +12 -14
- package/Json/Process/Component.js +23 -68
- package/Json/Process/Factor.js +28 -46
- package/Json/Process/FactorValue.js +28 -50
- package/Json/Process/Material.js +56 -83
- package/Json/Process/MaterialAttribute.js +23 -45
- package/Json/Process/MaterialAttributeValue.js +28 -71
- package/Json/Process/MaterialType.js +17 -35
- package/Json/Process/Process.js +70 -85
- package/Json/Process/ProcessInput.js +18 -45
- package/Json/Process/ProcessOutput.js +15 -63
- package/Json/Process/ProcessParameterValue.js +21 -70
- package/Json/Process/Protocol.js +80 -83
- package/Json/Process/ProtocolParameter.js +23 -44
- package/Json/Process/Sample.js +66 -93
- package/Json/Process/Source.js +54 -81
- package/Json/Process/StudyMaterials.js +13 -15
- package/Json/Process/Value.js +19 -29
- package/Json/PropertyValue.js +86 -28
- package/Json/Publication.js +92 -115
- package/Json/ROCrateObject.js +146 -0
- package/Json/StringTable.js +27 -10
- package/Json/Study.js +193 -182
- package/Json/Table/ArcTable.js +119 -115
- package/Json/Table/CellTable.js +24 -11
- package/Json/Table/CompositeCell.js +40 -41
- package/Json/Table/CompositeHeader.js +24 -36
- package/Json/Table/IOType.js +9 -31
- package/Json/Table/OATable.js +23 -10
- package/Json/Table/Templates.js +82 -90
- package/Json/context/rocrate/isa_assay_context.js +60 -4
- package/Json/context/rocrate/isa_comment_context.js +28 -4
- package/Json/context/rocrate/isa_component_context.js +44 -4
- package/Json/context/rocrate/isa_data_context.js +40 -4
- package/Json/context/rocrate/isa_factor_context.js +40 -4
- package/Json/context/rocrate/isa_factor_value_context.js +52 -4
- package/Json/context/rocrate/isa_investigation_context.js +68 -4
- package/Json/context/rocrate/isa_material_attribute_context.js +32 -4
- package/Json/context/rocrate/isa_material_attribute_value_context.js +48 -4
- package/Json/context/rocrate/isa_material_context.js +36 -4
- package/Json/context/rocrate/isa_ontology_annotation_context.js +36 -4
- package/Json/context/rocrate/isa_ontology_source_reference_context.js +40 -4
- package/Json/context/rocrate/isa_organization_context.js +24 -4
- package/Json/context/rocrate/isa_person_context.js +85 -5
- package/Json/context/rocrate/isa_process_context.js +56 -4
- package/Json/context/rocrate/isa_process_parameter_value_context.js +48 -4
- package/Json/context/rocrate/isa_protocol_context.js +60 -4
- package/Json/context/rocrate/isa_protocol_parameter_context.js +32 -4
- package/Json/context/rocrate/isa_publication_context.js +44 -4
- package/Json/context/rocrate/isa_sample_context.js +32 -4
- package/Json/context/rocrate/isa_source_context.js +32 -4
- package/Json/context/rocrate/isa_study_context.js +72 -4
- package/Json/context/rocrate/property_value_context.js +58 -2
- package/Json/context/rocrate/rocrate_context.js +45 -5
- package/Json.js +12 -12
- package/JsonIO/ARC.js +31 -0
- package/JsonIO/Assay.js +99 -0
- package/JsonIO/Comment.js +73 -0
- package/JsonIO/Data.js +50 -0
- package/JsonIO/DataFile.js +49 -0
- package/JsonIO/DataMap/DataMap.js +29 -0
- package/JsonIO/Decode.js +4 -0
- package/JsonIO/Investigation.js +99 -0
- package/JsonIO/OntologyAnnotation.js +73 -0
- package/JsonIO/OntologySourceReference.js +73 -0
- package/JsonIO/Person.js +74 -0
- package/JsonIO/Process/Component.js +50 -0
- package/JsonIO/Process/Factor.js +28 -0
- package/JsonIO/Process/FactorValue.js +29 -0
- package/JsonIO/Process/Material.js +50 -0
- package/JsonIO/Process/MaterialAttribute.js +29 -0
- package/JsonIO/Process/MaterialAttributeValue.js +50 -0
- package/JsonIO/Process/MaterialType.js +28 -0
- package/JsonIO/Process/Process.js +50 -0
- package/JsonIO/Process/ProcessInput.js +29 -0
- package/JsonIO/Process/ProcessOutput.js +50 -0
- package/JsonIO/Process/ProcessParameterValue.js +50 -0
- package/{Json → JsonIO}/Process/ProcessSequence.js +16 -16
- package/JsonIO/Process/Protocol.js +50 -0
- package/JsonIO/Process/ProtocolParameter.js +28 -0
- package/JsonIO/Process/Sample.js +50 -0
- package/JsonIO/Process/Source.js +50 -0
- package/JsonIO/Process/StudyMaterials.js +22 -0
- package/JsonIO/Process/Value.js +23 -0
- package/JsonIO/Publication.js +74 -0
- package/JsonIO/ROCrateObject.js +146 -0
- package/JsonIO/Study.js +99 -0
- package/JsonIO/Table/ArcTable.js +82 -0
- package/JsonIO/Table/CompositeCell.js +28 -0
- package/JsonIO/Table/CompositeHeader.js +28 -0
- package/{Json → JsonIO}/Table/Compression.js +20 -10
- package/JsonIO/Table/IOType.js +28 -0
- package/JsonIO/Table/Templates.js +88 -0
- package/ROCrate/ISAProfile/Assay.js +32 -0
- package/ROCrate/ISAProfile/Data.js +28 -0
- package/ROCrate/ISAProfile/Dataset.js +18 -0
- package/ROCrate/ISAProfile/Investigation.js +35 -0
- package/ROCrate/ISAProfile/LabProcess.js +32 -0
- package/ROCrate/ISAProfile/LabProtocol.js +33 -0
- package/ROCrate/ISAProfile/Person.js +35 -0
- package/ROCrate/ISAProfile/PropertyValue.js +30 -0
- package/ROCrate/ISAProfile/Sample.js +27 -0
- package/ROCrate/ISAProfile/ScholarlyArticle.js +30 -0
- package/ROCrate/ISAProfile/Study.js +35 -0
- package/ROCrate/ROCrateObject.js +61 -0
- package/Spreadsheet/AnnotationTable/ArcTable.js +16 -16
- package/Spreadsheet/AnnotationTable/CompositeCell.js +2 -2
- package/Spreadsheet/AnnotationTable/CompositeColumn.js +7 -7
- package/Spreadsheet/AnnotationTable/CompositeHeader.js +25 -25
- package/Spreadsheet/ArcAssay.js +9 -9
- package/Spreadsheet/ArcInvestigation.js +14 -14
- package/Spreadsheet/ArcStudy.js +7 -7
- package/Spreadsheet/CollectionAux.js +11 -11
- package/Spreadsheet/DataMap.js +3 -3
- package/Spreadsheet/DataMapTable/DataMapColumn.js +6 -6
- package/Spreadsheet/DataMapTable/DataMapHeader.js +23 -23
- package/Spreadsheet/DataMapTable/DataMapTable.js +13 -13
- package/Spreadsheet/Metadata/Assays.js +11 -11
- package/Spreadsheet/Metadata/Comment.js +5 -5
- package/Spreadsheet/Metadata/Contacts.js +7 -7
- package/Spreadsheet/Metadata/Conversions.js +7 -7
- package/Spreadsheet/Metadata/DesignDescriptors.js +1 -1
- package/Spreadsheet/Metadata/Factors.js +8 -8
- package/Spreadsheet/Metadata/OntologyAnnotation.js +6 -6
- package/Spreadsheet/Metadata/OntologySourceReference.js +6 -6
- package/Spreadsheet/Metadata/Protocols.js +9 -9
- package/Spreadsheet/Metadata/Publication.js +7 -7
- package/Spreadsheet/Metadata/SparseTable.js +21 -21
- package/Spreadsheet/Metadata/Study.js +12 -12
- package/Spreadsheet/Template.js +21 -21
- package/Template.Web.js +6 -6
- package/ValidationPackages/ValidationPackage.js +6 -6
- package/ValidationPackages/ValidationPackagesConfig.js +9 -9
- package/WebRequest/WebRequest.Node.js +2 -2
- package/WebRequest/WebRequest.js +2 -2
- package/Xlsx.js +9 -9
- package/Yaml/Encode.js +1 -1
- package/Yaml/ValidationPackage.js +5 -5
- package/Yaml/ValidationPackagesConfig.js +5 -5
- package/fable_modules/DynamicObj.4.0.0/DynObj.fs +219 -0
- package/fable_modules/DynamicObj.4.0.0/DynObj.fs.js +209 -0
- package/fable_modules/DynamicObj.4.0.0/DynamicObj.fableproj +47 -0
- package/fable_modules/DynamicObj.4.0.0/DynamicObj.fs +310 -0
- package/fable_modules/DynamicObj.4.0.0/DynamicObj.fs.js +166 -0
- package/fable_modules/DynamicObj.4.0.0/FableJS.fs +162 -0
- package/fable_modules/DynamicObj.4.0.0/FableJS.fs.js +141 -0
- package/fable_modules/DynamicObj.4.0.0/FablePy.fs +215 -0
- package/fable_modules/DynamicObj.4.0.0/HashCodes.fs +46 -0
- package/fable_modules/DynamicObj.4.0.0/HashCodes.fs.js +43 -0
- package/fable_modules/DynamicObj.4.0.0/PropertyHelper.fs +33 -0
- package/fable_modules/DynamicObj.4.0.0/PropertyHelper.fs.js +21 -0
- package/fable_modules/DynamicObj.4.0.0/ReflectionUtils.fs +72 -0
- package/fable_modules/DynamicObj.4.0.0/ReflectionUtils.fs.js +86 -0
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0/obj/Release → DynamicObj.4.0.0/obj/Debug}/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +1 -1
- package/fable_modules/DynamicObj.4.0.0/obj/Debug/netstandard2.0/DynamicObj.AssemblyInfo.fs +19 -0
- package/fable_modules/{Thoth.Json.Core.0.2.1/obj/Debug → DynamicObj.4.0.0/obj/Release}/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +1 -1
- package/fable_modules/DynamicObj.4.0.0/obj/Release/netstandard2.0/DynamicObj.AssemblyInfo.fs +19 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +8 -8
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +6 -6
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +11 -11
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCell.fs.js +15 -15
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCellsCollection.fs.js +11 -11
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/CellBuilder.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/ColumnBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/DSL.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Expression.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/DSL/Operators.fs.js +6 -0
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/RowBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/SheetBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/TableBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Transform.fs.js +10 -10
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Types.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/WorkbookBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsAddress.fs.js +11 -11
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsColumn.fs.js +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsRow.fs.js +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsSpreadsheet.fableproj +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorkbook.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorksheet.fs.js +11 -11
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Cell.fs.js +64 -0
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Column.fs.js +39 -0
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Row.fs.js +39 -0
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Table.fs.js +30 -0
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Value.fs.js +38 -13
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Workbook.fs.js +46 -0
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Worksheet.fs.js +33 -8
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRange.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeAddress.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeBase.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeColumn.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeRow.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/SheetBuilder.fs.js +10 -10
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTable.fs.js +11 -11
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableField.fs.js +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableRow.fs.js +2 -2
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Decode.fs +67 -28
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Decode.fs.js +79 -50
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Encode.fs +139 -54
- package/fable_modules/Thoth.Json.Core.0.4.0/Encode.fs.js +192 -0
- package/fable_modules/Thoth.Json.Core.0.4.0/Thoth.Json.Core.fableproj +33 -0
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Types.fs +12 -5
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Types.fs.js +2 -2
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0 → Thoth.Json.JavaScript.0.3.0}/Decode.fs +9 -0
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0 → Thoth.Json.JavaScript.0.3.0}/Decode.fs.js +16 -2
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0 → Thoth.Json.JavaScript.0.3.0}/Encode.fs +13 -5
- package/fable_modules/Thoth.Json.JavaScript.0.3.0/Encode.fs.js +58 -0
- package/fable_modules/Thoth.Json.JavaScript.0.3.0/Thoth.Json.JavaScript.fableproj +28 -0
- package/fable_modules/YAMLicious.0.0.1/Decode.fs.js +17 -17
- package/fable_modules/YAMLicious.0.0.1/Encode.fs.js +6 -6
- package/fable_modules/YAMLicious.0.0.1/Library.fs.js +1 -1
- package/fable_modules/YAMLicious.0.0.1/Persil.fs.js +4 -4
- package/fable_modules/YAMLicious.0.0.1/Preprocessing.fs.js +6 -6
- package/fable_modules/YAMLicious.0.0.1/Reader.fs.js +9 -9
- package/fable_modules/YAMLicious.0.0.1/RegexActivePatterns.fs.js +36 -36
- package/fable_modules/YAMLicious.0.0.1/Writer.fs.js +4 -4
- package/fable_modules/YAMLicious.0.0.1/YAMLiciousTypes.fs.js +6 -6
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Array.js +10 -10
- package/fable_modules/fable-library-js.4.22.0/Async.d.ts +27 -0
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Async.js +1 -7
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/AsyncBuilder.d.ts +13 -13
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BigInt.js +4 -3
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/CHANGELOG.md +40 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Choice.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Date.js +4 -5
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Decimal.js +6 -6
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/List.js +31 -31
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MailboxProcessor.d.ts +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Map.js +10 -10
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableMap.js +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableSet.js +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Random.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Range.js +4 -4
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Reflection.d.ts +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/RegExp.js +0 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Result.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq.js +47 -48
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Set.js +3 -3
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/String.d.ts +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/String.js +17 -6
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Text.js +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeSpan.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Types.d.ts +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Uri.d.ts +2 -0
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Uri.js +19 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Util.d.ts +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Util.js +0 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/lib/big.js +0 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/package.json +1 -1
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/fable_modules/FsSpreadsheet.6.2.0/DSL/Operators.fs.js +0 -6
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Cell.fs.js +0 -38
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Column.fs.js +0 -24
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Row.fs.js +0 -24
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Table.fs.js +0 -15
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Workbook.fs.js +0 -35
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +0 -113
- package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +0 -28
- package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/Thoth.Json.Core.AssemblyInfo.fs +0 -20
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +0 -45
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +0 -21
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -3
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +0 -18
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +0 -19
- package/fable_modules/fable-library-js.4.16.0/Async.d.ts +0 -32
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCellsCollection.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/CellBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/ColumnBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/DSL.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Expression.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Operators.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/RowBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/TableBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Transform.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Types.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/WorkbookBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorkbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorksheet.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Cell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Column.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Row.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Table.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Value.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Workbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Worksheet.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRange.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeBase.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTable.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableField.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Array.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Boolean.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Char.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Choice.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/ConditionalWeakTable.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/ConditionalWeakTable.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Double.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Event.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.CompilerServices.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.CompilerServices.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Global.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Long.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MapUtil.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MapUtil.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Native.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Option.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/README.md +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Result.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Collections.Generic.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Collections.Generic.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Text.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Types.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/big.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/lib/big.d.ts +0 -0
package/Spreadsheet/Template.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { toString, Record, FSharpException } from "../fable_modules/fable-library-js.4.
|
|
2
|
-
import { record_type, list_type, string_type, class_type } from "../fable_modules/fable-library-js.4.
|
|
3
|
-
import { ofSeq, append as append_1, reverse, map, empty, ofArray } from "../fable_modules/fable-library-js.4.
|
|
1
|
+
import { toString, Record, FSharpException } from "../fable_modules/fable-library-js.4.22.0/Types.js";
|
|
2
|
+
import { record_type, list_type, string_type, class_type } from "../fable_modules/fable-library-js.4.22.0/Reflection.js";
|
|
3
|
+
import { ofSeq, append as append_1, reverse, map, empty, ofArray } from "../fable_modules/fable-library-js.4.22.0/List.js";
|
|
4
4
|
import { toRows, fromRows, toSparseTable, fromSparseTable } from "./Metadata/OntologyAnnotation.js";
|
|
5
5
|
import { Comment$_$reflection } from "../Core/Comment.js";
|
|
6
6
|
import { Comment_fromString } from "./Metadata/Comment.js";
|
|
7
7
|
import { SparseRowModule_fromFsRow, SparseRowModule_writeToSheet, SparseRowModule_fromValues, SparseRowModule_tryGetValueAt, SparseTable_ToRows_759CAFC1, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValueDefault_5BAE6133 } from "./Metadata/SparseTable.js";
|
|
8
8
|
import { createMissingIdentifier } from "../Core/Helper/Identifier.js";
|
|
9
|
-
import { addToDict } from "../fable_modules/fable-library-js.4.
|
|
10
|
-
import { List_distinct } from "../fable_modules/fable-library-js.4.
|
|
11
|
-
import { getEnumerator, stringHash } from "../fable_modules/fable-library-js.4.
|
|
12
|
-
import { tryPick, iterateIndexed, toList, delay, singleton, append, head, exists, map as map_1 } from "../fable_modules/fable-library-js.4.
|
|
9
|
+
import { addToDict } from "../fable_modules/fable-library-js.4.22.0/MapUtil.js";
|
|
10
|
+
import { List_distinct } from "../fable_modules/fable-library-js.4.22.0/Seq2.js";
|
|
11
|
+
import { getEnumerator, stringHash } from "../fable_modules/fable-library-js.4.22.0/Util.js";
|
|
12
|
+
import { tryPick, iterateIndexed, toList, delay, singleton, append, head, exists, map as map_1 } from "../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
13
13
|
import { Person_orcidKey } from "../Core/Conversion.js";
|
|
14
|
-
import { toArray } from "../fable_modules/fable-library-js.4.
|
|
14
|
+
import { toArray } from "../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
15
15
|
import { toRows as toRows_1, fromRows as fromRows_1 } from "./Metadata/Contacts.js";
|
|
16
|
-
import { parse } from "../fable_modules/fable-library-js.4.
|
|
16
|
+
import { parse } from "../fable_modules/fable-library-js.4.22.0/Guid.js";
|
|
17
17
|
import { Template, Organisation } from "../Core/Template.js";
|
|
18
|
-
import { FsWorksheet } from "../fable_modules/FsSpreadsheet.6.
|
|
18
|
+
import { FsWorksheet } from "../fable_modules/FsSpreadsheet.6.3.0-alpha.4/FsWorksheet.fs.js";
|
|
19
19
|
import { toFsWorksheet, tryFromFsWorksheet } from "./AnnotationTable/ArcTable.js";
|
|
20
|
-
import { now } from "../fable_modules/fable-library-js.4.
|
|
21
|
-
import { FsWorkbook } from "../fable_modules/FsSpreadsheet.6.
|
|
20
|
+
import { now } from "../fable_modules/fable-library-js.4.22.0/Date.js";
|
|
21
|
+
import { FsWorkbook } from "../fable_modules/FsSpreadsheet.6.3.0-alpha.4/FsWorkbook.fs.js";
|
|
22
22
|
|
|
23
23
|
export class TemplateReadError extends FSharpException {
|
|
24
24
|
constructor(Data0) {
|
|
@@ -28,7 +28,7 @@ export class TemplateReadError extends FSharpException {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export function TemplateReadError_$reflection() {
|
|
31
|
-
return class_type("ARCtrl.Spreadsheet.TemplateReadError",
|
|
31
|
+
return class_type("ARCtrl.Spreadsheet.TemplateReadError", undefined, TemplateReadError, class_type("System.Exception"));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export const Metadata_ER_labels = ofArray(["ER", "ER Term Accession Number", "ER Term Source REF"]);
|
|
@@ -105,9 +105,9 @@ export function Metadata_Template_TemplateInfo_FromSparseTable_3ECCA699(matrix)
|
|
|
105
105
|
|
|
106
106
|
export function Metadata_Template_TemplateInfo_ToSparseTable_48C39BE1(template) {
|
|
107
107
|
let copyOfStruct, copyOfStruct_1;
|
|
108
|
-
const matrix = SparseTable_Create_Z2192E64B(
|
|
108
|
+
const matrix = SparseTable_Create_Z2192E64B(undefined, Metadata_Template_TemplateInfo_get_Labels(), undefined, 2);
|
|
109
109
|
let commentKeys = empty();
|
|
110
|
-
addToDict(matrix.Matrix, ["Id", 1], ((
|
|
110
|
+
addToDict(matrix.Matrix, ["Id", 1], ((copyOfStruct = template.Id, copyOfStruct)).startsWith("MISSING_IDENTIFIER_") ? "" : ((copyOfStruct_1 = template.Id, copyOfStruct_1)));
|
|
111
111
|
addToDict(matrix.Matrix, ["Name", 1], template.Name);
|
|
112
112
|
addToDict(matrix.Matrix, ["Version", 1], template.Version);
|
|
113
113
|
addToDict(matrix.Matrix, ["Description", 1], template.Description);
|
|
@@ -215,7 +215,7 @@ export function Metadata_Template_fromRows(rows) {
|
|
|
215
215
|
}
|
|
216
216
|
switch (matchResult) {
|
|
217
217
|
case 0: {
|
|
218
|
-
const patternInput = Metadata_ER_fromRows(
|
|
218
|
+
const patternInput = Metadata_ER_fromRows(undefined, en);
|
|
219
219
|
en_mut = en;
|
|
220
220
|
lastLine_mut = patternInput[0];
|
|
221
221
|
templateInfo_mut = templateInfo;
|
|
@@ -225,7 +225,7 @@ export function Metadata_Template_fromRows(rows) {
|
|
|
225
225
|
continue loop;
|
|
226
226
|
}
|
|
227
227
|
case 1: {
|
|
228
|
-
const patternInput_1 = Metadata_Tags_fromRows(
|
|
228
|
+
const patternInput_1 = Metadata_Tags_fromRows(undefined, en);
|
|
229
229
|
en_mut = en;
|
|
230
230
|
lastLine_mut = patternInput_1[0];
|
|
231
231
|
templateInfo_mut = templateInfo;
|
|
@@ -257,7 +257,7 @@ export function Metadata_Template_fromRows(rows) {
|
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
export function Metadata_Template_toRows(template) {
|
|
260
|
-
return delay(() => append(singleton(SparseRowModule_fromValues(["TEMPLATE"])), delay(() => append(Metadata_Template_TemplateInfo_toRows_48C39BE1(template), delay(() => append(singleton(SparseRowModule_fromValues(["ERS"])), delay(() => append(Metadata_ER_toRows(
|
|
260
|
+
return delay(() => append(singleton(SparseRowModule_fromValues(["TEMPLATE"])), delay(() => append(Metadata_Template_TemplateInfo_toRows_48C39BE1(template), delay(() => append(singleton(SparseRowModule_fromValues(["ERS"])), delay(() => append(Metadata_ER_toRows(undefined, toList(template.EndpointRepositories)), delay(() => append(singleton(SparseRowModule_fromValues(["TAGS"])), delay(() => append(Metadata_Tags_toRows(undefined, toList(template.Tags)), delay(() => append(singleton(SparseRowModule_fromValues(["AUTHORS"])), delay(() => toRows_1("Author", ofSeq(template.Authors)))))))))))))))));
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
export function Template_fromParts(templateInfo, ers, tags, authors, table, lastUpdated) {
|
|
@@ -302,14 +302,14 @@ export function Template_fromFsWorkbook(doc) {
|
|
|
302
302
|
return ws;
|
|
303
303
|
}
|
|
304
304
|
else {
|
|
305
|
-
return
|
|
305
|
+
return undefined;
|
|
306
306
|
}
|
|
307
307
|
}, sheets), (matchValue_2 == null) ? ((matchValue_4 = tryPick((ws_1) => {
|
|
308
308
|
if (ws_1.Name === templateInfo.Table) {
|
|
309
309
|
return ws_1;
|
|
310
310
|
}
|
|
311
311
|
else {
|
|
312
|
-
return
|
|
312
|
+
return undefined;
|
|
313
313
|
}
|
|
314
314
|
}, sheets), (matchValue_4 == null) ? (() => {
|
|
315
315
|
throw new TemplateReadError(`No worksheet or table with name \`${templateInfo.Table}\` found`);
|
|
@@ -324,7 +324,7 @@ export function Template_toFsWorkbook(template) {
|
|
|
324
324
|
const doc = new FsWorkbook();
|
|
325
325
|
const metaDataSheet = Template_toMetadataSheet(template);
|
|
326
326
|
doc.AddWorksheet(metaDataSheet);
|
|
327
|
-
const sheet = toFsWorksheet(
|
|
327
|
+
const sheet = toFsWorksheet(undefined, template.Table);
|
|
328
328
|
doc.AddWorksheet(sheet);
|
|
329
329
|
return doc;
|
|
330
330
|
}
|
package/Template.Web.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defaultArg } from "./fable_modules/fable-library-js.4.
|
|
2
|
-
import { singleton } from "./fable_modules/fable-library-js.4.
|
|
1
|
+
import { defaultArg } from "./fable_modules/fable-library-js.4.22.0/Option.js";
|
|
2
|
+
import { singleton } from "./fable_modules/fable-library-js.4.22.0/AsyncBuilder.js";
|
|
3
3
|
import { downloadFile } from "./WebRequest/WebRequest.js";
|
|
4
|
-
import { Templates_fromJsonString } from "./
|
|
5
|
-
import { startAsPromise } from "./fable_modules/fable-library-js.4.
|
|
6
|
-
import { class_type } from "./fable_modules/fable-library-js.4.
|
|
4
|
+
import { Templates_fromJsonString } from "./JsonIO/Table/Templates.js";
|
|
5
|
+
import { startAsPromise } from "./fable_modules/fable-library-js.4.22.0/Async.js";
|
|
6
|
+
import { class_type } from "./fable_modules/fable-library-js.4.22.0/Reflection.js";
|
|
7
7
|
|
|
8
8
|
export function getTemplates(url) {
|
|
9
9
|
const url_1 = defaultArg(url, "https://github.com/nfdi4plants/Swate-templates/releases/download/latest/templates_v2.0.0.json");
|
|
@@ -22,6 +22,6 @@ export class WebController {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export function WebController_$reflection() {
|
|
25
|
-
return class_type("ARCtrl.Template.Web.WebController",
|
|
25
|
+
return class_type("ARCtrl.Template.Web.WebController", undefined, WebController);
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { value as value_1, unwrap } from "../fable_modules/fable-library-js.4.
|
|
2
|
-
import { join } from "../fable_modules/fable-library-js.4.
|
|
3
|
-
import { empty, singleton, append, delay, toList } from "../fable_modules/fable-library-js.4.
|
|
4
|
-
import { stringHash, equals } from "../fable_modules/fable-library-js.4.
|
|
1
|
+
import { value as value_1, unwrap } from "../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
2
|
+
import { join } from "../fable_modules/fable-library-js.4.22.0/String.js";
|
|
3
|
+
import { empty, singleton, append, delay, toList } from "../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
4
|
+
import { stringHash, equals } from "../fable_modules/fable-library-js.4.22.0/Util.js";
|
|
5
5
|
import { boxHashOption, boxHashArray } from "../Core/Helper/HashCodes.js";
|
|
6
|
-
import { class_type } from "../fable_modules/fable-library-js.4.
|
|
6
|
+
import { class_type } from "../fable_modules/fable-library-js.4.22.0/Reflection.js";
|
|
7
7
|
|
|
8
8
|
export class ValidationPackage {
|
|
9
9
|
constructor(name, version) {
|
|
@@ -52,7 +52,7 @@ export class ValidationPackage {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
export function ValidationPackage_$reflection() {
|
|
55
|
-
return class_type("ARCtrl.ValidationPackages.ValidationPackage",
|
|
55
|
+
return class_type("ARCtrl.ValidationPackages.ValidationPackage", undefined, ValidationPackage);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export function ValidationPackage_$ctor_27AED5E3(name, version) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { value, unwrap } from "../fable_modules/fable-library-js.4.
|
|
2
|
-
import { join } from "../fable_modules/fable-library-js.4.
|
|
3
|
-
import { item, fold, length, map, empty, singleton, append, delay, toList } from "../fable_modules/fable-library-js.4.
|
|
4
|
-
import { toString } from "../fable_modules/fable-library-js.4.
|
|
5
|
-
import { sortBy } from "../fable_modules/fable-library-js.4.
|
|
6
|
-
import { equals, compareArrays } from "../fable_modules/fable-library-js.4.
|
|
7
|
-
import { rangeDouble } from "../fable_modules/fable-library-js.4.
|
|
1
|
+
import { value, unwrap } from "../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
2
|
+
import { join } from "../fable_modules/fable-library-js.4.22.0/String.js";
|
|
3
|
+
import { item, fold, length, map, empty, singleton, append, delay, toList } from "../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
4
|
+
import { toString } from "../fable_modules/fable-library-js.4.22.0/Types.js";
|
|
5
|
+
import { sortBy } from "../fable_modules/fable-library-js.4.22.0/Array.js";
|
|
6
|
+
import { equals, compareArrays } from "../fable_modules/fable-library-js.4.22.0/Util.js";
|
|
7
|
+
import { rangeDouble } from "../fable_modules/fable-library-js.4.22.0/Range.js";
|
|
8
8
|
import { boxHashSeq, boxHashOption, boxHashArray } from "../Core/Helper/HashCodes.js";
|
|
9
|
-
import { class_type } from "../fable_modules/fable-library-js.4.
|
|
9
|
+
import { class_type } from "../fable_modules/fable-library-js.4.22.0/Reflection.js";
|
|
10
10
|
|
|
11
11
|
export class ValidationPackagesConfig {
|
|
12
12
|
constructor(validation_packages, arc_specification) {
|
|
@@ -79,7 +79,7 @@ export class ValidationPackagesConfig {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export function ValidationPackagesConfig_$reflection() {
|
|
82
|
-
return class_type("ARCtrl.ValidationPackages.ValidationPackagesConfig",
|
|
82
|
+
return class_type("ARCtrl.ValidationPackages.ValidationPackagesConfig", undefined, ValidationPackagesConfig);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
export function ValidationPackagesConfig_$ctor_376974AD(validation_packages, arc_specification) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { awaitPromise } from "../fable_modules/fable-library-js.4.
|
|
1
|
+
import { awaitPromise } from "../fable_modules/fable-library-js.4.22.0/Async.js";
|
|
2
2
|
import { fetch$ } from "../fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js";
|
|
3
|
-
import { empty } from "../fable_modules/fable-library-js.4.
|
|
3
|
+
import { empty } from "../fable_modules/fable-library-js.4.22.0/List.js";
|
|
4
4
|
|
|
5
5
|
export function isNode() {
|
|
6
6
|
return typeof process !== "undefined" &&
|
package/WebRequest/WebRequest.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { downloadFile as downloadFile_1, isNode } from "./WebRequest.Node.js";
|
|
2
|
-
import { singleton } from "../fable_modules/fable-library-js.4.
|
|
2
|
+
import { singleton } from "../fable_modules/fable-library-js.4.22.0/AsyncBuilder.js";
|
|
3
3
|
import { Http_get } from "../fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js";
|
|
4
|
-
import { printf, toFail } from "../fable_modules/fable-library-js.4.
|
|
4
|
+
import { printf, toFail } from "../fable_modules/fable-library-js.4.22.0/String.js";
|
|
5
5
|
import "isomorphic-fetch";
|
|
6
6
|
|
|
7
7
|
export function downloadFile(url) {
|
package/Xlsx.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { toFsWorkbook, fromFsWorkbook } from "./Spreadsheet/DataMap.js";
|
|
2
|
-
import { class_type } from "./fable_modules/fable-library-js.4.
|
|
2
|
+
import { class_type } from "./fable_modules/fable-library-js.4.22.0/Reflection.js";
|
|
3
3
|
import { ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F, ARCtrl_ArcAssay__ArcAssay_fromFsWorkbook_Static_32154C9D } from "./Spreadsheet/ArcAssay.js";
|
|
4
4
|
import { ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522, ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D } from "./Spreadsheet/ArcStudy.js";
|
|
5
|
-
import { map } from "./fable_modules/fable-library-js.4.
|
|
6
|
-
import { ofSeq } from "./fable_modules/fable-library-js.4.
|
|
5
|
+
import { map, unwrap } from "./fable_modules/fable-library-js.4.22.0/Option.js";
|
|
6
|
+
import { ofSeq } from "./fable_modules/fable-library-js.4.22.0/List.js";
|
|
7
7
|
import { ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF, ARCtrl_ArcInvestigation__ArcInvestigation_fromFsWorkbook_Static_32154C9D } from "./Spreadsheet/ArcInvestigation.js";
|
|
8
8
|
|
|
9
9
|
export class XlsxHelper_DatamapXlsx {
|
|
@@ -18,7 +18,7 @@ export class XlsxHelper_DatamapXlsx {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export function XlsxHelper_DatamapXlsx_$reflection() {
|
|
21
|
-
return class_type("ARCtrl.XlsxHelper.DatamapXlsx",
|
|
21
|
+
return class_type("ARCtrl.XlsxHelper.DatamapXlsx", undefined, XlsxHelper_DatamapXlsx);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export function XlsxHelper_DatamapXlsx_$ctor() {
|
|
@@ -37,7 +37,7 @@ export class XlsxHelper_AssayXlsx {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export function XlsxHelper_AssayXlsx_$reflection() {
|
|
40
|
-
return class_type("ARCtrl.XlsxHelper.AssayXlsx",
|
|
40
|
+
return class_type("ARCtrl.XlsxHelper.AssayXlsx", undefined, XlsxHelper_AssayXlsx);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export function XlsxHelper_AssayXlsx_$ctor() {
|
|
@@ -51,12 +51,12 @@ export class XlsxHelper_StudyXlsx {
|
|
|
51
51
|
return ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D(fswb);
|
|
52
52
|
}
|
|
53
53
|
toFsWorkbook(study, assays) {
|
|
54
|
-
return ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(study, map(ofSeq, assays));
|
|
54
|
+
return ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(study, unwrap(map(ofSeq, assays)));
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export function XlsxHelper_StudyXlsx_$reflection() {
|
|
59
|
-
return class_type("ARCtrl.XlsxHelper.StudyXlsx",
|
|
59
|
+
return class_type("ARCtrl.XlsxHelper.StudyXlsx", undefined, XlsxHelper_StudyXlsx);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export function XlsxHelper_StudyXlsx_$ctor() {
|
|
@@ -75,7 +75,7 @@ export class XlsxHelper_InvestigationXlsx {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export function XlsxHelper_InvestigationXlsx_$reflection() {
|
|
78
|
-
return class_type("ARCtrl.XlsxHelper.InvestigationXlsx",
|
|
78
|
+
return class_type("ARCtrl.XlsxHelper.InvestigationXlsx", undefined, XlsxHelper_InvestigationXlsx);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export function XlsxHelper_InvestigationXlsx_$ctor() {
|
|
@@ -100,6 +100,6 @@ export class XlsxController {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
export function XlsxController_$reflection() {
|
|
103
|
-
return class_type("ARCtrl.XlsxController",
|
|
103
|
+
return class_type("ARCtrl.XlsxController", undefined, XlsxController);
|
|
104
104
|
}
|
|
105
105
|
|
package/Yaml/Encode.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ofArray, choose } from "../fable_modules/fable-library-js.4.
|
|
2
|
-
import { equals } from "../fable_modules/fable-library-js.4.
|
|
1
|
+
import { ofArray, choose } from "../fable_modules/fable-library-js.4.22.0/List.js";
|
|
2
|
+
import { equals } from "../fable_modules/fable-library-js.4.22.0/Util.js";
|
|
3
3
|
import { Config, YAMLElement } from "../fable_modules/YAMLicious.0.0.1/YAMLiciousTypes.fs.js";
|
|
4
4
|
import { tryInclude, string } from "../fable_modules/YAMLicious.0.0.1/Encode.fs.js";
|
|
5
|
-
import { singleton, collect, delay, toList } from "../fable_modules/fable-library-js.4.
|
|
5
|
+
import { singleton, collect, delay, toList } from "../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
6
6
|
import { YAMLContent_create_27AED5E3 } from "../fable_modules/YAMLicious.0.0.1/YAMLiciousTypes.fs.js";
|
|
7
7
|
import { string as string_1, object } from "../fable_modules/YAMLicious.0.0.1/Decode.fs.js";
|
|
8
8
|
import { ValidationPackage } from "../ValidationPackages/ValidationPackage.js";
|
|
9
|
-
import { unwrap } from "../fable_modules/fable-library-js.4.
|
|
9
|
+
import { unwrap } from "../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
10
10
|
import { read } from "../fable_modules/YAMLicious.0.0.1/Reader.fs.js";
|
|
11
11
|
import { defaultWhitespace } from "./Encode.js";
|
|
12
12
|
import { write } from "../fable_modules/YAMLicious.0.0.1/Writer.fs.js";
|
|
@@ -15,7 +15,7 @@ export function ValidationPackage_encoder(validationpackage) {
|
|
|
15
15
|
const objSeq = choose((tupledArg) => {
|
|
16
16
|
const v = tupledArg[1];
|
|
17
17
|
if (equals(v, new YAMLElement(5, []))) {
|
|
18
|
-
return
|
|
18
|
+
return undefined;
|
|
19
19
|
}
|
|
20
20
|
else {
|
|
21
21
|
return [tupledArg[0], v];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ofArray, choose } from "../fable_modules/fable-library-js.4.
|
|
2
|
-
import { equals } from "../fable_modules/fable-library-js.4.
|
|
1
|
+
import { ofArray, choose } from "../fable_modules/fable-library-js.4.22.0/List.js";
|
|
2
|
+
import { equals } from "../fable_modules/fable-library-js.4.22.0/Util.js";
|
|
3
3
|
import { Config, YAMLElement } from "../fable_modules/YAMLicious.0.0.1/YAMLiciousTypes.fs.js";
|
|
4
4
|
import { resizearray, string, tryInclude } from "../fable_modules/YAMLicious.0.0.1/Encode.fs.js";
|
|
5
5
|
import { ValidationPackage_decoder, ValidationPackage_encoder } from "./ValidationPackage.js";
|
|
6
|
-
import { singleton, collect, delay, toList } from "../fable_modules/fable-library-js.4.
|
|
6
|
+
import { singleton, collect, delay, toList } from "../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
7
7
|
import { YAMLContent_create_27AED5E3 } from "../fable_modules/YAMLicious.0.0.1/YAMLiciousTypes.fs.js";
|
|
8
8
|
import { string as string_1, resizearray as resizearray_1, object } from "../fable_modules/YAMLicious.0.0.1/Decode.fs.js";
|
|
9
9
|
import { ValidationPackagesConfig } from "../ValidationPackages/ValidationPackagesConfig.js";
|
|
10
|
-
import { unwrap } from "../fable_modules/fable-library-js.4.
|
|
10
|
+
import { unwrap } from "../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
11
11
|
import { read } from "../fable_modules/YAMLicious.0.0.1/Reader.fs.js";
|
|
12
12
|
import { defaultWhitespace } from "./Encode.js";
|
|
13
13
|
import { write } from "../fable_modules/YAMLicious.0.0.1/Writer.fs.js";
|
|
@@ -16,7 +16,7 @@ export function ValidationPackagesConfig_encoder(validationpackage) {
|
|
|
16
16
|
const objSeq = choose((tupledArg) => {
|
|
17
17
|
const v = tupledArg[1];
|
|
18
18
|
if (equals(v, new YAMLElement(5, []))) {
|
|
19
|
-
return
|
|
19
|
+
return undefined;
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
22
|
return [tupledArg[0], v];
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
namespace DynamicObj
|
|
2
|
+
|
|
3
|
+
open System.Collections.Generic
|
|
4
|
+
|
|
5
|
+
/// <summary>
|
|
6
|
+
/// This module contains lots of API functions for DynamicObj.
|
|
7
|
+
///
|
|
8
|
+
/// These functions are not static methods on the DynamicObj type itself because that type is designed to be inherited from,
|
|
9
|
+
/// and a lot of these functions might not make sense as static methods on inheriting types.
|
|
10
|
+
/// </summary>
|
|
11
|
+
module DynObj =
|
|
12
|
+
|
|
13
|
+
/// <summary>
|
|
14
|
+
/// Creates a new DynamicObj from a Dictionary containing dynamic properties.
|
|
15
|
+
/// </summary>
|
|
16
|
+
/// <param name="dynamicProperties">The dictionary with the dynamic properties</param>
|
|
17
|
+
let ofDict (dynamicProperties: Dictionary<string, obj>) = DynamicObj.ofDict dynamicProperties
|
|
18
|
+
|
|
19
|
+
/// <summary>
|
|
20
|
+
/// Creates a new DynamicObj from a sequence of key value pairs containing dynamic properties.
|
|
21
|
+
/// </summary>
|
|
22
|
+
/// <param name="dynamicProperties"></param>
|
|
23
|
+
let ofSeq (dynamicProperties: seq<string * obj>) =
|
|
24
|
+
dynamicProperties
|
|
25
|
+
|> dict
|
|
26
|
+
|> Dictionary
|
|
27
|
+
|> DynamicObj.ofDict
|
|
28
|
+
|
|
29
|
+
/// <summary>
|
|
30
|
+
/// Creates a new DynamicObj from a list of key value pairs containing dynamic properties.
|
|
31
|
+
/// </summary>
|
|
32
|
+
/// <param name="dynamicProperties"></param>
|
|
33
|
+
let ofList (dynamicProperties: (string * obj) list) =
|
|
34
|
+
dynamicProperties
|
|
35
|
+
|> ofSeq
|
|
36
|
+
|
|
37
|
+
/// <summary>
|
|
38
|
+
/// Creates a new DynamicObj from an array of key value pairs containing dynamic properties.
|
|
39
|
+
/// </summary>
|
|
40
|
+
/// <param name="dynamicProperties"></param>
|
|
41
|
+
let ofArray (dynamicProperties: (string * obj) array) =
|
|
42
|
+
dynamicProperties
|
|
43
|
+
|> ofSeq
|
|
44
|
+
|
|
45
|
+
/// <summary>
|
|
46
|
+
/// Combines the dynamic properties of the second DynamicObj onto the first.
|
|
47
|
+
///
|
|
48
|
+
/// In case of duplicate property names the members of the second object override those of the first.
|
|
49
|
+
/// </summary>
|
|
50
|
+
/// <param name="first"></param>
|
|
51
|
+
/// <param name="second"></param>
|
|
52
|
+
/// <remarks>This function mutates the first input DynamicObj</remarks>
|
|
53
|
+
let rec combine (first:DynamicObj) (second:DynamicObj) =
|
|
54
|
+
//printfn "Type %A" (first.GetType())
|
|
55
|
+
/// Consider deep-copy of first
|
|
56
|
+
for kv in (second.GetProperties true) do
|
|
57
|
+
match kv.Value with
|
|
58
|
+
| :? DynamicObj as valueS ->
|
|
59
|
+
// is dynObj in second
|
|
60
|
+
match first.TryGetPropertyValue (kv.Key) with
|
|
61
|
+
| Some valueF ->
|
|
62
|
+
let tmp = combine (unbox valueF) (unbox valueS)
|
|
63
|
+
first.SetProperty(kv.Key,tmp)
|
|
64
|
+
| None -> first.SetProperty(kv.Key,valueS)
|
|
65
|
+
| _ -> first.SetProperty(kv.Key,kv.Value)
|
|
66
|
+
first
|
|
67
|
+
|
|
68
|
+
/// <summary>
|
|
69
|
+
/// Returns Some('TPropertyValue) when a dynamic (or static) property with the given name and type exists on the input, otherwise None.
|
|
70
|
+
/// </summary>
|
|
71
|
+
/// <param name="propertyName">the name of the property to get</param>
|
|
72
|
+
/// <param name="dynObj">the input DynamicObj</param>
|
|
73
|
+
let inline tryGetTypedPropertyValue<'TPropertyValue> (propertyName:string) (dynObj : DynamicObj) : 'TPropertyValue option =
|
|
74
|
+
match (dynObj.TryGetPropertyValue propertyName) with
|
|
75
|
+
| None -> None
|
|
76
|
+
| Some o ->
|
|
77
|
+
match o with
|
|
78
|
+
| :? 'TPropertyValue as o -> o |> Some
|
|
79
|
+
| _ -> None
|
|
80
|
+
|
|
81
|
+
/// <summary>
|
|
82
|
+
/// Sets the dynamic (or static) property value with the given name on the given DynamicObj, creating a new dynamic property if none exists.
|
|
83
|
+
/// </summary>
|
|
84
|
+
/// <param name="propertyName">The name of the dynamic property to set</param>
|
|
85
|
+
/// <param name="propertyValue">The value of the dynamic property to set</param>
|
|
86
|
+
/// <param name="dynObj">The DynamicObj to set the property on</param>
|
|
87
|
+
/// <remarks>This function mutates the input DynamicObj</remarks>
|
|
88
|
+
let setProperty (propertyName:string) (propertyValue:'TPropertyValue) (dynObj : DynamicObj) =
|
|
89
|
+
dynObj.SetProperty(propertyName,propertyValue)
|
|
90
|
+
|
|
91
|
+
/// <summary>
|
|
92
|
+
/// Sets the dynamic (or static) property value with the given name, creating a new dynamic property if none exists on the given DynamicObj and returns it.
|
|
93
|
+
/// </summary>
|
|
94
|
+
/// <param name="propertyName">The name of the property to set</param>
|
|
95
|
+
/// <param name="propertyValue">The value of the property to set</param>
|
|
96
|
+
/// <param name="dynObj">The DynamicObj to set the property on</param>
|
|
97
|
+
/// <remarks>This function mutates the input DynamicObj</remarks>
|
|
98
|
+
let withProperty (propertyName:string) (propertyValue:'TPropertyValue) (dynObj: DynamicObj) =
|
|
99
|
+
setProperty propertyName propertyValue dynObj
|
|
100
|
+
dynObj
|
|
101
|
+
|
|
102
|
+
/// <summary>
|
|
103
|
+
/// Sets the dynamic (or static) property value with the given name on the given DynamicObj if the value is Some('TPropertyValue), creating a new dynamic property if none exists.
|
|
104
|
+
/// If the given propertyValue is None, does nothing to the input DynamicObj.
|
|
105
|
+
/// </summary>
|
|
106
|
+
/// <param name="propertyName">The name of the property to set</param>
|
|
107
|
+
/// <param name="propertyValue">The value of the property to set</param>
|
|
108
|
+
/// <param name="dynObj">The DynamicObj to set the property on</param>
|
|
109
|
+
/// <remarks>This function mutates the input DynamicObj</remarks>
|
|
110
|
+
let setOptionalProperty (propertyName: string) (propertyValue: 'TPropertyValue option) (dynObj: DynamicObj) =
|
|
111
|
+
match propertyValue with
|
|
112
|
+
| Some pv -> dynObj |> setProperty propertyName pv
|
|
113
|
+
| None -> ()
|
|
114
|
+
|
|
115
|
+
/// <summary>
|
|
116
|
+
/// Sets the dynamic (or static) property value with the given name on the given DynamicObj if the value is Some('TPropertyValue), creating a new dynamic property if none exists, and returns it.
|
|
117
|
+
/// If the given propertyValue is None, does nothing to the input DynamicObj.
|
|
118
|
+
/// </summary>
|
|
119
|
+
/// <param name="propertyName">The name of the property to set</param>
|
|
120
|
+
/// <param name="propertyValue">The value of the property to set</param>
|
|
121
|
+
/// <param name="dynObj">The DynamicObj to set the property on</param>
|
|
122
|
+
/// <remarks>This function mutates the input DynamicObj</remarks>
|
|
123
|
+
let withOptionalProperty (propertyName: string) (propertyValue: 'TPropertyValue option) (dynObj: DynamicObj) =
|
|
124
|
+
match propertyValue with
|
|
125
|
+
| Some pv -> dynObj |> withProperty propertyName pv
|
|
126
|
+
| None -> dynObj
|
|
127
|
+
|
|
128
|
+
/// <summary>
|
|
129
|
+
/// Sets the given dynamic (or static) property with the result of a mapping function applied to the given property value on the given DynamicObj if the value is Some('TPropertyValue).
|
|
130
|
+
/// If the given propertyValue is None, does nothing to the input DynamicObj.
|
|
131
|
+
/// </summary>
|
|
132
|
+
/// <param name="propertyName">The name of the property to set</param>
|
|
133
|
+
/// <param name="propertyValue">The value of the property to set</param>
|
|
134
|
+
/// <param name="mapping">A function to apply to the property value before setting it on the DynamicObj</param>
|
|
135
|
+
/// <param name="dynObj">The DynamicObj to set the property on</param>
|
|
136
|
+
/// <remarks>This function mutates the input DynamicObj</remarks>
|
|
137
|
+
let setOptionalPropertyBy (propertyName: string) (propertyValue: 'TPropertyValue option) (mapping: 'TPropertyValue -> 'UPropertyValue) (dynObj: DynamicObj) =
|
|
138
|
+
match propertyValue with
|
|
139
|
+
| Some pv -> dynObj |> setProperty propertyName (mapping pv)
|
|
140
|
+
| None -> ()
|
|
141
|
+
|
|
142
|
+
/// <summary>
|
|
143
|
+
/// Sets the given dynamic (or static) property with the result of a mapping function applied to the given property value on the given DynamicObj if the value is Some('TPropertyValue) and returns it.
|
|
144
|
+
/// If the given propertyValue is None, returns the unchanged DynamicObj.
|
|
145
|
+
/// </summary>
|
|
146
|
+
/// <param name="propertyName">The name of the property to set</param>
|
|
147
|
+
/// <param name="propertyValue">The value of the property to set</param>
|
|
148
|
+
/// <param name="mapping">A function to apply to the property value before setting it on the DynamicObj</param>
|
|
149
|
+
/// <param name="dynObj">The DynamicObj to set the property on</param>
|
|
150
|
+
/// <remarks>This function mutates the input DynamicObj</remarks>
|
|
151
|
+
let withOptionalPropertyBy (propertyName: string) (propertyValue: 'TPropertyValue option) (mapping: 'TPropertyValue -> 'UPropertyValue) (dynObj: DynamicObj) =
|
|
152
|
+
match propertyValue with
|
|
153
|
+
| Some pv -> dynObj |> withProperty propertyName (mapping pv)
|
|
154
|
+
| None -> dynObj
|
|
155
|
+
|
|
156
|
+
/// <summary>
|
|
157
|
+
/// Returns Some(boxed property value) if a dynamic (or static) property with the given name exists on the input, otherwise None.
|
|
158
|
+
/// </summary>
|
|
159
|
+
/// <param name="propertyName">The name of the property to get</param>
|
|
160
|
+
/// <param name="dynObj">The DynamicObj to get the property from</param>
|
|
161
|
+
let tryGetPropertyValue (propertyName: string) (dynObj: DynamicObj) =
|
|
162
|
+
dynObj.TryGetPropertyValue propertyName
|
|
163
|
+
|
|
164
|
+
/// <summary>
|
|
165
|
+
/// Removes any dynamic property with the given name from the input DynamicObj.
|
|
166
|
+
/// If the property is static and mutable, it will be set to null.
|
|
167
|
+
/// Static immutable properties cannot be removed.
|
|
168
|
+
/// </summary>
|
|
169
|
+
/// <param name="propertyName">The name of the property to remove</param>
|
|
170
|
+
/// <param name="dynObj">The DynamicObj to remove the property from</param>
|
|
171
|
+
/// <remarks>This function mutates the input DynamicObj</remarks>
|
|
172
|
+
/// <exception cref="System.MemberAccessException">Thrown if the dynamic property does not exist</exception>
|
|
173
|
+
let removeProperty (propertyName: string) (dynObj: DynamicObj) =
|
|
174
|
+
dynObj.RemoveProperty(propertyName) |> ignore
|
|
175
|
+
|
|
176
|
+
/// <summary>
|
|
177
|
+
/// Removes any dynamic property with the given name from the input DynamicObj and returns it.
|
|
178
|
+
/// If the property is static and mutable, it will be set to null.
|
|
179
|
+
/// Static immutable properties cannot be removed.
|
|
180
|
+
/// </summary>
|
|
181
|
+
/// <param name="propertyName">The name of the property to remove</param>
|
|
182
|
+
/// <param name="dynObj">The DynamicObj to remove the property from</param>
|
|
183
|
+
/// <remarks>This function mutates the input DynamicObj</remarks>
|
|
184
|
+
/// <exception cref="System.MemberAccessException">Thrown if the dynamic property does not exist</exception>
|
|
185
|
+
let withoutProperty(propertyName: string) (dynObj: DynamicObj) =
|
|
186
|
+
dynObj |> removeProperty propertyName
|
|
187
|
+
dynObj
|
|
188
|
+
|
|
189
|
+
/// <summary>
|
|
190
|
+
/// Returns a formatted string containing all static and dynamic properties of the given DynamicObj
|
|
191
|
+
/// </summary>
|
|
192
|
+
/// <param name="dynObj">The DynamicObj for which to generate a formatted string for</param>
|
|
193
|
+
let format (dynObj:DynamicObj) =
|
|
194
|
+
|
|
195
|
+
let members = dynObj.GetPropertyHelpers(true) |> List.ofSeq
|
|
196
|
+
|
|
197
|
+
let rec loop (object:DynamicObj) (indentationLevel:int) (membersLeft:PropertyHelper list) (acc:string list) =
|
|
198
|
+
let indent = [for i in 0 .. indentationLevel-1 do yield " "] |> String.concat ""
|
|
199
|
+
match membersLeft with
|
|
200
|
+
| [] -> acc |> List.rev |> String.concat System.Environment.NewLine
|
|
201
|
+
| m::rest ->
|
|
202
|
+
let item = m.GetValue object
|
|
203
|
+
let dynamicIndicator = if m.IsDynamic then "?" else ""
|
|
204
|
+
let name = m.Name
|
|
205
|
+
match item with
|
|
206
|
+
| :? DynamicObj as item ->
|
|
207
|
+
let innerMembers = item.GetPropertyHelpers(true) |> List.ofSeq
|
|
208
|
+
let innerPrint = (loop item (indentationLevel + 1) innerMembers [])
|
|
209
|
+
loop object indentationLevel rest ($"{indent}{dynamicIndicator}{name}:{System.Environment.NewLine}{innerPrint}" :: acc)
|
|
210
|
+
| item ->
|
|
211
|
+
loop object indentationLevel rest ($"{indent}{dynamicIndicator}{name}: {item}"::acc)
|
|
212
|
+
|
|
213
|
+
loop dynObj 0 members []
|
|
214
|
+
|
|
215
|
+
/// <summary>
|
|
216
|
+
/// Prints a formatted string containing all static and dynamic properties of the given DynamicObj
|
|
217
|
+
/// </summary>
|
|
218
|
+
/// <param name="dynObj">The DynamicObj for which to print a formatted string for</param>
|
|
219
|
+
let print (dynObj:DynamicObj) = printfn "%s" (dynObj |> format)
|