@nfdi4plants/arctrl 3.0.0-beta.3 → 3.0.0-beta.4
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/README.md +2 -0
- package/dist/ts/index.js +63 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +354 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +28 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/AsyncBuilder.js +186 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +8 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Boolean.js +24 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +73 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +31 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +574 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +59 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +65 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +30 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +5 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +5 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +48 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +120 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +680 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +40 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +655 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +105 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +320 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +204 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Native.js +10 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Numeric.js +73 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +65 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +23 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +111 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +114 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +36 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +846 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +65 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +1160 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +364 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +40 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +193 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Unicode.13.0.0.js +6 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Uri.js +160 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +367 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +825 -0
- package/dist/ts/ts/ARC.js +914 -0
- package/dist/ts/ts/Contract/ARC.js +52 -0
- package/dist/ts/ts/Contract/ArcAssay.js +80 -0
- package/dist/ts/ts/Contract/ArcInvestigation.js +57 -0
- package/dist/ts/ts/Contract/ArcRun.js +76 -0
- package/dist/ts/ts/Contract/ArcStudy.js +76 -0
- package/dist/ts/ts/Contract/ArcWorkflow.js +77 -0
- package/dist/ts/ts/Contract/Contract.js +45 -0
- package/dist/ts/ts/Contract/Datamap.js +221 -0
- package/dist/ts/ts/Contract/Git.js +57 -0
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +57 -0
- package/dist/ts/ts/ContractIO/ContractIO.js +202 -0
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -1
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +273 -0
- package/dist/ts/ts/Conversion.js +1247 -0
- package/dist/ts/ts/Core/ArcTypes.js +3393 -0
- package/dist/ts/ts/Core/Comment.js +91 -0
- package/dist/ts/ts/Core/CommentList.js +27 -0
- package/dist/ts/ts/Core/Conversion.js +923 -0
- package/dist/ts/ts/Core/Data.js +179 -0
- package/dist/ts/ts/Core/DataContext.js +108 -0
- package/dist/ts/ts/Core/DataFile.js +50 -0
- package/dist/ts/ts/Core/DataMap.js +53 -0
- package/dist/ts/ts/Core/Helper/Collections.js +323 -0
- package/dist/ts/ts/Core/Helper/HashCodes.js +35 -0
- package/dist/ts/ts/Core/Helper/Identifier.js +96 -0
- package/dist/ts/ts/Core/Helper/ORCID.js +34 -0
- package/dist/ts/ts/Core/Helper/Regex.js +296 -0
- package/dist/ts/ts/Core/Helper/SemVer.js +31 -0
- package/dist/ts/ts/Core/Helper/Url.js +32 -0
- package/dist/ts/ts/Core/IdentifierSetters.js +9 -0
- package/dist/ts/ts/Core/OntologyAnnotation.js +207 -0
- package/dist/ts/ts/Core/OntologySourceReference.js +84 -0
- package/dist/ts/ts/Core/Person.js +183 -0
- package/dist/ts/ts/Core/Process/ColumnIndex.js +73 -0
- package/dist/ts/ts/Core/Process/Component.js +121 -0
- package/dist/ts/ts/Core/Process/Factor.js +104 -0
- package/dist/ts/ts/Core/Process/FactorValue.js +68 -0
- package/dist/ts/ts/Core/Process/Material.js +49 -0
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +30 -0
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +68 -0
- package/dist/ts/ts/Core/Process/MaterialType.js +28 -0
- package/dist/ts/ts/Core/Process/Process.js +136 -0
- package/dist/ts/ts/Core/Process/ProcessInput.js +207 -0
- package/dist/ts/ts/Core/Process/ProcessOutput.js +178 -0
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +135 -0
- package/dist/ts/ts/Core/Process/ProcessSequence.js +56 -0
- package/dist/ts/ts/Core/Process/Protocol.js +54 -0
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +69 -0
- package/dist/ts/ts/Core/Process/Sample.js +44 -0
- package/dist/ts/ts/Core/Process/Source.js +38 -0
- package/dist/ts/ts/Core/Publication.js +108 -0
- package/dist/ts/ts/Core/Table/ArcTable.js +889 -0
- package/dist/ts/ts/Core/Table/ArcTableAux.js +993 -0
- package/dist/ts/ts/Core/Table/ArcTables.js +415 -0
- package/dist/ts/ts/Core/Table/CompositeCell.js +334 -0
- package/dist/ts/ts/Core/Table/CompositeColumn.js +52 -0
- package/dist/ts/ts/Core/Table/CompositeHeader.js +792 -0
- package/dist/ts/ts/Core/Template.js +180 -0
- package/dist/ts/ts/Core/Templates.js +75 -0
- package/dist/ts/ts/Core/URI.js +8 -0
- package/dist/ts/ts/Core/Value.js +194 -0
- package/dist/ts/ts/CrossAsync.js +20 -0
- package/dist/ts/ts/FileSystem/DefaultGitattributes.js +3 -0
- package/dist/ts/ts/FileSystem/DefaultGitignore.js +3 -0
- package/dist/ts/ts/FileSystem/FileSystem.js +48 -0
- package/dist/ts/ts/FileSystem/FileSystemTree.js +339 -0
- package/dist/ts/ts/FileSystem/Path.js +36 -0
- package/dist/ts/ts/Json/Assay.d.ts +1 -1
- package/dist/ts/ts/Json/Assay.js +221 -0
- package/dist/ts/ts/Json/Comment.d.ts +1 -1
- package/dist/ts/ts/Json/Comment.js +112 -0
- package/dist/ts/ts/Json/Data.d.ts +1 -1
- package/dist/ts/ts/Json/Data.js +138 -0
- package/dist/ts/ts/Json/DataFile.d.ts +1 -1
- package/dist/ts/ts/Json/DataFile.js +55 -0
- package/dist/ts/ts/Json/DataMap/DataContext.d.ts +1 -1
- package/dist/ts/ts/Json/DataMap/DataContext.js +39 -0
- package/dist/ts/ts/Json/DataMap/DataMap.d.ts +1 -1
- package/dist/ts/ts/Json/DataMap/DataMap.js +27 -0
- package/dist/ts/ts/Json/Decode.d.ts +2 -2
- package/dist/ts/ts/Json/Decode.js +209 -0
- package/dist/ts/ts/Json/Encode.d.ts +1 -1
- package/dist/ts/ts/Json/Encode.js +65 -0
- package/dist/ts/ts/Json/IDTable.d.ts +1 -1
- package/dist/ts/ts/Json/IDTable.js +28 -0
- package/dist/ts/ts/Json/Investigation.d.ts +1 -1
- package/dist/ts/ts/Json/Investigation.js +229 -0
- package/dist/ts/ts/Json/OntologyAnnotation.d.ts +1 -1
- package/dist/ts/ts/Json/OntologyAnnotation.js +194 -0
- package/dist/ts/ts/Json/OntologySourceReference.d.ts +1 -1
- package/dist/ts/ts/Json/OntologySourceReference.js +119 -0
- package/dist/ts/ts/Json/Person.d.ts +1 -1
- package/dist/ts/ts/Json/Person.js +316 -0
- package/dist/ts/ts/Json/Process/AssayMaterials.d.ts +1 -1
- package/dist/ts/ts/Json/Process/AssayMaterials.js +21 -0
- package/dist/ts/ts/Json/Process/Component.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Component.js +41 -0
- package/dist/ts/ts/Json/Process/Factor.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Factor.js +53 -0
- package/dist/ts/ts/Json/Process/FactorValue.d.ts +1 -1
- package/dist/ts/ts/Json/Process/FactorValue.js +44 -0
- package/dist/ts/ts/Json/Process/Material.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Material.js +112 -0
- package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +43 -0
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +44 -0
- package/dist/ts/ts/Json/Process/MaterialType.d.ts +1 -1
- package/dist/ts/ts/Json/Process/MaterialType.js +45 -0
- package/dist/ts/ts/Json/Process/Process.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Process.js +103 -0
- package/dist/ts/ts/Json/Process/ProcessInput.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProcessInput.js +42 -0
- package/dist/ts/ts/Json/Process/ProcessOutput.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProcessOutput.js +35 -0
- package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +28 -0
- package/dist/ts/ts/Json/Process/Protocol.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Protocol.js +166 -0
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +43 -0
- package/dist/ts/ts/Json/Process/Sample.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Sample.js +165 -0
- package/dist/ts/ts/Json/Process/Source.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Source.js +133 -0
- package/dist/ts/ts/Json/Process/StudyMaterials.d.ts +1 -1
- package/dist/ts/ts/Json/Process/StudyMaterials.js +23 -0
- package/dist/ts/ts/Json/Process/Value.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Value.js +41 -0
- package/dist/ts/ts/Json/PropertyValue.d.ts +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +280 -0
- package/dist/ts/ts/Json/Publication.d.ts +1 -1
- package/dist/ts/ts/Json/Publication.js +123 -0
- package/dist/ts/ts/Json/ROCrate/LDContext.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDContext.js +115 -0
- package/dist/ts/ts/Json/ROCrate/LDGraph.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +83 -0
- package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDNode.js +190 -0
- package/dist/ts/ts/Json/ROCrate/LDRef.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDRef.js +24 -0
- package/dist/ts/ts/Json/ROCrate/LDValue.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDValue.js +63 -0
- package/dist/ts/ts/Json/StringTable.d.ts +1 -1
- package/dist/ts/ts/Json/StringTable.js +66 -0
- package/dist/ts/ts/Json/Study.d.ts +1 -1
- package/dist/ts/ts/Json/Study.js +326 -0
- package/dist/ts/ts/Json/Table/ArcTable.d.ts +1 -1
- package/dist/ts/ts/Json/Table/ArcTable.js +210 -0
- package/dist/ts/ts/Json/Table/CellTable.d.ts +1 -1
- package/dist/ts/ts/Json/Table/CellTable.js +53 -0
- package/dist/ts/ts/Json/Table/CompositeCell.d.ts +1 -1
- package/dist/ts/ts/Json/Table/CompositeCell.js +106 -0
- package/dist/ts/ts/Json/Table/CompositeHeader.d.ts +1 -1
- package/dist/ts/ts/Json/Table/CompositeHeader.js +121 -0
- package/dist/ts/ts/Json/Table/IOType.d.ts +1 -1
- package/dist/ts/ts/Json/Table/IOType.js +15 -0
- package/dist/ts/ts/Json/Table/OATable.d.ts +1 -1
- package/dist/ts/ts/Json/Table/OATable.js +50 -0
- package/dist/ts/ts/Json/Table/Templates.d.ts +1 -1
- package/dist/ts/ts/Json/Table/Templates.js +15 -0
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +61 -0
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +29 -0
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +41 -0
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +69 -0
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +37 -0
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +37 -0
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +41 -0
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +25 -0
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +86 -0
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +57 -0
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +61 -0
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +45 -0
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +33 -0
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +33 -0
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +77 -0
- package/dist/ts/ts/Json/context/rocrate/property_value_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/property_value_context.js +61 -0
- package/dist/ts/ts/Json/context/rocrate/rocrate_context.d.ts +1 -1
- package/dist/ts/ts/Json.js +171 -0
- package/dist/ts/ts/JsonIO/Assay.js +77 -0
- package/dist/ts/ts/JsonIO/Investigation.js +77 -0
- package/dist/ts/ts/JsonIO/LDObject.js +77 -0
- package/dist/ts/ts/JsonIO/OntologyAnnotation.js +56 -0
- package/dist/ts/ts/JsonIO/Study.js +77 -0
- package/dist/ts/ts/JsonIO/Table/Compression.d.ts +1 -1
- package/dist/ts/ts/JsonIO/Table/Compression.js +39 -0
- package/dist/ts/ts/JsonIO/Table/Templates.d.ts +1 -1
- package/dist/ts/ts/JsonIO/Table/Templates.js +25 -0
- package/dist/ts/ts/ROCrate/Generic/Comment.js +103 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.js +624 -0
- package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +103 -0
- package/dist/ts/ts/ROCrate/Generic/File.js +184 -0
- package/dist/ts/ts/ROCrate/Generic/LabProcess.js +222 -0
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +257 -0
- package/dist/ts/ts/ROCrate/Generic/Organization.js +63 -0
- package/dist/ts/ts/ROCrate/Generic/Person.js +377 -0
- package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +143 -0
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +512 -0
- package/dist/ts/ts/ROCrate/Generic/Sample.js +131 -0
- package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +173 -0
- package/dist/ts/ts/ROCrate/Helper.js +7 -0
- package/dist/ts/ts/ROCrate/LDContext.js +288 -0
- package/dist/ts/ts/ROCrate/LDObject.js +855 -0
- package/dist/ts/ts/ROCrate/ROCrateContext.js +39 -0
- package/dist/ts/ts/ROCrateIO.d.ts +1 -1
- package/dist/ts/ts/ROCrateIO.js +58 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +149 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +63 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +108 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +410 -0
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +169 -0
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +316 -0
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcRun.js +136 -0
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +92 -0
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +125 -0
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +34 -0
- package/dist/ts/ts/Spreadsheet/DataMap.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/DataMap.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMap.js +33 -0
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +41 -0
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +418 -0
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts +3 -3
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +85 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +90 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +58 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +85 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +133 -0
- package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +15 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +74 -0
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +58 -0
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +62 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +94 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +81 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +91 -0
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts +3 -3
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +193 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +238 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +105 -0
- package/dist/ts/ts/Template.Web.js +22 -0
- package/dist/ts/ts/ValidationPackages/ValidationPackage.js +53 -0
- package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +78 -0
- package/dist/ts/ts/WebRequest/WebRequest.Node.js +13 -0
- package/dist/ts/ts/WebRequest/WebRequest.js +19 -0
- package/dist/ts/ts/Xlsx.d.ts +1 -1
- package/dist/ts/ts/Xlsx.d.ts.map +1 -1
- package/dist/ts/ts/Xlsx.js +91 -0
- package/dist/ts/ts/Yaml/Encode.js +8 -0
- package/dist/ts/ts/Yaml/ValidationPackage.js +26 -0
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +40 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +344 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +103 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +19 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +17 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +7 -0
- package/dist/ts/ts/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js +5 -0
- package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +18 -0
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +44 -0
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +5 -0
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +142 -0
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +76 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +359 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +344 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +154 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +116 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +126 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +135 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +422 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +5 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +25 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +28 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +69 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +42 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +29 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +348 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +86 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +68 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +12 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +54 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +33 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +63 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +66 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +544 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +31 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +38 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +79 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js +57 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +235 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +16 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +45 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +89 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +480 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +11 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +212 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +164 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +136 -0
- package/package.json +10 -7
- package/dist/ts/__vite-browser-external-2447137e.js +0 -4
- package/dist/ts/__vite-browser-external-b3701507.cjs +0 -1
- package/dist/ts/arctrl.cjs.js +0 -5691
- package/dist/ts/arctrl.es.js +0 -35562
- package/dist/ts/arctrl.umd.js +0 -5691
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
import { toList, delay, map, choose, append, tryFindIndex, reduce, length, findIndex } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
2
|
+
import { ArcTable } from './ArcTable.js';
|
|
3
|
+
import { defaultArg, value, unwrap, map as map$1, bind } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
4
|
+
import { CompositeHeader_ProtocolREF, CompositeHeader_Input, CompositeHeader_Output } from './CompositeHeader.js';
|
|
5
|
+
import { equals, getEnumerator, toIterator, compare, disposeSafe, stringHash, comparePrimitives } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
6
|
+
import { ResizeArray_map, ResizeArray_groupBy, ResizeArray_collect, ResizeArray_iter, ResizeArray_fold, Dictionary_tryFind } from '../Helper/Collections.js';
|
|
7
|
+
import { addToSet, addToDict } from '../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
8
|
+
import { distinct } from '../../../node_modules/@fable-org/fable-library-js/Seq2.js';
|
|
9
|
+
import { intersect, ofSeq as ofSeq$1, FSharpSet__get_IsEmpty } from '../../../node_modules/@fable-org/fable-library-js/Set.js';
|
|
10
|
+
import { insertRangeInPlace } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
11
|
+
import { ofSeq, tryFind } from '../../../node_modules/@fable-org/fable-library-js/Map.js';
|
|
12
|
+
|
|
13
|
+
function ArcTablesAux_tryFindIndexByTableName(name, tables) {
|
|
14
|
+
return tryFindIndex((t) => t.Name === name, tables);
|
|
15
|
+
}
|
|
16
|
+
function ArcTablesAux_findIndexByTableName(name, tables) {
|
|
17
|
+
const matchValue = tryFindIndex((t) => t.Name === name, tables);
|
|
18
|
+
if (matchValue == null) {
|
|
19
|
+
throw new Error(`Unable to find table with name '${name}'!`);
|
|
20
|
+
} else {
|
|
21
|
+
return value(matchValue) | 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function ArcTablesAux_getIOMap(tables) {
|
|
25
|
+
const mappings = /* @__PURE__ */ new Map([]);
|
|
26
|
+
const includeInMap = (name, ioType) => {
|
|
27
|
+
if (name !== "") {
|
|
28
|
+
const matchValue = Dictionary_tryFind(name, mappings);
|
|
29
|
+
if (matchValue == null) {
|
|
30
|
+
addToDict(mappings, name, ioType);
|
|
31
|
+
} else {
|
|
32
|
+
const oldIOType = value(matchValue);
|
|
33
|
+
const newIOType = oldIOType.Merge(ioType);
|
|
34
|
+
mappings.set(name, newIOType);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
let enumerator = getEnumerator(tables);
|
|
39
|
+
try {
|
|
40
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
41
|
+
const table = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
42
|
+
const matchValue_1 = table.TryGetInputColumn();
|
|
43
|
+
if (matchValue_1 == null) {
|
|
44
|
+
} else {
|
|
45
|
+
const ic = value(matchValue_1);
|
|
46
|
+
const ioType_1 = value(ic.Header.TryInput());
|
|
47
|
+
ResizeArray_iter((c) => {
|
|
48
|
+
includeInMap(c.ToFreeTextCell().AsFreeText, ioType_1);
|
|
49
|
+
}, ic.Cells);
|
|
50
|
+
}
|
|
51
|
+
const matchValue_2 = table.TryGetOutputColumn();
|
|
52
|
+
if (matchValue_2 == null) {
|
|
53
|
+
} else {
|
|
54
|
+
const oc = value(matchValue_2);
|
|
55
|
+
const ioType_2 = value(oc.Header.TryOutput());
|
|
56
|
+
ResizeArray_iter((c_1) => {
|
|
57
|
+
includeInMap(c_1.ToFreeTextCell().AsFreeText, ioType_2);
|
|
58
|
+
}, oc.Cells);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
} finally {
|
|
62
|
+
disposeSafe(enumerator);
|
|
63
|
+
}
|
|
64
|
+
return mappings;
|
|
65
|
+
}
|
|
66
|
+
function ArcTablesAux_applyIOMap(map, tables) {
|
|
67
|
+
let enumerator = getEnumerator(tables);
|
|
68
|
+
try {
|
|
69
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
70
|
+
const table = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
71
|
+
const matchValue = table.TryGetInputColumn();
|
|
72
|
+
if (matchValue == null) {
|
|
73
|
+
} else {
|
|
74
|
+
const ic = value(matchValue);
|
|
75
|
+
const index = findIndex((x) => x.isInput, table.Headers) | 0;
|
|
76
|
+
const newIOType = ResizeArray_fold((io, c) => {
|
|
77
|
+
const matchValue_1 = Dictionary_tryFind(c.ToFreeTextCell().AsFreeText, map);
|
|
78
|
+
if (matchValue_1 == null) {
|
|
79
|
+
return io;
|
|
80
|
+
} else {
|
|
81
|
+
const newIO = value(matchValue_1);
|
|
82
|
+
return io.Merge(newIO);
|
|
83
|
+
}
|
|
84
|
+
}, value(ic.Header.TryInput()), ic.Cells);
|
|
85
|
+
table.UpdateHeader(index, CompositeHeader_Input(newIOType));
|
|
86
|
+
}
|
|
87
|
+
const matchValue_2 = table.TryGetOutputColumn();
|
|
88
|
+
if (matchValue_2 == null) {
|
|
89
|
+
} else {
|
|
90
|
+
const oc = value(matchValue_2);
|
|
91
|
+
const index_1 = findIndex((x_1) => x_1.isOutput, table.Headers) | 0;
|
|
92
|
+
const newIOType_1 = ResizeArray_fold((io_1, c_1) => {
|
|
93
|
+
const matchValue_3 = Dictionary_tryFind(c_1.ToFreeTextCell().AsFreeText, map);
|
|
94
|
+
if (matchValue_3 == null) {
|
|
95
|
+
return io_1;
|
|
96
|
+
} else {
|
|
97
|
+
const newIO_1 = value(matchValue_3);
|
|
98
|
+
return io_1.Merge(newIO_1);
|
|
99
|
+
}
|
|
100
|
+
}, value(oc.Header.TryOutput()), oc.Cells);
|
|
101
|
+
table.UpdateHeader(index_1, CompositeHeader_Output(newIOType_1));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
} finally {
|
|
105
|
+
disposeSafe(enumerator);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function ArcTablesAux_SanityChecks_validateSheetIndex(index, allowAppend, sheets) {
|
|
109
|
+
let x, y;
|
|
110
|
+
if (index < 0) {
|
|
111
|
+
throw new Error("Cannot insert ArcTable at index < 0.");
|
|
112
|
+
}
|
|
113
|
+
if (x = index | 0, y = sheets.length | 0, allowAppend ? compare(x, y) > 0 : compare(x, y) >= 0) {
|
|
114
|
+
throw new Error(`Specified index is out of range! Assay contains only ${sheets.length} tables.`);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function ArcTablesAux_SanityChecks_validateNamesUnique(names) {
|
|
118
|
+
if (!(length(names) === length(distinct(names, {
|
|
119
|
+
Equals: (x, y) => x === y,
|
|
120
|
+
GetHashCode: stringHash
|
|
121
|
+
})))) {
|
|
122
|
+
throw new Error("Cannot add multiple tables with the same name! Table names inside one assay must be unqiue");
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
function ArcTablesAux_SanityChecks_validateNewNameUnique(newName, existingNames) {
|
|
126
|
+
const matchValue = tryFindIndex((x) => x === newName, existingNames);
|
|
127
|
+
if (matchValue == null) ; else {
|
|
128
|
+
throw new Error(`Cannot create table with name ${newName}, as table names must be unique and table at index ${value(matchValue)} has the same name.`);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function ArcTablesAux_SanityChecks_validateNewNameAtUnique(index, newName, existingNames) {
|
|
132
|
+
const matchValue = tryFindIndex((x) => x === newName, existingNames);
|
|
133
|
+
if (matchValue == null) ; else if (index === value(matchValue)) {
|
|
134
|
+
value(matchValue) | 0;
|
|
135
|
+
} else {
|
|
136
|
+
const i_2 = value(matchValue) | 0;
|
|
137
|
+
throw new Error(`Cannot create table with name ${newName}, as table names must be unique and table at index ${i_2} has the same name.`);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
function ArcTablesAux_SanityChecks_validateNewNamesUnique(newNames, existingNames) {
|
|
141
|
+
ArcTablesAux_SanityChecks_validateNamesUnique(newNames);
|
|
142
|
+
const same = intersect(ofSeq$1(newNames, {
|
|
143
|
+
Compare: comparePrimitives
|
|
144
|
+
}), ofSeq$1(existingNames, {
|
|
145
|
+
Compare: comparePrimitives
|
|
146
|
+
}));
|
|
147
|
+
if (!FSharpSet__get_IsEmpty(same)) {
|
|
148
|
+
throw new Error(`Cannot create tables with the names ${same}, as table names must be unique.`);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
class ArcTables {
|
|
152
|
+
constructor(initTables) {
|
|
153
|
+
this.tables = (ArcTablesAux_SanityChecks_validateNamesUnique(map((t) => t.Name, initTables)), initTables);
|
|
154
|
+
}
|
|
155
|
+
get Tables() {
|
|
156
|
+
const this$ = this;
|
|
157
|
+
return this$.tables;
|
|
158
|
+
}
|
|
159
|
+
set Tables(newTables) {
|
|
160
|
+
const this$ = this;
|
|
161
|
+
this$.tables = newTables;
|
|
162
|
+
}
|
|
163
|
+
get_Item(index) {
|
|
164
|
+
const this$ = this;
|
|
165
|
+
return this$.Tables[index];
|
|
166
|
+
}
|
|
167
|
+
get TableNames() {
|
|
168
|
+
const this$ = this;
|
|
169
|
+
return toList(delay(() => map((s) => s.Name, this$.Tables)));
|
|
170
|
+
}
|
|
171
|
+
get TableCount() {
|
|
172
|
+
const this$ = this;
|
|
173
|
+
return this$.Tables.length | 0;
|
|
174
|
+
}
|
|
175
|
+
AddTable(table, index) {
|
|
176
|
+
const this$ = this;
|
|
177
|
+
const index_1 = defaultArg(index, this$.TableCount) | 0;
|
|
178
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index_1, true, this$.Tables);
|
|
179
|
+
ArcTablesAux_SanityChecks_validateNewNameUnique(table.Name, this$.TableNames);
|
|
180
|
+
this$.Tables.splice(index_1, 0, table);
|
|
181
|
+
}
|
|
182
|
+
AddTables(tables, index) {
|
|
183
|
+
const this$ = this;
|
|
184
|
+
const index_1 = defaultArg(index, this$.TableCount) | 0;
|
|
185
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index_1, true, this$.Tables);
|
|
186
|
+
ArcTablesAux_SanityChecks_validateNewNamesUnique(map((x) => x.Name, tables), this$.TableNames);
|
|
187
|
+
insertRangeInPlace(index_1, tables, this$.Tables);
|
|
188
|
+
}
|
|
189
|
+
InitTable(tableName, index) {
|
|
190
|
+
const this$ = this;
|
|
191
|
+
const index_1 = defaultArg(index, this$.TableCount) | 0;
|
|
192
|
+
const table = ArcTable.init(tableName);
|
|
193
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index_1, true, this$.Tables);
|
|
194
|
+
ArcTablesAux_SanityChecks_validateNewNameUnique(table.Name, this$.TableNames);
|
|
195
|
+
this$.Tables.splice(index_1, 0, table);
|
|
196
|
+
return table;
|
|
197
|
+
}
|
|
198
|
+
InitTables(tableNames, index) {
|
|
199
|
+
const this$ = this;
|
|
200
|
+
const index_1 = defaultArg(index, this$.TableCount) | 0;
|
|
201
|
+
const tables = map((x) => ArcTable.init(x), tableNames);
|
|
202
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index_1, true, this$.Tables);
|
|
203
|
+
ArcTablesAux_SanityChecks_validateNewNamesUnique(map((x_1) => x_1.Name, tables), this$.TableNames);
|
|
204
|
+
insertRangeInPlace(index_1, tables, this$.Tables);
|
|
205
|
+
}
|
|
206
|
+
GetTableAt(index) {
|
|
207
|
+
const this$ = this;
|
|
208
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index, false, this$.Tables);
|
|
209
|
+
return this$.Tables[index];
|
|
210
|
+
}
|
|
211
|
+
GetTable(name) {
|
|
212
|
+
const this$ = this;
|
|
213
|
+
const index = ArcTablesAux_findIndexByTableName(name, this$.Tables) | 0;
|
|
214
|
+
return this$.GetTableAt(index);
|
|
215
|
+
}
|
|
216
|
+
UpdateTableAt(index, table) {
|
|
217
|
+
const this$ = this;
|
|
218
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index, false, this$.Tables);
|
|
219
|
+
ArcTablesAux_SanityChecks_validateNewNameAtUnique(index, table.Name, this$.TableNames);
|
|
220
|
+
this$.Tables[index] = table;
|
|
221
|
+
}
|
|
222
|
+
UpdateTable(name, table) {
|
|
223
|
+
const this$ = this;
|
|
224
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(name, this$.Tables), table];
|
|
225
|
+
this$.UpdateTableAt(tupledArg[0], tupledArg[1]);
|
|
226
|
+
}
|
|
227
|
+
SetTableAt(index, table) {
|
|
228
|
+
const this$ = this;
|
|
229
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index, true, this$.Tables);
|
|
230
|
+
ArcTablesAux_SanityChecks_validateNewNameAtUnique(index, table.Name, this$.TableNames);
|
|
231
|
+
this$.Tables[index] = table;
|
|
232
|
+
}
|
|
233
|
+
SetTable(name, table) {
|
|
234
|
+
const this$ = this;
|
|
235
|
+
const matchValue = ArcTablesAux_tryFindIndexByTableName(name, this$.Tables);
|
|
236
|
+
if (matchValue == null) {
|
|
237
|
+
this$.AddTable(table);
|
|
238
|
+
} else {
|
|
239
|
+
const index = value(matchValue) | 0;
|
|
240
|
+
this$.SetTableAt(index, table);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
RemoveTableAt(index) {
|
|
244
|
+
const this$ = this;
|
|
245
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index, false, this$.Tables);
|
|
246
|
+
this$.Tables.splice(index, 1);
|
|
247
|
+
}
|
|
248
|
+
RemoveTable(name) {
|
|
249
|
+
const this$ = this;
|
|
250
|
+
const index = ArcTablesAux_findIndexByTableName(name, this$.Tables) | 0;
|
|
251
|
+
this$.RemoveTableAt(index);
|
|
252
|
+
}
|
|
253
|
+
MapTableAt(index, updateFun) {
|
|
254
|
+
const this$ = this;
|
|
255
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index, false, this$.Tables);
|
|
256
|
+
updateFun(this$.Tables[index]);
|
|
257
|
+
}
|
|
258
|
+
MapTable(name, updateFun) {
|
|
259
|
+
const this$ = this;
|
|
260
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(name, this$.Tables), updateFun];
|
|
261
|
+
this$.MapTableAt(tupledArg[0], tupledArg[1]);
|
|
262
|
+
}
|
|
263
|
+
RenameTableAt(index, newName) {
|
|
264
|
+
const this$ = this;
|
|
265
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index, false, this$.Tables);
|
|
266
|
+
ArcTablesAux_SanityChecks_validateNewNameUnique(newName, this$.TableNames);
|
|
267
|
+
const table = this$.GetTableAt(index);
|
|
268
|
+
table.Name = newName;
|
|
269
|
+
}
|
|
270
|
+
RenameTable(name, newName) {
|
|
271
|
+
const this$ = this;
|
|
272
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(name, this$.Tables), newName];
|
|
273
|
+
this$.RenameTableAt(tupledArg[0], tupledArg[1]);
|
|
274
|
+
}
|
|
275
|
+
AddColumnAt(tableIndex, header, cells, columnIndex, forceReplace) {
|
|
276
|
+
const this$ = this;
|
|
277
|
+
this$.MapTableAt(tableIndex, (table) => {
|
|
278
|
+
table.AddColumn(header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
AddColumn(tableName, header, cells, columnIndex, forceReplace) {
|
|
282
|
+
const this$ = this;
|
|
283
|
+
const i = ArcTablesAux_findIndexByTableName(tableName, this$.Tables) | 0;
|
|
284
|
+
this$.AddColumnAt(i, header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
|
|
285
|
+
}
|
|
286
|
+
RemoveColumnAt(tableIndex, columnIndex) {
|
|
287
|
+
const this$ = this;
|
|
288
|
+
this$.MapTableAt(tableIndex, (table) => {
|
|
289
|
+
table.RemoveColumn(columnIndex);
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
RemoveColumn(tableName, columnIndex) {
|
|
293
|
+
const this$ = this;
|
|
294
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(tableName, this$.Tables), columnIndex];
|
|
295
|
+
this$.RemoveColumnAt(tupledArg[0], tupledArg[1]);
|
|
296
|
+
}
|
|
297
|
+
UpdateColumnAt(tableIndex, columnIndex, header, cells) {
|
|
298
|
+
const this$ = this;
|
|
299
|
+
this$.MapTableAt(tableIndex, (table) => {
|
|
300
|
+
table.UpdateColumn(columnIndex, header, unwrap(cells));
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
UpdateColumn(tableName, columnIndex, header, cells) {
|
|
304
|
+
const this$ = this;
|
|
305
|
+
const tableIndex = ArcTablesAux_findIndexByTableName(tableName, this$.Tables) | 0;
|
|
306
|
+
this$.UpdateColumnAt(tableIndex, columnIndex, header, unwrap(cells));
|
|
307
|
+
}
|
|
308
|
+
GetColumnAt(tableIndex, columnIndex) {
|
|
309
|
+
const this$ = this;
|
|
310
|
+
const table = this$.GetTableAt(tableIndex);
|
|
311
|
+
return table.GetColumn(columnIndex);
|
|
312
|
+
}
|
|
313
|
+
GetColumn(tableName, columnIndex) {
|
|
314
|
+
const this$ = this;
|
|
315
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(tableName, this$.Tables), columnIndex];
|
|
316
|
+
return this$.GetColumnAt(tupledArg[0], tupledArg[1]);
|
|
317
|
+
}
|
|
318
|
+
AddRowAt(tableIndex, cells, rowIndex) {
|
|
319
|
+
const this$ = this;
|
|
320
|
+
this$.MapTableAt(tableIndex, (table) => {
|
|
321
|
+
table.AddRow(unwrap(cells), unwrap(rowIndex));
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
AddRow(tableName, cells, rowIndex) {
|
|
325
|
+
const this$ = this;
|
|
326
|
+
const i = ArcTablesAux_findIndexByTableName(tableName, this$.Tables) | 0;
|
|
327
|
+
this$.AddRowAt(i, unwrap(cells), unwrap(rowIndex));
|
|
328
|
+
}
|
|
329
|
+
RemoveRowAt(tableIndex, rowIndex) {
|
|
330
|
+
const this$ = this;
|
|
331
|
+
this$.MapTableAt(tableIndex, (table) => {
|
|
332
|
+
table.RemoveRow(rowIndex);
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
RemoveRow(tableName, rowIndex) {
|
|
336
|
+
const this$ = this;
|
|
337
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(tableName, this$.Tables), rowIndex];
|
|
338
|
+
this$.RemoveRowAt(tupledArg[0], tupledArg[1]);
|
|
339
|
+
}
|
|
340
|
+
UpdateRowAt(tableIndex, rowIndex, cells) {
|
|
341
|
+
const this$ = this;
|
|
342
|
+
this$.MapTableAt(tableIndex, (table) => {
|
|
343
|
+
table.UpdateRow(rowIndex, cells);
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
UpdateRow(tableName, rowIndex, cells) {
|
|
347
|
+
const this$ = this;
|
|
348
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(tableName, this$.Tables), rowIndex, cells];
|
|
349
|
+
this$.UpdateRowAt(tupledArg[0], tupledArg[1], tupledArg[2]);
|
|
350
|
+
}
|
|
351
|
+
GetRowAt(tableIndex, rowIndex) {
|
|
352
|
+
const this$ = this;
|
|
353
|
+
const table = this$.GetTableAt(tableIndex);
|
|
354
|
+
return table.GetRow(rowIndex);
|
|
355
|
+
}
|
|
356
|
+
GetRow(tableName, rowIndex) {
|
|
357
|
+
const this$ = this;
|
|
358
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(tableName, this$.Tables), rowIndex];
|
|
359
|
+
return this$.GetRowAt(tupledArg[0], tupledArg[1]);
|
|
360
|
+
}
|
|
361
|
+
static ofSeq(tables) {
|
|
362
|
+
return new ArcTables(Array.from(tables));
|
|
363
|
+
}
|
|
364
|
+
MoveTable(oldIndex, newIndex) {
|
|
365
|
+
const this$ = this;
|
|
366
|
+
const table = this$.GetTableAt(oldIndex);
|
|
367
|
+
this$.Tables.splice(oldIndex, 1);
|
|
368
|
+
this$.Tables.splice(newIndex, 0, table);
|
|
369
|
+
}
|
|
370
|
+
static updateReferenceTablesBySheets(referenceTables, sheetTables, keepUnusedRefTables) {
|
|
371
|
+
let collection, s, a;
|
|
372
|
+
const keepUnusedRefTables_1 = defaultArg(keepUnusedRefTables, false);
|
|
373
|
+
const usedTables = /* @__PURE__ */ new Set([]);
|
|
374
|
+
const referenceTableMap = ofSeq(choose((t) => map$1((c) => [c.Cells[0].AsFreeText, t], t.TryGetProtocolNameColumn()), referenceTables.Tables), {
|
|
375
|
+
Compare: comparePrimitives
|
|
376
|
+
});
|
|
377
|
+
return new ArcTables((collection = (s = ResizeArray_map((tupledArg) => reduce((table, table_1) => ArcTable.append(table, table_1), tupledArg[1]), ResizeArray_groupBy((t_2) => t_2.Name, ResizeArray_map((t_1) => {
|
|
378
|
+
const k = defaultArg(bind((c_1) => {
|
|
379
|
+
if (c_1.AsFreeText === "") {
|
|
380
|
+
return void 0;
|
|
381
|
+
} else {
|
|
382
|
+
return c_1.AsFreeText;
|
|
383
|
+
}
|
|
384
|
+
}, bind((i) => t_1.TryGetCellAt(i, 0), tryFindIndex((x_1) => equals(x_1, CompositeHeader_ProtocolREF()), t_1.Headers))), t_1.Name);
|
|
385
|
+
const matchValue = tryFind(k, referenceTableMap);
|
|
386
|
+
if (matchValue == null) {
|
|
387
|
+
return t_1;
|
|
388
|
+
} else {
|
|
389
|
+
const rt = value(matchValue);
|
|
390
|
+
addToSet(k, usedTables);
|
|
391
|
+
const updatedTable = ArcTable.updateReferenceByAnnotationTable(rt, t_1);
|
|
392
|
+
return ArcTable.fromArcTableValues(t_1.Name, updatedTable.Headers, updatedTable.Values);
|
|
393
|
+
}
|
|
394
|
+
}, (a = sheetTables.Tables, ResizeArray_collect(ArcTable.SplitByProtocolREF, a))))), keepUnusedRefTables_1 ? append(choose((kv) => {
|
|
395
|
+
if (usedTables.has(kv[0])) {
|
|
396
|
+
return void 0;
|
|
397
|
+
} else {
|
|
398
|
+
return kv[1];
|
|
399
|
+
}
|
|
400
|
+
}, referenceTableMap), s) : s), Array.from(collection)));
|
|
401
|
+
}
|
|
402
|
+
GetEnumerator() {
|
|
403
|
+
const this$ = this;
|
|
404
|
+
return getEnumerator(this$.Tables);
|
|
405
|
+
}
|
|
406
|
+
[Symbol.iterator]() {
|
|
407
|
+
return toIterator(getEnumerator(this));
|
|
408
|
+
}
|
|
409
|
+
"System.Collections.IEnumerable.GetEnumerator"() {
|
|
410
|
+
const this$ = this;
|
|
411
|
+
return getEnumerator(this$.Tables);
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export { ArcTables, ArcTablesAux_SanityChecks_validateNamesUnique, ArcTablesAux_SanityChecks_validateNewNameAtUnique, ArcTablesAux_SanityChecks_validateNewNameUnique, ArcTablesAux_SanityChecks_validateNewNamesUnique, ArcTablesAux_SanityChecks_validateSheetIndex, ArcTablesAux_applyIOMap, ArcTablesAux_findIndexByTableName, ArcTablesAux_getIOMap, ArcTablesAux_tryFindIndexByTableName };
|