@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,183 @@
1
+ import { defaultArg, unwrap, map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { tryFind } from '../../node_modules/@fable-org/fable-library-js/Array.js';
3
+ import { equals } from '../../node_modules/@fable-org/fable-library-js/Util.js';
4
+ import { append, singleton, map, choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
5
+ import { ResizeArray_map } from './Helper/Collections.js';
6
+ import { boxHashArray, boxHashOption, boxHashSeq, hash } from './Helper/HashCodes.js';
7
+ import { StringBuilder_$ctor, StringBuilder__Append_Z721C83C5 } from '../../node_modules/@fable-org/fable-library-js/System.Text.js';
8
+ import { join, toText, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
9
+ import { length } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
10
+ import { toString } from '../../node_modules/@fable-org/fable-library-js/Types.js';
11
+
12
+ class Person {
13
+ constructor(orcid, lastName, firstName, midInitials, email, phone, fax, address, affiliation, roles, comments) {
14
+ this._orcid = orcid;
15
+ this._lastName = lastName;
16
+ this._firstName = firstName;
17
+ this._midInitials = midInitials;
18
+ this._email = email;
19
+ this._phone = phone;
20
+ this._fax = fax;
21
+ this._address = address;
22
+ this._affiliation = affiliation;
23
+ this._roles = defaultArg(roles, []);
24
+ this._comments = defaultArg(comments, []);
25
+ }
26
+ get ORCID() {
27
+ const this$ = this;
28
+ return unwrap(this$._orcid);
29
+ }
30
+ set ORCID(orcid) {
31
+ const this$ = this;
32
+ this$._orcid = orcid;
33
+ }
34
+ get FirstName() {
35
+ const this$ = this;
36
+ return unwrap(this$._firstName);
37
+ }
38
+ set FirstName(firstName) {
39
+ const this$ = this;
40
+ this$._firstName = firstName;
41
+ }
42
+ get LastName() {
43
+ const this$ = this;
44
+ return unwrap(this$._lastName);
45
+ }
46
+ set LastName(lastName) {
47
+ const this$ = this;
48
+ this$._lastName = lastName;
49
+ }
50
+ get MidInitials() {
51
+ const this$ = this;
52
+ return unwrap(this$._midInitials);
53
+ }
54
+ set MidInitials(midInitials) {
55
+ const this$ = this;
56
+ this$._midInitials = midInitials;
57
+ }
58
+ get Address() {
59
+ const this$ = this;
60
+ return unwrap(this$._address);
61
+ }
62
+ set Address(address) {
63
+ const this$ = this;
64
+ this$._address = address;
65
+ }
66
+ get Affiliation() {
67
+ const this$ = this;
68
+ return unwrap(this$._affiliation);
69
+ }
70
+ set Affiliation(affiliation) {
71
+ const this$ = this;
72
+ this$._affiliation = affiliation;
73
+ }
74
+ get EMail() {
75
+ const this$ = this;
76
+ return unwrap(this$._email);
77
+ }
78
+ set EMail(email) {
79
+ const this$ = this;
80
+ this$._email = email;
81
+ }
82
+ get Phone() {
83
+ const this$ = this;
84
+ return unwrap(this$._phone);
85
+ }
86
+ set Phone(phone) {
87
+ const this$ = this;
88
+ this$._phone = phone;
89
+ }
90
+ get Fax() {
91
+ const this$ = this;
92
+ return unwrap(this$._fax);
93
+ }
94
+ set Fax(fax) {
95
+ const this$ = this;
96
+ this$._fax = fax;
97
+ }
98
+ get Roles() {
99
+ const this$ = this;
100
+ return this$._roles;
101
+ }
102
+ set Roles(roles) {
103
+ const this$ = this;
104
+ this$._roles = roles;
105
+ }
106
+ get Comments() {
107
+ const this$ = this;
108
+ return this$._comments;
109
+ }
110
+ set Comments(comments) {
111
+ const this$ = this;
112
+ this$._comments = comments;
113
+ }
114
+ static make(orcid, lastName, firstName, midInitials, email, phone, fax, address, affiliation, roles, comments) {
115
+ return new Person(unwrap(orcid), unwrap(lastName), unwrap(firstName), unwrap(midInitials), unwrap(email), unwrap(phone), unwrap(fax), unwrap(address), unwrap(affiliation), roles, comments);
116
+ }
117
+ static create(orcid, lastName, firstName, midInitials, email, phone, fax, address, affiliation, roles, comments) {
118
+ const roles_1 = defaultArg(roles, []);
119
+ const comments_1 = defaultArg(comments, []);
120
+ return Person.make(orcid, lastName, firstName, midInitials, email, phone, fax, address, affiliation, roles_1, comments_1);
121
+ }
122
+ static get empty() {
123
+ return Person.create();
124
+ }
125
+ static tryGetByFullName(firstName, midInitials, lastName, persons) {
126
+ return tryFind((p) => {
127
+ if (midInitials === "") {
128
+ if (equals(p.FirstName, firstName)) {
129
+ return equals(p.LastName, lastName);
130
+ } else {
131
+ return false;
132
+ }
133
+ } else if (equals(p.FirstName, firstName) && equals(p.MidInitials, midInitials)) {
134
+ return equals(p.LastName, lastName);
135
+ } else {
136
+ return false;
137
+ }
138
+ }, persons);
139
+ }
140
+ static existsByFullName(firstName, midInitials, lastName, persons) {
141
+ return persons.some((p) => midInitials === "" ? equals(p.FirstName, firstName) && equals(p.LastName, lastName) : equals(p.FirstName, firstName) && equals(p.MidInitials, midInitials) && equals(p.LastName, lastName));
142
+ }
143
+ static add(persons, person) {
144
+ return append(persons, singleton(person));
145
+ }
146
+ static removeByFullName(firstName, midInitials, lastName, persons) {
147
+ return persons.filter((p) => midInitials === "" ? !(equals(p.FirstName, firstName) && equals(p.LastName, lastName)) : !(equals(p.FirstName, firstName) && equals(p.MidInitials, midInitials) && equals(p.LastName, lastName)));
148
+ }
149
+ Copy() {
150
+ const this$ = this;
151
+ const nextComments = ResizeArray_map((c) => c.Copy(), this$.Comments);
152
+ const nextRoles = ResizeArray_map((c_1) => c_1.Copy(), this$.Roles);
153
+ const orcid = this$.ORCID;
154
+ const lastName = this$.LastName;
155
+ const firstName = this$.FirstName;
156
+ const midInitials = this$.MidInitials;
157
+ const email = this$.EMail;
158
+ const phone = this$.Phone;
159
+ const fax = this$.Fax;
160
+ const address = this$.Address;
161
+ const affiliation = this$.Affiliation;
162
+ return Person.make(orcid, lastName, firstName, midInitials, email, phone, fax, address, affiliation, nextRoles, nextComments);
163
+ }
164
+ GetHashCode() {
165
+ const this$ = this;
166
+ return boxHashArray([boxHashOption(this$.ORCID), boxHashOption(this$.LastName), boxHashOption(this$.FirstName), boxHashOption(this$.MidInitials), boxHashOption(this$.EMail), boxHashOption(this$.Phone), boxHashOption(this$.Fax), boxHashOption(this$.Address), boxHashOption(this$.Affiliation), boxHashSeq(this$.Roles), boxHashSeq(this$.Comments)]) | 0;
167
+ }
168
+ Equals(obj) {
169
+ const this$ = this;
170
+ return hash(this$) === hash(obj);
171
+ }
172
+ toString() {
173
+ let arg, arg_1;
174
+ const this$ = this;
175
+ const sb = StringBuilder_$ctor();
176
+ StringBuilder__Append_Z721C83C5(sb, "Person {\n ");
177
+ StringBuilder__Append_Z721C83C5(sb, join(",\n ", map((tupledArg_1) => toText(printf("%s = %A"))(tupledArg_1[0])(tupledArg_1[1]), choose((tupledArg) => map$1((o) => [tupledArg[0], o], tupledArg[1]), ofArray([["FirstName", this$.FirstName], ["LastName", this$.LastName], ["MidInitials", this$.MidInitials], ["EMail", this$.EMail], ["Phone", this$.Phone], ["Address", this$.Address], ["Affiliation", this$.Affiliation], ["Fax", this$.Fax], ["ORCID", this$.ORCID], ["Roles", length(this$.Roles) > 0 ? (arg = this$.Roles, toText(printf("%A"))(arg)) : void 0], ["Comments", length(this$.Comments) > 0 ? (arg_1 = this$.Comments, toText(printf("%A"))(arg_1)) : void 0]])))));
178
+ StringBuilder__Append_Z721C83C5(sb, "\n}");
179
+ return toString(sb);
180
+ }
181
+ }
182
+
183
+ export { Person };
@@ -0,0 +1,73 @@
1
+ import { tryParse } from '../../../node_modules/@fable-org/fable-library-js/Int32.js';
2
+ import { FSharpRef } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
3
+ import { bind, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
4
+ import { Comment$ } from '../Comment.js';
5
+ import { equals, int32ToString } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
6
+ import { tryItem } from '../CommentList.js';
7
+ import { findIndex } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
8
+ import '../Helper/Url.js';
9
+
10
+ function tryInt(str) {
11
+ let matchValue;
12
+ let outArg = 0;
13
+ matchValue = [tryParse(str, 511, false, 32, new FSharpRef(() => outArg, (v) => {
14
+ outArg = v | 0;
15
+ })), outArg];
16
+ if (matchValue[0]) {
17
+ return matchValue[1];
18
+ } else {
19
+ return void 0;
20
+ }
21
+ }
22
+ const orderName = "ColumnIndex";
23
+ function createOrderComment(index) {
24
+ return Comment$.create(orderName, int32ToString(index));
25
+ }
26
+ function tryGetIndex(comments) {
27
+ const matchValue = tryItem(orderName, comments);
28
+ if (matchValue != null) {
29
+ const ci = value(matchValue);
30
+ const i = findIndex((c) => equals(c.Name, orderName), comments) | 0;
31
+ comments.splice(i, 1);
32
+ return tryInt(ci);
33
+ } else {
34
+ return void 0;
35
+ }
36
+ }
37
+ function setOntologyAnnotationIndexInplace(i, oa) {
38
+ void oa.Comments.push(createOrderComment(i));
39
+ }
40
+ function setOntologyAnnotationIndex(i, oa) {
41
+ const oac = oa.Copy();
42
+ setOntologyAnnotationIndexInplace(i, oac);
43
+ return oac;
44
+ }
45
+ function tryGetParameterIndex(param) {
46
+ return bind((oa) => tryGetIndex(oa.Comments), param.ParameterName);
47
+ }
48
+ function tryGetParameterColumnIndex(paramValue) {
49
+ return bind(tryGetParameterIndex, paramValue.Category);
50
+ }
51
+ function tryGetFactorIndex(factor) {
52
+ return bind((oa) => tryGetIndex(oa.Comments), factor.FactorType);
53
+ }
54
+ function tryGetFactorColumnIndex(factorValue) {
55
+ return bind(tryGetFactorIndex, factorValue.Category);
56
+ }
57
+ function tryGetCharacteristicIndex(characteristic) {
58
+ return bind((oa) => tryGetIndex(oa.Comments), characteristic.CharacteristicType);
59
+ }
60
+ function tryGetCharacteristicColumnIndex(characteristicValue) {
61
+ return bind(tryGetCharacteristicIndex, characteristicValue.Category);
62
+ }
63
+ function tryGetComponentIndex(comp) {
64
+ return bind((oa) => tryGetIndex(oa.Comments), comp.ComponentType);
65
+ }
66
+ function ARCtrl_OntologyAnnotation__OntologyAnnotation_setColumnIndex_Static(i, oa) {
67
+ return setOntologyAnnotationIndex(i, oa);
68
+ }
69
+ function ARCtrl_OntologyAnnotation__OntologyAnnotation_SetColumnIndex_Z524259A4(this$, i) {
70
+ setOntologyAnnotationIndexInplace(i, this$);
71
+ }
72
+
73
+ export { ARCtrl_OntologyAnnotation__OntologyAnnotation_SetColumnIndex_Z524259A4, ARCtrl_OntologyAnnotation__OntologyAnnotation_setColumnIndex_Static, createOrderComment, orderName, setOntologyAnnotationIndex, setOntologyAnnotationIndexInplace, tryGetCharacteristicColumnIndex, tryGetCharacteristicIndex, tryGetComponentIndex, tryGetFactorColumnIndex, tryGetFactorIndex, tryGetIndex, tryGetParameterColumnIndex, tryGetParameterIndex };
@@ -0,0 +1,121 @@
1
+ import { value, map, unwrap, defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { OntologyAnnotation } from '../OntologyAnnotation.js';
3
+ import { Value, Value_Ontology, Value_Name } from '../Value.js';
4
+ import { Record } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
5
+ import { ActivePatterns_$007CRegex$007C_$007C } from '../Helper/Regex.js';
6
+ import { Option_fromValueWithDefault } from '../Helper/Collections.js';
7
+
8
+ class Component extends Record {
9
+ constructor(ComponentValue, ComponentUnit, ComponentType) {
10
+ super();
11
+ this.ComponentValue = ComponentValue;
12
+ this.ComponentUnit = ComponentUnit;
13
+ this.ComponentType = ComponentType;
14
+ }
15
+ AlternateName() {
16
+ const this$ = this;
17
+ return Component__get_ComponentName(this$);
18
+ }
19
+ MeasurementMethod() {
20
+ return void 0;
21
+ }
22
+ Description() {
23
+ return void 0;
24
+ }
25
+ GetCategory() {
26
+ const this$ = this;
27
+ return this$.ComponentType;
28
+ }
29
+ GetAdditionalType() {
30
+ return "Component";
31
+ }
32
+ GetValue() {
33
+ const this$ = this;
34
+ return this$.ComponentValue;
35
+ }
36
+ GetUnit() {
37
+ const this$ = this;
38
+ return this$.ComponentUnit;
39
+ }
40
+ }
41
+ function Component__get_ComponentName(this$) {
42
+ return map((v) => Component_composeName(v, this$.ComponentUnit), this$.ComponentValue);
43
+ }
44
+ function Component_make(value, unit, componentType) {
45
+ return new Component(value, unit, componentType);
46
+ }
47
+ function Component_create_Z2F0B38C7(value, unit, componentType) {
48
+ return Component_make(value, unit, componentType);
49
+ }
50
+ function Component_composeName(value$1, unit) {
51
+ if (value$1.tag === /* Ontology */
52
+ 0) {
53
+ const oa = value$1.fields[0];
54
+ return `${oa.NameText} (${oa.TermAccessionShort})`;
55
+ } else if (unit != null) {
56
+ const u = value(unit);
57
+ return `${value$1.Text} ${u.NameText} (${u.TermAccessionShort})`;
58
+ } else {
59
+ return `${value$1.Text}`;
60
+ }
61
+ }
62
+ function Component_decomposeName_Z721C83C5(name) {
63
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("^(?<value>[\\d\\.]+) (?<unit>.+) \\((?<ontology>[^(]*:[^)]*)\\)", name);
64
+ if (activePatternResult != null) {
65
+ const unitr = value(activePatternResult);
66
+ let oa;
67
+ const tan = unitr.groups && unitr.groups.ontology || "";
68
+ oa = OntologyAnnotation.fromTermAnnotation(tan);
69
+ let v;
70
+ const value$1 = unitr.groups && unitr.groups.value || "";
71
+ v = Value.fromString(value$1);
72
+ const u = unitr.groups && unitr.groups.unit || "";
73
+ oa.Name = u;
74
+ return [v, oa];
75
+ } else {
76
+ const activePatternResult_1 = ActivePatterns_$007CRegex$007C_$007C("^(?<value>[^\\(]+) \\((?<ontology>[^(]*:[^)]*)\\)", name);
77
+ if (activePatternResult_1 != null) {
78
+ const r = value(activePatternResult_1);
79
+ let oa_1;
80
+ const tan_1 = r.groups && r.groups.ontology || "";
81
+ oa_1 = OntologyAnnotation.fromTermAnnotation(tan_1);
82
+ const v_1 = r.groups && r.groups.value || "";
83
+ oa_1.Name = v_1;
84
+ return [Value_Ontology(oa_1), void 0];
85
+ } else {
86
+ const activePatternResult_2 = ActivePatterns_$007CRegex$007C_$007C("^(?<value>[^\\(\\)]+) \\(\\)", name);
87
+ if (activePatternResult_2 != null) {
88
+ const r_1 = value(activePatternResult_2);
89
+ return [Value_Ontology(new OntologyAnnotation(r_1.groups && r_1.groups.value || "")), void 0];
90
+ } else {
91
+ return [Value_Name(name), void 0];
92
+ }
93
+ }
94
+ }
95
+ }
96
+ function Component_fromISAString_7C9A7CF8(name, term, source, accession, comments) {
97
+ let cType;
98
+ const v = OntologyAnnotation.create(unwrap(term), unwrap(source), unwrap(accession), unwrap(comments));
99
+ cType = Option_fromValueWithDefault(new OntologyAnnotation(), v);
100
+ if (name == null) {
101
+ return Component_make(void 0, void 0, cType);
102
+ } else {
103
+ const patternInput = Component_decomposeName_Z721C83C5(value(name));
104
+ return Component_make(Option_fromValueWithDefault(Value_Name(""), patternInput[0]), patternInput[1], cType);
105
+ }
106
+ }
107
+ function Component_toStringObject_Z685B8F25(c) {
108
+ let oa_1;
109
+ const value = {
110
+ TermAccessionNumber: "",
111
+ TermName: "",
112
+ TermSourceREF: ""
113
+ };
114
+ oa_1 = defaultArg(map((oa) => OntologyAnnotation.toStringObject(oa), c.ComponentType), value);
115
+ return [defaultArg(Component__get_ComponentName(c), ""), oa_1];
116
+ }
117
+ function Component_createAsPV(alternateName, measurementMethod, description, category, value, unit) {
118
+ return Component_create_Z2F0B38C7(unwrap(value), unwrap(unit), unwrap(category));
119
+ }
120
+
121
+ export { Component, Component__get_ComponentName, Component_composeName, Component_createAsPV, Component_create_Z2F0B38C7, Component_decomposeName_Z721C83C5, Component_fromISAString_7C9A7CF8, Component_make, Component_toStringObject_Z685B8F25 };
@@ -0,0 +1,104 @@
1
+ import { unwrap, defaultArg, map } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { OntologyAnnotation } from '../OntologyAnnotation.js';
3
+ import { equals } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
4
+ import { tryFind, exists, append, singleton, filter } from '../../../node_modules/@fable-org/fable-library-js/List.js';
5
+ import { Record, toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
6
+ import { Option_fromValueWithDefault, ResizeArray_map } from '../Helper/Collections.js';
7
+
8
+ class Factor extends Record {
9
+ constructor(Name, FactorType, Comments) {
10
+ super();
11
+ this.Name = Name;
12
+ this.FactorType = FactorType;
13
+ this.Comments = Comments;
14
+ }
15
+ static make(name, factorType, comments) {
16
+ return new Factor(name, factorType, comments);
17
+ }
18
+ static create(Name, FactorType, Comments) {
19
+ return Factor.make(Name, FactorType, Comments);
20
+ }
21
+ static get empty() {
22
+ return Factor.create();
23
+ }
24
+ static fromString(name, term, source, accession, comments) {
25
+ const oa = OntologyAnnotation.create(term, source, accession, unwrap(comments));
26
+ const name_1 = Option_fromValueWithDefault("", name);
27
+ const factorType = Option_fromValueWithDefault(new OntologyAnnotation(), oa);
28
+ return Factor.make(name_1, factorType, void 0);
29
+ }
30
+ static toStringObject(factor) {
31
+ const value = {
32
+ TermAccessionNumber: "",
33
+ TermName: "",
34
+ TermSourceREF: ""
35
+ };
36
+ return defaultArg(map((oa) => OntologyAnnotation.toStringObject(oa), factor.FactorType), value);
37
+ }
38
+ get NameText() {
39
+ const this$ = this;
40
+ return defaultArg(this$.Name, "");
41
+ }
42
+ MapCategory(f) {
43
+ const this$ = this;
44
+ return new Factor(this$.Name, map(f, this$.FactorType), this$.Comments);
45
+ }
46
+ SetCategory(c) {
47
+ const this$ = this;
48
+ return new Factor(this$.Name, c, this$.Comments);
49
+ }
50
+ static tryGetByName(name, factors) {
51
+ return tryFind((f) => equals(f.Name, name), factors);
52
+ }
53
+ static existsByName(name, factors) {
54
+ return exists((f) => equals(f.Name, name), factors);
55
+ }
56
+ static add(factors, factor) {
57
+ return append(factors, singleton(factor));
58
+ }
59
+ static removeByName(name, factors) {
60
+ return filter((f) => !equals(f.Name, name), factors);
61
+ }
62
+ static getComments(factor) {
63
+ return factor.Comments;
64
+ }
65
+ static mapComments(f, factor) {
66
+ return new Factor(factor.Name, factor.FactorType, map(f, factor.Comments));
67
+ }
68
+ static setComments(factor, comments) {
69
+ return new Factor(factor.Name, factor.FactorType, comments);
70
+ }
71
+ static getFactorType(factor) {
72
+ return factor.FactorType;
73
+ }
74
+ static mapFactorType(f, factor) {
75
+ return new Factor(factor.Name, map(f, factor.FactorType), factor.Comments);
76
+ }
77
+ static setFactorType(factor, factorType) {
78
+ return new Factor(factor.Name, factorType, factor.Comments);
79
+ }
80
+ static tryGetName(f) {
81
+ return f.Name;
82
+ }
83
+ static getNameAsString(f) {
84
+ return f.NameText;
85
+ }
86
+ static nameEqualsString(name, f) {
87
+ return f.NameText === name;
88
+ }
89
+ Copy() {
90
+ const this$ = this;
91
+ const comments = map((a) => ResizeArray_map((c) => c.Copy(), a), this$.Comments);
92
+ return Factor.make(this$.Name, this$.FactorType, comments);
93
+ }
94
+ Print() {
95
+ const this$ = this;
96
+ return toString(this$);
97
+ }
98
+ PrintCompact() {
99
+ const this$ = this;
100
+ return "OA " + this$.NameText;
101
+ }
102
+ }
103
+
104
+ export { Factor };
@@ -0,0 +1,68 @@
1
+ import { Record, toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
2
+ import { map, value, bind, unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
3
+ import { Factor } from './Factor.js';
4
+ import '../Helper/Url.js';
5
+
6
+ class FactorValue extends Record {
7
+ constructor(ID, Category, Value, Unit) {
8
+ super();
9
+ this.ID = ID;
10
+ this.Category = Category;
11
+ this.Value = Value;
12
+ this.Unit = Unit;
13
+ }
14
+ Print() {
15
+ const this$ = this;
16
+ return toString(this$);
17
+ }
18
+ PrintCompact() {
19
+ let value_2, category_2, category_1, value_1;
20
+ const this$ = this;
21
+ const category = map((f) => f.NameText, this$.Category);
22
+ const unit = map((oa) => oa.NameText, this$.Unit);
23
+ const value$1 = map((v) => {
24
+ const s = v.PrintCompact();
25
+ if (unit == null) {
26
+ return s;
27
+ } else {
28
+ return s + " " + value(unit);
29
+ }
30
+ }, this$.Value);
31
+ return category == null ? value$1 == null ? "" : (value_2 = value(value$1), value_2) : value$1 == null ? (category_2 = value(category), category_2 + ":No Value") : (category_1 = value(category), value_1 = value(value$1), category_1 + ":" + value_1);
32
+ }
33
+ AlternateName() {
34
+ return void 0;
35
+ }
36
+ MeasurementMethod() {
37
+ return void 0;
38
+ }
39
+ Description() {
40
+ return void 0;
41
+ }
42
+ GetCategory() {
43
+ const this$ = this;
44
+ return bind((f) => f.FactorType, this$.Category);
45
+ }
46
+ GetValue() {
47
+ const this$ = this;
48
+ return this$.Value;
49
+ }
50
+ GetUnit() {
51
+ const this$ = this;
52
+ return this$.Unit;
53
+ }
54
+ GetAdditionalType() {
55
+ return "FactorValue";
56
+ }
57
+ }
58
+ function FactorValue_make(id, category, value, unit) {
59
+ return new FactorValue(id, category, value, unit);
60
+ }
61
+ function FactorValue_create_30BDC49(Id, Category, Value, Unit) {
62
+ return FactorValue_make(Id, Category, Value, Unit);
63
+ }
64
+ function FactorValue_createAsPV(alternateName, measurementMethod, description, category, value, unit) {
65
+ return FactorValue_create_30BDC49(void 0, unwrap(map((c) => Factor.create(void 0, c), category)), unwrap(value), unwrap(unit));
66
+ }
67
+
68
+ export { FactorValue, FactorValue_createAsPV, FactorValue_create_30BDC49, FactorValue_make };
@@ -0,0 +1,49 @@
1
+ import { Record, toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
2
+ import { length, empty } from '../../../node_modules/@fable-org/fable-library-js/List.js';
3
+ import { defaultArg, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
4
+ import '../Helper/Url.js';
5
+ import { toText, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
6
+ import { MaterialType__get_AsString } from './MaterialType.js';
7
+
8
+ class Material extends Record {
9
+ constructor(ID, Name, MaterialType, Characteristics, DerivesFrom) {
10
+ super();
11
+ this.ID = ID;
12
+ this.Name = Name;
13
+ this.MaterialType = MaterialType;
14
+ this.Characteristics = Characteristics;
15
+ this.DerivesFrom = DerivesFrom;
16
+ }
17
+ Print() {
18
+ const this$ = this;
19
+ return toString(this$);
20
+ }
21
+ PrintCompact() {
22
+ const this$ = this;
23
+ const chars = length(defaultArg(this$.Characteristics, empty())) | 0;
24
+ const matchValue = this$.MaterialType;
25
+ if (matchValue == null) {
26
+ const arg_3 = Material__get_NameText(this$);
27
+ return toText(printf("%s [%i characteristics]"))(arg_3)(chars);
28
+ } else {
29
+ const t = value(matchValue);
30
+ const arg = Material__get_NameText(this$);
31
+ const arg_1 = MaterialType__get_AsString(t);
32
+ return toText(printf("%s [%s; %i characteristics]"))(arg)(arg_1)(chars);
33
+ }
34
+ }
35
+ }
36
+ function Material_make(id, name, materialType, characteristics, derivesFrom) {
37
+ return new Material(id, name, materialType, characteristics, derivesFrom);
38
+ }
39
+ function Material_create_Z66909A6D(Id, Name, MaterialType, Characteristics, DerivesFrom) {
40
+ return Material_make(Id, Name, MaterialType, Characteristics, DerivesFrom);
41
+ }
42
+ function Material__get_NameText(this$) {
43
+ return defaultArg(this$.Name, "");
44
+ }
45
+ function Material_setCharacteristicValues(values, m) {
46
+ return new Material(m.ID, m.Name, m.MaterialType, values, m.DerivesFrom);
47
+ }
48
+
49
+ export { Material, Material__get_NameText, Material_create_Z66909A6D, Material_make, Material_setCharacteristicValues };
@@ -0,0 +1,30 @@
1
+ import { Record, toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
2
+ import { defaultArg, map } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
3
+ import '../Helper/Url.js';
4
+
5
+ class MaterialAttribute extends Record {
6
+ constructor(ID, CharacteristicType) {
7
+ super();
8
+ this.ID = ID;
9
+ this.CharacteristicType = CharacteristicType;
10
+ }
11
+ Print() {
12
+ const this$ = this;
13
+ return toString(this$);
14
+ }
15
+ PrintCompact() {
16
+ const this$ = this;
17
+ return "OA " + MaterialAttribute__get_NameText(this$);
18
+ }
19
+ }
20
+ function MaterialAttribute_make(id, characteristicType) {
21
+ return new MaterialAttribute(id, characteristicType);
22
+ }
23
+ function MaterialAttribute_create_A220A8A(Id, CharacteristicType) {
24
+ return MaterialAttribute_make(Id, CharacteristicType);
25
+ }
26
+ function MaterialAttribute__get_NameText(this$) {
27
+ return defaultArg(map((oa) => oa.NameText, this$.CharacteristicType), "");
28
+ }
29
+
30
+ export { MaterialAttribute, MaterialAttribute__get_NameText, MaterialAttribute_create_A220A8A, MaterialAttribute_make };