@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.
Files changed (380) hide show
  1. package/README.md +2 -0
  2. package/dist/ts/index.js +63 -0
  3. package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +354 -0
  4. package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +28 -0
  5. package/dist/ts/node_modules/@fable-org/fable-library-js/AsyncBuilder.js +186 -0
  6. package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +8 -0
  7. package/dist/ts/node_modules/@fable-org/fable-library-js/Boolean.js +24 -0
  8. package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +73 -0
  9. package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +31 -0
  10. package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +574 -0
  11. package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +59 -0
  12. package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +65 -0
  13. package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +30 -0
  14. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +5 -0
  15. package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +5 -0
  16. package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +48 -0
  17. package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +120 -0
  18. package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +680 -0
  19. package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +40 -0
  20. package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +655 -0
  21. package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +105 -0
  22. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +320 -0
  23. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +204 -0
  24. package/dist/ts/node_modules/@fable-org/fable-library-js/Native.js +10 -0
  25. package/dist/ts/node_modules/@fable-org/fable-library-js/Numeric.js +73 -0
  26. package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +65 -0
  27. package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +23 -0
  28. package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +111 -0
  29. package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +114 -0
  30. package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +36 -0
  31. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +846 -0
  32. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +65 -0
  33. package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +1160 -0
  34. package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +364 -0
  35. package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +40 -0
  36. package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +193 -0
  37. package/dist/ts/node_modules/@fable-org/fable-library-js/Unicode.13.0.0.js +6 -0
  38. package/dist/ts/node_modules/@fable-org/fable-library-js/Uri.js +160 -0
  39. package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +367 -0
  40. package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +825 -0
  41. package/dist/ts/ts/ARC.js +914 -0
  42. package/dist/ts/ts/Contract/ARC.js +52 -0
  43. package/dist/ts/ts/Contract/ArcAssay.js +80 -0
  44. package/dist/ts/ts/Contract/ArcInvestigation.js +57 -0
  45. package/dist/ts/ts/Contract/ArcRun.js +76 -0
  46. package/dist/ts/ts/Contract/ArcStudy.js +76 -0
  47. package/dist/ts/ts/Contract/ArcWorkflow.js +77 -0
  48. package/dist/ts/ts/Contract/Contract.js +45 -0
  49. package/dist/ts/ts/Contract/Datamap.js +221 -0
  50. package/dist/ts/ts/Contract/Git.js +57 -0
  51. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +57 -0
  52. package/dist/ts/ts/ContractIO/ContractIO.js +202 -0
  53. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -1
  54. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
  55. package/dist/ts/ts/ContractIO/FileSystemHelper.js +273 -0
  56. package/dist/ts/ts/Conversion.js +1247 -0
  57. package/dist/ts/ts/Core/ArcTypes.js +3393 -0
  58. package/dist/ts/ts/Core/Comment.js +91 -0
  59. package/dist/ts/ts/Core/CommentList.js +27 -0
  60. package/dist/ts/ts/Core/Conversion.js +923 -0
  61. package/dist/ts/ts/Core/Data.js +179 -0
  62. package/dist/ts/ts/Core/DataContext.js +108 -0
  63. package/dist/ts/ts/Core/DataFile.js +50 -0
  64. package/dist/ts/ts/Core/DataMap.js +53 -0
  65. package/dist/ts/ts/Core/Helper/Collections.js +323 -0
  66. package/dist/ts/ts/Core/Helper/HashCodes.js +35 -0
  67. package/dist/ts/ts/Core/Helper/Identifier.js +96 -0
  68. package/dist/ts/ts/Core/Helper/ORCID.js +34 -0
  69. package/dist/ts/ts/Core/Helper/Regex.js +296 -0
  70. package/dist/ts/ts/Core/Helper/SemVer.js +31 -0
  71. package/dist/ts/ts/Core/Helper/Url.js +32 -0
  72. package/dist/ts/ts/Core/IdentifierSetters.js +9 -0
  73. package/dist/ts/ts/Core/OntologyAnnotation.js +207 -0
  74. package/dist/ts/ts/Core/OntologySourceReference.js +84 -0
  75. package/dist/ts/ts/Core/Person.js +183 -0
  76. package/dist/ts/ts/Core/Process/ColumnIndex.js +73 -0
  77. package/dist/ts/ts/Core/Process/Component.js +121 -0
  78. package/dist/ts/ts/Core/Process/Factor.js +104 -0
  79. package/dist/ts/ts/Core/Process/FactorValue.js +68 -0
  80. package/dist/ts/ts/Core/Process/Material.js +49 -0
  81. package/dist/ts/ts/Core/Process/MaterialAttribute.js +30 -0
  82. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +68 -0
  83. package/dist/ts/ts/Core/Process/MaterialType.js +28 -0
  84. package/dist/ts/ts/Core/Process/Process.js +136 -0
  85. package/dist/ts/ts/Core/Process/ProcessInput.js +207 -0
  86. package/dist/ts/ts/Core/Process/ProcessOutput.js +178 -0
  87. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +135 -0
  88. package/dist/ts/ts/Core/Process/ProcessSequence.js +56 -0
  89. package/dist/ts/ts/Core/Process/Protocol.js +54 -0
  90. package/dist/ts/ts/Core/Process/ProtocolParameter.js +69 -0
  91. package/dist/ts/ts/Core/Process/Sample.js +44 -0
  92. package/dist/ts/ts/Core/Process/Source.js +38 -0
  93. package/dist/ts/ts/Core/Publication.js +108 -0
  94. package/dist/ts/ts/Core/Table/ArcTable.js +889 -0
  95. package/dist/ts/ts/Core/Table/ArcTableAux.js +993 -0
  96. package/dist/ts/ts/Core/Table/ArcTables.js +415 -0
  97. package/dist/ts/ts/Core/Table/CompositeCell.js +334 -0
  98. package/dist/ts/ts/Core/Table/CompositeColumn.js +52 -0
  99. package/dist/ts/ts/Core/Table/CompositeHeader.js +792 -0
  100. package/dist/ts/ts/Core/Template.js +180 -0
  101. package/dist/ts/ts/Core/Templates.js +75 -0
  102. package/dist/ts/ts/Core/URI.js +8 -0
  103. package/dist/ts/ts/Core/Value.js +194 -0
  104. package/dist/ts/ts/CrossAsync.js +20 -0
  105. package/dist/ts/ts/FileSystem/DefaultGitattributes.js +3 -0
  106. package/dist/ts/ts/FileSystem/DefaultGitignore.js +3 -0
  107. package/dist/ts/ts/FileSystem/FileSystem.js +48 -0
  108. package/dist/ts/ts/FileSystem/FileSystemTree.js +339 -0
  109. package/dist/ts/ts/FileSystem/Path.js +36 -0
  110. package/dist/ts/ts/Json/Assay.d.ts +1 -1
  111. package/dist/ts/ts/Json/Assay.js +221 -0
  112. package/dist/ts/ts/Json/Comment.d.ts +1 -1
  113. package/dist/ts/ts/Json/Comment.js +112 -0
  114. package/dist/ts/ts/Json/Data.d.ts +1 -1
  115. package/dist/ts/ts/Json/Data.js +138 -0
  116. package/dist/ts/ts/Json/DataFile.d.ts +1 -1
  117. package/dist/ts/ts/Json/DataFile.js +55 -0
  118. package/dist/ts/ts/Json/DataMap/DataContext.d.ts +1 -1
  119. package/dist/ts/ts/Json/DataMap/DataContext.js +39 -0
  120. package/dist/ts/ts/Json/DataMap/DataMap.d.ts +1 -1
  121. package/dist/ts/ts/Json/DataMap/DataMap.js +27 -0
  122. package/dist/ts/ts/Json/Decode.d.ts +2 -2
  123. package/dist/ts/ts/Json/Decode.js +209 -0
  124. package/dist/ts/ts/Json/Encode.d.ts +1 -1
  125. package/dist/ts/ts/Json/Encode.js +65 -0
  126. package/dist/ts/ts/Json/IDTable.d.ts +1 -1
  127. package/dist/ts/ts/Json/IDTable.js +28 -0
  128. package/dist/ts/ts/Json/Investigation.d.ts +1 -1
  129. package/dist/ts/ts/Json/Investigation.js +229 -0
  130. package/dist/ts/ts/Json/OntologyAnnotation.d.ts +1 -1
  131. package/dist/ts/ts/Json/OntologyAnnotation.js +194 -0
  132. package/dist/ts/ts/Json/OntologySourceReference.d.ts +1 -1
  133. package/dist/ts/ts/Json/OntologySourceReference.js +119 -0
  134. package/dist/ts/ts/Json/Person.d.ts +1 -1
  135. package/dist/ts/ts/Json/Person.js +316 -0
  136. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts +1 -1
  137. package/dist/ts/ts/Json/Process/AssayMaterials.js +21 -0
  138. package/dist/ts/ts/Json/Process/Component.d.ts +1 -1
  139. package/dist/ts/ts/Json/Process/Component.js +41 -0
  140. package/dist/ts/ts/Json/Process/Factor.d.ts +1 -1
  141. package/dist/ts/ts/Json/Process/Factor.js +53 -0
  142. package/dist/ts/ts/Json/Process/FactorValue.d.ts +1 -1
  143. package/dist/ts/ts/Json/Process/FactorValue.js +44 -0
  144. package/dist/ts/ts/Json/Process/Material.d.ts +1 -1
  145. package/dist/ts/ts/Json/Process/Material.js +112 -0
  146. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts +1 -1
  147. package/dist/ts/ts/Json/Process/MaterialAttribute.js +43 -0
  148. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts +1 -1
  149. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +44 -0
  150. package/dist/ts/ts/Json/Process/MaterialType.d.ts +1 -1
  151. package/dist/ts/ts/Json/Process/MaterialType.js +45 -0
  152. package/dist/ts/ts/Json/Process/Process.d.ts +1 -1
  153. package/dist/ts/ts/Json/Process/Process.js +103 -0
  154. package/dist/ts/ts/Json/Process/ProcessInput.d.ts +1 -1
  155. package/dist/ts/ts/Json/Process/ProcessInput.js +42 -0
  156. package/dist/ts/ts/Json/Process/ProcessOutput.d.ts +1 -1
  157. package/dist/ts/ts/Json/Process/ProcessOutput.js +35 -0
  158. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts +1 -1
  159. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +28 -0
  160. package/dist/ts/ts/Json/Process/Protocol.d.ts +1 -1
  161. package/dist/ts/ts/Json/Process/Protocol.js +166 -0
  162. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +1 -1
  163. package/dist/ts/ts/Json/Process/ProtocolParameter.js +43 -0
  164. package/dist/ts/ts/Json/Process/Sample.d.ts +1 -1
  165. package/dist/ts/ts/Json/Process/Sample.js +165 -0
  166. package/dist/ts/ts/Json/Process/Source.d.ts +1 -1
  167. package/dist/ts/ts/Json/Process/Source.js +133 -0
  168. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts +1 -1
  169. package/dist/ts/ts/Json/Process/StudyMaterials.js +23 -0
  170. package/dist/ts/ts/Json/Process/Value.d.ts +1 -1
  171. package/dist/ts/ts/Json/Process/Value.js +41 -0
  172. package/dist/ts/ts/Json/PropertyValue.d.ts +1 -1
  173. package/dist/ts/ts/Json/PropertyValue.js +280 -0
  174. package/dist/ts/ts/Json/Publication.d.ts +1 -1
  175. package/dist/ts/ts/Json/Publication.js +123 -0
  176. package/dist/ts/ts/Json/ROCrate/LDContext.d.ts +1 -1
  177. package/dist/ts/ts/Json/ROCrate/LDContext.js +115 -0
  178. package/dist/ts/ts/Json/ROCrate/LDGraph.d.ts +1 -1
  179. package/dist/ts/ts/Json/ROCrate/LDGraph.js +83 -0
  180. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -1
  181. package/dist/ts/ts/Json/ROCrate/LDNode.js +190 -0
  182. package/dist/ts/ts/Json/ROCrate/LDRef.d.ts +1 -1
  183. package/dist/ts/ts/Json/ROCrate/LDRef.js +24 -0
  184. package/dist/ts/ts/Json/ROCrate/LDValue.d.ts +1 -1
  185. package/dist/ts/ts/Json/ROCrate/LDValue.js +63 -0
  186. package/dist/ts/ts/Json/StringTable.d.ts +1 -1
  187. package/dist/ts/ts/Json/StringTable.js +66 -0
  188. package/dist/ts/ts/Json/Study.d.ts +1 -1
  189. package/dist/ts/ts/Json/Study.js +326 -0
  190. package/dist/ts/ts/Json/Table/ArcTable.d.ts +1 -1
  191. package/dist/ts/ts/Json/Table/ArcTable.js +210 -0
  192. package/dist/ts/ts/Json/Table/CellTable.d.ts +1 -1
  193. package/dist/ts/ts/Json/Table/CellTable.js +53 -0
  194. package/dist/ts/ts/Json/Table/CompositeCell.d.ts +1 -1
  195. package/dist/ts/ts/Json/Table/CompositeCell.js +106 -0
  196. package/dist/ts/ts/Json/Table/CompositeHeader.d.ts +1 -1
  197. package/dist/ts/ts/Json/Table/CompositeHeader.js +121 -0
  198. package/dist/ts/ts/Json/Table/IOType.d.ts +1 -1
  199. package/dist/ts/ts/Json/Table/IOType.js +15 -0
  200. package/dist/ts/ts/Json/Table/OATable.d.ts +1 -1
  201. package/dist/ts/ts/Json/Table/OATable.js +50 -0
  202. package/dist/ts/ts/Json/Table/Templates.d.ts +1 -1
  203. package/dist/ts/ts/Json/Table/Templates.js +15 -0
  204. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.d.ts +1 -1
  205. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +61 -0
  206. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.d.ts +1 -1
  207. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +29 -0
  208. package/dist/ts/ts/Json/context/rocrate/isa_data_context.d.ts +1 -1
  209. package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +41 -0
  210. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.d.ts +1 -1
  211. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +69 -0
  212. package/dist/ts/ts/Json/context/rocrate/isa_material_context.d.ts +1 -1
  213. package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +37 -0
  214. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.d.ts +1 -1
  215. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +37 -0
  216. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.d.ts +1 -1
  217. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +41 -0
  218. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.d.ts +1 -1
  219. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +25 -0
  220. package/dist/ts/ts/Json/context/rocrate/isa_person_context.d.ts +1 -1
  221. package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +86 -0
  222. package/dist/ts/ts/Json/context/rocrate/isa_process_context.d.ts +1 -1
  223. package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +57 -0
  224. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.d.ts +1 -1
  225. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +61 -0
  226. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.d.ts +1 -1
  227. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +45 -0
  228. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.d.ts +1 -1
  229. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +33 -0
  230. package/dist/ts/ts/Json/context/rocrate/isa_source_context.d.ts +1 -1
  231. package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +33 -0
  232. package/dist/ts/ts/Json/context/rocrate/isa_study_context.d.ts +1 -1
  233. package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +77 -0
  234. package/dist/ts/ts/Json/context/rocrate/property_value_context.d.ts +1 -1
  235. package/dist/ts/ts/Json/context/rocrate/property_value_context.js +61 -0
  236. package/dist/ts/ts/Json/context/rocrate/rocrate_context.d.ts +1 -1
  237. package/dist/ts/ts/Json.js +171 -0
  238. package/dist/ts/ts/JsonIO/Assay.js +77 -0
  239. package/dist/ts/ts/JsonIO/Investigation.js +77 -0
  240. package/dist/ts/ts/JsonIO/LDObject.js +77 -0
  241. package/dist/ts/ts/JsonIO/OntologyAnnotation.js +56 -0
  242. package/dist/ts/ts/JsonIO/Study.js +77 -0
  243. package/dist/ts/ts/JsonIO/Table/Compression.d.ts +1 -1
  244. package/dist/ts/ts/JsonIO/Table/Compression.js +39 -0
  245. package/dist/ts/ts/JsonIO/Table/Templates.d.ts +1 -1
  246. package/dist/ts/ts/JsonIO/Table/Templates.js +25 -0
  247. package/dist/ts/ts/ROCrate/Generic/Comment.js +103 -0
  248. package/dist/ts/ts/ROCrate/Generic/Dataset.js +624 -0
  249. package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +103 -0
  250. package/dist/ts/ts/ROCrate/Generic/File.js +184 -0
  251. package/dist/ts/ts/ROCrate/Generic/LabProcess.js +222 -0
  252. package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +257 -0
  253. package/dist/ts/ts/ROCrate/Generic/Organization.js +63 -0
  254. package/dist/ts/ts/ROCrate/Generic/Person.js +377 -0
  255. package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +143 -0
  256. package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +512 -0
  257. package/dist/ts/ts/ROCrate/Generic/Sample.js +131 -0
  258. package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +173 -0
  259. package/dist/ts/ts/ROCrate/Helper.js +7 -0
  260. package/dist/ts/ts/ROCrate/LDContext.js +288 -0
  261. package/dist/ts/ts/ROCrate/LDObject.js +855 -0
  262. package/dist/ts/ts/ROCrate/ROCrateContext.js +39 -0
  263. package/dist/ts/ts/ROCrateIO.d.ts +1 -1
  264. package/dist/ts/ts/ROCrateIO.js +58 -0
  265. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts +2 -2
  266. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  267. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +149 -0
  268. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +63 -0
  269. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts +2 -2
  270. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  271. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +108 -0
  272. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +410 -0
  273. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts +2 -2
  274. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  275. package/dist/ts/ts/Spreadsheet/ArcAssay.js +169 -0
  276. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts +2 -2
  277. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
  278. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +316 -0
  279. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts +2 -2
  280. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  281. package/dist/ts/ts/Spreadsheet/ArcRun.js +136 -0
  282. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts +2 -2
  283. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  284. package/dist/ts/ts/Spreadsheet/ArcStudy.js +92 -0
  285. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts +2 -2
  286. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  287. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +125 -0
  288. package/dist/ts/ts/Spreadsheet/CollectionAux.js +34 -0
  289. package/dist/ts/ts/Spreadsheet/DataMap.d.ts +1 -1
  290. package/dist/ts/ts/Spreadsheet/DataMap.d.ts.map +1 -1
  291. package/dist/ts/ts/Spreadsheet/DataMap.js +33 -0
  292. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts +2 -2
  293. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts.map +1 -1
  294. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +41 -0
  295. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts +1 -1
  296. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts.map +1 -1
  297. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +418 -0
  298. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts +3 -3
  299. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts.map +1 -1
  300. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +85 -0
  301. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +90 -0
  302. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +58 -0
  303. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +85 -0
  304. package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +133 -0
  305. package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +15 -0
  306. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +74 -0
  307. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +58 -0
  308. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +62 -0
  309. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +94 -0
  310. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +81 -0
  311. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +91 -0
  312. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts +3 -3
  313. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  314. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +193 -0
  315. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +238 -0
  316. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +105 -0
  317. package/dist/ts/ts/Template.Web.js +22 -0
  318. package/dist/ts/ts/ValidationPackages/ValidationPackage.js +53 -0
  319. package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +78 -0
  320. package/dist/ts/ts/WebRequest/WebRequest.Node.js +13 -0
  321. package/dist/ts/ts/WebRequest/WebRequest.js +19 -0
  322. package/dist/ts/ts/Xlsx.d.ts +1 -1
  323. package/dist/ts/ts/Xlsx.d.ts.map +1 -1
  324. package/dist/ts/ts/Xlsx.js +91 -0
  325. package/dist/ts/ts/Yaml/Encode.js +8 -0
  326. package/dist/ts/ts/Yaml/ValidationPackage.js +26 -0
  327. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +40 -0
  328. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +344 -0
  329. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +103 -0
  330. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +19 -0
  331. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +17 -0
  332. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +7 -0
  333. package/dist/ts/ts/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js +5 -0
  334. package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +18 -0
  335. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +44 -0
  336. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +5 -0
  337. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +142 -0
  338. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +76 -0
  339. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +359 -0
  340. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +344 -0
  341. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +154 -0
  342. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +116 -0
  343. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +126 -0
  344. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +135 -0
  345. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +422 -0
  346. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +5 -0
  347. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +25 -0
  348. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +28 -0
  349. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -0
  350. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +69 -0
  351. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +42 -0
  352. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +29 -0
  353. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +348 -0
  354. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +86 -0
  355. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +68 -0
  356. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +12 -0
  357. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +54 -0
  358. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +33 -0
  359. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +63 -0
  360. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +66 -0
  361. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +544 -0
  362. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +31 -0
  363. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +38 -0
  364. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +79 -0
  365. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js +57 -0
  366. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +235 -0
  367. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +16 -0
  368. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +45 -0
  369. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +89 -0
  370. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +480 -0
  371. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +11 -0
  372. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +212 -0
  373. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +164 -0
  374. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +136 -0
  375. package/package.json +10 -7
  376. package/dist/ts/__vite-browser-external-2447137e.js +0 -4
  377. package/dist/ts/__vite-browser-external-b3701507.cjs +0 -1
  378. package/dist/ts/arctrl.cjs.js +0 -5691
  379. package/dist/ts/arctrl.es.js +0 -35562
  380. package/dist/ts/arctrl.umd.js +0 -5691
@@ -0,0 +1,296 @@
1
+ import { match, create } from '../../../node_modules/@fable-org/fable-library-js/RegExp.js';
2
+ import { value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
3
+
4
+ function Pattern_handleGroupPatterns(pattern) {
5
+ return pattern;
6
+ }
7
+ const Pattern_TermAnnotationShortPattern = `(?<${"idspace"}>\\w+?):(?<${"localid"}>\\w+)`;
8
+ const Pattern_TermAnnotationURIPattern = `http://purl.obolibrary.org/obo/(?<${"idspace"}>\\w+?)_(?<${"localid"}>\\w+)`;
9
+ const Pattern_TermAnnotationURIPattern_lessRestrictive = `.*\\/(?<${"idspace"}>\\w+?)[:_](?<${"localid"}>\\w+)`;
10
+ const Pattern_TermAnnotationURIPattern_MS_RO_PO = `.*252F(?<${"idspace"}>\\w+?)_(?<${"localid"}>\\w+)`;
11
+ const Pattern_IOTypePattern = `(Input|Output)\\s*\\[(?<${"iotype"}>.+)\\]`;
12
+ const Pattern_InputPattern = `Input\\s*\\[(?<${"iotype"}>.+)\\]`;
13
+ const Pattern_OutputPattern = `Output\\s*\\[(?<${"iotype"}>.+)\\]`;
14
+ const Pattern_CommentPattern = `Comment\\s*\\[(?<${"commentKey"}>.+)\\]`;
15
+ function ActivePatterns_$007CRegex$007C_$007C(pattern, input) {
16
+ const m = match(create(Pattern_handleGroupPatterns(pattern)), input.trim());
17
+ if (m != null) {
18
+ return m;
19
+ } else {
20
+ return void 0;
21
+ }
22
+ }
23
+ function ActivePatterns_$007CTermColumn$007C_$007C(input) {
24
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("(?<termcolumntype>.+?)\\s*\\[(?<termname>.+)\\]", input);
25
+ if (activePatternResult != null) {
26
+ const r = value(activePatternResult);
27
+ return {
28
+ TermColumnType: r.groups && r.groups.termcolumntype || "",
29
+ TermName: r.groups && r.groups.termname || ""
30
+ };
31
+ } else {
32
+ return void 0;
33
+ }
34
+ }
35
+ function ActivePatterns_$007CUnitColumnHeader$007C_$007C(input) {
36
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("Unit", input);
37
+ if (activePatternResult != null) {
38
+ const o = value(activePatternResult);
39
+ return o[0];
40
+ } else {
41
+ return void 0;
42
+ }
43
+ }
44
+ function ActivePatterns_$007CParameterColumnHeader$007C_$007C(input) {
45
+ const activePatternResult = ActivePatterns_$007CTermColumn$007C_$007C(input);
46
+ if (activePatternResult != null) {
47
+ const r = value(activePatternResult);
48
+ const matchValue = r.TermColumnType;
49
+ switch (matchValue) {
50
+ case "Parameter":
51
+ case "Parameter Value":
52
+ return r.TermName;
53
+ default:
54
+ return void 0;
55
+ }
56
+ } else {
57
+ return void 0;
58
+ }
59
+ }
60
+ function ActivePatterns_$007CFactorColumnHeader$007C_$007C(input) {
61
+ const activePatternResult = ActivePatterns_$007CTermColumn$007C_$007C(input);
62
+ if (activePatternResult != null) {
63
+ const r = value(activePatternResult);
64
+ const matchValue = r.TermColumnType;
65
+ switch (matchValue) {
66
+ case "Factor":
67
+ case "Factor Value":
68
+ return r.TermName;
69
+ default:
70
+ return void 0;
71
+ }
72
+ } else {
73
+ return void 0;
74
+ }
75
+ }
76
+ function ActivePatterns_$007CCharacteristicColumnHeader$007C_$007C(input) {
77
+ const activePatternResult = ActivePatterns_$007CTermColumn$007C_$007C(input);
78
+ if (activePatternResult != null) {
79
+ const r = value(activePatternResult);
80
+ const matchValue = r.TermColumnType;
81
+ switch (matchValue) {
82
+ case "Characteristic":
83
+ case "Characteristics":
84
+ case "Characteristics Value":
85
+ return r.TermName;
86
+ default:
87
+ return void 0;
88
+ }
89
+ } else {
90
+ return void 0;
91
+ }
92
+ }
93
+ function ActivePatterns_$007CComponentColumnHeader$007C_$007C(input) {
94
+ const activePatternResult = ActivePatterns_$007CTermColumn$007C_$007C(input);
95
+ if (activePatternResult != null) {
96
+ const r = value(activePatternResult);
97
+ const matchValue = r.TermColumnType;
98
+ switch (matchValue) {
99
+ case "Component":
100
+ case "Component Value":
101
+ return r.TermName;
102
+ default:
103
+ return void 0;
104
+ }
105
+ } else {
106
+ return void 0;
107
+ }
108
+ }
109
+ function ActivePatterns_$007CTermAnnotation$007C_$007C(input) {
110
+ let matchResult, value$1;
111
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationShortPattern, input);
112
+ if (activePatternResult != null) {
113
+ matchResult = 0;
114
+ value$1 = value(activePatternResult);
115
+ } else {
116
+ const activePatternResult_1 = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationURIPattern, input);
117
+ if (activePatternResult_1 != null) {
118
+ matchResult = 0;
119
+ value$1 = value(activePatternResult_1);
120
+ } else {
121
+ const activePatternResult_2 = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationURIPattern_lessRestrictive, input);
122
+ if (activePatternResult_2 != null) {
123
+ matchResult = 0;
124
+ value$1 = value(activePatternResult_2);
125
+ } else {
126
+ const activePatternResult_3 = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationURIPattern_MS_RO_PO, input);
127
+ if (activePatternResult_3 != null) {
128
+ matchResult = 0;
129
+ value$1 = value(activePatternResult_3);
130
+ } else {
131
+ matchResult = 1;
132
+ }
133
+ }
134
+ }
135
+ }
136
+ switch (matchResult) {
137
+ case 0:
138
+ return {
139
+ IDSpace: value$1.groups && value$1.groups.idspace || "",
140
+ LocalID: value$1.groups && value$1.groups.localid || ""
141
+ };
142
+ default:
143
+ return void 0;
144
+ }
145
+ }
146
+ function ActivePatterns_$007CTSRColumnHeader$007C_$007C(input) {
147
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("Term Source REF\\s*\\((?<id>.*)\\)", input);
148
+ if (activePatternResult != null) {
149
+ const r = value(activePatternResult);
150
+ const matchValue = r.groups && r.groups.id || "";
151
+ const activePatternResult_1 = ActivePatterns_$007CTermAnnotation$007C_$007C(matchValue);
152
+ if (activePatternResult_1 != null) {
153
+ const r_1 = value(activePatternResult_1);
154
+ return r_1;
155
+ } else {
156
+ return {
157
+ IDSpace: "",
158
+ LocalID: ""
159
+ };
160
+ }
161
+ } else {
162
+ return void 0;
163
+ }
164
+ }
165
+ function ActivePatterns_$007CTANColumnHeader$007C_$007C(input) {
166
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("Term Accession Number\\s*\\((?<id>.*)\\)", input);
167
+ if (activePatternResult != null) {
168
+ const r = value(activePatternResult);
169
+ const matchValue = r.groups && r.groups.id || "";
170
+ const activePatternResult_1 = ActivePatterns_$007CTermAnnotation$007C_$007C(matchValue);
171
+ if (activePatternResult_1 != null) {
172
+ const r_1 = value(activePatternResult_1);
173
+ return r_1;
174
+ } else {
175
+ return {
176
+ IDSpace: "",
177
+ LocalID: ""
178
+ };
179
+ }
180
+ } else {
181
+ return void 0;
182
+ }
183
+ }
184
+ function ActivePatterns_$007CInputColumnHeader$007C_$007C(input) {
185
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_InputPattern, input);
186
+ if (activePatternResult != null) {
187
+ const r = value(activePatternResult);
188
+ return r.groups && r.groups.iotype || "";
189
+ } else {
190
+ return void 0;
191
+ }
192
+ }
193
+ function ActivePatterns_$007COutputColumnHeader$007C_$007C(input) {
194
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_OutputPattern, input);
195
+ if (activePatternResult != null) {
196
+ const r = value(activePatternResult);
197
+ return r.groups && r.groups.iotype || "";
198
+ } else {
199
+ return void 0;
200
+ }
201
+ }
202
+ function ActivePatterns_$007CComment$007C_$007C(input) {
203
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_CommentPattern, input);
204
+ if (activePatternResult != null) {
205
+ const r = value(activePatternResult);
206
+ return r.groups && r.groups.commentKey || "";
207
+ } else {
208
+ return void 0;
209
+ }
210
+ }
211
+ function tryParseTermAnnotation(str) {
212
+ const matchValue = str.trim();
213
+ let matchResult, value$1;
214
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationShortPattern, matchValue);
215
+ if (activePatternResult != null) {
216
+ matchResult = 0;
217
+ value$1 = value(activePatternResult);
218
+ } else {
219
+ const activePatternResult_1 = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationURIPattern, matchValue);
220
+ if (activePatternResult_1 != null) {
221
+ matchResult = 0;
222
+ value$1 = value(activePatternResult_1);
223
+ } else {
224
+ const activePatternResult_2 = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationURIPattern_lessRestrictive, matchValue);
225
+ if (activePatternResult_2 != null) {
226
+ matchResult = 0;
227
+ value$1 = value(activePatternResult_2);
228
+ } else {
229
+ const activePatternResult_3 = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationURIPattern_MS_RO_PO, matchValue);
230
+ if (activePatternResult_3 != null) {
231
+ matchResult = 0;
232
+ value$1 = value(activePatternResult_3);
233
+ } else {
234
+ matchResult = 1;
235
+ }
236
+ }
237
+ }
238
+ }
239
+ switch (matchResult) {
240
+ case 0:
241
+ return {
242
+ IDSpace: value$1.groups && value$1.groups.idspace || "",
243
+ LocalID: value$1.groups && value$1.groups.localid || ""
244
+ };
245
+ default:
246
+ return void 0;
247
+ }
248
+ }
249
+ function tryParseIOTypeHeader(headerStr) {
250
+ const matchValue = headerStr.trim();
251
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_IOTypePattern, matchValue);
252
+ if (activePatternResult != null) {
253
+ const value$1 = value(activePatternResult);
254
+ return value$1.groups && value$1.groups.iotype || "";
255
+ } else {
256
+ return void 0;
257
+ }
258
+ }
259
+ function tryParseParameterColumnHeader(input) {
260
+ const activePatternResult = ActivePatterns_$007CParameterColumnHeader$007C_$007C(input);
261
+ if (activePatternResult != null) {
262
+ const r = value(activePatternResult);
263
+ return r;
264
+ } else {
265
+ return void 0;
266
+ }
267
+ }
268
+ function tryParseFactorColumnHeader(input) {
269
+ const activePatternResult = ActivePatterns_$007CFactorColumnHeader$007C_$007C(input);
270
+ if (activePatternResult != null) {
271
+ const r = value(activePatternResult);
272
+ return r;
273
+ } else {
274
+ return void 0;
275
+ }
276
+ }
277
+ function tryParseCharacteristicColumnHeader(input) {
278
+ const activePatternResult = ActivePatterns_$007CCharacteristicColumnHeader$007C_$007C(input);
279
+ if (activePatternResult != null) {
280
+ const r = value(activePatternResult);
281
+ return r;
282
+ } else {
283
+ return void 0;
284
+ }
285
+ }
286
+ function tryParseComponentColumnHeader(input) {
287
+ const activePatternResult = ActivePatterns_$007CComponentColumnHeader$007C_$007C(input);
288
+ if (activePatternResult != null) {
289
+ const r = value(activePatternResult);
290
+ return r;
291
+ } else {
292
+ return void 0;
293
+ }
294
+ }
295
+
296
+ export { ActivePatterns_$007CCharacteristicColumnHeader$007C_$007C, ActivePatterns_$007CComment$007C_$007C, ActivePatterns_$007CComponentColumnHeader$007C_$007C, ActivePatterns_$007CFactorColumnHeader$007C_$007C, ActivePatterns_$007CInputColumnHeader$007C_$007C, ActivePatterns_$007COutputColumnHeader$007C_$007C, ActivePatterns_$007CParameterColumnHeader$007C_$007C, ActivePatterns_$007CRegex$007C_$007C, ActivePatterns_$007CTANColumnHeader$007C_$007C, ActivePatterns_$007CTSRColumnHeader$007C_$007C, ActivePatterns_$007CTermAnnotation$007C_$007C, ActivePatterns_$007CTermColumn$007C_$007C, ActivePatterns_$007CUnitColumnHeader$007C_$007C, Pattern_CommentPattern, Pattern_IOTypePattern, Pattern_InputPattern, Pattern_OutputPattern, Pattern_TermAnnotationShortPattern, Pattern_TermAnnotationURIPattern, Pattern_TermAnnotationURIPattern_MS_RO_PO, Pattern_TermAnnotationURIPattern_lessRestrictive, Pattern_handleGroupPatterns, tryParseCharacteristicColumnHeader, tryParseComponentColumnHeader, tryParseFactorColumnHeader, tryParseIOTypeHeader, tryParseParameterColumnHeader, tryParseTermAnnotation };
@@ -0,0 +1,31 @@
1
+ import { Record } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
2
+ import { parse } from '../../../node_modules/@fable-org/fable-library-js/Int32.js';
3
+ import { value, unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
4
+ import { ActivePatterns_$007CRegex$007C_$007C } from './Regex.js';
5
+
6
+ const SemVerAux_Pattern = "^(?<major>\\d+)(\\.(?<minor>\\d+))?(\\.(?<patch>\\d+))?(-(?<pre>[0-9A-Za-z-\\.]+))?(\\+(?<build>[0-9A-Za-z-\\.]+))?$";
7
+ class SemVer extends Record {
8
+ constructor(Major, Minor, Patch, PreRelease, Metadata) {
9
+ super();
10
+ this.Major = Major | 0;
11
+ this.Minor = Minor | 0;
12
+ this.Patch = Patch | 0;
13
+ this.PreRelease = PreRelease;
14
+ this.Metadata = Metadata;
15
+ }
16
+ }
17
+ function SemVer_create_Z55658624(major, minor, patch, pre, meta) {
18
+ return new SemVer(major, minor, patch, pre, meta);
19
+ }
20
+ function SemVer_tryOfString_Z721C83C5(str) {
21
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(SemVerAux_Pattern, str);
22
+ if (activePatternResult != null) {
23
+ const m = value(activePatternResult);
24
+ const g = m;
25
+ return SemVer_create_Z55658624(parse(g.groups && g.groups.major || "", 511, false, 32), parse(g.groups && g.groups.minor || "", 511, false, 32), parse(g.groups && g.groups.patch || "", 511, false, 32), unwrap((g.groups && g.groups.pre) != null ? g.groups && g.groups.pre || "" : void 0), unwrap((g.groups && g.groups.build) != null ? g.groups && g.groups.build || "" : void 0));
26
+ } else {
27
+ return void 0;
28
+ }
29
+ }
30
+
31
+ export { SemVer, SemVerAux_Pattern, SemVer_create_Z55658624, SemVer_tryOfString_Z721C83C5 };
@@ -0,0 +1,32 @@
1
+ import { Dictionary_ofSeq, Dictionary_tryFind } from './Collections.js';
2
+ import { value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
3
+
4
+ function OntobeeParser(tsr, localTan) {
5
+ return `${"http://purl.obolibrary.org/obo/"}${tsr}_${localTan}`;
6
+ }
7
+ function BioregistryParser(tsr, localTan) {
8
+ return `${"https://bioregistry.io/"}${tsr}:${localTan}`;
9
+ }
10
+ function OntobeeDPBOParser(tsr, localTan) {
11
+ return `${"http://purl.org/nfdi4plants/ontology/dpbo/"}${tsr}_${localTan}`;
12
+ }
13
+ function MSParser(tsr, localTan) {
14
+ return `${"https://www.ebi.ac.uk/ols4/ontologies/ms/classes/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252F"}${tsr}_${localTan}`;
15
+ }
16
+ function POParser(tsr, localTan) {
17
+ return `${"https://www.ebi.ac.uk/ols4/ontologies/po/classes/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252F"}${tsr}_${localTan}`;
18
+ }
19
+ function ROParser(tsr, localTan) {
20
+ return `${"https://www.ebi.ac.uk/ols4/ontologies/ro/classes/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252F"}${tsr}_${localTan}`;
21
+ }
22
+ const uriParserCollection = Dictionary_ofSeq([["DPBO", (tsr) => (localTan) => OntobeeDPBOParser(tsr, localTan)], ["MS", (tsr_1) => (localTan_1) => MSParser(tsr_1, localTan_1)], ["PO", (tsr_2) => (localTan_2) => POParser(tsr_2, localTan_2)], ["RO", (tsr_3) => (localTan_3) => ROParser(tsr_3, localTan_3)], ["ENVO", (tsr_4) => (localTan_4) => BioregistryParser(tsr_4, localTan_4)], ["CHEBI", (tsr_5) => (localTan_5) => BioregistryParser(tsr_5, localTan_5)], ["GO", (tsr_6) => (localTan_6) => BioregistryParser(tsr_6, localTan_6)], ["OBI", (tsr_7) => (localTan_7) => BioregistryParser(tsr_7, localTan_7)], ["PATO", (tsr_8) => (localTan_8) => BioregistryParser(tsr_8, localTan_8)], ["PECO", (tsr_9) => (localTan_9) => BioregistryParser(tsr_9, localTan_9)], ["TO", (tsr_10) => (localTan_10) => BioregistryParser(tsr_10, localTan_10)], ["UO", (tsr_11) => (localTan_11) => BioregistryParser(tsr_11, localTan_11)], ["EFO", (tsr_12) => (localTan_12) => BioregistryParser(tsr_12, localTan_12)], ["NCIT", (tsr_13) => (localTan_13) => BioregistryParser(tsr_13, localTan_13)], ["OMP", (tsr_14) => (localTan_14) => BioregistryParser(tsr_14, localTan_14)]]);
23
+ function createOAUri(tsr, localTan) {
24
+ const matchValue = Dictionary_tryFind(tsr, uriParserCollection);
25
+ if (matchValue == null) {
26
+ return OntobeeParser(tsr, localTan);
27
+ } else {
28
+ return value(matchValue)(tsr)(localTan);
29
+ }
30
+ }
31
+
32
+ export { BioregistryParser, MSParser, OntobeeDPBOParser, OntobeeParser, POParser, ROParser, createOAUri, uriParserCollection };
@@ -0,0 +1,9 @@
1
+ import { checkValidCharacters } from './Helper/Identifier.js';
2
+
3
+ function setInvestigationIdentifier(newIdentifier, investigation) {
4
+ checkValidCharacters(newIdentifier);
5
+ investigation.Identifier = newIdentifier;
6
+ return investigation;
7
+ }
8
+
9
+ export { setInvestigationIdentifier };
@@ -0,0 +1,207 @@
1
+ import { value, defaultArg, unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { createOAUri } from './Helper/Url.js';
3
+ import { tryParseTermAnnotation, ActivePatterns_$007CRegex$007C_$007C, Pattern_TermAnnotationShortPattern } from './Helper/Regex.js';
4
+ import { StringBuilder_$ctor, StringBuilder__Append_Z721C83C5 } from '../../node_modules/@fable-org/fable-library-js/System.Text.js';
5
+ import { join, toText, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
6
+ import { toList, delay, append, singleton, empty } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
7
+ import { toString } from '../../node_modules/@fable-org/fable-library-js/Types.js';
8
+ import { mergeHashes, hash } from './Helper/HashCodes.js';
9
+ import { stringHash, safeHash } from '../../node_modules/@fable-org/fable-library-js/Util.js';
10
+ import { ResizeArray_map } from './Helper/Collections.js';
11
+ import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
12
+
13
+ class OntologyAnnotation {
14
+ constructor(name, tsr, tan, comments) {
15
+ this._name = name == null ? void 0 : value(name) === "" ? void 0 : name;
16
+ this._termSourceREF = tsr == null ? void 0 : value(tsr) === "" ? void 0 : tsr;
17
+ this._termAccessionNumber = tan == null ? void 0 : value(tan) === "" ? void 0 : value(tan) === ":" ? void 0 : tan;
18
+ this._comments = defaultArg(comments, []);
19
+ this._tanInfo = OntologyAnnotation.computeTanInfo(unwrap(this._termAccessionNumber), unwrap(this._termSourceREF));
20
+ }
21
+ get Name() {
22
+ const this$ = this;
23
+ return unwrap(this$._name);
24
+ }
25
+ set Name(name) {
26
+ const this$ = this;
27
+ this$._name = name;
28
+ }
29
+ get TermSourceREF() {
30
+ const this$ = this;
31
+ return unwrap(this$._termSourceREF);
32
+ }
33
+ set TermSourceREF(tsr) {
34
+ const this$ = this;
35
+ this$._termSourceREF = tsr;
36
+ this$.recomputeTanInfo();
37
+ }
38
+ get TermAccessionNumber() {
39
+ const this$ = this;
40
+ return unwrap(this$._termAccessionNumber);
41
+ }
42
+ set TermAccessionNumber(tan) {
43
+ const this$ = this;
44
+ this$._termAccessionNumber = tan;
45
+ this$.recomputeTanInfo();
46
+ }
47
+ get Comments() {
48
+ const this$ = this;
49
+ return this$._comments;
50
+ }
51
+ set Comments(comments) {
52
+ const this$ = this;
53
+ this$._comments = comments;
54
+ }
55
+ static make(name, tsr, tan, comments) {
56
+ return new OntologyAnnotation(unwrap(name), unwrap(tsr), unwrap(tan), comments);
57
+ }
58
+ static create(name, tsr, tan, comments) {
59
+ const comments_1 = defaultArg(comments, []);
60
+ return OntologyAnnotation.make(name, tsr, tan, comments_1);
61
+ }
62
+ get TANInfo() {
63
+ const this$ = this;
64
+ return unwrap(this$._tanInfo);
65
+ }
66
+ get NameText() {
67
+ const this$ = this;
68
+ return defaultArg(this$.Name, "");
69
+ }
70
+ static createUriAnnotation(termSourceRef, localTAN) {
71
+ return createOAUri(termSourceRef, localTAN);
72
+ }
73
+ static fromTermAnnotation(tan, name) {
74
+ const matchValue = tryParseTermAnnotation(tan);
75
+ if (matchValue == null) {
76
+ return OntologyAnnotation.create(unwrap(name), void 0, tan);
77
+ } else {
78
+ const r = value(matchValue);
79
+ const accession = r.IDSpace + ":" + r.LocalID;
80
+ return OntologyAnnotation.create(unwrap(name), r.IDSpace, accession);
81
+ }
82
+ }
83
+ get TermAccessionShort() {
84
+ const this$ = this;
85
+ const matchValue = this$.TANInfo;
86
+ if (matchValue != null) {
87
+ const id = value(matchValue);
88
+ return `${id.IDSpace}:${id.LocalID}`;
89
+ } else {
90
+ return "";
91
+ }
92
+ }
93
+ get TermAccessionOntobeeUrl() {
94
+ const this$ = this;
95
+ const matchValue = this$.TANInfo;
96
+ if (matchValue != null) {
97
+ const id = value(matchValue);
98
+ return OntologyAnnotation.createUriAnnotation(id.IDSpace, id.LocalID);
99
+ } else {
100
+ return "";
101
+ }
102
+ }
103
+ get TermAccessionAndOntobeeUrlIfShort() {
104
+ const this$ = this;
105
+ const matchValue = this$.TermAccessionNumber;
106
+ if (matchValue != null) {
107
+ const tan = value(matchValue);
108
+ return ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationShortPattern, tan) != null ? this$.TermAccessionOntobeeUrl : tan;
109
+ } else {
110
+ return "";
111
+ }
112
+ }
113
+ static toStringObject(oa, asOntobeePurlUrlIfShort) {
114
+ let url;
115
+ const asOntobeePurlUrlIfShort_1 = defaultArg(asOntobeePurlUrlIfShort, false);
116
+ const TermName = defaultArg(oa.Name, "");
117
+ const TermSourceREF = defaultArg(oa.TermSourceREF, "");
118
+ return {
119
+ TermAccessionNumber: asOntobeePurlUrlIfShort_1 ? (url = oa.TermAccessionAndOntobeeUrlIfShort, url === "" ? defaultArg(oa.TermAccessionNumber, "") : url) : defaultArg(oa.TermAccessionNumber, ""),
120
+ TermName,
121
+ TermSourceREF
122
+ };
123
+ }
124
+ toString() {
125
+ const this$ = this;
126
+ const sb = StringBuilder_$ctor();
127
+ StringBuilder__Append_Z721C83C5(sb, "{");
128
+ StringBuilder__Append_Z721C83C5(sb, join("; ", toList(delay(() => {
129
+ let arg;
130
+ return append(this$.Name != null ? singleton((arg = value(this$.Name), toText(printf("Name = %A"))(arg))) : empty(), delay(() => {
131
+ let arg_1;
132
+ return append(this$.TermSourceREF != null ? singleton((arg_1 = value(this$.TermSourceREF), toText(printf("TSR = %A"))(arg_1))) : empty(), delay(() => {
133
+ let arg_2;
134
+ return append(this$.TermAccessionNumber != null ? singleton((arg_2 = value(this$.TermAccessionNumber), toText(printf("TAN = %A"))(arg_2))) : empty(), delay(() => {
135
+ let arg_3;
136
+ return this$.Comments.length !== 0 ? singleton((arg_3 = this$.Comments, toText(printf("Comments = %A"))(arg_3))) : empty();
137
+ }));
138
+ }));
139
+ }));
140
+ }))));
141
+ StringBuilder__Append_Z721C83C5(sb, "}");
142
+ return toString(sb);
143
+ }
144
+ isEmpty() {
145
+ const this$ = this;
146
+ return this$.Name == null && this$.TermSourceREF == null && this$.TermAccessionNumber == null && this$.Comments.length === 0;
147
+ }
148
+ GetHashCode() {
149
+ let matchValue, matchValue_1, matchValue_2, tsr_1, matchValue_4, tan, taninfo_1, tsr, taninfo;
150
+ const this$ = this;
151
+ return mergeHashes((matchValue = this$.Name, matchValue == null ? 0 : stringHash(value(matchValue))), (matchValue_1 = this$.TermSourceREF, matchValue_2 = this$.TANInfo, matchValue_1 != null ? matchValue_2 == null ? (tsr_1 = value(matchValue_1), matchValue_4 = this$.TermAccessionNumber, matchValue_4 == null ? stringHash(tsr_1.toLocaleLowerCase()) : (tan = value(matchValue_4), mergeHashes(stringHash(tsr_1.toLocaleLowerCase()), stringHash(tan)))) : (taninfo_1 = value(matchValue_2), tsr = value(matchValue_1), mergeHashes(stringHash(tsr.toLocaleLowerCase()), stringHash(taninfo_1.LocalID))) : matchValue_2 == null ? 0 : (taninfo = value(matchValue_2), mergeHashes(stringHash(taninfo.IDSpace.toLocaleLowerCase()), stringHash(taninfo.LocalID))))) | 0;
152
+ }
153
+ Equals(obj) {
154
+ const this$ = this;
155
+ return hash(this$) === hash(obj);
156
+ }
157
+ Copy() {
158
+ const this$ = this;
159
+ const nextComments = ResizeArray_map((c) => c.Copy(), this$.Comments);
160
+ const name = this$.Name;
161
+ const tsr = this$.TermSourceREF;
162
+ const tan = this$.TermAccessionNumber;
163
+ return OntologyAnnotation.make(name, tsr, tan, nextComments);
164
+ }
165
+ static computeTanInfo(tan, tsr) {
166
+ let tsr_1;
167
+ if (tan == null) {
168
+ return void 0;
169
+ } else {
170
+ const tan_1 = value(tan);
171
+ const matchValue = tryParseTermAnnotation(tan_1);
172
+ return matchValue == null ? tsr == null ? void 0 : value(tsr) === "" ? void 0 : (tsr_1 = value(tsr), {
173
+ IDSpace: tsr_1,
174
+ LocalID: tan_1
175
+ }) : value(matchValue);
176
+ }
177
+ }
178
+ Print() {
179
+ const this$ = this;
180
+ return toString(this$);
181
+ }
182
+ PrintCompact() {
183
+ const this$ = this;
184
+ return "OA " + this$.NameText;
185
+ }
186
+ CompareTo(obj) {
187
+ const this$ = this;
188
+ if (obj instanceof OntologyAnnotation) {
189
+ const oa = obj;
190
+ const hash = safeHash(this$) | 0;
191
+ const otherHash = safeHash(oa) | 0;
192
+ return (hash === otherHash ? 0 : hash < otherHash ? -1 : 1) | 0;
193
+ } else {
194
+ return 1;
195
+ }
196
+ }
197
+ recomputeTanInfo() {
198
+ const this$ = this;
199
+ const newTanInfo = OntologyAnnotation.computeTanInfo(unwrap(this$._termAccessionNumber), unwrap(this$._termSourceREF));
200
+ this$._tanInfo = newTanInfo;
201
+ }
202
+ }
203
+ function OntologyAnnotation_$reflection() {
204
+ return class_type("ARCtrl.OntologyAnnotation", void 0, OntologyAnnotation);
205
+ }
206
+
207
+ export { OntologyAnnotation, OntologyAnnotation_$reflection };
@@ -0,0 +1,84 @@
1
+ import { defaultArg, unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { ResizeArray_map } from './Helper/Collections.js';
3
+ import { boxHashArray, boxHashOption, boxHashSeq } from './Helper/HashCodes.js';
4
+ import { safeHash } from '../../node_modules/@fable-org/fable-library-js/Util.js';
5
+
6
+ class OntologySourceReference {
7
+ constructor(description, file, name, version, comments) {
8
+ this._description = description;
9
+ this._file = file;
10
+ this._name = name;
11
+ this._version = version;
12
+ this._comments = defaultArg(comments, []);
13
+ }
14
+ get Description() {
15
+ const this$ = this;
16
+ return unwrap(this$._description);
17
+ }
18
+ set Description(description) {
19
+ const this$ = this;
20
+ this$._description = description;
21
+ }
22
+ get File() {
23
+ const this$ = this;
24
+ return unwrap(this$._file);
25
+ }
26
+ set File(file) {
27
+ const this$ = this;
28
+ this$._file = file;
29
+ }
30
+ get Name() {
31
+ const this$ = this;
32
+ return unwrap(this$._name);
33
+ }
34
+ set Name(name) {
35
+ const this$ = this;
36
+ this$._name = name;
37
+ }
38
+ get Version() {
39
+ const this$ = this;
40
+ return unwrap(this$._version);
41
+ }
42
+ set Version(version) {
43
+ const this$ = this;
44
+ this$._version = version;
45
+ }
46
+ get Comments() {
47
+ const this$ = this;
48
+ return this$._comments;
49
+ }
50
+ set Comments(comments) {
51
+ const this$ = this;
52
+ this$._comments = comments;
53
+ }
54
+ static make(description, file, name, version, comments) {
55
+ return new OntologySourceReference(unwrap(description), unwrap(file), unwrap(name), unwrap(version), comments);
56
+ }
57
+ static create(description, file, name, version, comments) {
58
+ const comments_1 = defaultArg(comments, []);
59
+ return OntologySourceReference.make(description, file, name, version, comments_1);
60
+ }
61
+ static get empty() {
62
+ return OntologySourceReference.create();
63
+ }
64
+ Copy() {
65
+ const this$ = this;
66
+ const nextComments = ResizeArray_map((c) => c.Copy(), this$.Comments);
67
+ const description = this$.Description;
68
+ const file = this$.File;
69
+ const name = this$.Name;
70
+ const version = this$.Version;
71
+ return OntologySourceReference.make(description, file, name, version, nextComments);
72
+ }
73
+ GetHashCode() {
74
+ const this$ = this;
75
+ return boxHashArray([boxHashOption(this$.Description), boxHashOption(this$.File), boxHashOption(this$.Name), boxHashOption(this$.Version), boxHashSeq(this$.Comments)]) | 0;
76
+ }
77
+ Equals(obj) {
78
+ let t;
79
+ const this$ = this;
80
+ return obj instanceof OntologySourceReference && (t = obj, safeHash(this$) === safeHash(t));
81
+ }
82
+ }
83
+
84
+ export { OntologySourceReference };