@nfdi4plants/arctrl 3.0.0-beta.4 → 3.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +894 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +121 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +279 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +101 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Choice.js +187 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +156 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +183 -7
- package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +217 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +154 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +20 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Collections.js +30 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +68 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +6 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +98 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +18 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +601 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +10 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +760 -16
- package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +18 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +36 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +35 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +355 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +21 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +133 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +543 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +53 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +673 -41
- package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +197 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +128 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/SystemException.js +8 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/TimeSpan.js +180 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +20 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +406 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +2 -2
- package/dist/ts/ts/ARC.d.ts +12 -5
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +172 -93
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +8 -1
- package/dist/ts/ts/Contract/ArcAssay.js +14 -5
- package/dist/ts/ts/Contract/ArcInvestigation.js +10 -1
- package/dist/ts/ts/Contract/ArcRun.js +19 -6
- package/dist/ts/ts/Contract/ArcStudy.js +19 -6
- package/dist/ts/ts/Contract/ArcWorkflow.js +19 -6
- package/dist/ts/ts/Contract/Contract.js +42 -1
- package/dist/ts/ts/Contract/Datamap.js +61 -17
- package/dist/ts/ts/Contract/Git.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Git.js +22 -6
- package/dist/ts/ts/Contract/License.d.ts +5 -0
- package/dist/ts/ts/Contract/License.d.ts.map +1 -0
- package/dist/ts/ts/Contract/License.js +34 -0
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +31 -6
- package/dist/ts/ts/ContractIO/ContractIO.js +5 -5
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +16 -4
- package/dist/ts/ts/Conversion.js +321 -48
- package/dist/ts/ts/Core/ArcTypes.js +216 -15
- package/dist/ts/ts/Core/Comment.js +11 -1
- package/dist/ts/ts/Core/CommentList.js +77 -2
- package/dist/ts/ts/Core/Conversion.js +123 -43
- package/dist/ts/ts/Core/Data.js +9 -2
- package/dist/ts/ts/Core/DataContext.js +19 -4
- package/dist/ts/ts/Core/DataFile.js +38 -1
- package/dist/ts/ts/Core/DataMap.js +111 -5
- package/dist/ts/ts/Core/Helper/Collections.js +106 -5
- package/dist/ts/ts/Core/Helper/HashCodes.js +4 -4
- package/dist/ts/ts/Core/Helper/Identifier.js +100 -2
- package/dist/ts/ts/Core/Helper/Regex.js +134 -2
- package/dist/ts/ts/Core/Helper/SemVer.js +23 -2
- package/dist/ts/ts/Core/IdentifierSetters.d.ts +3 -1
- package/dist/ts/ts/Core/IdentifierSetters.d.ts.map +1 -1
- package/dist/ts/ts/Core/IdentifierSetters.js +27 -1
- package/dist/ts/ts/Core/OntologyAnnotation.js +4 -1
- package/dist/ts/ts/Core/OntologySourceReference.js +8 -1
- package/dist/ts/ts/Core/Person.js +8 -1
- package/dist/ts/ts/Core/Process/ColumnIndex.js +121 -4
- package/dist/ts/ts/Core/Process/Component.js +37 -4
- package/dist/ts/ts/Core/Process/Factor.js +9 -4
- package/dist/ts/ts/Core/Process/FactorValue.js +61 -4
- package/dist/ts/ts/Core/Process/Material.js +14 -4
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +41 -3
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +67 -4
- package/dist/ts/ts/Core/Process/MaterialType.js +15 -1
- package/dist/ts/ts/Core/Process/Process.js +150 -7
- package/dist/ts/ts/Core/Process/ProcessInput.js +48 -8
- package/dist/ts/ts/Core/Process/ProcessOutput.js +44 -7
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +10 -5
- package/dist/ts/ts/Core/Process/ProcessSequence.js +127 -6
- package/dist/ts/ts/Core/Process/Protocol.js +78 -4
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -2
- package/dist/ts/ts/Core/Process/Sample.js +21 -3
- package/dist/ts/ts/Core/Process/Source.js +13 -3
- package/dist/ts/ts/Core/Publication.js +8 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +34 -25
- package/dist/ts/ts/Core/Table/ArcTableAux.js +150 -23
- package/dist/ts/ts/Core/Table/ArcTables.js +24 -15
- package/dist/ts/ts/Core/Table/CompositeCell.js +7 -3
- package/dist/ts/ts/Core/Table/CompositeColumn.js +8 -4
- package/dist/ts/ts/Core/Table/CompositeHeader.js +18 -15
- package/dist/ts/ts/Core/Template.js +12 -2
- package/dist/ts/ts/Core/Templates.js +8 -4
- package/dist/ts/ts/Core/Value.js +7 -3
- package/dist/ts/ts/CrossAsync.js +11 -1
- package/dist/ts/ts/FileSystem/Commit.js +18 -0
- package/dist/ts/ts/FileSystem/FileSystem.js +8 -3
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +1 -0
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -13
- package/dist/ts/ts/FileSystem/Path.d.ts +2 -0
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +17 -3
- package/dist/ts/ts/Json/Assay.d.ts +1 -1
- package/dist/ts/ts/Json/Assay.js +28 -28
- package/dist/ts/ts/Json/Comment.js +10 -10
- package/dist/ts/ts/Json/Data.js +6 -6
- package/dist/ts/ts/Json/DataMap/DataContext.js +4 -4
- package/dist/ts/ts/Json/DataMap/DataMap.js +2 -2
- package/dist/ts/ts/Json/Decode.js +14 -9
- package/dist/ts/ts/Json/Encode.js +43 -11
- package/dist/ts/ts/Json/Investigation.js +40 -22
- package/dist/ts/ts/Json/OntologyAnnotation.js +5 -5
- package/dist/ts/ts/Json/OntologySourceReference.js +2 -2
- package/dist/ts/ts/Json/Person.js +26 -26
- package/dist/ts/ts/Json/Process/Component.d.ts +6 -4
- package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Component.js +27 -7
- package/dist/ts/ts/Json/Process/Factor.js +3 -3
- package/dist/ts/ts/Json/Process/FactorValue.js +8 -8
- package/dist/ts/ts/Json/Process/Material.js +9 -9
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +8 -8
- package/dist/ts/ts/Json/Process/Process.js +12 -12
- package/dist/ts/ts/Json/Process/ProcessInput.js +4 -4
- package/dist/ts/ts/Json/Process/ProcessOutput.js +3 -3
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +11 -8
- package/dist/ts/ts/Json/Process/Protocol.js +13 -13
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +4 -2
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +21 -12
- package/dist/ts/ts/Json/Process/Sample.js +14 -14
- package/dist/ts/ts/Json/Process/Source.js +9 -9
- package/dist/ts/ts/Json/Process/Value.js +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +1 -1
- package/dist/ts/ts/Json/Publication.js +6 -6
- package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -0
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +3 -3
- package/dist/ts/ts/Json/ROCrate/LDNode.js +19 -19
- package/dist/ts/ts/Json/Run.d.ts +11 -0
- package/dist/ts/ts/Json/Run.d.ts.map +1 -0
- package/dist/ts/ts/Json/Run.js +76 -0
- package/dist/ts/ts/Json/StringTable.js +1 -1
- package/dist/ts/ts/Json/Study.js +34 -34
- package/dist/ts/ts/Json/Table/ArcTable.js +29 -29
- package/dist/ts/ts/Json/Table/CellTable.js +6 -6
- package/dist/ts/ts/Json/Table/CompositeCell.js +4 -4
- package/dist/ts/ts/Json/Table/CompositeHeader.js +2 -2
- package/dist/ts/ts/Json/Table/IOType.js +1 -1
- package/dist/ts/ts/Json/Table/OATable.js +7 -7
- package/dist/ts/ts/Json/Table/Templates.js +92 -6
- package/dist/ts/ts/Json/Workflow.d.ts +11 -0
- package/dist/ts/ts/Json/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/Json/Workflow.js +93 -0
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +17 -1
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +18 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +16 -1
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +25 -1
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +24 -1
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +23 -1
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +35 -1
- package/dist/ts/ts/Json/context/rocrate/rocrate_context.js +61 -0
- package/dist/ts/ts/Json.d.ts +34 -2
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +129 -2
- package/dist/ts/ts/JsonIO/Assay.js +15 -3
- package/dist/ts/ts/JsonIO/Investigation.js +15 -3
- package/dist/ts/ts/JsonIO/LDObject.js +17 -3
- package/dist/ts/ts/JsonIO/OntologyAnnotation.js +12 -2
- package/dist/ts/ts/JsonIO/Person.d.ts +16 -0
- package/dist/ts/ts/JsonIO/Person.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Person.js +67 -0
- package/dist/ts/ts/JsonIO/Run.d.ts +10 -0
- package/dist/ts/ts/JsonIO/Run.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Run.js +50 -0
- package/dist/ts/ts/JsonIO/Study.js +15 -3
- package/dist/ts/ts/JsonIO/Table/Compression.js +3 -3
- package/dist/ts/ts/JsonIO/Table/Templates.js +60 -5
- package/dist/ts/ts/JsonIO/Workflow.d.ts +10 -0
- package/dist/ts/ts/JsonIO/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Workflow.js +50 -0
- package/dist/ts/ts/License.d.ts +39 -0
- package/dist/ts/ts/License.d.ts.map +1 -0
- package/dist/ts/ts/License.js +123 -0
- package/dist/ts/ts/ROCrate/Generic/Comment.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts +69 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.js +450 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts +1 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/Generic/Dataset.js +27 -1
- package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/File.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProcess.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Organization.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Person.js +7 -2
- package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +19 -15
- package/dist/ts/ts/ROCrate/Generic/Sample.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +5 -1
- package/dist/ts/ts/ROCrate/LDContext.js +15 -6
- package/dist/ts/ts/ROCrate/LDObject.js +53 -17
- package/dist/ts/ts/ROCrateIO.d.ts +9 -3
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +67 -14
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +18 -15
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +5 -4
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +40 -17
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +30 -15
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +32 -18
- package/dist/ts/ts/Spreadsheet/ArcRun.js +23 -8
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +22 -7
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +23 -8
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +75 -5
- package/dist/ts/ts/Spreadsheet/DataMap.js +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +4 -4
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +8 -8
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
- package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +6 -3
- package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +9 -3
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -4
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +7 -5
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +10 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +246 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +19 -13
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
- package/dist/ts/ts/Template.Web.js +5 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackage.js +8 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +10 -3
- package/dist/ts/ts/WebRequest/WebRequest.Node.js +1 -0
- package/dist/ts/ts/Xlsx.d.ts +21 -1
- package/dist/ts/ts/Xlsx.d.ts.map +1 -1
- package/dist/ts/ts/Xlsx.js +81 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +18 -2
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -2
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +27 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +14 -3
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +30 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +5 -1
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +65 -2
- package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +257 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +71 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +11 -1
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +188 -11
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +80 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +63 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +17 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/CellBuilder.fs.js +198 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Expression.fs.js +46 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/RowBuilder.fs.js +131 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Types.fs.js +307 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +38 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +11 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +14 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +31 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Cell.fs.js +65 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Column.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Row.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Table.fs.js +34 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +49 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Workbook.fs.js +44 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Worksheet.fs.js +129 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +17 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +42 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Json.fs.js +53 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +9 -9
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +1 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +5 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +730 -23
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +192 -7
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +45 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +15 -2
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +1383 -15
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +45 -4
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +10 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +5 -5
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +16 -6
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +26 -23
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +1 -1
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +8 -8
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +18 -2
- package/package.json +1 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.js +0 -3
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitignore.js +0 -3
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { Record } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
2
|
-
import { defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
-
import '../
|
|
4
|
-
import { append, singleton, empty } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
+
import { map, defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { OntologyAnnotation_$reflection } from '../OntologyAnnotation.js';
|
|
4
|
+
import { tryFind, exists, append, singleton, filter, empty } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
5
|
+
import { ProtocolParameter_$reflection } from './ProtocolParameter.js';
|
|
6
|
+
import { Component_$reflection } from './Component.js';
|
|
7
|
+
import { Comment$_$reflection } from '../Comment.js';
|
|
8
|
+
import { equals } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
9
|
+
import { record_type, option_type, string_type, list_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
5
10
|
|
|
6
11
|
class Protocol extends Record {
|
|
7
12
|
constructor(ID, Name, ProtocolType, Description, Uri, Version, Parameters, Components, Comments) {
|
|
@@ -17,33 +22,102 @@ class Protocol extends Record {
|
|
|
17
22
|
this.Comments = Comments;
|
|
18
23
|
}
|
|
19
24
|
}
|
|
25
|
+
function Protocol_$reflection() {
|
|
26
|
+
return record_type("ARCtrl.Process.Protocol", [], Protocol, () => [["ID", option_type(string_type)], ["Name", option_type(string_type)], ["ProtocolType", option_type(OntologyAnnotation_$reflection())], ["Description", option_type(string_type)], ["Uri", option_type(string_type)], ["Version", option_type(string_type)], ["Parameters", option_type(list_type(ProtocolParameter_$reflection()))], ["Components", option_type(list_type(Component_$reflection()))], ["Comments", option_type(list_type(Comment$_$reflection()))]]);
|
|
27
|
+
}
|
|
20
28
|
function Protocol_make(id, name, protocolType, description, uri, version, parameters, components, comments) {
|
|
21
29
|
return new Protocol(id, name, protocolType, description, uri, version, parameters, components, comments);
|
|
22
30
|
}
|
|
23
31
|
function Protocol_create_Z414665E7(Id, Name, ProtocolType, Description, Uri, Version, Parameters, Components, Comments) {
|
|
24
32
|
return Protocol_make(Id, Name, ProtocolType, Description, Uri, Version, Parameters, Components, Comments);
|
|
25
33
|
}
|
|
34
|
+
function Protocol_get_empty() {
|
|
35
|
+
return Protocol_create_Z414665E7();
|
|
36
|
+
}
|
|
37
|
+
function Protocol_tryGetByName(name, protocols) {
|
|
38
|
+
return tryFind((p) => equals(p.Name, name), protocols);
|
|
39
|
+
}
|
|
40
|
+
function Protocol_existsByName(name, protocols) {
|
|
41
|
+
return exists((p) => equals(p.Name, name), protocols);
|
|
42
|
+
}
|
|
43
|
+
function Protocol_add(protocols, protocol) {
|
|
44
|
+
return append(protocols, singleton(protocol));
|
|
45
|
+
}
|
|
46
|
+
function Protocol_removeByName(name, protocols) {
|
|
47
|
+
return filter((p) => !equals(p.Name, name), protocols);
|
|
48
|
+
}
|
|
49
|
+
function Protocol_getComments_3BF20962(protocol) {
|
|
50
|
+
return protocol.Comments;
|
|
51
|
+
}
|
|
52
|
+
function Protocol_mapComments(f, protocol) {
|
|
53
|
+
return new Protocol(protocol.ID, protocol.Name, protocol.ProtocolType, protocol.Description, protocol.Uri, protocol.Version, protocol.Parameters, protocol.Components, map(f, protocol.Comments));
|
|
54
|
+
}
|
|
55
|
+
function Protocol_setComments(protocol, comments) {
|
|
56
|
+
return new Protocol(protocol.ID, protocol.Name, protocol.ProtocolType, protocol.Description, protocol.Uri, protocol.Version, protocol.Parameters, protocol.Components, comments);
|
|
57
|
+
}
|
|
58
|
+
function Protocol_getProtocolType_3BF20962(protocol) {
|
|
59
|
+
return protocol.ProtocolType;
|
|
60
|
+
}
|
|
61
|
+
function Protocol_mapProtocolType(f, protocol) {
|
|
62
|
+
return new Protocol(protocol.ID, protocol.Name, map(f, protocol.ProtocolType), protocol.Description, protocol.Uri, protocol.Version, protocol.Parameters, protocol.Components, protocol.Comments);
|
|
63
|
+
}
|
|
26
64
|
function Protocol_setProtocolType(protocol, protocolType) {
|
|
27
65
|
return new Protocol(protocol.ID, protocol.Name, protocolType, protocol.Description, protocol.Uri, protocol.Version, protocol.Parameters, protocol.Components, protocol.Comments);
|
|
28
66
|
}
|
|
67
|
+
function Protocol_getVersion_3BF20962(protocol) {
|
|
68
|
+
return protocol.Version;
|
|
69
|
+
}
|
|
70
|
+
function Protocol_mapVersion(f, protocol) {
|
|
71
|
+
return new Protocol(protocol.ID, protocol.Name, protocol.ProtocolType, protocol.Description, protocol.Uri, map(f, protocol.Version), protocol.Parameters, protocol.Components, protocol.Comments);
|
|
72
|
+
}
|
|
29
73
|
function Protocol_setVersion(protocol, version) {
|
|
30
74
|
return new Protocol(protocol.ID, protocol.Name, protocol.ProtocolType, protocol.Description, protocol.Uri, version, protocol.Parameters, protocol.Components, protocol.Comments);
|
|
31
75
|
}
|
|
76
|
+
function Protocol_getName_3BF20962(protocol) {
|
|
77
|
+
return protocol.Name;
|
|
78
|
+
}
|
|
79
|
+
function Protocol_mapName(f, protocol) {
|
|
80
|
+
return new Protocol(protocol.ID, map(f, protocol.Name), protocol.ProtocolType, protocol.Description, protocol.Uri, protocol.Version, protocol.Parameters, protocol.Components, protocol.Comments);
|
|
81
|
+
}
|
|
32
82
|
function Protocol_setName(protocol, name) {
|
|
33
83
|
return new Protocol(protocol.ID, name, protocol.ProtocolType, protocol.Description, protocol.Uri, protocol.Version, protocol.Parameters, protocol.Components, protocol.Comments);
|
|
34
84
|
}
|
|
85
|
+
function Protocol_getDescription_3BF20962(protocol) {
|
|
86
|
+
return protocol.Description;
|
|
87
|
+
}
|
|
88
|
+
function Protocol_mapDescription(f, protocol) {
|
|
89
|
+
return new Protocol(protocol.ID, protocol.Name, protocol.ProtocolType, map(f, protocol.Description), protocol.Uri, protocol.Version, protocol.Parameters, protocol.Components, protocol.Comments);
|
|
90
|
+
}
|
|
35
91
|
function Protocol_setDescription(protocol, description) {
|
|
36
92
|
return new Protocol(protocol.ID, protocol.Name, protocol.ProtocolType, description, protocol.Uri, protocol.Version, protocol.Parameters, protocol.Components, protocol.Comments);
|
|
37
93
|
}
|
|
94
|
+
function Protocol_getUri_3BF20962(protocol) {
|
|
95
|
+
return protocol.Uri;
|
|
96
|
+
}
|
|
97
|
+
function Protocol_mapUri(f, protocol) {
|
|
98
|
+
return new Protocol(protocol.ID, protocol.Name, protocol.ProtocolType, protocol.Description, map(f, protocol.Uri), protocol.Version, protocol.Parameters, protocol.Components, protocol.Comments);
|
|
99
|
+
}
|
|
38
100
|
function Protocol_setUri(protocol, uri) {
|
|
39
101
|
return new Protocol(protocol.ID, protocol.Name, protocol.ProtocolType, protocol.Description, uri, protocol.Version, protocol.Parameters, protocol.Components, protocol.Comments);
|
|
40
102
|
}
|
|
103
|
+
function Protocol_getComponents_3BF20962(protocol) {
|
|
104
|
+
return protocol.Components;
|
|
105
|
+
}
|
|
106
|
+
function Protocol_mapComponents(f, protocol) {
|
|
107
|
+
return new Protocol(protocol.ID, protocol.Name, protocol.ProtocolType, protocol.Description, protocol.Uri, protocol.Version, protocol.Parameters, map(f, protocol.Components), protocol.Comments);
|
|
108
|
+
}
|
|
41
109
|
function Protocol_setComponents(protocol, components) {
|
|
42
110
|
return new Protocol(protocol.ID, protocol.Name, protocol.ProtocolType, protocol.Description, protocol.Uri, protocol.Version, protocol.Parameters, components, protocol.Comments);
|
|
43
111
|
}
|
|
44
112
|
function Protocol_addComponent(comp, protocol) {
|
|
45
113
|
return Protocol_setComponents(protocol, append(defaultArg(protocol.Components, empty()), singleton(comp)));
|
|
46
114
|
}
|
|
115
|
+
function Protocol_getParameters_3BF20962(protocol) {
|
|
116
|
+
return protocol.Parameters;
|
|
117
|
+
}
|
|
118
|
+
function Protocol_mapParameters(f, protocol) {
|
|
119
|
+
return new Protocol(protocol.ID, protocol.Name, protocol.ProtocolType, protocol.Description, protocol.Uri, protocol.Version, map(f, protocol.Parameters), protocol.Components, protocol.Comments);
|
|
120
|
+
}
|
|
47
121
|
function Protocol_setParameters(protocol, parameters) {
|
|
48
122
|
return new Protocol(protocol.ID, protocol.Name, protocol.ProtocolType, protocol.Description, protocol.Uri, protocol.Version, parameters, protocol.Components, protocol.Comments);
|
|
49
123
|
}
|
|
@@ -51,4 +125,4 @@ function Protocol_addParameter(parameter, protocol) {
|
|
|
51
125
|
return Protocol_setParameters(protocol, append(defaultArg(protocol.Parameters, empty()), singleton(parameter)));
|
|
52
126
|
}
|
|
53
127
|
|
|
54
|
-
export { Protocol, Protocol_addComponent, Protocol_addParameter, Protocol_create_Z414665E7, Protocol_make, Protocol_setComponents, Protocol_setDescription, Protocol_setName, Protocol_setParameters, Protocol_setProtocolType, Protocol_setUri, Protocol_setVersion };
|
|
128
|
+
export { Protocol, Protocol_$reflection, Protocol_add, Protocol_addComponent, Protocol_addParameter, Protocol_create_Z414665E7, Protocol_existsByName, Protocol_getComments_3BF20962, Protocol_getComponents_3BF20962, Protocol_getDescription_3BF20962, Protocol_getName_3BF20962, Protocol_getParameters_3BF20962, Protocol_getProtocolType_3BF20962, Protocol_getUri_3BF20962, Protocol_getVersion_3BF20962, Protocol_get_empty, Protocol_make, Protocol_mapComments, Protocol_mapComponents, Protocol_mapDescription, Protocol_mapName, Protocol_mapParameters, Protocol_mapProtocolType, Protocol_mapUri, Protocol_mapVersion, Protocol_removeByName, Protocol_setComments, Protocol_setComponents, Protocol_setDescription, Protocol_setName, Protocol_setParameters, Protocol_setProtocolType, Protocol_setUri, Protocol_setVersion, Protocol_tryGetByName };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { unwrap, defaultArg, map, bind } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
|
-
import { OntologyAnnotation } from '../OntologyAnnotation.js';
|
|
2
|
+
import { OntologyAnnotation, OntologyAnnotation_$reflection } from '../OntologyAnnotation.js';
|
|
3
3
|
import { Option_fromValueWithDefault } from '../Helper/Collections.js';
|
|
4
4
|
import { Record, toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
5
|
+
import { record_type, option_type, string_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
5
6
|
|
|
6
7
|
class ProtocolParameter extends Record {
|
|
7
8
|
constructor(ID, ParameterName) {
|
|
@@ -65,5 +66,8 @@ class ProtocolParameter extends Record {
|
|
|
65
66
|
return "OA " + this$.NameText;
|
|
66
67
|
}
|
|
67
68
|
}
|
|
69
|
+
function ProtocolParameter_$reflection() {
|
|
70
|
+
return record_type("ARCtrl.Process.ProtocolParameter", [], ProtocolParameter, () => [["ID", option_type(string_type)], ["ParameterName", option_type(OntologyAnnotation_$reflection())]]);
|
|
71
|
+
}
|
|
68
72
|
|
|
69
|
-
export { ProtocolParameter };
|
|
73
|
+
export { ProtocolParameter, ProtocolParameter_$reflection };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { Record, toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
2
|
-
import { length, empty } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
+
import { length, empty, choose, append } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
3
3
|
import { defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
4
|
-
import '
|
|
4
|
+
import { MaterialAttributeValue_$reflection } from './MaterialAttributeValue.js';
|
|
5
|
+
import { FactorValue_$reflection } from './FactorValue.js';
|
|
5
6
|
import { toText, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
7
|
+
import { Source_$reflection } from './Source.js';
|
|
8
|
+
import { record_type, option_type, string_type, list_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
6
9
|
|
|
7
10
|
class Sample extends Record {
|
|
8
11
|
constructor(ID, Name, Characteristics, FactorValues, DerivesFrom) {
|
|
@@ -25,15 +28,30 @@ class Sample extends Record {
|
|
|
25
28
|
return toText(printf("%s [%i characteristics; %i factors]"))(arg)(chars)(facts);
|
|
26
29
|
}
|
|
27
30
|
}
|
|
31
|
+
function Sample_$reflection() {
|
|
32
|
+
return record_type("ARCtrl.Process.Sample", [], Sample, () => [["ID", option_type(string_type)], ["Name", option_type(string_type)], ["Characteristics", option_type(list_type(MaterialAttributeValue_$reflection()))], ["FactorValues", option_type(list_type(FactorValue_$reflection()))], ["DerivesFrom", option_type(list_type(Source_$reflection()))]]);
|
|
33
|
+
}
|
|
28
34
|
function Sample_make(id, name, characteristics, factorValues, derivesFrom) {
|
|
29
35
|
return new Sample(id, name, characteristics, factorValues, derivesFrom);
|
|
30
36
|
}
|
|
31
37
|
function Sample_create_62424AD2(Id, Name, Characteristics, FactorValues, DerivesFrom) {
|
|
32
38
|
return Sample_make(Id, Name, Characteristics, FactorValues, DerivesFrom);
|
|
33
39
|
}
|
|
40
|
+
function Sample_get_empty() {
|
|
41
|
+
return Sample_create_62424AD2();
|
|
42
|
+
}
|
|
34
43
|
function Sample__get_NameAsString(this$) {
|
|
35
44
|
return defaultArg(this$.Name, "");
|
|
36
45
|
}
|
|
46
|
+
function Sample_getCharacteristicUnits_53716792(s) {
|
|
47
|
+
return choose((c) => c.Unit, defaultArg(s.Characteristics, empty()));
|
|
48
|
+
}
|
|
49
|
+
function Sample_getFactorUnits_53716792(s) {
|
|
50
|
+
return choose((c) => c.Unit, defaultArg(s.FactorValues, empty()));
|
|
51
|
+
}
|
|
52
|
+
function Sample_getUnits_53716792(s) {
|
|
53
|
+
return append(Sample_getCharacteristicUnits_53716792(s), Sample_getFactorUnits_53716792(s));
|
|
54
|
+
}
|
|
37
55
|
function Sample_setCharacteristicValues(values, s) {
|
|
38
56
|
return new Sample(s.ID, s.Name, values, s.FactorValues, s.DerivesFrom);
|
|
39
57
|
}
|
|
@@ -41,4 +59,4 @@ function Sample_setFactorValues(values, s) {
|
|
|
41
59
|
return new Sample(s.ID, s.Name, s.Characteristics, values, s.DerivesFrom);
|
|
42
60
|
}
|
|
43
61
|
|
|
44
|
-
export { Sample, Sample__get_NameAsString, Sample_create_62424AD2, Sample_make, Sample_setCharacteristicValues, Sample_setFactorValues };
|
|
62
|
+
export { Sample, Sample_$reflection, Sample__get_NameAsString, Sample_create_62424AD2, Sample_getCharacteristicUnits_53716792, Sample_getFactorUnits_53716792, Sample_getUnits_53716792, Sample_get_empty, Sample_make, Sample_setCharacteristicValues, Sample_setFactorValues };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Record, toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
2
|
-
import { length, empty } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
+
import { length, empty, choose } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
3
3
|
import { defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
4
|
-
import '
|
|
4
|
+
import { MaterialAttributeValue_$reflection } from './MaterialAttributeValue.js';
|
|
5
5
|
import { toText, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
6
|
+
import { record_type, option_type, string_type, list_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
6
7
|
|
|
7
8
|
class Source extends Record {
|
|
8
9
|
constructor(ID, Name, Characteristics) {
|
|
@@ -22,17 +23,26 @@ class Source extends Record {
|
|
|
22
23
|
return toText(printf("%s [%i characteristics]"))(arg)(l);
|
|
23
24
|
}
|
|
24
25
|
}
|
|
26
|
+
function Source_$reflection() {
|
|
27
|
+
return record_type("ARCtrl.Process.Source", [], Source, () => [["ID", option_type(string_type)], ["Name", option_type(string_type)], ["Characteristics", option_type(list_type(MaterialAttributeValue_$reflection()))]]);
|
|
28
|
+
}
|
|
25
29
|
function Source_make(id, name, characteristics) {
|
|
26
30
|
return new Source(id, name, characteristics);
|
|
27
31
|
}
|
|
28
32
|
function Source_create_Z5CA08497(Id, Name, Characteristics) {
|
|
29
33
|
return Source_make(Id, Name, Characteristics);
|
|
30
34
|
}
|
|
35
|
+
function Source_get_empty() {
|
|
36
|
+
return Source_create_Z5CA08497();
|
|
37
|
+
}
|
|
31
38
|
function Source__get_NameAsString(this$) {
|
|
32
39
|
return defaultArg(this$.Name, "");
|
|
33
40
|
}
|
|
41
|
+
function Source_getUnits_53E41069(m) {
|
|
42
|
+
return choose((c) => c.Unit, defaultArg(m.Characteristics, empty()));
|
|
43
|
+
}
|
|
34
44
|
function Source_setCharacteristicValues(values, m) {
|
|
35
45
|
return new Source(m.ID, m.Name, values);
|
|
36
46
|
}
|
|
37
47
|
|
|
38
|
-
export { Source, Source__get_NameAsString, Source_create_Z5CA08497, Source_make, Source_setCharacteristicValues };
|
|
48
|
+
export { Source, Source_$reflection, Source__get_NameAsString, Source_create_Z5CA08497, Source_getUnits_53E41069, Source_get_empty, Source_make, Source_setCharacteristicValues };
|
|
@@ -7,6 +7,7 @@ import { join, toText, printf } from '../../node_modules/@fable-org/fable-librar
|
|
|
7
7
|
import { map, choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
8
8
|
import { length } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
9
9
|
import { toString } from '../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
10
|
+
import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
10
11
|
|
|
11
12
|
class Publication {
|
|
12
13
|
constructor(pubMedID, doi, authors, title, status, comments) {
|
|
@@ -104,5 +105,11 @@ class Publication {
|
|
|
104
105
|
return toString(sb);
|
|
105
106
|
}
|
|
106
107
|
}
|
|
108
|
+
function Publication_$reflection() {
|
|
109
|
+
return class_type("ARCtrl.Publication", void 0, Publication);
|
|
110
|
+
}
|
|
111
|
+
function Publication_$ctor_Z645CED36(pubMedID, doi, authors, title, status, comments) {
|
|
112
|
+
return new Publication(pubMedID, doi, authors, title, status, comments);
|
|
113
|
+
}
|
|
107
114
|
|
|
108
|
-
export { Publication };
|
|
115
|
+
export { Publication, Publication_$ctor_Z645CED36, Publication_$reflection };
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { getEnumerator, disposeSafe, equals, safeHash
|
|
1
|
+
import { getEnumerator, disposeSafe, comparePrimitives, equals, safeHash } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
2
2
|
import { CompositeCell, CompositeCell_Term, CompositeCell_FreeText } from './CompositeCell.js';
|
|
3
3
|
import { SanityChecks_validateCellColumns, ArcTableValues, SanityChecks_validateArcTableValues, Unchecked_tryGetCellAt, SanityChecks_validateColumnIndex, SanityChecks_validateRowIndex, Unchecked_getCellWithDefault, Unchecked_setCellAt, tryFindDuplicateUnique, SanityChecks_validateColumn, Unchecked_addColumn, Unchecked_addColumnFill, Unchecked_removeHeader, Unchecked_removeColumnCells, tryFindDuplicateUniqueInArray, Unchecked_removeColumnCells_withIndexChange, getEmptyCellForHeader, Unchecked_moveColumnTo, Unchecked_addRow, Unchecked_addEmptyRow, Unchecked_addRows, Unchecked_removeRowCells_withIndexChange, Unchecked_alignByHeaders } from './ArcTableAux.js';
|
|
4
4
|
import { CompositeHeader_ProtocolType, CompositeHeader_ProtocolVersion, CompositeHeader_ProtocolUri, CompositeHeader_ProtocolDescription, CompositeHeader_ProtocolREF } from './CompositeHeader.js';
|
|
5
|
-
import { defaultArg, unwrap, value, map } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
6
|
-
import { toArray, delay, removeAt, iterate as iterate$1, tryFindIndex, length,
|
|
5
|
+
import { defaultArg, unwrap, value, map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
6
|
+
import { toArray, delay, map, removeAt, iterate as iterate$1, tryFindIndex, length, collect, singleton, choose, indexed, toList, mapIndexed, append as append$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
7
7
|
import { CompositeColumn } from './CompositeColumn.js';
|
|
8
8
|
import { rangeDouble } from '../../../node_modules/@fable-org/fable-library-js/Range.js';
|
|
9
|
-
import { ResizeArray_map, ResizeArray_iteri, ResizeArray_iter, ResizeArray_init, ResizeArray_choose, ResizeArray_mapi, ResizeArray_groupBy, ResizeArray_indexed
|
|
9
|
+
import { ResizeArray_map, ResizeArray_iteri, ResizeArray_singleton, ResizeArray_iter, ResizeArray_init, ResizeArray_choose, ResizeArray_mapi, ResizeArray_groupBy, ResizeArray_indexed } from '../Helper/Collections.js';
|
|
10
10
|
import { isEmpty, iterate, append } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
11
11
|
import { StringBuilder_$ctor, StringBuilder__AppendLine_Z721C83C5 } from '../../../node_modules/@fable-org/fable-library-js/System.Text.js';
|
|
12
12
|
import { toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
13
13
|
import { sortDescending } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
14
14
|
import { getItemFromDict } from '../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
15
|
-
import { toFail,
|
|
15
|
+
import { toFail, printf, join } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
16
16
|
import { boxHashArray, boxHashSeq } from '../Helper/HashCodes.js';
|
|
17
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
17
18
|
|
|
18
19
|
class ArcTable {
|
|
19
20
|
constructor(name, headers, columns) {
|
|
20
21
|
const headers_1 = defaultArg(headers, []);
|
|
21
22
|
const columns_1 = defaultArg(columns, []);
|
|
22
|
-
SanityChecks_validateCellColumns(headers_1, columns_1);
|
|
23
|
+
const valid = SanityChecks_validateCellColumns(headers_1, columns_1, true);
|
|
23
24
|
this._values = ArcTableValues.fromCellColumns(columns_1);
|
|
24
25
|
this._name = name;
|
|
25
26
|
this._headers = headers_1;
|
|
@@ -115,7 +116,7 @@ class ArcTable {
|
|
|
115
116
|
}
|
|
116
117
|
get Columns() {
|
|
117
118
|
const this$ = this;
|
|
118
|
-
return Array.from(toArray(delay(() => map
|
|
119
|
+
return Array.from(toArray(delay(() => map((i) => this$.GetColumn(i), rangeDouble(0, 1, this$.ColumnCount - 1)))));
|
|
119
120
|
}
|
|
120
121
|
Copy() {
|
|
121
122
|
const this$ = this;
|
|
@@ -252,7 +253,8 @@ class ArcTable {
|
|
|
252
253
|
}
|
|
253
254
|
const c = new CompositeColumn(newHeader, this$.GetColumn(index).Cells);
|
|
254
255
|
if (c.Validate()) {
|
|
255
|
-
|
|
256
|
+
let setHeader;
|
|
257
|
+
setHeader = this$.Headers[index] = newHeader;
|
|
256
258
|
} else if (forceConvertCells_1) {
|
|
257
259
|
const convertedCells = newHeader.IsTermColumn ? ResizeArray_map((c_1) => {
|
|
258
260
|
if (c_1.isFreeText) {
|
|
@@ -355,7 +357,7 @@ class ArcTable {
|
|
|
355
357
|
let index_1 = defaultArg(index, this$.ColumnCount);
|
|
356
358
|
const forceReplace_1 = defaultArg(forceReplace, false);
|
|
357
359
|
SanityChecks_validateColumnIndex(index_1, this$.ColumnCount, true);
|
|
358
|
-
const duplicates = tryFindDuplicateUniqueInArray(map
|
|
360
|
+
const duplicates = tryFindDuplicateUniqueInArray(map((x) => x.Header, columns));
|
|
359
361
|
if (!isEmpty(duplicates)) {
|
|
360
362
|
const sb = StringBuilder_$ctor();
|
|
361
363
|
StringBuilder__AppendLine_Z721C83C5(sb, "Found duplicate unique columns in `columns`.");
|
|
@@ -451,14 +453,14 @@ class ArcTable {
|
|
|
451
453
|
}
|
|
452
454
|
TryGetColumnByHeader(header, fillDefault) {
|
|
453
455
|
const this$ = this;
|
|
454
|
-
return map((i) => this$.GetColumn(i, unwrap(fillDefault)), tryFindIndex((x) => equals(x, header), this$.Headers));
|
|
456
|
+
return map$1((i) => this$.GetColumn(i, unwrap(fillDefault)), tryFindIndex((x) => equals(x, header), this$.Headers));
|
|
455
457
|
}
|
|
456
458
|
static tryGetColumnByHeader(header, fillDefault) {
|
|
457
459
|
return (table) => table.TryGetColumnByHeader(header, unwrap(fillDefault));
|
|
458
460
|
}
|
|
459
461
|
TryGetColumnByHeaderBy(headerPredicate, fillDefault) {
|
|
460
462
|
const this$ = this;
|
|
461
|
-
return map((i) => this$.GetColumn(i, unwrap(fillDefault)), tryFindIndex(headerPredicate, this$.Headers));
|
|
463
|
+
return map$1((i) => this$.GetColumn(i, unwrap(fillDefault)), tryFindIndex(headerPredicate, this$.Headers));
|
|
462
464
|
}
|
|
463
465
|
static tryGetColumnByHeaderBy(headerPredicate, fillDefault) {
|
|
464
466
|
return (table) => table.TryGetColumnByHeaderBy(headerPredicate, unwrap(fillDefault));
|
|
@@ -478,7 +480,7 @@ class ArcTable {
|
|
|
478
480
|
}
|
|
479
481
|
TryGetInputColumn() {
|
|
480
482
|
const this$ = this;
|
|
481
|
-
return map((i) => this$.GetColumn(i), tryFindIndex((x) => x.isInput, this$.Headers));
|
|
483
|
+
return map$1((i) => this$.GetColumn(i), tryFindIndex((x) => x.isInput, this$.Headers));
|
|
482
484
|
}
|
|
483
485
|
static tryGetInputColumn() {
|
|
484
486
|
return (table) => table.TryGetInputColumn();
|
|
@@ -498,7 +500,7 @@ class ArcTable {
|
|
|
498
500
|
}
|
|
499
501
|
TryGetOutputColumn() {
|
|
500
502
|
const this$ = this;
|
|
501
|
-
return map((i) => this$.GetColumn(i), tryFindIndex((x) => x.isOutput, this$.Headers));
|
|
503
|
+
return map$1((i) => this$.GetColumn(i), tryFindIndex((x) => x.isOutput, this$.Headers));
|
|
502
504
|
}
|
|
503
505
|
static tryGetOutputColumn() {
|
|
504
506
|
return (table) => table.TryGetOutputColumn();
|
|
@@ -518,7 +520,8 @@ class ArcTable {
|
|
|
518
520
|
}
|
|
519
521
|
MoveColumn(startCol, endCol) {
|
|
520
522
|
const this$ = this;
|
|
521
|
-
if (startCol === endCol)
|
|
523
|
+
if (startCol === endCol) {
|
|
524
|
+
} else if (startCol < 0 ? true : startCol >= this$.ColumnCount) {
|
|
522
525
|
toFail(printf("Cannt move column. Invalid start column index: %i"))(startCol);
|
|
523
526
|
} else if (endCol < 0 ? true : endCol >= this$.ColumnCount) {
|
|
524
527
|
toFail(printf("Cannt move column. Invalid end column index: %i"))(endCol);
|
|
@@ -549,7 +552,7 @@ class ArcTable {
|
|
|
549
552
|
}
|
|
550
553
|
for (let columnIndex = 0; columnIndex <= this$.ColumnCount - 1; columnIndex++) {
|
|
551
554
|
const h = this$.Headers[columnIndex];
|
|
552
|
-
CompositeColumn.create(h, [cells_1[columnIndex]]);
|
|
555
|
+
const column = CompositeColumn.create(h, [cells_1[columnIndex]]);
|
|
553
556
|
cells_1[columnIndex].ValidateAgainstHeader(h, true);
|
|
554
557
|
}
|
|
555
558
|
Unchecked_addRow(index_1, cells_1, this$.Headers, this$._values);
|
|
@@ -698,7 +701,7 @@ class ArcTable {
|
|
|
698
701
|
if (!equals(SkipValidation, true)) {
|
|
699
702
|
SanityChecks_validateRowIndex(rowIndex, this$.RowCount, false);
|
|
700
703
|
}
|
|
701
|
-
const collection = toArray(delay(() => map
|
|
704
|
+
const collection = toArray(delay(() => map((columnIndex) => this$.GetCellAt(columnIndex, rowIndex), rangeDouble(0, 1, this$.ColumnCount - 1))));
|
|
702
705
|
return Array.from(collection);
|
|
703
706
|
}
|
|
704
707
|
static getRow(index) {
|
|
@@ -722,7 +725,7 @@ class ArcTable {
|
|
|
722
725
|
return new CompositeColumn(c_1.Header, ResizeArray_map((u) => CompositeCell.createUnitized("", u), value(unitsOpt)));
|
|
723
726
|
}
|
|
724
727
|
}, pre) : joinOptions_1 === "withValues" ? pre : ResizeArray_map((c) => new CompositeColumn(c.Header, []), pre);
|
|
725
|
-
const duplicates = tryFindDuplicateUniqueInArray(map
|
|
728
|
+
const duplicates = tryFindDuplicateUniqueInArray(map((x) => x.Header, columns));
|
|
726
729
|
if (!isEmpty(duplicates)) {
|
|
727
730
|
const sb = StringBuilder_$ctor();
|
|
728
731
|
StringBuilder__AppendLine_Z721C83C5(sb, "Found duplicate unique columns in `columns`.");
|
|
@@ -751,27 +754,27 @@ class ArcTable {
|
|
|
751
754
|
}
|
|
752
755
|
AddProtocolTypeColumn(types, index, forceReplace) {
|
|
753
756
|
const this$ = this;
|
|
754
|
-
const cells = map((a) => ResizeArray_map(CompositeCell_Term, a), types);
|
|
757
|
+
const cells = map$1((a) => ResizeArray_map(CompositeCell_Term, a), types);
|
|
755
758
|
this$.AddColumn(CompositeHeader_ProtocolType(), unwrap(cells), unwrap(index), unwrap(forceReplace));
|
|
756
759
|
}
|
|
757
760
|
AddProtocolVersionColumn(versions, index, forceReplace) {
|
|
758
761
|
const this$ = this;
|
|
759
|
-
const cells = map((a) => ResizeArray_map(CompositeCell_FreeText, a), versions);
|
|
762
|
+
const cells = map$1((a) => ResizeArray_map(CompositeCell_FreeText, a), versions);
|
|
760
763
|
this$.AddColumn(CompositeHeader_ProtocolVersion(), unwrap(cells), unwrap(index), unwrap(forceReplace));
|
|
761
764
|
}
|
|
762
765
|
AddProtocolUriColumn(uris, index, forceReplace) {
|
|
763
766
|
const this$ = this;
|
|
764
|
-
const cells = map((a) => ResizeArray_map(CompositeCell_FreeText, a), uris);
|
|
767
|
+
const cells = map$1((a) => ResizeArray_map(CompositeCell_FreeText, a), uris);
|
|
765
768
|
this$.AddColumn(CompositeHeader_ProtocolUri(), unwrap(cells), unwrap(index), unwrap(forceReplace));
|
|
766
769
|
}
|
|
767
770
|
AddProtocolDescriptionColumn(descriptions, index, forceReplace) {
|
|
768
771
|
const this$ = this;
|
|
769
|
-
const cells = map((a) => ResizeArray_map(CompositeCell_FreeText, a), descriptions);
|
|
772
|
+
const cells = map$1((a) => ResizeArray_map(CompositeCell_FreeText, a), descriptions);
|
|
770
773
|
this$.AddColumn(CompositeHeader_ProtocolDescription(), unwrap(cells), unwrap(index), unwrap(forceReplace));
|
|
771
774
|
}
|
|
772
775
|
AddProtocolNameColumn(names, index, forceReplace) {
|
|
773
776
|
const this$ = this;
|
|
774
|
-
const cells = map((a) => ResizeArray_map(CompositeCell_FreeText, a), names);
|
|
777
|
+
const cells = map$1((a) => ResizeArray_map(CompositeCell_FreeText, a), names);
|
|
775
778
|
this$.AddColumn(CompositeHeader_ProtocolREF(), unwrap(cells), unwrap(index), unwrap(forceReplace));
|
|
776
779
|
}
|
|
777
780
|
GetProtocolTypeColumn() {
|
|
@@ -857,14 +860,14 @@ class ArcTable {
|
|
|
857
860
|
return refTable_1;
|
|
858
861
|
}
|
|
859
862
|
static append(table1, table2) {
|
|
860
|
-
const getList = (t) => toList(delay(() => map
|
|
863
|
+
const getList = (t) => toList(delay(() => map((row) => toList(mapIndexed((i, c) => [t.Headers[i], c], t.GetRow(row, true))), rangeDouble(0, 1, t.RowCount - 1))));
|
|
861
864
|
const patternInput = Unchecked_alignByHeaders(false, append(getList(table1), getList(table2)));
|
|
862
865
|
return ArcTable.fromArcTableValues(table1.Name, patternInput[0], patternInput[1]);
|
|
863
866
|
}
|
|
864
867
|
toString() {
|
|
865
868
|
const this$ = this;
|
|
866
869
|
const rowCount = this$.RowCount | 0;
|
|
867
|
-
return join("\n", toList(delay(() => append$1(singleton(`Table: ${this$.Name}`), delay(() => append$1(singleton("-------------"), delay(() => append$1(singleton(join(" | ", map
|
|
870
|
+
return join("\n", toList(delay(() => append$1(singleton(`Table: ${this$.Name}`), delay(() => append$1(singleton("-------------"), delay(() => append$1(singleton(join(" | ", map(toString, this$.Headers))), delay(() => rowCount > 50 ? append$1(map((rowI) => join(" | ", map(toString, this$.GetRow(rowI))), rangeDouble(0, 1, 19)), delay(() => append$1(singleton("..."), delay(() => map((rowI_1) => join(" | ", map(toString, this$.GetRow(rowI_1))), rangeDouble(rowCount - 20, 1, rowCount - 1)))))) : rowCount === 0 ? singleton("No rows") : map((rowI_2) => join(" | ", map(toString, this$.GetRow(rowI_2))), rangeDouble(0, 1, rowCount - 1)))))))))));
|
|
868
871
|
}
|
|
869
872
|
StructurallyEquals(other) {
|
|
870
873
|
const this$ = this;
|
|
@@ -885,5 +888,11 @@ class ArcTable {
|
|
|
885
888
|
return boxHashArray([this$.Name, boxHashSeq(this$.Headers), vHash]) | 0;
|
|
886
889
|
}
|
|
887
890
|
}
|
|
891
|
+
function ArcTable_$reflection() {
|
|
892
|
+
return class_type("ARCtrl.ArcTable", void 0, ArcTable);
|
|
893
|
+
}
|
|
894
|
+
function ArcTable_$ctor_2D310C9B(name, headers, columns) {
|
|
895
|
+
return new ArcTable(name, headers, columns);
|
|
896
|
+
}
|
|
888
897
|
|
|
889
|
-
export { ArcTable };
|
|
898
|
+
export { ArcTable, ArcTable_$ctor_2D310C9B, ArcTable_$reflection };
|