@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/Json/Table/ArcTable.js
CHANGED
|
@@ -1,42 +1,58 @@
|
|
|
1
|
-
import { toArray, collect, empty, map, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.4.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { Dictionary } from "../../fable_modules/fable-library-js.4.16.0/MutableMap.js";
|
|
1
|
+
import { toArray, collect, empty, map, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
2
|
+
import { tuple2, map as map_1, list } from "../../fable_modules/Thoth.Json.Core.0.4.0/Encode.fs.js";
|
|
3
|
+
import { decoder as decoder_1, encoder as encoder_1 } from "./CompositeHeader.js";
|
|
4
|
+
import { decoder as decoder_2, encoder as encoder_2 } from "./CompositeCell.js";
|
|
5
|
+
import { empty as empty_2, ofSeq } from "../../fable_modules/fable-library-js.4.22.0/Map.js";
|
|
6
|
+
import { int32ToString, equals, arrayHash, equalArrays, compareArrays } from "../../fable_modules/fable-library-js.4.22.0/Util.js";
|
|
7
|
+
import { Helpers_prependPath, array as array_2, string, int, tuple2 as tuple2_1, map$0027, list as list_1, object } from "../../fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
8
|
+
import { defaultArg } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
9
|
+
import { empty as empty_1 } from "../../fable_modules/fable-library-js.4.22.0/List.js";
|
|
10
|
+
import { Dictionary } from "../../fable_modules/fable-library-js.4.22.0/MutableMap.js";
|
|
12
11
|
import { ArcTable } from "../../Core/Table/ArcTable.js";
|
|
13
|
-
import {
|
|
14
|
-
import { addToDict, getItemFromDict } from "../../fable_modules/fable-library-js.4.
|
|
15
|
-
import { rangeDouble } from "../../fable_modules/fable-library-js.4.
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
21
|
-
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
22
|
-
import { defaultSpaces } from "../Encode.js";
|
|
23
|
-
import { arrayFromMap as arrayFromMap_1, encoder as encoder_1, decoder as decoder_3 } from "./OATable.js";
|
|
12
|
+
import { decodeCell, encodeCell } from "./CellTable.js";
|
|
13
|
+
import { addToDict, getItemFromDict } from "../../fable_modules/fable-library-js.4.22.0/MapUtil.js";
|
|
14
|
+
import { rangeDouble } from "../../fable_modules/fable-library-js.4.22.0/Range.js";
|
|
15
|
+
import { fill, setItem, fold, iterateIndexed, map as map_2 } from "../../fable_modules/fable-library-js.4.22.0/Array.js";
|
|
16
|
+
import { FSharpResult$2 } from "../../fable_modules/fable-library-js.4.22.0/Result.js";
|
|
17
|
+
import { ErrorReason$1 } from "../../fable_modules/Thoth.Json.Core.0.4.0/Types.fs.js";
|
|
18
|
+
import { decodeString, encodeString } from "../StringTable.js";
|
|
24
19
|
|
|
25
|
-
export function
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return singleton([
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
export function encoder(table) {
|
|
21
|
+
const values = toList(delay(() => {
|
|
22
|
+
let value_4;
|
|
23
|
+
return append(singleton(["name", (value_4 = table.Name, {
|
|
24
|
+
Encode(helpers_2) {
|
|
25
|
+
return helpers_2.encodeString(value_4);
|
|
26
|
+
},
|
|
27
|
+
})]), delay(() => append((table.Headers.length !== 0) ? singleton(["header", list(toList(delay(() => map(encoder_1, table.Headers))))]) : empty(), delay(() => ((table.Values.size !== 0) ? singleton(["values", map_1((tupledArg) => tuple2((value) => ({
|
|
28
|
+
Encode(helpers) {
|
|
29
|
+
return helpers.encodeSignedIntegralNumber(value);
|
|
30
|
+
},
|
|
31
|
+
}), (value_2) => ({
|
|
32
|
+
Encode(helpers_1) {
|
|
33
|
+
return helpers_1.encodeSignedIntegralNumber(value_2);
|
|
34
|
+
},
|
|
35
|
+
}), tupledArg[0], tupledArg[1]), encoder_2, ofSeq(toList(delay(() => collect((matchValue) => {
|
|
36
|
+
const activePatternResult = matchValue;
|
|
37
|
+
return singleton([activePatternResult[0], activePatternResult[1]]);
|
|
38
|
+
}, table.Values))), {
|
|
39
|
+
Compare: compareArrays,
|
|
40
|
+
}))]) : empty())))));
|
|
41
|
+
}));
|
|
42
|
+
return {
|
|
43
|
+
Encode(helpers_3) {
|
|
44
|
+
const arg = map((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_3)], values);
|
|
45
|
+
return helpers_3.encodeObject(arg);
|
|
46
|
+
},
|
|
47
|
+
};
|
|
32
48
|
}
|
|
33
49
|
|
|
34
|
-
export const
|
|
50
|
+
export const decoder = object((get$) => {
|
|
35
51
|
let arg_1, objectArg, arg_3, objectArg_1, objectArg_2;
|
|
36
52
|
let decodedHeader;
|
|
37
|
-
const collection = defaultArg((arg_1 = list_1(
|
|
53
|
+
const collection = defaultArg((arg_1 = list_1(decoder_1), (objectArg = get$.Optional, objectArg.Field("header", arg_1))), empty_1());
|
|
38
54
|
decodedHeader = Array.from(collection);
|
|
39
|
-
const decodedValues = new Dictionary(defaultArg((arg_3 = map$0027(tuple2_1(int, int),
|
|
55
|
+
const decodedValues = new Dictionary(defaultArg((arg_3 = map$0027(tuple2_1(int, int), decoder_2), (objectArg_1 = get$.Optional, objectArg_1.Field("values", arg_3))), empty_2({
|
|
40
56
|
Compare: compareArrays,
|
|
41
57
|
})), {
|
|
42
58
|
Equals: equalArrays,
|
|
@@ -45,32 +61,70 @@ export const ArcTable_decoder = object((get$) => {
|
|
|
45
61
|
return ArcTable.create((objectArg_2 = get$.Required, objectArg_2.Field("name", string)), decodedHeader, decodedValues);
|
|
46
62
|
});
|
|
47
63
|
|
|
48
|
-
export function
|
|
64
|
+
export function encoderCompressedColumn(columnIndex, rowCount, cellTable, table) {
|
|
49
65
|
if (table.Headers[columnIndex].IsIOType ? true : (rowCount < 100)) {
|
|
50
|
-
|
|
66
|
+
const values = toArray(delay(() => map((r) => encodeCell(cellTable, getItemFromDict(table.Values, [columnIndex, r])), rangeDouble(0, 1, rowCount - 1))));
|
|
67
|
+
return {
|
|
68
|
+
Encode(helpers) {
|
|
69
|
+
const arg = map_2((v) => v.Encode(helpers), values);
|
|
70
|
+
return helpers.encodeArray(arg);
|
|
71
|
+
},
|
|
72
|
+
};
|
|
51
73
|
}
|
|
52
74
|
else {
|
|
53
75
|
let current = getItemFromDict(table.Values, [columnIndex, 0]);
|
|
54
76
|
let from = 0;
|
|
55
|
-
|
|
56
|
-
let value, value_1;
|
|
77
|
+
const values_3 = toArray(delay(() => append(collect((i) => {
|
|
78
|
+
let values_1, value, value_1;
|
|
57
79
|
const next = getItemFromDict(table.Values, [columnIndex, i]);
|
|
58
|
-
return !equals(next, current) ? append(singleton(
|
|
80
|
+
return !equals(next, current) ? append(singleton((values_1 = [["f", (value = (from | 0), {
|
|
81
|
+
Encode(helpers_1) {
|
|
82
|
+
return helpers_1.encodeSignedIntegralNumber(value);
|
|
83
|
+
},
|
|
84
|
+
})], ["t", (value_1 = ((i - 1) | 0), {
|
|
85
|
+
Encode(helpers_2) {
|
|
86
|
+
return helpers_2.encodeSignedIntegralNumber(value_1);
|
|
87
|
+
},
|
|
88
|
+
})], ["v", encodeCell(cellTable, current)]], {
|
|
89
|
+
Encode(helpers_3) {
|
|
90
|
+
const arg_1 = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_3)], values_1);
|
|
91
|
+
return helpers_3.encodeObject(arg_1);
|
|
92
|
+
},
|
|
93
|
+
})), delay(() => {
|
|
59
94
|
current = next;
|
|
60
95
|
from = (i | 0);
|
|
61
96
|
return empty();
|
|
62
97
|
})) : empty();
|
|
63
98
|
}, rangeDouble(1, 1, rowCount - 1)), delay(() => {
|
|
64
|
-
let value_2, value_3;
|
|
65
|
-
return singleton(
|
|
66
|
-
|
|
99
|
+
let values_2, value_2, value_3;
|
|
100
|
+
return singleton((values_2 = [["f", (value_2 = (from | 0), {
|
|
101
|
+
Encode(helpers_4) {
|
|
102
|
+
return helpers_4.encodeSignedIntegralNumber(value_2);
|
|
103
|
+
},
|
|
104
|
+
})], ["t", (value_3 = ((rowCount - 1) | 0), {
|
|
105
|
+
Encode(helpers_5) {
|
|
106
|
+
return helpers_5.encodeSignedIntegralNumber(value_3);
|
|
107
|
+
},
|
|
108
|
+
})], ["v", encodeCell(cellTable, current)]], {
|
|
109
|
+
Encode(helpers_6) {
|
|
110
|
+
const arg_2 = map((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_6)], values_2);
|
|
111
|
+
return helpers_6.encodeObject(arg_2);
|
|
112
|
+
},
|
|
113
|
+
}));
|
|
114
|
+
}))));
|
|
115
|
+
return {
|
|
116
|
+
Encode(helpers_7) {
|
|
117
|
+
const arg_3 = map_2((v_3) => v_3.Encode(helpers_7), values_3);
|
|
118
|
+
return helpers_7.encodeArray(arg_3);
|
|
119
|
+
},
|
|
120
|
+
};
|
|
67
121
|
}
|
|
68
122
|
}
|
|
69
123
|
|
|
70
|
-
export function
|
|
124
|
+
export function decoderCompressedColumn(cellTable, table, columnIndex) {
|
|
71
125
|
return {
|
|
72
126
|
Decode(helper, column) {
|
|
73
|
-
const matchValue =
|
|
127
|
+
const matchValue = array_2(decodeCell(cellTable)).Decode(helper, column);
|
|
74
128
|
if (matchValue.tag === 1) {
|
|
75
129
|
const rangeDecoder = object((get$) => {
|
|
76
130
|
let from;
|
|
@@ -87,20 +141,20 @@ export function ArcTable_decoderCompressedColumn(cellTable, table, columnIndex)
|
|
|
87
141
|
addToDict(table.Values, [columnIndex, i], value);
|
|
88
142
|
}
|
|
89
143
|
});
|
|
90
|
-
const matchValue_1 =
|
|
91
|
-
return (matchValue_1.tag === 1) ? (new FSharpResult$2(1, [matchValue_1.fields[0]])) : (new FSharpResult$2(0, [
|
|
144
|
+
const matchValue_1 = array_2(rangeDecoder).Decode(helper, column);
|
|
145
|
+
return (matchValue_1.tag === 1) ? (new FSharpResult$2(1, [matchValue_1.fields[0]])) : (new FSharpResult$2(0, [undefined]));
|
|
92
146
|
}
|
|
93
147
|
else {
|
|
94
148
|
iterateIndexed((r, cell) => {
|
|
95
149
|
addToDict(table.Values, [columnIndex, r], cell);
|
|
96
150
|
}, matchValue.fields[0]);
|
|
97
|
-
return new FSharpResult$2(0, [
|
|
151
|
+
return new FSharpResult$2(0, [undefined]);
|
|
98
152
|
}
|
|
99
153
|
},
|
|
100
154
|
};
|
|
101
155
|
}
|
|
102
156
|
|
|
103
|
-
export function
|
|
157
|
+
export function arrayi(decoderi) {
|
|
104
158
|
return {
|
|
105
159
|
Decode(helpers, value) {
|
|
106
160
|
if (helpers.isArray(value)) {
|
|
@@ -132,92 +186,42 @@ export function ArcTable_arrayi(decoderi) {
|
|
|
132
186
|
};
|
|
133
187
|
}
|
|
134
188
|
|
|
135
|
-
export function
|
|
136
|
-
|
|
189
|
+
export function encoderCompressed(stringTable, oaTable, cellTable, table) {
|
|
190
|
+
const values_1 = toList(delay(() => append(singleton(["n", encodeString(stringTable, table.Name)]), delay(() => append((table.Headers.length !== 0) ? singleton(["h", list(toList(delay(() => map(encoder_1, table.Headers))))]) : empty(), delay(() => {
|
|
137
191
|
if (table.Values.size !== 0) {
|
|
138
192
|
const rowCount = table.RowCount | 0;
|
|
139
|
-
|
|
193
|
+
const columns = toArray(delay(() => map((c) => encoderCompressedColumn(c, rowCount, cellTable, table), rangeDouble(0, 1, table.ColumnCount - 1))));
|
|
194
|
+
return singleton(["c", {
|
|
195
|
+
Encode(helpers) {
|
|
196
|
+
const arg = map_2((v) => v.Encode(helpers), columns);
|
|
197
|
+
return helpers.encodeArray(arg);
|
|
198
|
+
},
|
|
199
|
+
}]);
|
|
140
200
|
}
|
|
141
201
|
else {
|
|
142
202
|
return empty();
|
|
143
203
|
}
|
|
144
|
-
}))))))
|
|
204
|
+
}))))));
|
|
205
|
+
return {
|
|
206
|
+
Encode(helpers_1) {
|
|
207
|
+
const arg_1 = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_1)], values_1);
|
|
208
|
+
return helpers_1.encodeObject(arg_1);
|
|
209
|
+
},
|
|
210
|
+
};
|
|
145
211
|
}
|
|
146
212
|
|
|
147
|
-
export function
|
|
213
|
+
export function decoderCompressed(stringTable, oaTable, cellTable) {
|
|
148
214
|
return object((get$) => {
|
|
149
215
|
let arg_1, objectArg, arg_3, objectArg_1, arg_5, objectArg_2;
|
|
150
216
|
let decodedHeader;
|
|
151
|
-
const collection = defaultArg((arg_1 = list_1(
|
|
217
|
+
const collection = defaultArg((arg_1 = list_1(decoder_1), (objectArg = get$.Optional, objectArg.Field("h", arg_1))), empty_1());
|
|
152
218
|
decodedHeader = Array.from(collection);
|
|
153
219
|
const table = ArcTable.create((arg_3 = decodeString(stringTable), (objectArg_1 = get$.Required, objectArg_1.Field("n", arg_3))), decodedHeader, new Dictionary([], {
|
|
154
220
|
Equals: equalArrays,
|
|
155
221
|
GetHashCode: arrayHash,
|
|
156
222
|
}));
|
|
157
|
-
(arg_5 =
|
|
223
|
+
(arg_5 = arrayi((columnIndex) => decoderCompressedColumn(cellTable, table, columnIndex)), (objectArg_2 = get$.Optional, objectArg_2.Field("c", arg_5)));
|
|
158
224
|
return table;
|
|
159
225
|
});
|
|
160
226
|
}
|
|
161
227
|
|
|
162
|
-
export function ARCtrl_ArcTable__ArcTable_fromJsonString_Static_Z721C83C5(s) {
|
|
163
|
-
const matchValue = fromString(ArcTable_decoder, s);
|
|
164
|
-
if (matchValue.tag === 1) {
|
|
165
|
-
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
return matchValue.fields[0];
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export function ARCtrl_ArcTable__ArcTable_toJsonString_Static_71136F3F(spaces) {
|
|
173
|
-
return (obj) => {
|
|
174
|
-
const value = ArcTable_encoder(obj);
|
|
175
|
-
return toString(defaultSpaces(spaces), value);
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export function ARCtrl_ArcTable__ArcTable_ToJsonString_71136F3F(this$, spaces) {
|
|
180
|
-
return ARCtrl_ArcTable__ArcTable_toJsonString_Static_71136F3F(unwrap(spaces))(this$);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export function ARCtrl_ArcTable__ArcTable_fromCompressedJsonString_Static_Z721C83C5(jsonString) {
|
|
184
|
-
const matchValue = fromString(object((get$) => {
|
|
185
|
-
let arg_5, objectArg_2;
|
|
186
|
-
let stringTable;
|
|
187
|
-
const objectArg = get$.Required;
|
|
188
|
-
stringTable = objectArg.Field("stringTable", decoder_2);
|
|
189
|
-
let oaTable;
|
|
190
|
-
const arg_3 = decoder_3(stringTable);
|
|
191
|
-
const objectArg_1 = get$.Required;
|
|
192
|
-
oaTable = objectArg_1.Field("oaTable", arg_3);
|
|
193
|
-
const arg_7 = ArcTable_decoderCompressed(stringTable, oaTable, (arg_5 = decoder_4(stringTable, oaTable), (objectArg_2 = get$.Required, objectArg_2.Field("cellTable", arg_5))));
|
|
194
|
-
const objectArg_3 = get$.Required;
|
|
195
|
-
return objectArg_3.Field("table", arg_7);
|
|
196
|
-
}), jsonString);
|
|
197
|
-
if (matchValue.tag === 1) {
|
|
198
|
-
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
199
|
-
}
|
|
200
|
-
else {
|
|
201
|
-
return matchValue.fields[0];
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export function ARCtrl_ArcTable__ArcTable_ToCompressedJsonString_71136F3F(this$, spaces) {
|
|
206
|
-
const spaces_1 = defaultSpaces(spaces) | 0;
|
|
207
|
-
const stringTable = new Map([]);
|
|
208
|
-
const oaTable = new Dictionary([], {
|
|
209
|
-
Equals: equals,
|
|
210
|
-
GetHashCode: safeHash,
|
|
211
|
-
});
|
|
212
|
-
const cellTable = new Dictionary([], {
|
|
213
|
-
Equals: equals,
|
|
214
|
-
GetHashCode: safeHash,
|
|
215
|
-
});
|
|
216
|
-
const arcTable = ArcTable_encoderCompressed(stringTable, oaTable, cellTable, this$);
|
|
217
|
-
return toString(spaces_1, new Json(5, [[["cellTable", encoder(stringTable, oaTable, arrayFromMap(cellTable))], ["oaTable", encoder_1(stringTable, arrayFromMap_1(oaTable))], ["stringTable", encoder_2(arrayFromMap_2(stringTable))], ["table", arcTable]]]));
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export function ARCtrl_ArcTable__ArcTable_toCompressedJsonString_Static_71136F3F(spaces) {
|
|
221
|
-
return (obj) => ARCtrl_ArcTable__ArcTable_ToCompressedJsonString_71136F3F(obj, unwrap(spaces));
|
|
222
|
-
}
|
|
223
|
-
|
package/Json/Table/CellTable.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { sortBy, map, toArray } from "../../fable_modules/fable-library-js.4.
|
|
2
|
-
import { comparePrimitives } from "../../fable_modules/fable-library-js.4.
|
|
3
|
-
import { item, map as map_1 } from "../../fable_modules/fable-library-js.4.
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { int, object, array as array_1 } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
1
|
+
import { sortBy, map, toArray } from "../../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
2
|
+
import { comparePrimitives } from "../../fable_modules/fable-library-js.4.22.0/Util.js";
|
|
3
|
+
import { item, map as map_1 } from "../../fable_modules/fable-library-js.4.22.0/Array.js";
|
|
4
|
+
import { decoderCompressed, encoderCompressed } from "./CompositeCell.js";
|
|
5
|
+
import { int, object, array as array_2 } from "../../fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
7
6
|
import { Dictionary_tryFind } from "../../Core/Helper/Collections.js";
|
|
8
|
-
import { addToDict } from "../../fable_modules/fable-library-js.4.
|
|
7
|
+
import { addToDict } from "../../fable_modules/fable-library-js.4.22.0/MapUtil.js";
|
|
9
8
|
|
|
10
9
|
export function arrayFromMap(otm) {
|
|
11
10
|
return toArray(map((kv_1) => kv_1[0], sortBy((kv) => kv[1], otm, {
|
|
@@ -14,11 +13,17 @@ export function arrayFromMap(otm) {
|
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
export function encoder(stringTable, oaTable, ot) {
|
|
17
|
-
|
|
16
|
+
const values = map_1((cc) => encoderCompressed(stringTable, oaTable, cc), ot);
|
|
17
|
+
return {
|
|
18
|
+
Encode(helpers) {
|
|
19
|
+
const arg = map_1((v) => v.Encode(helpers), values);
|
|
20
|
+
return helpers.encodeArray(arg);
|
|
21
|
+
},
|
|
22
|
+
};
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
export function decoder(stringTable, oaTable) {
|
|
21
|
-
return
|
|
26
|
+
return array_2(decoderCompressed(stringTable, oaTable));
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
export function encodeCell(otm, cc) {
|
|
@@ -26,11 +31,19 @@ export function encodeCell(otm, cc) {
|
|
|
26
31
|
if (matchValue == null) {
|
|
27
32
|
const i_1 = otm.size | 0;
|
|
28
33
|
addToDict(otm, cc, i_1);
|
|
29
|
-
return
|
|
34
|
+
return {
|
|
35
|
+
Encode(helpers_1) {
|
|
36
|
+
return helpers_1.encodeSignedIntegralNumber(i_1);
|
|
37
|
+
},
|
|
38
|
+
};
|
|
30
39
|
}
|
|
31
40
|
else {
|
|
32
41
|
const i = matchValue | 0;
|
|
33
|
-
return
|
|
42
|
+
return {
|
|
43
|
+
Encode(helpers) {
|
|
44
|
+
return helpers.encodeSignedIntegralNumber(i);
|
|
45
|
+
},
|
|
46
|
+
};
|
|
34
47
|
}
|
|
35
48
|
}
|
|
36
49
|
|
|
@@ -1,66 +1,65 @@
|
|
|
1
1
|
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "../OntologyAnnotation.js";
|
|
2
|
-
import { ofArray, singleton } from "../../fable_modules/fable-library-js.4.
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { index, string, object } from "../../fable_modules/Thoth.Json.Core.0.
|
|
2
|
+
import { ofArray, singleton } from "../../fable_modules/fable-library-js.4.22.0/List.js";
|
|
3
|
+
import { compressedDecoder, compressedEncoder, decoder as decoder_5, encoder as encoder_1 } from "../Data.js";
|
|
4
|
+
import { list } from "../../fable_modules/Thoth.Json.Core.0.4.0/Encode.fs.js";
|
|
5
|
+
import { map } from "../../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
6
|
+
import { index, string, object } from "../../fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
7
7
|
import { CompositeCell } from "../../Core/Table/CompositeCell.js";
|
|
8
|
-
import {
|
|
8
|
+
import { printf, toFail } from "../../fable_modules/fable-library-js.4.22.0/String.js";
|
|
9
9
|
import { decodeOA, encodeOA } from "./OATable.js";
|
|
10
10
|
import { decodeString, encodeString } from "../StringTable.js";
|
|
11
|
-
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
12
|
-
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
13
|
-
import { defaultSpaces } from "../Encode.js";
|
|
14
|
-
import { unwrap } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
15
11
|
|
|
16
|
-
export function
|
|
12
|
+
export function encoder(cc) {
|
|
17
13
|
const oaToJsonString = OntologyAnnotation_encoder;
|
|
18
|
-
const patternInput = (cc.tag === 0) ? ["Term", singleton(oaToJsonString(cc.fields[0]))] : ((cc.tag === 2) ? ["Unitized", ofArray([
|
|
19
|
-
|
|
14
|
+
const patternInput = (cc.tag === 0) ? ["Term", singleton(oaToJsonString(cc.fields[0]))] : ((cc.tag === 2) ? ["Unitized", ofArray([{
|
|
15
|
+
Encode(helpers_1) {
|
|
16
|
+
return helpers_1.encodeString(cc.fields[0]);
|
|
17
|
+
},
|
|
18
|
+
}, oaToJsonString(cc.fields[1])])] : ((cc.tag === 3) ? ["Data", singleton(encoder_1(cc.fields[0]))] : ["FreeText", singleton({
|
|
19
|
+
Encode(helpers) {
|
|
20
|
+
return helpers.encodeString(cc.fields[0]);
|
|
21
|
+
},
|
|
22
|
+
})]));
|
|
23
|
+
const values_1 = [["celltype", {
|
|
24
|
+
Encode(helpers_2) {
|
|
25
|
+
return helpers_2.encodeString(patternInput[0]);
|
|
26
|
+
},
|
|
27
|
+
}], ["values", list(patternInput[1])]];
|
|
28
|
+
return {
|
|
29
|
+
Encode(helpers_3) {
|
|
30
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_3)], values_1);
|
|
31
|
+
return helpers_3.encodeObject(arg);
|
|
32
|
+
},
|
|
33
|
+
};
|
|
20
34
|
}
|
|
21
35
|
|
|
22
|
-
export const
|
|
36
|
+
export const decoder = object((get$) => {
|
|
23
37
|
let arg_3, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3, arg_9, objectArg_4, arg_11, objectArg_5;
|
|
24
38
|
let matchValue;
|
|
25
39
|
const objectArg = get$.Required;
|
|
26
40
|
matchValue = objectArg.Field("celltype", string);
|
|
27
|
-
return (matchValue === "FreeText") ? (new CompositeCell(1, [(arg_3 = index(0, string), (objectArg_1 = get$.Required, objectArg_1.Field("values", arg_3)))])) : ((matchValue === "Term") ? (new CompositeCell(0, [(arg_5 = index(0, OntologyAnnotation_decoder), (objectArg_2 = get$.Required, objectArg_2.Field("values", arg_5)))])) : ((matchValue === "Unitized") ? (new CompositeCell(2, [(arg_7 = index(0, string), (objectArg_3 = get$.Required, objectArg_3.Field("values", arg_7))), (arg_9 = index(1, OntologyAnnotation_decoder), (objectArg_4 = get$.Required, objectArg_4.Field("values", arg_9)))])) : ((matchValue === "Data") ? (new CompositeCell(3, [(arg_11 = index(0,
|
|
41
|
+
return (matchValue === "FreeText") ? (new CompositeCell(1, [(arg_3 = index(0, string), (objectArg_1 = get$.Required, objectArg_1.Field("values", arg_3)))])) : ((matchValue === "Term") ? (new CompositeCell(0, [(arg_5 = index(0, OntologyAnnotation_decoder), (objectArg_2 = get$.Required, objectArg_2.Field("values", arg_5)))])) : ((matchValue === "Unitized") ? (new CompositeCell(2, [(arg_7 = index(0, string), (objectArg_3 = get$.Required, objectArg_3.Field("values", arg_7))), (arg_9 = index(1, OntologyAnnotation_decoder), (objectArg_4 = get$.Required, objectArg_4.Field("values", arg_9)))])) : ((matchValue === "Data") ? (new CompositeCell(3, [(arg_11 = index(0, decoder_5), (objectArg_5 = get$.Required, objectArg_5.Field("values", arg_11)))])) : toFail(printf("Error reading CompositeCell from json string: %A"))(matchValue))));
|
|
28
42
|
});
|
|
29
43
|
|
|
30
|
-
export function
|
|
31
|
-
const patternInput = (cc.tag === 0) ? ["Term", singleton(encodeOA(oaTable, cc.fields[0]))] : ((cc.tag === 2) ? ["Unitized", ofArray([encodeString(stringTable, cc.fields[0]), encodeOA(oaTable, cc.fields[1])])] : ((cc.tag === 3) ? ["Data", singleton(
|
|
32
|
-
|
|
44
|
+
export function encoderCompressed(stringTable, oaTable, cc) {
|
|
45
|
+
const patternInput = (cc.tag === 0) ? ["Term", singleton(encodeOA(oaTable, cc.fields[0]))] : ((cc.tag === 2) ? ["Unitized", ofArray([encodeString(stringTable, cc.fields[0]), encodeOA(oaTable, cc.fields[1])])] : ((cc.tag === 3) ? ["Data", singleton(compressedEncoder(stringTable, cc.fields[0]))] : ["FreeText", singleton(encodeString(stringTable, cc.fields[0]))]));
|
|
46
|
+
const values_1 = [["t", encodeString(stringTable, patternInput[0])], ["v", list(patternInput[1])]];
|
|
47
|
+
return {
|
|
48
|
+
Encode(helpers) {
|
|
49
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers)], values_1);
|
|
50
|
+
return helpers.encodeObject(arg);
|
|
51
|
+
},
|
|
52
|
+
};
|
|
33
53
|
}
|
|
34
54
|
|
|
35
|
-
export function
|
|
55
|
+
export function decoderCompressed(stringTable, oaTable) {
|
|
36
56
|
return object((get$) => {
|
|
37
57
|
let arg_3, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3, arg_9, objectArg_4, arg_11, objectArg_5;
|
|
38
58
|
let matchValue;
|
|
39
59
|
const arg_1 = decodeString(stringTable);
|
|
40
60
|
const objectArg = get$.Required;
|
|
41
61
|
matchValue = objectArg.Field("t", arg_1);
|
|
42
|
-
return (matchValue === "FreeText") ? (new CompositeCell(1, [(arg_3 = index(0, decodeString(stringTable)), (objectArg_1 = get$.Required, objectArg_1.Field("v", arg_3)))])) : ((matchValue === "Term") ? (new CompositeCell(0, [(arg_5 = index(0, decodeOA(oaTable)), (objectArg_2 = get$.Required, objectArg_2.Field("v", arg_5)))])) : ((matchValue === "Unitized") ? (new CompositeCell(2, [(arg_7 = index(0, decodeString(stringTable)), (objectArg_3 = get$.Required, objectArg_3.Field("v", arg_7))), (arg_9 = index(1, decodeOA(oaTable)), (objectArg_4 = get$.Required, objectArg_4.Field("v", arg_9)))])) : ((matchValue === "Data") ? (new CompositeCell(3, [(arg_11 = index(0,
|
|
62
|
+
return (matchValue === "FreeText") ? (new CompositeCell(1, [(arg_3 = index(0, decodeString(stringTable)), (objectArg_1 = get$.Required, objectArg_1.Field("v", arg_3)))])) : ((matchValue === "Term") ? (new CompositeCell(0, [(arg_5 = index(0, decodeOA(oaTable)), (objectArg_2 = get$.Required, objectArg_2.Field("v", arg_5)))])) : ((matchValue === "Unitized") ? (new CompositeCell(2, [(arg_7 = index(0, decodeString(stringTable)), (objectArg_3 = get$.Required, objectArg_3.Field("v", arg_7))), (arg_9 = index(1, decodeOA(oaTable)), (objectArg_4 = get$.Required, objectArg_4.Field("v", arg_9)))])) : ((matchValue === "Data") ? (new CompositeCell(3, [(arg_11 = index(0, compressedDecoder(stringTable)), (objectArg_5 = get$.Required, objectArg_5.Field("v", arg_11)))])) : toFail(printf("Error reading CompositeCell from json string: %A"))(matchValue))));
|
|
43
63
|
});
|
|
44
64
|
}
|
|
45
65
|
|
|
46
|
-
export function ARCtrl_CompositeCell__CompositeCell_fromJsonString_Static_Z721C83C5(s) {
|
|
47
|
-
const matchValue = fromString(CompositeCell_decoder, s);
|
|
48
|
-
if (matchValue.tag === 1) {
|
|
49
|
-
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
return matchValue.fields[0];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function ARCtrl_CompositeCell__CompositeCell_toJsonString_Static_71136F3F(spaces) {
|
|
57
|
-
return (obj) => {
|
|
58
|
-
const value = CompositeCell_encoder(obj);
|
|
59
|
-
return toString(defaultSpaces(spaces), value);
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function ARCtrl_CompositeCell__CompositeCell_ToJsonString_71136F3F(this$, spaces) {
|
|
64
|
-
return ARCtrl_CompositeCell__CompositeCell_toJsonString_Static_71136F3F(unwrap(spaces))(this$);
|
|
65
|
-
}
|
|
66
|
-
|
|
@@ -1,23 +1,32 @@
|
|
|
1
1
|
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "../OntologyAnnotation.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { index, string, object } from "../../fable_modules/Thoth.Json.Core.0.
|
|
2
|
+
import { empty, singleton } from "../../fable_modules/fable-library-js.4.22.0/List.js";
|
|
3
|
+
import { decoder as decoder_1, encoder as encoder_1 } from "./IOType.js";
|
|
4
|
+
import { list } from "../../fable_modules/Thoth.Json.Core.0.4.0/Encode.fs.js";
|
|
5
|
+
import { map } from "../../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
6
|
+
import { index, string, object } from "../../fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
7
7
|
import { CompositeHeader } from "../../Core/Table/CompositeHeader.js";
|
|
8
|
-
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
9
|
-
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
10
|
-
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
11
|
-
import { defaultSpaces } from "../Encode.js";
|
|
12
|
-
import { unwrap } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
13
8
|
|
|
14
|
-
export function
|
|
9
|
+
export function encoder(ch) {
|
|
15
10
|
const oaToJsonString = OntologyAnnotation_encoder;
|
|
16
|
-
const patternInput = (ch.tag === 14) ? ["Comment", singleton(
|
|
17
|
-
|
|
11
|
+
const patternInput = (ch.tag === 14) ? ["Comment", singleton({
|
|
12
|
+
Encode(helpers) {
|
|
13
|
+
return helpers.encodeString(ch.fields[0]);
|
|
14
|
+
},
|
|
15
|
+
})] : ((ch.tag === 3) ? ["Parameter", singleton(oaToJsonString(ch.fields[0]))] : ((ch.tag === 2) ? ["Factor", singleton(oaToJsonString(ch.fields[0]))] : ((ch.tag === 1) ? ["Characteristic", singleton(oaToJsonString(ch.fields[0]))] : ((ch.tag === 0) ? ["Component", singleton(oaToJsonString(ch.fields[0]))] : ((ch.tag === 4) ? ["ProtocolType", empty()] : ((ch.tag === 8) ? ["ProtocolREF", empty()] : ((ch.tag === 5) ? ["ProtocolDescription", empty()] : ((ch.tag === 6) ? ["ProtocolUri", empty()] : ((ch.tag === 7) ? ["ProtocolVersion", empty()] : ((ch.tag === 9) ? ["Performer", empty()] : ((ch.tag === 10) ? ["Date", empty()] : ((ch.tag === 11) ? ["Input", singleton(encoder_1(ch.fields[0]))] : ((ch.tag === 12) ? ["Output", singleton(encoder_1(ch.fields[0]))] : [ch.fields[0], empty()])))))))))))));
|
|
16
|
+
const values_1 = [["headertype", {
|
|
17
|
+
Encode(helpers_1) {
|
|
18
|
+
return helpers_1.encodeString(patternInput[0]);
|
|
19
|
+
},
|
|
20
|
+
}], ["values", list(patternInput[1])]];
|
|
21
|
+
return {
|
|
22
|
+
Encode(helpers_2) {
|
|
23
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_2)], values_1);
|
|
24
|
+
return helpers_2.encodeObject(arg);
|
|
25
|
+
},
|
|
26
|
+
};
|
|
18
27
|
}
|
|
19
28
|
|
|
20
|
-
export const
|
|
29
|
+
export const decoder = object((get$) => {
|
|
21
30
|
let arg_7, objectArg_3;
|
|
22
31
|
let headerType;
|
|
23
32
|
const objectArg = get$.Required;
|
|
@@ -28,31 +37,10 @@ export const CompositeHeader_decoder = object((get$) => {
|
|
|
28
37
|
return objectArg_1.Field("values", arg_3);
|
|
29
38
|
};
|
|
30
39
|
const io = () => {
|
|
31
|
-
const arg_5 = index(0,
|
|
40
|
+
const arg_5 = index(0, decoder_1);
|
|
32
41
|
const objectArg_2 = get$.Required;
|
|
33
42
|
return objectArg_2.Field("values", arg_5);
|
|
34
43
|
};
|
|
35
44
|
return (headerType === "Characteristic") ? (new CompositeHeader(1, [oa()])) : ((headerType === "Parameter") ? (new CompositeHeader(3, [oa()])) : ((headerType === "Component") ? (new CompositeHeader(0, [oa()])) : ((headerType === "Factor") ? (new CompositeHeader(2, [oa()])) : ((headerType === "Input") ? (new CompositeHeader(11, [io()])) : ((headerType === "Output") ? (new CompositeHeader(12, [io()])) : ((headerType === "ProtocolType") ? (new CompositeHeader(4, [])) : ((headerType === "ProtocolREF") ? (new CompositeHeader(8, [])) : ((headerType === "ProtocolDescription") ? (new CompositeHeader(5, [])) : ((headerType === "ProtocolUri") ? (new CompositeHeader(6, [])) : ((headerType === "ProtocolVersion") ? (new CompositeHeader(7, [])) : ((headerType === "Performer") ? (new CompositeHeader(9, [])) : ((headerType === "Date") ? (new CompositeHeader(10, [])) : ((headerType === "Comment") ? (new CompositeHeader(14, [(arg_7 = index(0, string), (objectArg_3 = get$.Required, objectArg_3.Field("values", arg_7)))])) : (new CompositeHeader(13, [headerType])))))))))))))));
|
|
36
45
|
});
|
|
37
46
|
|
|
38
|
-
export function ARCtrl_CompositeHeader__CompositeHeader_fromJsonString_Static_Z721C83C5(s) {
|
|
39
|
-
const matchValue = fromString(CompositeHeader_decoder, s);
|
|
40
|
-
if (matchValue.tag === 1) {
|
|
41
|
-
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
return matchValue.fields[0];
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function ARCtrl_CompositeHeader__CompositeHeader_toJsonString_Static_71136F3F(spaces) {
|
|
49
|
-
return (obj) => {
|
|
50
|
-
const value = CompositeHeader_encoder(obj);
|
|
51
|
-
return toString(defaultSpaces(spaces), value);
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function ARCtrl_CompositeHeader__CompositeHeader_ToJsonString_71136F3F(this$, spaces) {
|
|
56
|
-
return ARCtrl_CompositeHeader__CompositeHeader_toJsonString_Static_71136F3F(unwrap(spaces))(this$);
|
|
57
|
-
}
|
|
58
|
-
|
package/Json/Table/IOType.js
CHANGED
|
@@ -1,37 +1,15 @@
|
|
|
1
|
-
import { toString } from "../../fable_modules/fable-library-js.4.
|
|
2
|
-
import {
|
|
3
|
-
import { string, succeed, andThen } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
1
|
+
import { toString } from "../../fable_modules/fable-library-js.4.22.0/Types.js";
|
|
2
|
+
import { string, succeed, andThen } from "../../fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
4
3
|
import { IOType } from "../../Core/Table/CompositeHeader.js";
|
|
5
|
-
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
6
|
-
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
7
|
-
import { toString as toString_1 } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
8
|
-
import { defaultSpaces } from "../Encode.js";
|
|
9
|
-
import { unwrap } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
10
4
|
|
|
11
|
-
export function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export function ARCtrl_IOType__IOType_fromJsonString_Static_Z721C83C5(s) {
|
|
18
|
-
const matchValue = fromString(IOType_decoder, s);
|
|
19
|
-
if (matchValue.tag === 1) {
|
|
20
|
-
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
return matchValue.fields[0];
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export function ARCtrl_IOType__IOType_toJsonString_Static_71136F3F(spaces) {
|
|
28
|
-
return (obj) => {
|
|
29
|
-
const value = IOType_encoder(obj);
|
|
30
|
-
return toString_1(defaultSpaces(spaces), value);
|
|
5
|
+
export function encoder(io) {
|
|
6
|
+
const value = toString(io);
|
|
7
|
+
return {
|
|
8
|
+
Encode(helpers) {
|
|
9
|
+
return helpers.encodeString(value);
|
|
10
|
+
},
|
|
31
11
|
};
|
|
32
12
|
}
|
|
33
13
|
|
|
34
|
-
export
|
|
35
|
-
return ARCtrl_IOType__IOType_toJsonString_Static_71136F3F(unwrap(spaces))(this$);
|
|
36
|
-
}
|
|
14
|
+
export const decoder = andThen((s) => succeed(IOType.ofString(s)), string);
|
|
37
15
|
|