@nfdi4plants/arctrl 3.0.0-beta.4 → 3.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +894 -4
  2. package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +121 -3
  3. package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +279 -1
  4. package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +101 -2
  5. package/dist/ts/node_modules/@fable-org/fable-library-js/Choice.js +187 -0
  6. package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +156 -2
  7. package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +183 -7
  8. package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +217 -5
  9. package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +154 -5
  10. package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +20 -1
  11. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Collections.js +30 -0
  12. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +68 -1
  13. package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +6 -1
  14. package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +98 -1
  15. package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +18 -1
  16. package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +601 -5
  17. package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +10 -1
  18. package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +760 -16
  19. package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +26 -1
  20. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +18 -8
  21. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +36 -4
  22. package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +35 -1
  23. package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +26 -1
  24. package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +355 -1
  25. package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +21 -2
  26. package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +133 -1
  27. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +543 -8
  28. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +53 -4
  29. package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +673 -41
  30. package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +197 -4
  31. package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +128 -3
  32. package/dist/ts/node_modules/@fable-org/fable-library-js/SystemException.js +8 -0
  33. package/dist/ts/node_modules/@fable-org/fable-library-js/TimeSpan.js +180 -0
  34. package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +20 -2
  35. package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +406 -2
  36. package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +2 -2
  37. package/dist/ts/ts/ARC.d.ts +12 -5
  38. package/dist/ts/ts/ARC.d.ts.map +1 -1
  39. package/dist/ts/ts/ARC.js +172 -93
  40. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  41. package/dist/ts/ts/Contract/ARC.js +8 -1
  42. package/dist/ts/ts/Contract/ArcAssay.js +14 -5
  43. package/dist/ts/ts/Contract/ArcInvestigation.js +10 -1
  44. package/dist/ts/ts/Contract/ArcRun.js +19 -6
  45. package/dist/ts/ts/Contract/ArcStudy.js +19 -6
  46. package/dist/ts/ts/Contract/ArcWorkflow.js +19 -6
  47. package/dist/ts/ts/Contract/Contract.js +42 -1
  48. package/dist/ts/ts/Contract/Datamap.js +61 -17
  49. package/dist/ts/ts/Contract/Git.d.ts.map +1 -1
  50. package/dist/ts/ts/Contract/Git.js +22 -6
  51. package/dist/ts/ts/Contract/License.d.ts +5 -0
  52. package/dist/ts/ts/Contract/License.d.ts.map +1 -0
  53. package/dist/ts/ts/Contract/License.js +34 -0
  54. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +31 -6
  55. package/dist/ts/ts/ContractIO/ContractIO.js +5 -5
  56. package/dist/ts/ts/ContractIO/FileSystemHelper.js +16 -4
  57. package/dist/ts/ts/Conversion.js +321 -48
  58. package/dist/ts/ts/Core/ArcTypes.js +216 -15
  59. package/dist/ts/ts/Core/Comment.js +11 -1
  60. package/dist/ts/ts/Core/CommentList.js +77 -2
  61. package/dist/ts/ts/Core/Conversion.js +123 -43
  62. package/dist/ts/ts/Core/Data.js +9 -2
  63. package/dist/ts/ts/Core/DataContext.js +19 -4
  64. package/dist/ts/ts/Core/DataFile.js +38 -1
  65. package/dist/ts/ts/Core/DataMap.js +111 -5
  66. package/dist/ts/ts/Core/Helper/Collections.js +106 -5
  67. package/dist/ts/ts/Core/Helper/HashCodes.js +4 -4
  68. package/dist/ts/ts/Core/Helper/Identifier.js +100 -2
  69. package/dist/ts/ts/Core/Helper/Regex.js +134 -2
  70. package/dist/ts/ts/Core/Helper/SemVer.js +23 -2
  71. package/dist/ts/ts/Core/IdentifierSetters.d.ts +3 -1
  72. package/dist/ts/ts/Core/IdentifierSetters.d.ts.map +1 -1
  73. package/dist/ts/ts/Core/IdentifierSetters.js +27 -1
  74. package/dist/ts/ts/Core/OntologyAnnotation.js +4 -1
  75. package/dist/ts/ts/Core/OntologySourceReference.js +8 -1
  76. package/dist/ts/ts/Core/Person.js +8 -1
  77. package/dist/ts/ts/Core/Process/ColumnIndex.js +121 -4
  78. package/dist/ts/ts/Core/Process/Component.js +37 -4
  79. package/dist/ts/ts/Core/Process/Factor.js +9 -4
  80. package/dist/ts/ts/Core/Process/FactorValue.js +61 -4
  81. package/dist/ts/ts/Core/Process/Material.js +14 -4
  82. package/dist/ts/ts/Core/Process/MaterialAttribute.js +41 -3
  83. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +67 -4
  84. package/dist/ts/ts/Core/Process/MaterialType.js +15 -1
  85. package/dist/ts/ts/Core/Process/Process.js +150 -7
  86. package/dist/ts/ts/Core/Process/ProcessInput.js +48 -8
  87. package/dist/ts/ts/Core/Process/ProcessOutput.js +44 -7
  88. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +10 -5
  89. package/dist/ts/ts/Core/Process/ProcessSequence.js +127 -6
  90. package/dist/ts/ts/Core/Process/Protocol.js +78 -4
  91. package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -2
  92. package/dist/ts/ts/Core/Process/Sample.js +21 -3
  93. package/dist/ts/ts/Core/Process/Source.js +13 -3
  94. package/dist/ts/ts/Core/Publication.js +8 -1
  95. package/dist/ts/ts/Core/Table/ArcTable.js +34 -25
  96. package/dist/ts/ts/Core/Table/ArcTableAux.js +150 -23
  97. package/dist/ts/ts/Core/Table/ArcTables.js +24 -15
  98. package/dist/ts/ts/Core/Table/CompositeCell.js +7 -3
  99. package/dist/ts/ts/Core/Table/CompositeColumn.js +8 -4
  100. package/dist/ts/ts/Core/Table/CompositeHeader.js +18 -15
  101. package/dist/ts/ts/Core/Template.js +12 -2
  102. package/dist/ts/ts/Core/Templates.js +8 -4
  103. package/dist/ts/ts/Core/Value.js +7 -3
  104. package/dist/ts/ts/CrossAsync.js +11 -1
  105. package/dist/ts/ts/FileSystem/Commit.js +18 -0
  106. package/dist/ts/ts/FileSystem/FileSystem.js +8 -3
  107. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +1 -0
  108. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
  109. package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -13
  110. package/dist/ts/ts/FileSystem/Path.d.ts +2 -0
  111. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  112. package/dist/ts/ts/FileSystem/Path.js +17 -3
  113. package/dist/ts/ts/Json/Assay.d.ts +1 -1
  114. package/dist/ts/ts/Json/Assay.js +28 -28
  115. package/dist/ts/ts/Json/Comment.js +10 -10
  116. package/dist/ts/ts/Json/Data.js +6 -6
  117. package/dist/ts/ts/Json/DataMap/DataContext.js +4 -4
  118. package/dist/ts/ts/Json/DataMap/DataMap.js +2 -2
  119. package/dist/ts/ts/Json/Decode.js +14 -9
  120. package/dist/ts/ts/Json/Encode.js +43 -11
  121. package/dist/ts/ts/Json/Investigation.js +40 -22
  122. package/dist/ts/ts/Json/OntologyAnnotation.js +5 -5
  123. package/dist/ts/ts/Json/OntologySourceReference.js +2 -2
  124. package/dist/ts/ts/Json/Person.js +26 -26
  125. package/dist/ts/ts/Json/Process/Component.d.ts +6 -4
  126. package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
  127. package/dist/ts/ts/Json/Process/Component.js +27 -7
  128. package/dist/ts/ts/Json/Process/Factor.js +3 -3
  129. package/dist/ts/ts/Json/Process/FactorValue.js +8 -8
  130. package/dist/ts/ts/Json/Process/Material.js +9 -9
  131. package/dist/ts/ts/Json/Process/MaterialAttribute.js +1 -1
  132. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +8 -8
  133. package/dist/ts/ts/Json/Process/Process.js +12 -12
  134. package/dist/ts/ts/Json/Process/ProcessInput.js +4 -4
  135. package/dist/ts/ts/Json/Process/ProcessOutput.js +3 -3
  136. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +11 -8
  137. package/dist/ts/ts/Json/Process/Protocol.js +13 -13
  138. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +4 -2
  139. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
  140. package/dist/ts/ts/Json/Process/ProtocolParameter.js +21 -12
  141. package/dist/ts/ts/Json/Process/Sample.js +14 -14
  142. package/dist/ts/ts/Json/Process/Source.js +9 -9
  143. package/dist/ts/ts/Json/Process/Value.js +1 -1
  144. package/dist/ts/ts/Json/PropertyValue.js +1 -1
  145. package/dist/ts/ts/Json/Publication.js +6 -6
  146. package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -0
  147. package/dist/ts/ts/Json/ROCrate/LDGraph.js +3 -3
  148. package/dist/ts/ts/Json/ROCrate/LDNode.js +19 -19
  149. package/dist/ts/ts/Json/Run.d.ts +11 -0
  150. package/dist/ts/ts/Json/Run.d.ts.map +1 -0
  151. package/dist/ts/ts/Json/Run.js +76 -0
  152. package/dist/ts/ts/Json/StringTable.js +1 -1
  153. package/dist/ts/ts/Json/Study.js +34 -34
  154. package/dist/ts/ts/Json/Table/ArcTable.js +29 -29
  155. package/dist/ts/ts/Json/Table/CellTable.js +6 -6
  156. package/dist/ts/ts/Json/Table/CompositeCell.js +4 -4
  157. package/dist/ts/ts/Json/Table/CompositeHeader.js +2 -2
  158. package/dist/ts/ts/Json/Table/IOType.js +1 -1
  159. package/dist/ts/ts/Json/Table/OATable.js +7 -7
  160. package/dist/ts/ts/Json/Table/Templates.js +92 -6
  161. package/dist/ts/ts/Json/Workflow.d.ts +11 -0
  162. package/dist/ts/ts/Json/Workflow.d.ts.map +1 -0
  163. package/dist/ts/ts/Json/Workflow.js +93 -0
  164. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +27 -1
  165. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +17 -1
  166. package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +19 -1
  167. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +27 -1
  168. package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +20 -1
  169. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +18 -1
  170. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +20 -1
  171. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +16 -1
  172. package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +25 -1
  173. package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +24 -1
  174. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +23 -1
  175. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +20 -1
  176. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +19 -1
  177. package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +19 -1
  178. package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +35 -1
  179. package/dist/ts/ts/Json/context/rocrate/rocrate_context.js +61 -0
  180. package/dist/ts/ts/Json.d.ts +34 -2
  181. package/dist/ts/ts/Json.d.ts.map +1 -1
  182. package/dist/ts/ts/Json.js +129 -2
  183. package/dist/ts/ts/JsonIO/Assay.js +15 -3
  184. package/dist/ts/ts/JsonIO/Investigation.js +15 -3
  185. package/dist/ts/ts/JsonIO/LDObject.js +17 -3
  186. package/dist/ts/ts/JsonIO/OntologyAnnotation.js +12 -2
  187. package/dist/ts/ts/JsonIO/Person.d.ts +16 -0
  188. package/dist/ts/ts/JsonIO/Person.d.ts.map +1 -0
  189. package/dist/ts/ts/JsonIO/Person.js +67 -0
  190. package/dist/ts/ts/JsonIO/Run.d.ts +10 -0
  191. package/dist/ts/ts/JsonIO/Run.d.ts.map +1 -0
  192. package/dist/ts/ts/JsonIO/Run.js +50 -0
  193. package/dist/ts/ts/JsonIO/Study.js +15 -3
  194. package/dist/ts/ts/JsonIO/Table/Compression.js +3 -3
  195. package/dist/ts/ts/JsonIO/Table/Templates.js +60 -5
  196. package/dist/ts/ts/JsonIO/Workflow.d.ts +10 -0
  197. package/dist/ts/ts/JsonIO/Workflow.d.ts.map +1 -0
  198. package/dist/ts/ts/JsonIO/Workflow.js +50 -0
  199. package/dist/ts/ts/License.d.ts +39 -0
  200. package/dist/ts/ts/License.d.ts.map +1 -0
  201. package/dist/ts/ts/License.js +123 -0
  202. package/dist/ts/ts/ROCrate/Generic/Comment.js +5 -1
  203. package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts +69 -0
  204. package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts.map +1 -0
  205. package/dist/ts/ts/ROCrate/Generic/CreativeWork.js +450 -0
  206. package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts +1 -0
  207. package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +1 -1
  208. package/dist/ts/ts/ROCrate/Generic/Dataset.js +27 -1
  209. package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +5 -1
  210. package/dist/ts/ts/ROCrate/Generic/File.js +5 -1
  211. package/dist/ts/ts/ROCrate/Generic/LabProcess.js +5 -1
  212. package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +5 -1
  213. package/dist/ts/ts/ROCrate/Generic/Organization.js +5 -1
  214. package/dist/ts/ts/ROCrate/Generic/Person.js +7 -2
  215. package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +5 -1
  216. package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +19 -15
  217. package/dist/ts/ts/ROCrate/Generic/Sample.js +5 -1
  218. package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +5 -1
  219. package/dist/ts/ts/ROCrate/LDContext.js +15 -6
  220. package/dist/ts/ts/ROCrate/LDObject.js +53 -17
  221. package/dist/ts/ts/ROCrateIO.d.ts +9 -3
  222. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  223. package/dist/ts/ts/ROCrateIO.js +67 -14
  224. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +18 -15
  225. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +5 -4
  226. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +40 -17
  227. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
  228. package/dist/ts/ts/Spreadsheet/ArcAssay.js +30 -15
  229. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +32 -18
  230. package/dist/ts/ts/Spreadsheet/ArcRun.js +23 -8
  231. package/dist/ts/ts/Spreadsheet/ArcStudy.js +22 -7
  232. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +23 -8
  233. package/dist/ts/ts/Spreadsheet/CollectionAux.js +75 -5
  234. package/dist/ts/ts/Spreadsheet/DataMap.js +1 -1
  235. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +4 -4
  236. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +8 -8
  237. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +4 -4
  238. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
  239. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +1 -1
  240. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
  241. package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +6 -3
  242. package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +9 -3
  243. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -4
  244. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +7 -5
  245. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +1 -1
  246. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +10 -8
  247. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +5 -5
  248. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +6 -6
  249. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +246 -10
  250. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +19 -13
  251. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
  252. package/dist/ts/ts/Template.Web.js +5 -1
  253. package/dist/ts/ts/ValidationPackages/ValidationPackage.js +8 -1
  254. package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +10 -3
  255. package/dist/ts/ts/WebRequest/WebRequest.Node.js +1 -0
  256. package/dist/ts/ts/Xlsx.d.ts +21 -1
  257. package/dist/ts/ts/Xlsx.d.ts.map +1 -1
  258. package/dist/ts/ts/Xlsx.js +81 -1
  259. package/dist/ts/ts/Yaml/ValidationPackage.js +18 -2
  260. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -2
  261. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +27 -4
  262. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +14 -3
  263. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +30 -4
  264. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +5 -1
  265. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +65 -2
  266. package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +257 -1
  267. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +71 -1
  268. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +11 -1
  269. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +188 -11
  270. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +80 -2
  271. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +63 -4
  272. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +17 -7
  273. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/CellBuilder.fs.js +198 -0
  274. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Expression.fs.js +46 -0
  275. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/RowBuilder.fs.js +131 -0
  276. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Types.fs.js +307 -0
  277. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +38 -2
  278. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +11 -4
  279. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +12 -5
  280. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +9 -2
  281. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +14 -7
  282. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +31 -1
  283. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Cell.fs.js +65 -0
  284. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Column.fs.js +38 -0
  285. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Row.fs.js +38 -0
  286. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Table.fs.js +34 -0
  287. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +49 -3
  288. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Workbook.fs.js +44 -0
  289. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Worksheet.fs.js +129 -0
  290. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +9 -2
  291. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -3
  292. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +12 -3
  293. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +17 -2
  294. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +9 -2
  295. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +12 -5
  296. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +12 -3
  297. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +2 -2
  298. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +42 -3
  299. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Json.fs.js +53 -0
  300. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +9 -9
  301. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +1 -1
  302. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +2 -2
  303. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +5 -1
  304. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +730 -23
  305. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +192 -7
  306. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +45 -1
  307. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +15 -2
  308. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +1383 -15
  309. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +45 -4
  310. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +10 -0
  311. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +5 -5
  312. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +16 -6
  313. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +26 -23
  314. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +1 -1
  315. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +8 -8
  316. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +18 -2
  317. package/package.json +1 -1
  318. package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts +0 -2
  319. package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts.map +0 -1
  320. package/dist/ts/ts/FileSystem/DefaultGitattributes.js +0 -3
  321. package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts +0 -2
  322. package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts.map +0 -1
  323. package/dist/ts/ts/FileSystem/DefaultGitignore.js +0 -3
@@ -1,14 +1,19 @@
1
1
  import { Record, toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
2
- import { length, empty, choose, append, collect } 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 { ProcessInput_tryData_5B3D5BA9, ProcessInput_trySample_5B3D5BA9, ProcessInput_tryMaterial_5B3D5BA9, ProcessInput_trySource_5B3D5BA9, ProcessInput_tryGetCharacteristicValues_5B3D5BA9 } from './ProcessInput.js';
2
+ import { length, empty, choose, collect, append, tryFind, map as map$1, tryPick, zip } from '../../../node_modules/@fable-org/fable-library-js/List.js';
3
+ import { defaultArg, value, bind, map } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
4
+ import { ProcessInput_$reflection, ProcessInput_tryGetCharacteristicValues_5B3D5BA9, ProcessInput_trySource_5B3D5BA9, ProcessInput_tryData_5B3D5BA9, ProcessInput_trySample_5B3D5BA9, ProcessInput_tryMaterial_5B3D5BA9 } from './ProcessInput.js';
5
5
  import { parse } from '../../../node_modules/@fable-org/fable-library-js/Int32.js';
6
- import { ProcessOutput_tryData_Z42C11600, ProcessOutput_tryGetFactorValues_Z42C11600, ProcessOutput_trySample_Z42C11600, ProcessOutput_tryMaterial_Z42C11600, ProcessOutput_tryGetCharacteristicValues_Z42C11600 } from './ProcessOutput.js';
7
- import '../Helper/Url.js';
8
- import { ActivePatterns_$007CRegex$007C_$007C } from '../Helper/Regex.js';
6
+ import { ProcessOutput_$reflection, ProcessOutput_tryGetCharacteristicValues_Z42C11600, ProcessOutput_tryGetFactorValues_Z42C11600, ProcessOutput_tryData_Z42C11600, ProcessOutput_trySample_Z42C11600, ProcessOutput_tryMaterial_Z42C11600 } from './ProcessOutput.js';
7
+ import { ProcessParameterValue_$reflection } from './ProcessParameterValue.js';
9
8
  import { toText, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
9
+ import { Protocol_$reflection } from './Protocol.js';
10
+ import { Comment$_$reflection } from '../Comment.js';
10
11
  import { safeHash, equals } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
12
+ import { record_type, option_type, string_type, list_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
13
+ import { ActivePatterns_$007CRegex$007C_$007C } from '../Helper/Regex.js';
14
+ import { ProtocolParameter } from './ProtocolParameter.js';
11
15
  import { List_distinct } from '../../../node_modules/@fable-org/fable-library-js/Seq2.js';
16
+ import { Option_fromValueWithDefault } from '../Helper/Collections.js';
12
17
 
13
18
  class Process extends Record {
14
19
  constructor(ID, Name, ExecutesProtocol, ParameterValues, Performer, Date$, PreviousProcess, NextProcess, Inputs, Outputs, Comments) {
@@ -38,12 +43,18 @@ class Process extends Record {
38
43
  return toText(printf("%s [%i Inputs -> %i Params -> %i Outputs]"))(name)(inputCount)(paramCount)(outputCount);
39
44
  }
40
45
  }
46
+ function Process_$reflection() {
47
+ return record_type("ARCtrl.Process.Process", [], Process, () => [["ID", option_type(string_type)], ["Name", option_type(string_type)], ["ExecutesProtocol", option_type(Protocol_$reflection())], ["ParameterValues", option_type(list_type(ProcessParameterValue_$reflection()))], ["Performer", option_type(string_type)], ["Date", option_type(string_type)], ["PreviousProcess", option_type(Process_$reflection())], ["NextProcess", option_type(Process_$reflection())], ["Inputs", option_type(list_type(ProcessInput_$reflection()))], ["Outputs", option_type(list_type(ProcessOutput_$reflection()))], ["Comments", option_type(list_type(Comment$_$reflection()))]]);
48
+ }
41
49
  function Process_make(id, name, executesProtocol, parameterValues, performer, date, previousProcess, nextProcess, inputs, outputs, comments) {
42
50
  return new Process(id, name, executesProtocol, parameterValues, performer, date, previousProcess, nextProcess, inputs, outputs, comments);
43
51
  }
44
52
  function Process_create_Z7C1F7FA9(Id, Name, ExecutesProtocol, ParameterValues, Performer, Date$, PreviousProcess, NextProcess, Inputs, Outputs, Comments) {
45
53
  return Process_make(Id, Name, ExecutesProtocol, ParameterValues, Performer, Date$, PreviousProcess, NextProcess, Inputs, Outputs, Comments);
46
54
  }
55
+ function Process_get_empty() {
56
+ return Process_create_Z7C1F7FA9();
57
+ }
47
58
  function Process_composeName(processNameRoot, i) {
48
59
  return `${processNameRoot}_${i}`;
49
60
  }
@@ -56,9 +67,18 @@ function Process_decomposeName_Z721C83C5(name) {
56
67
  return [name, void 0];
57
68
  }
58
69
  }
70
+ function Process_tryGetProtocolName_763471FF(p) {
71
+ return bind((p_1) => p_1.Name, p.ExecutesProtocol);
72
+ }
73
+ function Process_getProtocolName_763471FF(p) {
74
+ return value(bind((p_1) => p_1.Name, p.ExecutesProtocol));
75
+ }
59
76
  function Process_getParameterValues_763471FF(p) {
60
77
  return defaultArg(p.ParameterValues, empty());
61
78
  }
79
+ function Process_getParameters_763471FF(p) {
80
+ return choose((pv) => pv.Category, Process_getParameterValues_763471FF(p));
81
+ }
62
82
  function Process_getInputCharacteristicValues_763471FF(p) {
63
83
  const matchValue = p.Inputs;
64
84
  if (matchValue == null) {
@@ -108,6 +128,129 @@ function Process_getFactors_763471FF(p) {
108
128
  function Process_getUnits_763471FF(p) {
109
129
  return append(choose((cv) => cv.Unit, Process_getCharacteristicValues_763471FF(p)), append(choose((pv) => pv.Unit, Process_getParameterValues_763471FF(p)), choose((fv) => fv.Unit, Process_getFactorValues_763471FF(p))));
110
130
  }
131
+ function Process_tryGetInputsWithParameterBy(predicate, p) {
132
+ const matchValue = p.ParameterValues;
133
+ if (matchValue == null) {
134
+ return void 0;
135
+ } else {
136
+ const matchValue_1 = tryFind((pv) => predicate(defaultArg(pv.Category, ProtocolParameter.empty)), value(matchValue));
137
+ if (matchValue_1 == null) {
138
+ return void 0;
139
+ } else {
140
+ const paramValue = value(matchValue_1);
141
+ return map((list_1) => map$1((i) => [i, paramValue], list_1), p.Inputs);
142
+ }
143
+ }
144
+ }
145
+ function Process_tryGetOutputsWithParameterBy(predicate, p) {
146
+ const matchValue = p.ParameterValues;
147
+ if (matchValue == null) {
148
+ return void 0;
149
+ } else {
150
+ const matchValue_1 = tryFind((pv) => predicate(defaultArg(pv.Category, ProtocolParameter.empty)), value(matchValue));
151
+ if (matchValue_1 == null) {
152
+ return void 0;
153
+ } else {
154
+ const paramValue = value(matchValue_1);
155
+ return map((list_1) => map$1((i) => [i, paramValue], list_1), p.Outputs);
156
+ }
157
+ }
158
+ }
159
+ function Process_tryGetInputsWithCharacteristicBy(predicate, p) {
160
+ const matchValue = p.Inputs;
161
+ if (matchValue == null) {
162
+ return void 0;
163
+ } else {
164
+ return Option_fromValueWithDefault(empty(), choose((i) => tryPick((mv) => {
165
+ const matchValue_1 = mv.Category;
166
+ let matchResult, m_1;
167
+ if (matchValue_1 != null) {
168
+ if (predicate(value(matchValue_1))) {
169
+ matchResult = 0;
170
+ m_1 = value(matchValue_1);
171
+ } else {
172
+ matchResult = 1;
173
+ }
174
+ } else {
175
+ matchResult = 1;
176
+ }
177
+ switch (matchResult) {
178
+ case 0:
179
+ return [i, mv];
180
+ default:
181
+ return void 0;
182
+ }
183
+ }, defaultArg(ProcessInput_tryGetCharacteristicValues_5B3D5BA9(i), empty())), value(matchValue)));
184
+ }
185
+ }
186
+ function Process_tryGetOutputsWithCharacteristicBy(predicate, p) {
187
+ const matchValue = p.Inputs;
188
+ const matchValue_1 = p.Outputs;
189
+ let matchResult, is, os;
190
+ if (matchValue != null) {
191
+ if (matchValue_1 != null) {
192
+ matchResult = 0;
193
+ is = value(matchValue);
194
+ os = value(matchValue_1);
195
+ } else {
196
+ matchResult = 1;
197
+ }
198
+ } else {
199
+ matchResult = 1;
200
+ }
201
+ switch (matchResult) {
202
+ case 0:
203
+ return Option_fromValueWithDefault(empty(), choose((tupledArg) => tryPick((mv) => {
204
+ const matchValue_3 = mv.Category;
205
+ let matchResult_1, m_1;
206
+ if (matchValue_3 != null) {
207
+ if (predicate(value(matchValue_3))) {
208
+ matchResult_1 = 0;
209
+ m_1 = value(matchValue_3);
210
+ } else {
211
+ matchResult_1 = 1;
212
+ }
213
+ } else {
214
+ matchResult_1 = 1;
215
+ }
216
+ switch (matchResult_1) {
217
+ case 0:
218
+ return [tupledArg[1], mv];
219
+ default:
220
+ return void 0;
221
+ }
222
+ }, defaultArg(ProcessInput_tryGetCharacteristicValues_5B3D5BA9(tupledArg[0]), empty())), zip(is, os)));
223
+ default:
224
+ return void 0;
225
+ }
226
+ }
227
+ function Process_tryGetOutputsWithFactorBy(predicate, p) {
228
+ const matchValue = p.Outputs;
229
+ if (matchValue == null) {
230
+ return void 0;
231
+ } else {
232
+ return Option_fromValueWithDefault(empty(), choose((o) => tryPick((mv) => {
233
+ const matchValue_1 = mv.Category;
234
+ let matchResult, m_1;
235
+ if (matchValue_1 != null) {
236
+ if (predicate(value(matchValue_1))) {
237
+ matchResult = 0;
238
+ m_1 = value(matchValue_1);
239
+ } else {
240
+ matchResult = 1;
241
+ }
242
+ } else {
243
+ matchResult = 1;
244
+ }
245
+ switch (matchResult) {
246
+ case 0:
247
+ return [o, mv];
248
+ default:
249
+ return void 0;
250
+ }
251
+ }, defaultArg(ProcessOutput_tryGetFactorValues_Z42C11600(o), empty())), value(matchValue)));
252
+ }
253
+ }
111
254
  function Process_getSources_763471FF(p) {
112
255
  return List_distinct(choose(ProcessInput_trySource_5B3D5BA9, defaultArg(p.Inputs, empty())), {
113
256
  Equals: equals,
@@ -133,4 +276,4 @@ function Process_getMaterials_763471FF(p) {
133
276
  });
134
277
  }
135
278
 
136
- export { Process, Process_composeName, Process_create_Z7C1F7FA9, Process_decomposeName_Z721C83C5, Process_getCharacteristicValues_763471FF, Process_getCharacteristics_763471FF, Process_getData_763471FF, Process_getFactorValues_763471FF, Process_getFactors_763471FF, Process_getInputCharacteristicValues_763471FF, Process_getMaterials_763471FF, Process_getOutputCharacteristicValues_763471FF, Process_getParameterValues_763471FF, Process_getSamples_763471FF, Process_getSources_763471FF, Process_getUnits_763471FF, Process_make };
279
+ export { Process, Process_$reflection, Process_composeName, Process_create_Z7C1F7FA9, Process_decomposeName_Z721C83C5, Process_getCharacteristicValues_763471FF, Process_getCharacteristics_763471FF, Process_getData_763471FF, Process_getFactorValues_763471FF, Process_getFactors_763471FF, Process_getInputCharacteristicValues_763471FF, Process_getMaterials_763471FF, Process_getOutputCharacteristicValues_763471FF, Process_getParameterValues_763471FF, Process_getParameters_763471FF, Process_getProtocolName_763471FF, Process_getSamples_763471FF, Process_getSources_763471FF, Process_getUnits_763471FF, Process_get_empty, Process_make, Process_tryGetInputsWithCharacteristicBy, Process_tryGetInputsWithParameterBy, Process_tryGetOutputsWithCharacteristicBy, Process_tryGetOutputsWithFactorBy, Process_tryGetOutputsWithParameterBy, Process_tryGetProtocolName_763471FF };
@@ -1,12 +1,13 @@
1
1
  import { Union, toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
2
- import { Source_create_Z5CA08497, Source_setCharacteristicValues } from './Source.js';
2
+ import { Source_$reflection, Source_get_empty, Source_setCharacteristicValues, Source_getUnits_53E41069, Source_create_Z5CA08497 } from './Source.js';
3
3
  import { toText, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
4
- import { Material_create_Z66909A6D, Material_setCharacteristicValues } from './Material.js';
5
- import { Data } from '../Data.js';
6
- import { Sample_create_62424AD2, Sample_setCharacteristicValues } from './Sample.js';
7
- import { defaultArg, unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
8
- import { empty } from '../../../node_modules/@fable-org/fable-library-js/List.js';
9
- import { DataFile_RawDataFile } from '../DataFile.js';
4
+ import { Material_$reflection, Material_setCharacteristicValues, Material_getUnits_ZBCDEB61, Material_create_Z66909A6D } from './Material.js';
5
+ import { Data_$reflection, Data } from '../Data.js';
6
+ import { Sample_$reflection, Sample_setCharacteristicValues, Sample_getUnits_53716792, Sample_create_62424AD2 } from './Sample.js';
7
+ import { union_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
8
+ import { defaultArg, map, unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
9
+ import { choose, empty } from '../../../node_modules/@fable-org/fable-library-js/List.js';
10
+ import { DataFile_ImageFile, DataFile_RawDataFile, DataFile_DerivedDataFile } from '../DataFile.js';
10
11
 
11
12
  function ProcessInput_Source(Item) {
12
13
  return new ProcessInput(0, [Item]);
@@ -62,6 +63,9 @@ class ProcessInput extends Union {
62
63
  }
63
64
  }
64
65
  }
66
+ function ProcessInput_$reflection() {
67
+ return union_type("ARCtrl.Process.ProcessInput", [], ProcessInput, () => [[["Item", Source_$reflection()]], [["Item", Sample_$reflection()]], [["Item", Data_$reflection()]], [["Item", Material_$reflection()]]]);
68
+ }
65
69
  function ProcessInput__get_TryName(this$) {
66
70
  switch (this$.tag) {
67
71
  case /* Source */
@@ -82,6 +86,18 @@ function ProcessInput__get_TryName(this$) {
82
86
  function ProcessInput__get_Name(this$) {
83
87
  return defaultArg(ProcessInput__get_TryName(this$), "");
84
88
  }
89
+ function ProcessInput_get_Default() {
90
+ return ProcessInput_Source(Source_get_empty());
91
+ }
92
+ function ProcessInput_tryGetName_5B3D5BA9(pi) {
93
+ return ProcessInput__get_TryName(pi);
94
+ }
95
+ function ProcessInput_getName_5B3D5BA9(pi) {
96
+ return ProcessInput__get_Name(pi);
97
+ }
98
+ function ProcessInput_nameEquals(name, pi) {
99
+ return ProcessInput__get_Name(pi) === name;
100
+ }
85
101
  function ProcessInput_isSample_5B3D5BA9(pi) {
86
102
  if (pi.tag === /* Sample */
87
103
  1) {
@@ -188,9 +204,27 @@ function ProcessInput_tryGetCharacteristicValues_5B3D5BA9(pi) {
188
204
  return pi.fields[0].Characteristics;
189
205
  }
190
206
  }
207
+ function ProcessInput_tryGetCharacteristics_5B3D5BA9(pi) {
208
+ return map((list) => choose((c) => c.Category, list), ProcessInput_tryGetCharacteristicValues_5B3D5BA9(pi));
209
+ }
191
210
  function ProcessInput_getCharacteristicValues_5B3D5BA9(pi) {
192
211
  return defaultArg(ProcessInput_tryGetCharacteristicValues_5B3D5BA9(pi), empty());
193
212
  }
213
+ function ProcessInput_getUnits_5B3D5BA9(pi) {
214
+ switch (pi.tag) {
215
+ case /* Sample */
216
+ 1:
217
+ return Sample_getUnits_53716792(pi.fields[0]);
218
+ case /* Material */
219
+ 3:
220
+ return Material_getUnits_ZBCDEB61(pi.fields[0]);
221
+ case /* Data */
222
+ 2:
223
+ return empty();
224
+ default:
225
+ return Source_getUnits_53E41069(pi.fields[0]);
226
+ }
227
+ }
194
228
  function ProcessInput_createSource_Z5E00540E(name, characteristics) {
195
229
  return ProcessInput_Source(Source_create_Z5CA08497(void 0, name, unwrap(characteristics)));
196
230
  }
@@ -200,8 +234,14 @@ function ProcessInput_createSample_Z598187B7(name, characteristics, factors, der
200
234
  function ProcessInput_createMaterial_4452CB4C(name, characteristics, derivesFrom) {
201
235
  return ProcessInput_Material(Material_create_Z66909A6D(void 0, name, void 0, unwrap(characteristics), unwrap(derivesFrom)));
202
236
  }
237
+ function ProcessInput_createImageFile_Z721C83C5(name) {
238
+ return ProcessInput_Data(Data.create(void 0, name, DataFile_ImageFile()));
239
+ }
203
240
  function ProcessInput_createRawData_Z721C83C5(name) {
204
241
  return ProcessInput_Data(Data.create(void 0, name, DataFile_RawDataFile()));
205
242
  }
243
+ function ProcessInput_createDerivedData_Z721C83C5(name) {
244
+ return ProcessInput_Data(Data.create(void 0, name, DataFile_DerivedDataFile()));
245
+ }
206
246
 
207
- export { ProcessInput, ProcessInput_Data, ProcessInput_Material, ProcessInput_Sample, ProcessInput_Source, ProcessInput__get_Name, ProcessInput__get_TryName, ProcessInput__isData, ProcessInput__isMaterial, ProcessInput__isSample, ProcessInput__isSource, ProcessInput_createMaterial_4452CB4C, ProcessInput_createRawData_Z721C83C5, ProcessInput_createSample_Z598187B7, ProcessInput_createSource_Z5E00540E, ProcessInput_getCharacteristicValues_5B3D5BA9, ProcessInput_isData_5B3D5BA9, ProcessInput_isMaterial_5B3D5BA9, ProcessInput_isSample_5B3D5BA9, ProcessInput_isSource_5B3D5BA9, ProcessInput_setCharacteristicValues, ProcessInput_tryData_5B3D5BA9, ProcessInput_tryGetCharacteristicValues_5B3D5BA9, ProcessInput_tryMaterial_5B3D5BA9, ProcessInput_trySample_5B3D5BA9, ProcessInput_trySource_5B3D5BA9 };
247
+ export { ProcessInput, ProcessInput_$reflection, ProcessInput_Data, ProcessInput_Material, ProcessInput_Sample, ProcessInput_Source, ProcessInput__get_Name, ProcessInput__get_TryName, ProcessInput__isData, ProcessInput__isMaterial, ProcessInput__isSample, ProcessInput__isSource, ProcessInput_createDerivedData_Z721C83C5, ProcessInput_createImageFile_Z721C83C5, ProcessInput_createMaterial_4452CB4C, ProcessInput_createRawData_Z721C83C5, ProcessInput_createSample_Z598187B7, ProcessInput_createSource_Z5E00540E, ProcessInput_getCharacteristicValues_5B3D5BA9, ProcessInput_getName_5B3D5BA9, ProcessInput_getUnits_5B3D5BA9, ProcessInput_get_Default, ProcessInput_isData_5B3D5BA9, ProcessInput_isMaterial_5B3D5BA9, ProcessInput_isSample_5B3D5BA9, ProcessInput_isSource_5B3D5BA9, ProcessInput_nameEquals, ProcessInput_setCharacteristicValues, ProcessInput_tryData_5B3D5BA9, ProcessInput_tryGetCharacteristicValues_5B3D5BA9, ProcessInput_tryGetCharacteristics_5B3D5BA9, ProcessInput_tryGetName_5B3D5BA9, ProcessInput_tryMaterial_5B3D5BA9, ProcessInput_trySample_5B3D5BA9, ProcessInput_trySource_5B3D5BA9 };
@@ -1,11 +1,12 @@
1
1
  import { Union, toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
2
- import { Material_create_Z66909A6D } from './Material.js';
2
+ import { Material_$reflection, Material_getUnits_ZBCDEB61, Material_create_Z66909A6D } from './Material.js';
3
3
  import { toText, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
4
- import { Data } from '../Data.js';
5
- import { Sample_create_62424AD2, Sample_setFactorValues } from './Sample.js';
6
- import { defaultArg, unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
7
- import { empty } from '../../../node_modules/@fable-org/fable-library-js/List.js';
8
- import { DataFile_RawDataFile } from '../DataFile.js';
4
+ import { Data_$reflection, Data } from '../Data.js';
5
+ import { Sample_$reflection, Sample_get_empty, Sample_setFactorValues, Sample_getUnits_53716792, Sample_create_62424AD2 } from './Sample.js';
6
+ import { union_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
7
+ import { defaultArg, map, unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
8
+ import { choose, empty } from '../../../node_modules/@fable-org/fable-library-js/List.js';
9
+ import { DataFile_ImageFile, DataFile_RawDataFile, DataFile_DerivedDataFile } from '../DataFile.js';
9
10
 
10
11
  function ProcessOutput_Sample(Item) {
11
12
  return new ProcessOutput(0, [Item]);
@@ -52,6 +53,9 @@ class ProcessOutput extends Union {
52
53
  }
53
54
  }
54
55
  }
56
+ function ProcessOutput_$reflection() {
57
+ return union_type("ARCtrl.Process.ProcessOutput", [], ProcessOutput, () => [[["Item", Sample_$reflection()]], [["Item", Data_$reflection()]], [["Item", Material_$reflection()]]]);
58
+ }
55
59
  function ProcessOutput__get_TryName(this$) {
56
60
  switch (this$.tag) {
57
61
  case /* Material */
@@ -69,6 +73,18 @@ function ProcessOutput__get_TryName(this$) {
69
73
  function ProcessOutput__get_Name(this$) {
70
74
  return defaultArg(ProcessOutput__get_TryName(this$), "");
71
75
  }
76
+ function ProcessOutput_get_Default() {
77
+ return ProcessOutput_Sample(Sample_get_empty());
78
+ }
79
+ function ProcessOutput_tryGetName_Z42C11600(po) {
80
+ return ProcessOutput__get_TryName(po);
81
+ }
82
+ function ProcessOutput_getName_Z42C11600(po) {
83
+ return ProcessOutput__get_Name(po);
84
+ }
85
+ function ProcessOutput_nameEquals(name, po) {
86
+ return ProcessOutput__get_Name(po) === name;
87
+ }
72
88
  function ProcessOutput_isSample_Z42C11600(po) {
73
89
  if (po.tag === /* Sample */
74
90
  0) {
@@ -138,6 +154,9 @@ function ProcessOutput_tryGetCharacteristicValues_Z42C11600(po) {
138
154
  return po.fields[0].Characteristics;
139
155
  }
140
156
  }
157
+ function ProcessOutput_tryGetCharacteristics_Z42C11600(po) {
158
+ return map((list) => choose((c) => c.Category, list), ProcessOutput_tryGetCharacteristicValues_Z42C11600(po));
159
+ }
141
160
  function ProcessOutput_tryGetFactorValues_Z42C11600(po) {
142
161
  switch (po.tag) {
143
162
  case /* Material */
@@ -165,14 +184,32 @@ function ProcessOutput_setFactorValues(values, po) {
165
184
  function ProcessOutput_getFactorValues_Z42C11600(po) {
166
185
  return defaultArg(ProcessOutput_tryGetFactorValues_Z42C11600(po), empty());
167
186
  }
187
+ function ProcessOutput_getUnits_Z42C11600(po) {
188
+ switch (po.tag) {
189
+ case /* Material */
190
+ 2:
191
+ return Material_getUnits_ZBCDEB61(po.fields[0]);
192
+ case /* Data */
193
+ 1:
194
+ return empty();
195
+ default:
196
+ return Sample_getUnits_53716792(po.fields[0]);
197
+ }
198
+ }
168
199
  function ProcessOutput_createSample_Z598187B7(name, characteristics, factors, derivesFrom) {
169
200
  return ProcessOutput_Sample(Sample_create_62424AD2(void 0, name, unwrap(characteristics), unwrap(factors), unwrap(derivesFrom)));
170
201
  }
171
202
  function ProcessOutput_createMaterial_4452CB4C(name, characteristics, derivesFrom) {
172
203
  return ProcessOutput_Material(Material_create_Z66909A6D(void 0, name, void 0, unwrap(characteristics), unwrap(derivesFrom)));
173
204
  }
205
+ function ProcessOutput_createImageFile_Z721C83C5(name) {
206
+ return ProcessOutput_Data(Data.create(void 0, name, DataFile_ImageFile()));
207
+ }
174
208
  function ProcessOutput_createRawData_Z721C83C5(name) {
175
209
  return ProcessOutput_Data(Data.create(void 0, name, DataFile_RawDataFile()));
176
210
  }
211
+ function ProcessOutput_createDerivedData_Z721C83C5(name) {
212
+ return ProcessOutput_Data(Data.create(void 0, name, DataFile_DerivedDataFile()));
213
+ }
177
214
 
178
- export { ProcessOutput, ProcessOutput_Data, ProcessOutput_Material, ProcessOutput_Sample, ProcessOutput__get_Name, ProcessOutput__get_TryName, ProcessOutput__isData, ProcessOutput__isMaterial, ProcessOutput__isSample, ProcessOutput_createMaterial_4452CB4C, ProcessOutput_createRawData_Z721C83C5, ProcessOutput_createSample_Z598187B7, ProcessOutput_getFactorValues_Z42C11600, ProcessOutput_isData_Z42C11600, ProcessOutput_isMaterial_Z42C11600, ProcessOutput_isSample_Z42C11600, ProcessOutput_setFactorValues, ProcessOutput_tryData_Z42C11600, ProcessOutput_tryGetCharacteristicValues_Z42C11600, ProcessOutput_tryGetFactorValues_Z42C11600, ProcessOutput_tryMaterial_Z42C11600, ProcessOutput_trySample_Z42C11600 };
215
+ export { ProcessOutput, ProcessOutput_$reflection, ProcessOutput_Data, ProcessOutput_Material, ProcessOutput_Sample, ProcessOutput__get_Name, ProcessOutput__get_TryName, ProcessOutput__isData, ProcessOutput__isMaterial, ProcessOutput__isSample, ProcessOutput_createDerivedData_Z721C83C5, ProcessOutput_createImageFile_Z721C83C5, ProcessOutput_createMaterial_4452CB4C, ProcessOutput_createRawData_Z721C83C5, ProcessOutput_createSample_Z598187B7, ProcessOutput_getFactorValues_Z42C11600, ProcessOutput_getName_Z42C11600, ProcessOutput_getUnits_Z42C11600, ProcessOutput_get_Default, ProcessOutput_isData_Z42C11600, ProcessOutput_isMaterial_Z42C11600, ProcessOutput_isSample_Z42C11600, ProcessOutput_nameEquals, ProcessOutput_setFactorValues, ProcessOutput_tryData_Z42C11600, ProcessOutput_tryGetCharacteristicValues_Z42C11600, ProcessOutput_tryGetCharacteristics_Z42C11600, ProcessOutput_tryGetFactorValues_Z42C11600, ProcessOutput_tryGetName_Z42C11600, ProcessOutput_tryMaterial_Z42C11600, ProcessOutput_trySample_Z42C11600 };
@@ -1,9 +1,11 @@
1
1
  import { defaultArg, map, unwrap, bind, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
2
- import { ProtocolParameter } from './ProtocolParameter.js';
3
- import { Record, toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
4
- import '../Helper/Url.js';
5
- import { toText, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
2
+ import { ProtocolParameter, ProtocolParameter_$reflection } from './ProtocolParameter.js';
3
+ import { Value_$reflection } from '../Value.js';
4
+ import { OntologyAnnotation_$reflection } from '../OntologyAnnotation.js';
6
5
  import { int32ToString } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
6
+ import { toText, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
7
+ import { Record, toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
8
+ import { record_type, option_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
7
9
 
8
10
  class ProcessParameterValue extends Record {
9
11
  constructor(Category, Value, Unit) {
@@ -131,5 +133,8 @@ class ProcessParameterValue extends Record {
131
133
  return this$.Unit;
132
134
  }
133
135
  }
136
+ function ProcessParameterValue_$reflection() {
137
+ return record_type("ARCtrl.Process.ProcessParameterValue", [], ProcessParameterValue, () => [["Category", option_type(ProtocolParameter_$reflection())], ["Value", option_type(Value_$reflection())], ["Unit", option_type(OntologyAnnotation_$reflection())]]);
138
+ }
134
139
 
135
- export { ProcessParameterValue };
140
+ export { ProcessParameterValue, ProcessParameterValue_$reflection };
@@ -1,27 +1,148 @@
1
- import { List_distinct } from '../../../node_modules/@fable-org/fable-library-js/Seq2.js';
2
- import { collect, choose } from '../../../node_modules/@fable-org/fable-library-js/List.js';
3
- import { Process_getFactors_763471FF, Process_getData_763471FF, Process_getUnits_763471FF, Process_getCharacteristics_763471FF, Process_getSamples_763471FF, Process_getMaterials_763471FF, Process_getSources_763471FF } from './Process.js';
4
- import { safeHash, equals } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
5
- import '../Helper/Url.js';
1
+ import { List_distinct, List_groupBy } from '../../../node_modules/@fable-org/fable-library-js/Seq2.js';
2
+ import { choose, filter, concat, collect, empty, map, zip, singleton } from '../../../node_modules/@fable-org/fable-library-js/List.js';
3
+ import { bind, value, defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
4
+ import { Process_tryGetInputsWithParameterBy, Process_tryGetOutputsWithParameterBy, Process_getParameters_763471FF, Process_getCharacteristics_763471FF, Process_tryGetInputsWithCharacteristicBy, Process_tryGetOutputsWithCharacteristicBy, Process_tryGetOutputsWithFactorBy, Process_getFactors_763471FF, Process_getUnits_763471FF, Process_getData_763471FF, Process_getSources_763471FF, Process_getSamples_763471FF, Process_getMaterials_763471FF } from './Process.js';
5
+ import { stringHash, safeHash, equals, comparePrimitives, arrayHash, equalArrays } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
6
+ import { ProcessInput_getName_5B3D5BA9, ProcessInput__get_Name } from './ProcessInput.js';
7
+ import { ProcessOutput_getName_Z42C11600, ProcessOutput__get_Name } from './ProcessOutput.js';
8
+ import { ofList, FSharpSet__Contains } from '../../../node_modules/@fable-org/fable-library-js/Set.js';
9
+ import { ofList as ofList$1, FSharpMap__TryFind } from '../../../node_modules/@fable-org/fable-library-js/Map.js';
6
10
 
11
+ function getProtocolNames(processSequence) {
12
+ return List_distinct(choose((p) => bind((protocol) => protocol.Name, p.ExecutesProtocol), processSequence), {
13
+ Equals: (x, y) => x === y,
14
+ GetHashCode: stringHash
15
+ });
16
+ }
7
17
  function getProtocols(processSequence) {
8
18
  return List_distinct(choose((p) => p.ExecutesProtocol, processSequence), {
9
19
  Equals: equals,
10
20
  GetHashCode: safeHash
11
21
  });
12
22
  }
23
+ function filterByProtocolBy(predicate, processSequence) {
24
+ return filter((p) => {
25
+ const matchValue = p.ExecutesProtocol;
26
+ let matchResult, protocol_1;
27
+ if (matchValue != null) {
28
+ if (predicate(value(matchValue))) {
29
+ matchResult = 0;
30
+ protocol_1 = value(matchValue);
31
+ } else {
32
+ matchResult = 1;
33
+ }
34
+ } else {
35
+ matchResult = 1;
36
+ }
37
+ switch (matchResult) {
38
+ case 0:
39
+ return true;
40
+ default:
41
+ return false;
42
+ }
43
+ }, processSequence);
44
+ }
45
+ function filterByProtocolName(protocolName, processSequence) {
46
+ return filterByProtocolBy((p) => equals(p.Name, protocolName), processSequence);
47
+ }
48
+ function getInputsWithParameterBy(predicate, processSequence) {
49
+ return concat(choose((p) => Process_tryGetInputsWithParameterBy(predicate, p), processSequence));
50
+ }
51
+ function getOutputsWithParameterBy(predicate, processSequence) {
52
+ return concat(choose((p) => Process_tryGetOutputsWithParameterBy(predicate, p), processSequence));
53
+ }
54
+ function getParameters(processSequence) {
55
+ return List_distinct(collect(Process_getParameters_763471FF, processSequence), {
56
+ Equals: equals,
57
+ GetHashCode: safeHash
58
+ });
59
+ }
13
60
  function getCharacteristics(processSequence) {
14
61
  return List_distinct(collect(Process_getCharacteristics_763471FF, processSequence), {
15
62
  Equals: equals,
16
63
  GetHashCode: safeHash
17
64
  });
18
65
  }
66
+ function getInputsWithCharacteristicBy(predicate, processSequence) {
67
+ return concat(choose((p) => Process_tryGetInputsWithCharacteristicBy(predicate, p), processSequence));
68
+ }
69
+ function getOutputsWithCharacteristicBy(predicate, processSequence) {
70
+ return concat(choose((p) => Process_tryGetOutputsWithCharacteristicBy(predicate, p), processSequence));
71
+ }
72
+ function getOutputsWithFactorBy(predicate, processSequence) {
73
+ return concat(choose((p) => Process_tryGetOutputsWithFactorBy(predicate, p), processSequence));
74
+ }
19
75
  function getFactors(processSequence) {
20
76
  return List_distinct(collect(Process_getFactors_763471FF, processSequence), {
21
77
  Equals: equals,
22
78
  GetHashCode: safeHash
23
79
  });
24
80
  }
81
+ function getRootInputs(processSequence) {
82
+ const inputs = collect((p) => defaultArg(p.Inputs, empty()), processSequence);
83
+ const outputs = ofList(collect((p_1) => map(ProcessOutput_getName_Z42C11600, defaultArg(p_1.Outputs, empty())), processSequence), {
84
+ Compare: comparePrimitives
85
+ });
86
+ return filter((i) => !FSharpSet__Contains(outputs, ProcessInput_getName_5B3D5BA9(i)), inputs);
87
+ }
88
+ function getFinalOutputs(processSequence) {
89
+ const inputs = ofList(collect((p) => map(ProcessInput_getName_5B3D5BA9, defaultArg(p.Inputs, empty())), processSequence), {
90
+ Compare: comparePrimitives
91
+ });
92
+ return filter((o) => !FSharpSet__Contains(inputs, ProcessOutput_getName_Z42C11600(o)), collect((p_1) => defaultArg(p_1.Outputs, empty()), processSequence));
93
+ }
94
+ function getRootInputOf(processSequence, sample) {
95
+ const mappings = ofList$1(map((tupledArg) => [tupledArg[0], map((tuple_1) => tuple_1[1], tupledArg[1])], List_groupBy((tuple) => tuple[0], collect((p) => List_distinct(zip(map(ProcessOutput__get_Name, value(p.Outputs)), map(ProcessInput__get_Name, value(p.Inputs))), {
96
+ Equals: equalArrays,
97
+ GetHashCode: arrayHash
98
+ }), processSequence), {
99
+ Equals: (x_1, y_1) => x_1 === y_1,
100
+ GetHashCode: stringHash
101
+ })), {
102
+ Compare: comparePrimitives
103
+ });
104
+ const loop = (lastState_mut, state_mut) => {
105
+ loop:
106
+ while (true) {
107
+ const lastState = lastState_mut, state = state_mut;
108
+ if (equals(lastState, state)) {
109
+ return state;
110
+ } else {
111
+ lastState_mut = state;
112
+ state_mut = collect((s) => defaultArg(FSharpMap__TryFind(mappings, s), singleton(s)), state);
113
+ continue loop;
114
+ }
115
+ break;
116
+ }
117
+ };
118
+ return loop(empty(), singleton(sample));
119
+ }
120
+ function getFinalOutputsOf(processSequence, sample) {
121
+ const mappings = ofList$1(map((tupledArg) => [tupledArg[0], map((tuple_1) => tuple_1[1], tupledArg[1])], List_groupBy((tuple) => tuple[0], collect((p) => List_distinct(zip(map(ProcessInput__get_Name, value(p.Inputs)), map(ProcessOutput__get_Name, value(p.Outputs))), {
122
+ Equals: equalArrays,
123
+ GetHashCode: arrayHash
124
+ }), processSequence), {
125
+ Equals: (x_1, y_1) => x_1 === y_1,
126
+ GetHashCode: stringHash
127
+ })), {
128
+ Compare: comparePrimitives
129
+ });
130
+ const loop = (lastState_mut, state_mut) => {
131
+ loop:
132
+ while (true) {
133
+ const lastState = lastState_mut, state = state_mut;
134
+ if (equals(lastState, state)) {
135
+ return state;
136
+ } else {
137
+ lastState_mut = state;
138
+ state_mut = collect((s) => defaultArg(FSharpMap__TryFind(mappings, s), singleton(s)), state);
139
+ continue loop;
140
+ }
141
+ break;
142
+ }
143
+ };
144
+ return loop(empty(), singleton(sample));
145
+ }
25
146
  function getUnits(processSequence) {
26
147
  return List_distinct(collect(Process_getUnits_763471FF, processSequence), {
27
148
  Equals: equals,
@@ -53,4 +174,4 @@ function getMaterials(processSequence) {
53
174
  });
54
175
  }
55
176
 
56
- export { getCharacteristics, getData, getFactors, getMaterials, getProtocols, getSamples, getSources, getUnits };
177
+ export { filterByProtocolBy, filterByProtocolName, getCharacteristics, getData, getFactors, getFinalOutputs, getFinalOutputsOf, getInputsWithCharacteristicBy, getInputsWithParameterBy, getMaterials, getOutputsWithCharacteristicBy, getOutputsWithFactorBy, getOutputsWithParameterBy, getParameters, getProtocolNames, getProtocols, getRootInputOf, getRootInputs, getSamples, getSources, getUnits };