@nfdi4plants/arctrl 1.2.0 → 2.0.0-alpha.2

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 (366) hide show
  1. package/ARC.js +53 -35
  2. package/{Contracts/Contracts.ARCtrl.js → Contract/ARC.js} +4 -2
  3. package/Contract/ArcAssay.js +102 -0
  4. package/Contract/ArcInvestigation.js +78 -0
  5. package/Contract/ArcStudy.js +102 -0
  6. package/Contract/Contract.js +3 -3
  7. package/{Contracts/Contracts.Git.js → Contract/Git.js} +5 -5
  8. package/{ISA/ISA/ArcTypes → Core}/ArcTypes.js +307 -295
  9. package/Core/Comment.js +97 -0
  10. package/{ISA/ISA/JsonTypes → Core}/CommentList.js +12 -18
  11. package/Core/Conversion.js +1056 -0
  12. package/Core/Helper/Collections.js +318 -0
  13. package/Core/Helper/HashCodes.js +39 -0
  14. package/{ISA/ISA → Core/Helper}/Identifier.js +67 -2
  15. package/{ISA/ISA → Core/Helper}/Regex.js +3 -3
  16. package/{SemVer.js → Core/Helper/SemVer.js} +8 -8
  17. package/{ISA/ISA/ArcTypes → Core}/IdentifierSetters.js +1 -1
  18. package/Core/OntologyAnnotation.js +186 -0
  19. package/Core/OntologySourceReference.js +92 -0
  20. package/Core/Person.js +194 -0
  21. package/Core/Process/ColumnIndex.js +248 -0
  22. package/Core/Process/Component.js +188 -0
  23. package/{ISA/ISA/JsonTypes → Core/Process}/Data.js +8 -8
  24. package/{ISA/ISA/JsonTypes → Core/Process}/DataFile.js +3 -3
  25. package/Core/Process/Factor.js +109 -0
  26. package/{ISA/ISA/JsonTypes → Core/Process}/FactorValue.js +32 -13
  27. package/{ISA/ISA/JsonTypes → Core/Process}/Material.js +9 -9
  28. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttribute.js +17 -17
  29. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttributeValue.js +35 -16
  30. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialType.js +3 -3
  31. package/{ISA/ISA/JsonTypes → Core/Process}/Process.js +46 -79
  32. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessInput.js +42 -42
  33. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessOutput.js +36 -36
  34. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessParameterValue.js +26 -7
  35. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessSequence.js +21 -25
  36. package/{ISA/ISA/JsonTypes → Core/Process}/Protocol.js +26 -57
  37. package/{ISA/ISA/JsonTypes → Core/Process}/ProtocolParameter.js +10 -10
  38. package/{ISA/ISA/JsonTypes → Core/Process}/Sample.js +12 -12
  39. package/{ISA/ISA/JsonTypes → Core/Process}/Source.js +9 -9
  40. package/{ISA/ISA/JsonTypes → Core/Process}/Value.js +13 -13
  41. package/Core/Publication.js +116 -0
  42. package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +43 -149
  43. package/Core/Table/ArcTableAux.js +532 -0
  44. package/{ISA/ISA/ArcTypes → Core/Table}/ArcTables.js +20 -32
  45. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeCell.js +19 -76
  46. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeColumn.js +6 -6
  47. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeHeader.js +14 -34
  48. package/{Templates → Core}/Template.js +16 -17
  49. package/Core/Templates.js +84 -0
  50. package/FileSystem/Commit.js +2 -2
  51. package/FileSystem/FileSystem.js +4 -4
  52. package/FileSystem/FileSystemTree.js +46 -8
  53. package/FileSystem/Path.js +10 -2
  54. package/Json/ARC.js +25 -0
  55. package/Json/Assay.js +202 -0
  56. package/Json/Comment.js +130 -0
  57. package/Json/ConverterOptions.js +18 -0
  58. package/Json/Decode.js +128 -0
  59. package/Json/Encode.js +45 -0
  60. package/Json/Investigation.js +220 -0
  61. package/Json/OntologyAnnotation.js +169 -0
  62. package/Json/OntologySourceReference.js +122 -0
  63. package/Json/Person.js +250 -0
  64. package/Json/Process/AssayMaterials.js +22 -0
  65. package/Json/Process/Component.js +79 -0
  66. package/Json/Process/Data.js +102 -0
  67. package/Json/Process/DataFile.js +81 -0
  68. package/Json/Process/Factor.js +48 -0
  69. package/Json/Process/FactorValue.js +53 -0
  70. package/Json/Process/Material.js +107 -0
  71. package/Json/Process/MaterialAttribute.js +45 -0
  72. package/Json/Process/MaterialAttributeValue.js +70 -0
  73. package/Json/Process/MaterialType.js +60 -0
  74. package/Json/Process/Process.js +107 -0
  75. package/Json/Process/ProcessInput.js +59 -0
  76. package/Json/Process/ProcessOutput.js +71 -0
  77. package/Json/Process/ProcessParameterValue.js +69 -0
  78. package/Json/Process/ProcessSequence.js +53 -0
  79. package/Json/Process/PropertyValue.js +82 -0
  80. package/Json/Process/Protocol.js +147 -0
  81. package/Json/Process/ProtocolParameter.js +45 -0
  82. package/Json/Process/Sample.js +134 -0
  83. package/Json/Process/Source.js +101 -0
  84. package/Json/Process/StudyMaterials.js +24 -0
  85. package/Json/Process/Value.js +42 -0
  86. package/Json/Publication.js +142 -0
  87. package/Json/StringTable.js +44 -0
  88. package/Json/Study.js +306 -0
  89. package/{ISA/ISA.Json/ArcTypes → Json/Table}/ArcTable.js +53 -49
  90. package/Json/Table/CellTable.js +40 -0
  91. package/Json/Table/CompositeCell.js +65 -0
  92. package/{ISA/ISA.Json/ArcTypes → Json/Table}/CompositeHeader.js +22 -19
  93. package/Json/Table/Compression.js +38 -0
  94. package/Json/Table/IOType.js +37 -0
  95. package/Json/Table/OATable.js +40 -0
  96. package/Json/Table/Templates.js +107 -0
  97. package/Json/context/rocrate/isa_assay_context.js +32 -0
  98. package/Json/context/rocrate/isa_comment_context.js +23 -0
  99. package/Json/context/rocrate/isa_component_context.js +24 -0
  100. package/Json/context/rocrate/isa_data_context.js +25 -0
  101. package/Json/context/rocrate/isa_factor_context.js +25 -0
  102. package/Json/context/rocrate/isa_factor_value_context.js +23 -0
  103. package/{ISA/ISA.Json → Json}/context/rocrate/isa_investigation_context.js +5 -5
  104. package/{ISA/ISA.Json → Json}/context/rocrate/isa_material_attribute_context.js +4 -4
  105. package/Json/context/rocrate/isa_material_attribute_value_context.js +23 -0
  106. package/Json/context/rocrate/isa_material_context.js +26 -0
  107. package/Json/context/rocrate/isa_ontology_annotation_context.js +23 -0
  108. package/Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
  109. package/Json/context/rocrate/isa_organization_context.js +22 -0
  110. package/Json/context/rocrate/isa_person_context.js +33 -0
  111. package/Json/context/rocrate/isa_process_context.js +29 -0
  112. package/Json/context/rocrate/isa_process_parameter_value_context.js +23 -0
  113. package/Json/context/rocrate/isa_protocol_context.js +28 -0
  114. package/{ISA/ISA.Json → Json}/context/rocrate/isa_protocol_parameter_context.js +4 -4
  115. package/Json/context/rocrate/isa_publication_context.js +25 -0
  116. package/Json/context/rocrate/isa_sample_context.js +24 -0
  117. package/Json/context/rocrate/isa_source_context.js +25 -0
  118. package/Json/context/rocrate/isa_study_context.js +40 -0
  119. package/Json/context/rocrate/property_value_context.js +4 -0
  120. package/Json/context/rocrate/rocrate_context.js +23 -0
  121. package/Json.js +193 -0
  122. package/README.md +33 -12
  123. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
  124. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
  125. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeColumn.js +10 -10
  126. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeHeader.js +10 -10
  127. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcAssay.js +11 -11
  128. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcInvestigation.js +34 -37
  129. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcStudy.js +12 -12
  130. package/{ISA/ISA.Spreadsheet → Spreadsheet}/CollectionAux.js +7 -7
  131. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
  132. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Comment.js +5 -5
  133. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Contacts.js +28 -30
  134. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Conversions.js +22 -16
  135. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/DesignDescriptors.js +1 -1
  136. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Factors.js +23 -22
  137. package/Spreadsheet/Metadata/OntologyAnnotation.js +64 -0
  138. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/OntologySourceReference.js +22 -24
  139. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Protocols.js +17 -17
  140. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Publication.js +29 -31
  141. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/SparseTable.js +23 -22
  142. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Study.js +38 -40
  143. package/{Templates/Template.Spreadsheet.js → Spreadsheet/Template.js} +31 -31
  144. package/Template.Web.js +27 -0
  145. package/WebRequest/WebRequest.Node.js +2 -2
  146. package/WebRequest/WebRequest.js +2 -2
  147. package/Xlsx.js +85 -0
  148. package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
  149. package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
  150. package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
  151. package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
  152. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js +14 -14
  153. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
  154. package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
  155. package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
  156. package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
  157. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
  158. package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
  159. package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
  160. package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
  161. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
  162. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
  163. package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
  164. package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
  165. package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
  166. package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
  167. package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
  168. package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
  169. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
  170. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +3 -3
  171. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
  172. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
  173. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
  174. package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
  175. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
  176. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
  177. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
  178. package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +19 -19
  179. package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +5 -5
  180. package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +2 -2
  181. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +1 -1
  182. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +2 -2
  183. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
  184. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/CHANGELOG.md +18 -0
  185. package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.d.ts +9 -0
  186. package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.js +21 -0
  187. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Date.js +337 -40
  188. package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
  189. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
  190. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
  191. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.js +2 -13
  192. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/package.json +1 -1
  193. package/fable_modules/project_cracked.json +1 -1
  194. package/index.js +14 -12
  195. package/package.json +1 -1
  196. package/Contracts/Contracts.ArcTypes.js +0 -268
  197. package/FileSystemTree.js +0 -51
  198. package/ISA/ISA/ArcTypes/ArcTableAux.js +0 -1155
  199. package/ISA/ISA/ArcTypes/CompositeRow.js +0 -111
  200. package/ISA/ISA/Builder/Types.js +0 -243
  201. package/ISA/ISA/Fable.js +0 -123
  202. package/ISA/ISA/Helper.js +0 -505
  203. package/ISA/ISA/JsonTypes/Assay.js +0 -620
  204. package/ISA/ISA/JsonTypes/AssayMaterials.js +0 -39
  205. package/ISA/ISA/JsonTypes/ColumnIndex.js +0 -246
  206. package/ISA/ISA/JsonTypes/Comment.js +0 -58
  207. package/ISA/ISA/JsonTypes/Component.js +0 -165
  208. package/ISA/ISA/JsonTypes/Factor.js +0 -128
  209. package/ISA/ISA/JsonTypes/Investigation.js +0 -204
  210. package/ISA/ISA/JsonTypes/OntologyAnnotation.js +0 -196
  211. package/ISA/ISA/JsonTypes/OntologySourceReference.js +0 -85
  212. package/ISA/ISA/JsonTypes/Person.js +0 -152
  213. package/ISA/ISA/JsonTypes/Publication.js +0 -105
  214. package/ISA/ISA/JsonTypes/Study.js +0 -942
  215. package/ISA/ISA/JsonTypes/StudyMaterials.js +0 -45
  216. package/ISA/ISA/UIHelper.js +0 -19
  217. package/ISA/ISA.Json/ArcTypes/ArcAssay.js +0 -303
  218. package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -122
  219. package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -203
  220. package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -40
  221. package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -62
  222. package/ISA/ISA.Json/ArcTypes/IOType.js +0 -33
  223. package/ISA/ISA.Json/ArcTypes/OATable.js +0 -42
  224. package/ISA/ISA.Json/Assay.js +0 -129
  225. package/ISA/ISA.Json/Comment.js +0 -80
  226. package/ISA/ISA.Json/ConverterOptions.js +0 -51
  227. package/ISA/ISA.Json/Data.js +0 -253
  228. package/ISA/ISA.Json/Decode.js +0 -61
  229. package/ISA/ISA.Json/Factor.js +0 -194
  230. package/ISA/ISA.Json/GEncode.js +0 -40
  231. package/ISA/ISA.Json/Investigation.js +0 -89
  232. package/ISA/ISA.Json/Material.js +0 -232
  233. package/ISA/ISA.Json/Ontology.js +0 -200
  234. package/ISA/ISA.Json/Person.js +0 -186
  235. package/ISA/ISA.Json/Process.js +0 -305
  236. package/ISA/ISA.Json/Protocol.js +0 -281
  237. package/ISA/ISA.Json/Publication.js +0 -86
  238. package/ISA/ISA.Json/StringTable.js +0 -44
  239. package/ISA/ISA.Json/Study.js +0 -186
  240. package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +0 -34
  241. package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +0 -23
  242. package/ISA/ISA.Json/context/rocrate/isa_component_context.js +0 -24
  243. package/ISA/ISA.Json/context/rocrate/isa_data_context.js +0 -25
  244. package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +0 -25
  245. package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +0 -25
  246. package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +0 -25
  247. package/ISA/ISA.Json/context/rocrate/isa_material_context.js +0 -26
  248. package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +0 -25
  249. package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +0 -26
  250. package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +0 -22
  251. package/ISA/ISA.Json/context/rocrate/isa_person_context.js +0 -31
  252. package/ISA/ISA.Json/context/rocrate/isa_process_context.js +0 -31
  253. package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +0 -25
  254. package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +0 -30
  255. package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +0 -27
  256. package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +0 -26
  257. package/ISA/ISA.Json/context/rocrate/isa_source_context.js +0 -25
  258. package/ISA/ISA.Json/context/rocrate/isa_study_context.js +0 -42
  259. package/ISA/ISA.Json/context/rocrate/rocrate_context.js +0 -25
  260. package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
  261. package/Path.js +0 -10
  262. package/Templates/Template.Json.js +0 -90
  263. package/Templates/Template.Web.js +0 -27
  264. package/Templates/Templates.js +0 -82
  265. package/fable_modules/fable-library-js.4.13.0/MapUtil.d.ts +0 -10
  266. /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
  267. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.d.ts +0 -0
  268. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.js +0 -0
  269. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
  270. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.js +0 -0
  271. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
  272. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
  273. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
  274. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
  275. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
  276. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
  277. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
  278. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
  279. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.js +0 -0
  280. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -0
  281. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.js +0 -0
  282. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
  283. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
  284. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
  285. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
  286. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
  287. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
  288. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
  289. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
  290. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.js +0 -0
  291. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
  292. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
  293. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
  294. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.js +0 -0
  295. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
  296. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
  297. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.d.ts +0 -0
  298. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.js +0 -0
  299. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
  300. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
  301. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
  302. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.js +0 -0
  303. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
  304. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.js +0 -0
  305. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
  306. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.js +0 -0
  307. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
  308. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.js +0 -0
  309. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
  310. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.js +0 -0
  311. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
  312. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
  313. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
  314. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.js +0 -0
  315. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
  316. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.js +0 -0
  317. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
  318. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.js +0 -0
  319. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
  320. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.js +0 -0
  321. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
  322. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
  323. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
  324. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.js +0 -0
  325. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
  326. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.js +0 -0
  327. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/README.md +0 -0
  328. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
  329. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.js +0 -0
  330. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
  331. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.js +0 -0
  332. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
  333. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
  334. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
  335. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
  336. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.d.ts +0 -0
  337. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.js +0 -0
  338. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
  339. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.js +0 -0
  340. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
  341. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
  342. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
  343. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.js +0 -0
  344. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.d.ts +0 -0
  345. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.js +0 -0
  346. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +0 -0
  347. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +0 -0
  348. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.d.ts +0 -0
  349. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.js +0 -0
  350. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
  351. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
  352. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
  353. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
  354. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
  355. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
  356. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
  357. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.js +0 -0
  358. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
  359. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.js +0 -0
  360. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
  361. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
  362. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
  363. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.js +0 -0
  364. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/big.d.ts +0 -0
  365. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
  366. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
@@ -0,0 +1,318 @@
1
+ import { disposeSafe, getEnumerator, defaultOf, structuralHash, equals } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
2
+ import { value as value_1, some } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
3
+ import { empty, singleton, append, head, tail, isEmpty } from "../../fable_modules/fable-library-js.4.16.0/List.js";
4
+ import { Dictionary } from "../../fable_modules/fable-library-js.4.16.0/MutableMap.js";
5
+ import { iterate } from "../../fable_modules/fable-library-js.4.16.0/Seq.js";
6
+ import { tryGetValue, addToDict } from "../../fable_modules/fable-library-js.4.16.0/MapUtil.js";
7
+ import { FSharpRef } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
8
+ import { contains } from "../../fable_modules/fable-library-js.4.16.0/Array.js";
9
+
10
+ /**
11
+ * If the value matches the default, a None is returned, else a Some is returned
12
+ */
13
+ export function Option_fromValueWithDefault(d, v) {
14
+ if (equals(d, v)) {
15
+ return void 0;
16
+ }
17
+ else {
18
+ return some(v);
19
+ }
20
+ }
21
+
22
+ /**
23
+ * Applies the function f on the value of the option if it exists, else applies it on the default value. If the result value matches the default, a None is returned
24
+ */
25
+ export function Option_mapDefault(d, f, o) {
26
+ return Option_fromValueWithDefault(d, (o == null) ? f(d) : f(value_1(o)));
27
+ }
28
+
29
+ /**
30
+ * Applies the function f on the value of the option if it exists, else returns the default value.
31
+ */
32
+ export function Option_mapOrDefault(d, f, o) {
33
+ if (o == null) {
34
+ return d;
35
+ }
36
+ else {
37
+ return some(f(value_1(o)));
38
+ }
39
+ }
40
+
41
+ export function List_tryPickAndRemove(f, lst) {
42
+ const loop = (newList_mut, remainingList_mut) => {
43
+ loop:
44
+ while (true) {
45
+ const newList = newList_mut, remainingList = remainingList_mut;
46
+ if (!isEmpty(remainingList)) {
47
+ const t = tail(remainingList);
48
+ const h = head(remainingList);
49
+ const matchValue = f(h);
50
+ if (matchValue == null) {
51
+ newList_mut = append(newList, singleton(h));
52
+ remainingList_mut = t;
53
+ continue loop;
54
+ }
55
+ else {
56
+ return [some(value_1(matchValue)), append(newList, t)];
57
+ }
58
+ }
59
+ else {
60
+ return [void 0, newList];
61
+ }
62
+ break;
63
+ }
64
+ };
65
+ return loop(empty(), lst);
66
+ }
67
+
68
+ export function Dictionary_ofSeq(s) {
69
+ const dict = new Dictionary([], {
70
+ Equals: equals,
71
+ GetHashCode: structuralHash,
72
+ });
73
+ iterate((tupledArg) => {
74
+ addToDict(dict, tupledArg[0], tupledArg[1]);
75
+ }, s);
76
+ return dict;
77
+ }
78
+
79
+ export function Dictionary_tryFind(key, dict) {
80
+ let patternInput;
81
+ let outArg = defaultOf();
82
+ patternInput = [tryGetValue(dict, key, new FSharpRef(() => outArg, (v) => {
83
+ outArg = v;
84
+ })), outArg];
85
+ if (patternInput[0]) {
86
+ return some(patternInput[1]);
87
+ }
88
+ else {
89
+ return void 0;
90
+ }
91
+ }
92
+
93
+ export function Dictionary_ofSeqWithMerge(merge, s) {
94
+ const dict = new Dictionary([], {
95
+ Equals: equals,
96
+ GetHashCode: structuralHash,
97
+ });
98
+ iterate((tupledArg) => {
99
+ const k = tupledArg[0];
100
+ const v = tupledArg[1];
101
+ const matchValue = Dictionary_tryFind(k, dict);
102
+ if (matchValue == null) {
103
+ addToDict(dict, k, v);
104
+ }
105
+ else {
106
+ const v$0027 = value_1(matchValue);
107
+ dict.delete(k);
108
+ addToDict(dict, k, merge(v$0027, v));
109
+ }
110
+ }, s);
111
+ return dict;
112
+ }
113
+
114
+ export function ResizeArray_map(f, a) {
115
+ const b = [];
116
+ let enumerator = getEnumerator(a);
117
+ try {
118
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
119
+ const i = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
120
+ void (b.push(f(i)));
121
+ }
122
+ }
123
+ finally {
124
+ disposeSafe(enumerator);
125
+ }
126
+ return b;
127
+ }
128
+
129
+ export function ResizeArray_choose(f, a) {
130
+ const b = [];
131
+ let enumerator = getEnumerator(a);
132
+ try {
133
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
134
+ const matchValue = f(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]());
135
+ if (matchValue == null) {
136
+ }
137
+ else {
138
+ const x = value_1(matchValue);
139
+ void (b.push(x));
140
+ }
141
+ }
142
+ }
143
+ finally {
144
+ disposeSafe(enumerator);
145
+ }
146
+ return b;
147
+ }
148
+
149
+ export function ResizeArray_filter(f, a) {
150
+ const b = [];
151
+ let enumerator = getEnumerator(a);
152
+ try {
153
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
154
+ const i = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
155
+ if (f(i)) {
156
+ void (b.push(i));
157
+ }
158
+ }
159
+ }
160
+ finally {
161
+ disposeSafe(enumerator);
162
+ }
163
+ return b;
164
+ }
165
+
166
+ export function ResizeArray_fold(f, s, a) {
167
+ let state = s;
168
+ let enumerator = getEnumerator(a);
169
+ try {
170
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
171
+ const i = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
172
+ state = f(state, i);
173
+ }
174
+ }
175
+ finally {
176
+ disposeSafe(enumerator);
177
+ }
178
+ return state;
179
+ }
180
+
181
+ export function ResizeArray_foldBack(f, a, s) {
182
+ let state = s;
183
+ let enumerator = getEnumerator(a);
184
+ try {
185
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
186
+ const i = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
187
+ state = f(i, state);
188
+ }
189
+ }
190
+ finally {
191
+ disposeSafe(enumerator);
192
+ }
193
+ return state;
194
+ }
195
+
196
+ export function ResizeArray_iter(f, a) {
197
+ let enumerator = getEnumerator(a);
198
+ try {
199
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
200
+ f(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]());
201
+ }
202
+ }
203
+ finally {
204
+ disposeSafe(enumerator);
205
+ }
206
+ }
207
+
208
+ export function ResizeArray_reduce(f, a) {
209
+ switch (a.length) {
210
+ case 0:
211
+ throw new Error("ResizeArray.reduce: empty array");
212
+ case 1:
213
+ return a[0];
214
+ default: {
215
+ const a_5 = a;
216
+ let state = a_5[0];
217
+ for (let i = 1; i <= (a_5.length - 1); i++) {
218
+ state = f(state, a_5[i]);
219
+ }
220
+ return state;
221
+ }
222
+ }
223
+ }
224
+
225
+ export function ResizeArray_collect(f, a) {
226
+ const b = [];
227
+ let enumerator = getEnumerator(a);
228
+ try {
229
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
230
+ const enumerator_1 = getEnumerator(f(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]()));
231
+ try {
232
+ while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
233
+ const j = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
234
+ void (b.push(j));
235
+ }
236
+ }
237
+ finally {
238
+ disposeSafe(enumerator_1);
239
+ }
240
+ }
241
+ }
242
+ finally {
243
+ disposeSafe(enumerator);
244
+ }
245
+ return b;
246
+ }
247
+
248
+ export function ResizeArray_distinct(a) {
249
+ const b = [];
250
+ let enumerator = getEnumerator(a);
251
+ try {
252
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
253
+ const i = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
254
+ if (!contains(i, b, {
255
+ Equals: equals,
256
+ GetHashCode: structuralHash,
257
+ })) {
258
+ void (b.push(i));
259
+ }
260
+ }
261
+ }
262
+ finally {
263
+ disposeSafe(enumerator);
264
+ }
265
+ return b;
266
+ }
267
+
268
+ export function ResizeArray_isEmpty(a) {
269
+ return a.length === 0;
270
+ }
271
+
272
+ /**
273
+ * Immutable append
274
+ */
275
+ export function ResizeArray_append(a, b) {
276
+ const c = [];
277
+ let enumerator = getEnumerator(a);
278
+ try {
279
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
280
+ const i = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
281
+ void (c.push(i));
282
+ }
283
+ }
284
+ finally {
285
+ disposeSafe(enumerator);
286
+ }
287
+ let enumerator_1 = getEnumerator(b);
288
+ try {
289
+ while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
290
+ const i_1 = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
291
+ void (c.push(i_1));
292
+ }
293
+ }
294
+ finally {
295
+ disposeSafe(enumerator_1);
296
+ }
297
+ return c;
298
+ }
299
+
300
+ /**
301
+ * append a single element
302
+ */
303
+ export function ResizeArray_appendSingleton(b, a) {
304
+ const c = [];
305
+ let enumerator = getEnumerator(a);
306
+ try {
307
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
308
+ const i = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
309
+ void (c.push(i));
310
+ }
311
+ }
312
+ finally {
313
+ disposeSafe(enumerator);
314
+ }
315
+ void (c.push(b));
316
+ return c;
317
+ }
318
+
@@ -0,0 +1,39 @@
1
+ import { second, minute, hour, day, month, year } from "../../fable_modules/fable-library-js.4.16.0/Date.js";
2
+ import { numberHash, identityHash } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
3
+ import { value as value_1 } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
4
+ import { fold } from "../../fable_modules/fable-library-js.4.16.0/Array.js";
5
+ import { fold as fold_1 } from "../../fable_modules/fable-library-js.4.16.0/Seq.js";
6
+
7
+ export function mergeHashes(hash1, hash2) {
8
+ return ((-1640531527 + hash2) + (hash1 << 6)) + (hash1 >> 2);
9
+ }
10
+
11
+ export function hashDateTime(dt) {
12
+ let acc = 0;
13
+ acc = (mergeHashes(acc, year(dt)) | 0);
14
+ acc = (mergeHashes(acc, month(dt)) | 0);
15
+ acc = (mergeHashes(acc, day(dt)) | 0);
16
+ acc = (mergeHashes(acc, hour(dt)) | 0);
17
+ acc = (mergeHashes(acc, minute(dt)) | 0);
18
+ acc = (mergeHashes(acc, second(dt)) | 0);
19
+ return acc | 0;
20
+ }
21
+
22
+ export function hash(obj) {
23
+ let copyOfStruct = obj;
24
+ return identityHash(copyOfStruct) | 0;
25
+ }
26
+
27
+ export function boxHashOption(a) {
28
+ let copyOfStruct, copyOfStruct_1;
29
+ return (a != null) ? ((copyOfStruct = value_1(a), identityHash(copyOfStruct))) : ((copyOfStruct_1 = 0, numberHash(copyOfStruct_1)));
30
+ }
31
+
32
+ export function boxHashArray(a) {
33
+ return fold((acc, o) => mergeHashes(acc, hash(o)), 0, a);
34
+ }
35
+
36
+ export function boxHashSeq(a) {
37
+ return fold_1((acc, o) => mergeHashes(acc, hash(o)), 0, a);
38
+ }
39
+
@@ -1,9 +1,18 @@
1
1
  import { ActivePatterns_$007CRegex$007C_$007C } from "./Regex.js";
2
- import { newGuid } from "../../fable_modules/fable-library-js.4.13.0/Guid.js";
2
+ import { newGuid } from "../../fable_modules/fable-library-js.4.16.0/Guid.js";
3
3
  import { combineMany } from "../../FileSystem/Path.js";
4
4
 
5
- export function checkValidCharacters(identifier) {
5
+ export function tryCheckValidCharacters(identifier) {
6
6
  if (ActivePatterns_$007CRegex$007C_$007C("^[a-zA-Z0-9_\\- ]+$", identifier) != null) {
7
+ return true;
8
+ }
9
+ else {
10
+ return false;
11
+ }
12
+ }
13
+
14
+ export function checkValidCharacters(identifier) {
15
+ if (tryCheckValidCharacters(identifier)) {
7
16
  }
8
17
  else {
9
18
  throw new Error(`New identifier "${identifier}"contains forbidden characters! Allowed characters are: letters, digits, underscore (_), dash (-) and whitespace ( ).`);
@@ -44,6 +53,22 @@ export function Assay_identifierFromFileName(fileName) {
44
53
  }
45
54
  }
46
55
 
56
+ /**
57
+ * On read-in the FileName can be any combination of "assays" (assay folder name), assayIdentifier and "isa.assay.xlsx" (the actual file name).
58
+ *
59
+ * This functions extracts assayIdentifier from any of these combinations and returns it.
60
+ */
61
+ export function Assay_tryIdentifierFromFileName(fileName) {
62
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("^(assays(\\/|\\\\))?(?<identifier>[a-zA-Z0-9_\\- ]+)((\\/|\\\\)isa.assay.xlsx)?$", fileName);
63
+ if (activePatternResult != null) {
64
+ const m = activePatternResult;
65
+ return (m.groups && m.groups.identifier) || "";
66
+ }
67
+ else {
68
+ return void 0;
69
+ }
70
+ }
71
+
47
72
  /**
48
73
  * On writing a xlsx file we unify our output to a relative path to ARC root. So: `assays/assayIdentifier/isa.assay.xlsx`.
49
74
  */
@@ -52,6 +77,18 @@ export function Assay_fileNameFromIdentifier(identifier) {
52
77
  return combineMany(["assays", identifier, "isa.assay.xlsx"]);
53
78
  }
54
79
 
80
+ /**
81
+ * On writing a xlsx file we unify our output to a relative path to ARC root. So: `assays/assayIdentifier/isa.assay.xlsx`.
82
+ */
83
+ export function Assay_tryFileNameFromIdentifier(identifier) {
84
+ if (tryCheckValidCharacters(identifier)) {
85
+ return combineMany(["assays", identifier, "isa.assay.xlsx"]);
86
+ }
87
+ else {
88
+ return void 0;
89
+ }
90
+ }
91
+
55
92
  /**
56
93
  * On read-in the FileName can be any combination of "studies" (study folder name), studyIdentifier and "isa.study.xlsx" (the actual file name).
57
94
  *
@@ -68,6 +105,22 @@ export function Study_identifierFromFileName(fileName) {
68
105
  }
69
106
  }
70
107
 
108
+ /**
109
+ * On read-in the FileName can be any combination of "studies" (study folder name), studyIdentifier and "isa.study.xlsx" (the actual file name).
110
+ *
111
+ * This functions extracts studyIdentifier from any of these combinations and returns it.
112
+ */
113
+ export function Study_tryIdentifierFromFileName(fileName) {
114
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("^(studies(\\/|\\\\))?(?<identifier>[a-zA-Z0-9_\\- ]+)((\\/|\\\\)isa.study.xlsx)?$", fileName);
115
+ if (activePatternResult != null) {
116
+ const m = activePatternResult;
117
+ return (m.groups && m.groups.identifier) || "";
118
+ }
119
+ else {
120
+ return void 0;
121
+ }
122
+ }
123
+
71
124
  /**
72
125
  * On writing a xlsx file we unify our output to a relative path to ARC root. So: `studies/studyIdentifier/isa.study.xlsx`.
73
126
  */
@@ -76,3 +129,15 @@ export function Study_fileNameFromIdentifier(identifier) {
76
129
  return combineMany(["studies", identifier, "isa.study.xlsx"]);
77
130
  }
78
131
 
132
+ /**
133
+ * On writing a xlsx file we unify our output to a relative path to ARC root. So: `studies/studyIdentifier/isa.study.xlsx`.
134
+ */
135
+ export function Study_tryFileNameFromIdentifier(identifier) {
136
+ if (tryCheckValidCharacters(identifier)) {
137
+ return combineMany(["studies", identifier, "isa.study.xlsx"]);
138
+ }
139
+ else {
140
+ return void 0;
141
+ }
142
+ }
143
+
@@ -1,6 +1,6 @@
1
- import { create, match } from "../../fable_modules/fable-library-js.4.13.0/RegExp.js";
2
- import { parse } from "../../fable_modules/fable-library-js.4.13.0/Int32.js";
3
- import { map } from "../../fable_modules/fable-library-js.4.13.0/Option.js";
1
+ import { create, match } from "../../fable_modules/fable-library-js.4.16.0/RegExp.js";
2
+ import { parse } from "../../fable_modules/fable-library-js.4.16.0/Int32.js";
3
+ import { map } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
4
4
 
5
5
  export function Pattern_handleGroupPatterns(pattern) {
6
6
  return pattern;
@@ -1,10 +1,10 @@
1
- import { toString, Record } from "./fable_modules/fable-library-js.4.13.0/Types.js";
2
- import { record_type, option_type, string_type, int32_type } from "./fable_modules/fable-library-js.4.13.0/Reflection.js";
3
- import { ActivePatterns_$007CRegex$007C_$007C } from "./ISA/ISA/Regex.js";
4
- import { parse } from "./fable_modules/fable-library-js.4.13.0/Int32.js";
5
- import { value as value_3, unwrap } from "./fable_modules/fable-library-js.4.13.0/Option.js";
6
- import { StringBuilder__Append_Z721C83C5, StringBuilder_$ctor } from "./fable_modules/fable-library-js.4.13.0/System.Text.js";
7
- import { printf, toText } from "./fable_modules/fable-library-js.4.13.0/String.js";
1
+ import { toString, Record } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
2
+ import { record_type, option_type, string_type, int32_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
3
+ import { ActivePatterns_$007CRegex$007C_$007C } from "./Regex.js";
4
+ import { parse } from "../../fable_modules/fable-library-js.4.16.0/Int32.js";
5
+ import { value as value_3, unwrap } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
6
+ import { StringBuilder__Append_Z721C83C5, StringBuilder_$ctor } from "../../fable_modules/fable-library-js.4.16.0/System.Text.js";
7
+ import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
8
8
 
9
9
  export const SemVerAux_Pattern = "^(?<major>\\d+)(\\.(?<minor>\\d+))?(\\.(?<patch>\\d+))?(-(?<pre>[0-9A-Za-z-\\.]+))?(\\+(?<build>[0-9A-Za-z-\\.]+))?$";
10
10
 
@@ -20,7 +20,7 @@ export class SemVer extends Record {
20
20
  }
21
21
 
22
22
  export function SemVer_$reflection() {
23
- return record_type("ARCtrl.SemVer.SemVer", [], SemVer, () => [["Major", int32_type], ["Minor", int32_type], ["Patch", int32_type], ["PreRelease", option_type(string_type)], ["Metadata", option_type(string_type)]]);
23
+ return record_type("ARCtrl.Helper.SemVer.SemVer", [], SemVer, () => [["Major", int32_type], ["Minor", int32_type], ["Patch", int32_type], ["PreRelease", option_type(string_type)], ["Metadata", option_type(string_type)]]);
24
24
  }
25
25
 
26
26
  export function SemVer_make(major, minor, patch, pre, meta) {
@@ -1,4 +1,4 @@
1
- import { checkValidCharacters } from "../Identifier.js";
1
+ import { checkValidCharacters } from "./Helper/Identifier.js";
2
2
 
3
3
  export function setArcTableName(newName, table) {
4
4
  checkValidCharacters(newName);
@@ -0,0 +1,186 @@
1
+ import { value as value_4, defaultArg, unwrap } from "../fable_modules/fable-library-js.4.16.0/Option.js";
2
+ import { Pattern_TermAnnotationShortPattern, ActivePatterns_$007CRegex$007C_$007C, tryParseTermAnnotation } from "./Helper/Regex.js";
3
+ import { StringBuilder__Append_Z721C83C5, StringBuilder_$ctor } from "../fable_modules/fable-library-js.4.16.0/System.Text.js";
4
+ import { printf, toText, join } from "../fable_modules/fable-library-js.4.16.0/String.js";
5
+ import { toArray, empty, singleton, append, delay, toList } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
6
+ import { toString } from "../fable_modules/fable-library-js.4.16.0/Types.js";
7
+ import { hash, boxHashOption, boxHashArray } from "./Helper/HashCodes.js";
8
+ import { ResizeArray_map } from "./Helper/Collections.js";
9
+ import { class_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
10
+
11
+ export class OntologyAnnotation {
12
+ constructor(name, tsr, tan, comments) {
13
+ this._name = name;
14
+ this._termSourceREF = tsr;
15
+ this._termAccessionNumber = tan;
16
+ this._comments = defaultArg(comments, []);
17
+ }
18
+ get Name() {
19
+ const this$ = this;
20
+ return unwrap(this$._name);
21
+ }
22
+ set Name(name) {
23
+ const this$ = this;
24
+ this$._name = name;
25
+ }
26
+ get TermSourceREF() {
27
+ const this$ = this;
28
+ return unwrap(this$._termSourceREF);
29
+ }
30
+ set TermSourceREF(tsr) {
31
+ const this$ = this;
32
+ this$._termSourceREF = tsr;
33
+ }
34
+ get TermAccessionNumber() {
35
+ const this$ = this;
36
+ return unwrap(this$._termAccessionNumber);
37
+ }
38
+ set TermAccessionNumber(tan) {
39
+ const this$ = this;
40
+ this$._termAccessionNumber = tan;
41
+ }
42
+ get Comments() {
43
+ const this$ = this;
44
+ return this$._comments;
45
+ }
46
+ set Comments(comments) {
47
+ const this$ = this;
48
+ this$._comments = comments;
49
+ }
50
+ static make(name, tsr, tan, comments) {
51
+ return new OntologyAnnotation(unwrap(name), unwrap(tsr), unwrap(tan), comments);
52
+ }
53
+ static create(name, tsr, tan, comments) {
54
+ const comments_1 = defaultArg(comments, []);
55
+ return OntologyAnnotation.make(name, tsr, tan, comments_1);
56
+ }
57
+ get TANInfo() {
58
+ let matchValue;
59
+ const this$ = this;
60
+ return unwrap((matchValue = this$.TermAccessionNumber, (matchValue == null) ? void 0 : tryParseTermAnnotation(matchValue)));
61
+ }
62
+ get NameText() {
63
+ const this$ = this;
64
+ return defaultArg(this$.Name, "");
65
+ }
66
+ static createUriAnnotation(termSourceRef, localTAN) {
67
+ return `${"http://purl.obolibrary.org/obo/"}${termSourceRef}_${localTAN}`;
68
+ }
69
+ static fromTermAnnotation(tan) {
70
+ const r = value_4(tryParseTermAnnotation(tan));
71
+ const accession = (r.IDSpace + ":") + r.LocalID;
72
+ return OntologyAnnotation.create("", r.IDSpace, accession);
73
+ }
74
+ get TermAccessionShort() {
75
+ const this$ = this;
76
+ const matchValue = this$.TANInfo;
77
+ if (matchValue != null) {
78
+ const id = matchValue;
79
+ return `${id.IDSpace}:${id.LocalID}`;
80
+ }
81
+ else {
82
+ return "";
83
+ }
84
+ }
85
+ get TermAccessionOntobeeUrl() {
86
+ const this$ = this;
87
+ const matchValue = this$.TANInfo;
88
+ if (matchValue != null) {
89
+ const id = matchValue;
90
+ return OntologyAnnotation.createUriAnnotation(id.IDSpace, id.LocalID);
91
+ }
92
+ else {
93
+ return "";
94
+ }
95
+ }
96
+ get TermAccessionAndOntobeeUrlIfShort() {
97
+ const this$ = this;
98
+ const matchValue = this$.TermAccessionNumber;
99
+ if (matchValue != null) {
100
+ const tan = matchValue;
101
+ return (ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationShortPattern, tan) != null) ? this$.TermAccessionOntobeeUrl : tan;
102
+ }
103
+ else {
104
+ return "";
105
+ }
106
+ }
107
+ static toStringObject(oa, asOntobeePurlUrlIfShort) {
108
+ let url;
109
+ const asOntobeePurlUrlIfShort_1 = defaultArg(asOntobeePurlUrlIfShort, false);
110
+ const TermName = defaultArg(oa.Name, "");
111
+ const TermSourceREF = defaultArg(oa.TermSourceREF, "");
112
+ return {
113
+ TermAccessionNumber: asOntobeePurlUrlIfShort_1 ? ((url = oa.TermAccessionAndOntobeeUrlIfShort, (url === "") ? defaultArg(oa.TermAccessionNumber, "") : url)) : defaultArg(oa.TermAccessionNumber, ""),
114
+ TermName: TermName,
115
+ TermSourceREF: TermSourceREF,
116
+ };
117
+ }
118
+ toString() {
119
+ const this$ = this;
120
+ const sb = StringBuilder_$ctor();
121
+ StringBuilder__Append_Z721C83C5(sb, "{");
122
+ StringBuilder__Append_Z721C83C5(sb, join("; ", toList(delay(() => {
123
+ let arg;
124
+ return append((this$.Name != null) ? singleton((arg = value_4(this$.Name), toText(printf("Name = %A"))(arg))) : empty(), delay(() => {
125
+ let arg_1;
126
+ return append((this$.TermSourceREF != null) ? singleton((arg_1 = value_4(this$.TermSourceREF), toText(printf("TSR = %A"))(arg_1))) : empty(), delay(() => {
127
+ let arg_2;
128
+ return append((this$.TermAccessionNumber != null) ? singleton((arg_2 = value_4(this$.TermAccessionNumber), toText(printf("TAN = %A"))(arg_2))) : empty(), delay(() => {
129
+ let arg_3;
130
+ return (this$.Comments.length !== 0) ? singleton((arg_3 = this$.Comments, toText(printf("Comments = %A"))(arg_3))) : empty();
131
+ }));
132
+ }));
133
+ }));
134
+ }))));
135
+ StringBuilder__Append_Z721C83C5(sb, "}");
136
+ return toString(sb);
137
+ }
138
+ GetHashCode() {
139
+ const this$ = this;
140
+ return boxHashArray(toArray(delay(() => append(singleton(boxHashOption(this$.Name)), delay(() => {
141
+ let tsr_1, taninfo_1, tsr;
142
+ const matchValue = this$.TermSourceREF;
143
+ const matchValue_1 = this$.TANInfo;
144
+ if (matchValue != null) {
145
+ return (matchValue_1 == null) ? ((tsr_1 = matchValue, singleton(boxHashArray([tsr_1, defaultArg(this$.TermAccessionNumber, "")])))) : ((taninfo_1 = matchValue_1, (tsr = matchValue, singleton(boxHashArray([tsr, (taninfo_1.IDSpace + ":") + taninfo_1.LocalID])))));
146
+ }
147
+ else if (matchValue_1 == null) {
148
+ const tan_1 = defaultArg(this$.TermAccessionNumber, "");
149
+ return singleton(boxHashArray([defaultArg(this$.TermAccessionNumber, ""), tan_1]));
150
+ }
151
+ else {
152
+ const taninfo = matchValue_1;
153
+ return singleton(boxHashArray([taninfo.IDSpace, (taninfo.IDSpace + ":") + taninfo.LocalID]));
154
+ }
155
+ }))))) | 0;
156
+ }
157
+ Equals(obj) {
158
+ const this$ = this;
159
+ return hash(this$) === hash(obj);
160
+ }
161
+ Copy() {
162
+ const this$ = this;
163
+ const nextComments = ResizeArray_map((c) => c.Copy(), this$.Comments);
164
+ const name = this$.Name;
165
+ const tsr = this$.TermSourceREF;
166
+ const tan = this$.TermAccessionNumber;
167
+ return OntologyAnnotation.make(name, tsr, tan, nextComments);
168
+ }
169
+ Print() {
170
+ const this$ = this;
171
+ return toString(this$);
172
+ }
173
+ PrintCompact() {
174
+ const this$ = this;
175
+ return "OA " + this$.NameText;
176
+ }
177
+ }
178
+
179
+ export function OntologyAnnotation_$reflection() {
180
+ return class_type("ARCtrl.OntologyAnnotation", void 0, OntologyAnnotation);
181
+ }
182
+
183
+ export function OntologyAnnotation_$ctor_Z54349580(name, tsr, tan, comments) {
184
+ return new OntologyAnnotation(name, tsr, tan, comments);
185
+ }
186
+