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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. package/README.md +2 -0
  2. package/dist/ts/index.js +63 -0
  3. package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +354 -0
  4. package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +28 -0
  5. package/dist/ts/node_modules/@fable-org/fable-library-js/AsyncBuilder.js +186 -0
  6. package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +8 -0
  7. package/dist/ts/node_modules/@fable-org/fable-library-js/Boolean.js +24 -0
  8. package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +73 -0
  9. package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +31 -0
  10. package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +574 -0
  11. package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +59 -0
  12. package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +65 -0
  13. package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +30 -0
  14. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +5 -0
  15. package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +5 -0
  16. package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +48 -0
  17. package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +120 -0
  18. package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +680 -0
  19. package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +40 -0
  20. package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +655 -0
  21. package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +105 -0
  22. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +320 -0
  23. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +204 -0
  24. package/dist/ts/node_modules/@fable-org/fable-library-js/Native.js +10 -0
  25. package/dist/ts/node_modules/@fable-org/fable-library-js/Numeric.js +73 -0
  26. package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +65 -0
  27. package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +23 -0
  28. package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +111 -0
  29. package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +114 -0
  30. package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +36 -0
  31. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +846 -0
  32. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +65 -0
  33. package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +1160 -0
  34. package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +364 -0
  35. package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +40 -0
  36. package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +193 -0
  37. package/dist/ts/node_modules/@fable-org/fable-library-js/Unicode.13.0.0.js +6 -0
  38. package/dist/ts/node_modules/@fable-org/fable-library-js/Uri.js +160 -0
  39. package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +367 -0
  40. package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +825 -0
  41. package/dist/ts/ts/ARC.js +914 -0
  42. package/dist/ts/ts/Contract/ARC.js +52 -0
  43. package/dist/ts/ts/Contract/ArcAssay.js +80 -0
  44. package/dist/ts/ts/Contract/ArcInvestigation.js +57 -0
  45. package/dist/ts/ts/Contract/ArcRun.js +76 -0
  46. package/dist/ts/ts/Contract/ArcStudy.js +76 -0
  47. package/dist/ts/ts/Contract/ArcWorkflow.js +77 -0
  48. package/dist/ts/ts/Contract/Contract.js +45 -0
  49. package/dist/ts/ts/Contract/Datamap.js +221 -0
  50. package/dist/ts/ts/Contract/Git.js +57 -0
  51. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +57 -0
  52. package/dist/ts/ts/ContractIO/ContractIO.js +202 -0
  53. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -1
  54. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
  55. package/dist/ts/ts/ContractIO/FileSystemHelper.js +273 -0
  56. package/dist/ts/ts/Conversion.js +1247 -0
  57. package/dist/ts/ts/Core/ArcTypes.js +3393 -0
  58. package/dist/ts/ts/Core/Comment.js +91 -0
  59. package/dist/ts/ts/Core/CommentList.js +27 -0
  60. package/dist/ts/ts/Core/Conversion.js +923 -0
  61. package/dist/ts/ts/Core/Data.js +179 -0
  62. package/dist/ts/ts/Core/DataContext.js +108 -0
  63. package/dist/ts/ts/Core/DataFile.js +50 -0
  64. package/dist/ts/ts/Core/DataMap.js +53 -0
  65. package/dist/ts/ts/Core/Helper/Collections.js +323 -0
  66. package/dist/ts/ts/Core/Helper/HashCodes.js +35 -0
  67. package/dist/ts/ts/Core/Helper/Identifier.js +96 -0
  68. package/dist/ts/ts/Core/Helper/ORCID.js +34 -0
  69. package/dist/ts/ts/Core/Helper/Regex.js +296 -0
  70. package/dist/ts/ts/Core/Helper/SemVer.js +31 -0
  71. package/dist/ts/ts/Core/Helper/Url.js +32 -0
  72. package/dist/ts/ts/Core/IdentifierSetters.js +9 -0
  73. package/dist/ts/ts/Core/OntologyAnnotation.js +207 -0
  74. package/dist/ts/ts/Core/OntologySourceReference.js +84 -0
  75. package/dist/ts/ts/Core/Person.js +183 -0
  76. package/dist/ts/ts/Core/Process/ColumnIndex.js +73 -0
  77. package/dist/ts/ts/Core/Process/Component.js +121 -0
  78. package/dist/ts/ts/Core/Process/Factor.js +104 -0
  79. package/dist/ts/ts/Core/Process/FactorValue.js +68 -0
  80. package/dist/ts/ts/Core/Process/Material.js +49 -0
  81. package/dist/ts/ts/Core/Process/MaterialAttribute.js +30 -0
  82. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +68 -0
  83. package/dist/ts/ts/Core/Process/MaterialType.js +28 -0
  84. package/dist/ts/ts/Core/Process/Process.js +136 -0
  85. package/dist/ts/ts/Core/Process/ProcessInput.js +207 -0
  86. package/dist/ts/ts/Core/Process/ProcessOutput.js +178 -0
  87. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +135 -0
  88. package/dist/ts/ts/Core/Process/ProcessSequence.js +56 -0
  89. package/dist/ts/ts/Core/Process/Protocol.js +54 -0
  90. package/dist/ts/ts/Core/Process/ProtocolParameter.js +69 -0
  91. package/dist/ts/ts/Core/Process/Sample.js +44 -0
  92. package/dist/ts/ts/Core/Process/Source.js +38 -0
  93. package/dist/ts/ts/Core/Publication.js +108 -0
  94. package/dist/ts/ts/Core/Table/ArcTable.js +889 -0
  95. package/dist/ts/ts/Core/Table/ArcTableAux.js +993 -0
  96. package/dist/ts/ts/Core/Table/ArcTables.js +415 -0
  97. package/dist/ts/ts/Core/Table/CompositeCell.js +334 -0
  98. package/dist/ts/ts/Core/Table/CompositeColumn.js +52 -0
  99. package/dist/ts/ts/Core/Table/CompositeHeader.js +792 -0
  100. package/dist/ts/ts/Core/Template.js +180 -0
  101. package/dist/ts/ts/Core/Templates.js +75 -0
  102. package/dist/ts/ts/Core/URI.js +8 -0
  103. package/dist/ts/ts/Core/Value.js +194 -0
  104. package/dist/ts/ts/CrossAsync.js +20 -0
  105. package/dist/ts/ts/FileSystem/DefaultGitattributes.js +3 -0
  106. package/dist/ts/ts/FileSystem/DefaultGitignore.js +3 -0
  107. package/dist/ts/ts/FileSystem/FileSystem.js +48 -0
  108. package/dist/ts/ts/FileSystem/FileSystemTree.js +339 -0
  109. package/dist/ts/ts/FileSystem/Path.js +36 -0
  110. package/dist/ts/ts/Json/Assay.d.ts +1 -1
  111. package/dist/ts/ts/Json/Assay.js +221 -0
  112. package/dist/ts/ts/Json/Comment.d.ts +1 -1
  113. package/dist/ts/ts/Json/Comment.js +112 -0
  114. package/dist/ts/ts/Json/Data.d.ts +1 -1
  115. package/dist/ts/ts/Json/Data.js +138 -0
  116. package/dist/ts/ts/Json/DataFile.d.ts +1 -1
  117. package/dist/ts/ts/Json/DataFile.js +55 -0
  118. package/dist/ts/ts/Json/DataMap/DataContext.d.ts +1 -1
  119. package/dist/ts/ts/Json/DataMap/DataContext.js +39 -0
  120. package/dist/ts/ts/Json/DataMap/DataMap.d.ts +1 -1
  121. package/dist/ts/ts/Json/DataMap/DataMap.js +27 -0
  122. package/dist/ts/ts/Json/Decode.d.ts +2 -2
  123. package/dist/ts/ts/Json/Decode.js +209 -0
  124. package/dist/ts/ts/Json/Encode.d.ts +1 -1
  125. package/dist/ts/ts/Json/Encode.js +65 -0
  126. package/dist/ts/ts/Json/IDTable.d.ts +1 -1
  127. package/dist/ts/ts/Json/IDTable.js +28 -0
  128. package/dist/ts/ts/Json/Investigation.d.ts +1 -1
  129. package/dist/ts/ts/Json/Investigation.js +229 -0
  130. package/dist/ts/ts/Json/OntologyAnnotation.d.ts +1 -1
  131. package/dist/ts/ts/Json/OntologyAnnotation.js +194 -0
  132. package/dist/ts/ts/Json/OntologySourceReference.d.ts +1 -1
  133. package/dist/ts/ts/Json/OntologySourceReference.js +119 -0
  134. package/dist/ts/ts/Json/Person.d.ts +1 -1
  135. package/dist/ts/ts/Json/Person.js +316 -0
  136. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts +1 -1
  137. package/dist/ts/ts/Json/Process/AssayMaterials.js +21 -0
  138. package/dist/ts/ts/Json/Process/Component.d.ts +1 -1
  139. package/dist/ts/ts/Json/Process/Component.js +41 -0
  140. package/dist/ts/ts/Json/Process/Factor.d.ts +1 -1
  141. package/dist/ts/ts/Json/Process/Factor.js +53 -0
  142. package/dist/ts/ts/Json/Process/FactorValue.d.ts +1 -1
  143. package/dist/ts/ts/Json/Process/FactorValue.js +44 -0
  144. package/dist/ts/ts/Json/Process/Material.d.ts +1 -1
  145. package/dist/ts/ts/Json/Process/Material.js +112 -0
  146. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts +1 -1
  147. package/dist/ts/ts/Json/Process/MaterialAttribute.js +43 -0
  148. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts +1 -1
  149. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +44 -0
  150. package/dist/ts/ts/Json/Process/MaterialType.d.ts +1 -1
  151. package/dist/ts/ts/Json/Process/MaterialType.js +45 -0
  152. package/dist/ts/ts/Json/Process/Process.d.ts +1 -1
  153. package/dist/ts/ts/Json/Process/Process.js +103 -0
  154. package/dist/ts/ts/Json/Process/ProcessInput.d.ts +1 -1
  155. package/dist/ts/ts/Json/Process/ProcessInput.js +42 -0
  156. package/dist/ts/ts/Json/Process/ProcessOutput.d.ts +1 -1
  157. package/dist/ts/ts/Json/Process/ProcessOutput.js +35 -0
  158. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts +1 -1
  159. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +28 -0
  160. package/dist/ts/ts/Json/Process/Protocol.d.ts +1 -1
  161. package/dist/ts/ts/Json/Process/Protocol.js +166 -0
  162. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +1 -1
  163. package/dist/ts/ts/Json/Process/ProtocolParameter.js +43 -0
  164. package/dist/ts/ts/Json/Process/Sample.d.ts +1 -1
  165. package/dist/ts/ts/Json/Process/Sample.js +165 -0
  166. package/dist/ts/ts/Json/Process/Source.d.ts +1 -1
  167. package/dist/ts/ts/Json/Process/Source.js +133 -0
  168. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts +1 -1
  169. package/dist/ts/ts/Json/Process/StudyMaterials.js +23 -0
  170. package/dist/ts/ts/Json/Process/Value.d.ts +1 -1
  171. package/dist/ts/ts/Json/Process/Value.js +41 -0
  172. package/dist/ts/ts/Json/PropertyValue.d.ts +1 -1
  173. package/dist/ts/ts/Json/PropertyValue.js +280 -0
  174. package/dist/ts/ts/Json/Publication.d.ts +1 -1
  175. package/dist/ts/ts/Json/Publication.js +123 -0
  176. package/dist/ts/ts/Json/ROCrate/LDContext.d.ts +1 -1
  177. package/dist/ts/ts/Json/ROCrate/LDContext.js +115 -0
  178. package/dist/ts/ts/Json/ROCrate/LDGraph.d.ts +1 -1
  179. package/dist/ts/ts/Json/ROCrate/LDGraph.js +83 -0
  180. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -1
  181. package/dist/ts/ts/Json/ROCrate/LDNode.js +190 -0
  182. package/dist/ts/ts/Json/ROCrate/LDRef.d.ts +1 -1
  183. package/dist/ts/ts/Json/ROCrate/LDRef.js +24 -0
  184. package/dist/ts/ts/Json/ROCrate/LDValue.d.ts +1 -1
  185. package/dist/ts/ts/Json/ROCrate/LDValue.js +63 -0
  186. package/dist/ts/ts/Json/StringTable.d.ts +1 -1
  187. package/dist/ts/ts/Json/StringTable.js +66 -0
  188. package/dist/ts/ts/Json/Study.d.ts +1 -1
  189. package/dist/ts/ts/Json/Study.js +326 -0
  190. package/dist/ts/ts/Json/Table/ArcTable.d.ts +1 -1
  191. package/dist/ts/ts/Json/Table/ArcTable.js +210 -0
  192. package/dist/ts/ts/Json/Table/CellTable.d.ts +1 -1
  193. package/dist/ts/ts/Json/Table/CellTable.js +53 -0
  194. package/dist/ts/ts/Json/Table/CompositeCell.d.ts +1 -1
  195. package/dist/ts/ts/Json/Table/CompositeCell.js +106 -0
  196. package/dist/ts/ts/Json/Table/CompositeHeader.d.ts +1 -1
  197. package/dist/ts/ts/Json/Table/CompositeHeader.js +121 -0
  198. package/dist/ts/ts/Json/Table/IOType.d.ts +1 -1
  199. package/dist/ts/ts/Json/Table/IOType.js +15 -0
  200. package/dist/ts/ts/Json/Table/OATable.d.ts +1 -1
  201. package/dist/ts/ts/Json/Table/OATable.js +50 -0
  202. package/dist/ts/ts/Json/Table/Templates.d.ts +1 -1
  203. package/dist/ts/ts/Json/Table/Templates.js +15 -0
  204. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.d.ts +1 -1
  205. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +61 -0
  206. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.d.ts +1 -1
  207. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +29 -0
  208. package/dist/ts/ts/Json/context/rocrate/isa_data_context.d.ts +1 -1
  209. package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +41 -0
  210. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.d.ts +1 -1
  211. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +69 -0
  212. package/dist/ts/ts/Json/context/rocrate/isa_material_context.d.ts +1 -1
  213. package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +37 -0
  214. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.d.ts +1 -1
  215. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +37 -0
  216. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.d.ts +1 -1
  217. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +41 -0
  218. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.d.ts +1 -1
  219. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +25 -0
  220. package/dist/ts/ts/Json/context/rocrate/isa_person_context.d.ts +1 -1
  221. package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +86 -0
  222. package/dist/ts/ts/Json/context/rocrate/isa_process_context.d.ts +1 -1
  223. package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +57 -0
  224. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.d.ts +1 -1
  225. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +61 -0
  226. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.d.ts +1 -1
  227. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +45 -0
  228. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.d.ts +1 -1
  229. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +33 -0
  230. package/dist/ts/ts/Json/context/rocrate/isa_source_context.d.ts +1 -1
  231. package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +33 -0
  232. package/dist/ts/ts/Json/context/rocrate/isa_study_context.d.ts +1 -1
  233. package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +77 -0
  234. package/dist/ts/ts/Json/context/rocrate/property_value_context.d.ts +1 -1
  235. package/dist/ts/ts/Json/context/rocrate/property_value_context.js +61 -0
  236. package/dist/ts/ts/Json/context/rocrate/rocrate_context.d.ts +1 -1
  237. package/dist/ts/ts/Json.js +171 -0
  238. package/dist/ts/ts/JsonIO/Assay.js +77 -0
  239. package/dist/ts/ts/JsonIO/Investigation.js +77 -0
  240. package/dist/ts/ts/JsonIO/LDObject.js +77 -0
  241. package/dist/ts/ts/JsonIO/OntologyAnnotation.js +56 -0
  242. package/dist/ts/ts/JsonIO/Study.js +77 -0
  243. package/dist/ts/ts/JsonIO/Table/Compression.d.ts +1 -1
  244. package/dist/ts/ts/JsonIO/Table/Compression.js +39 -0
  245. package/dist/ts/ts/JsonIO/Table/Templates.d.ts +1 -1
  246. package/dist/ts/ts/JsonIO/Table/Templates.js +25 -0
  247. package/dist/ts/ts/ROCrate/Generic/Comment.js +103 -0
  248. package/dist/ts/ts/ROCrate/Generic/Dataset.js +624 -0
  249. package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +103 -0
  250. package/dist/ts/ts/ROCrate/Generic/File.js +184 -0
  251. package/dist/ts/ts/ROCrate/Generic/LabProcess.js +222 -0
  252. package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +257 -0
  253. package/dist/ts/ts/ROCrate/Generic/Organization.js +63 -0
  254. package/dist/ts/ts/ROCrate/Generic/Person.js +377 -0
  255. package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +143 -0
  256. package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +512 -0
  257. package/dist/ts/ts/ROCrate/Generic/Sample.js +131 -0
  258. package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +173 -0
  259. package/dist/ts/ts/ROCrate/Helper.js +7 -0
  260. package/dist/ts/ts/ROCrate/LDContext.js +288 -0
  261. package/dist/ts/ts/ROCrate/LDObject.js +855 -0
  262. package/dist/ts/ts/ROCrate/ROCrateContext.js +39 -0
  263. package/dist/ts/ts/ROCrateIO.d.ts +1 -1
  264. package/dist/ts/ts/ROCrateIO.js +58 -0
  265. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts +2 -2
  266. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  267. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +149 -0
  268. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +63 -0
  269. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts +2 -2
  270. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  271. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +108 -0
  272. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +410 -0
  273. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts +2 -2
  274. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  275. package/dist/ts/ts/Spreadsheet/ArcAssay.js +169 -0
  276. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts +2 -2
  277. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
  278. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +316 -0
  279. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts +2 -2
  280. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  281. package/dist/ts/ts/Spreadsheet/ArcRun.js +136 -0
  282. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts +2 -2
  283. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  284. package/dist/ts/ts/Spreadsheet/ArcStudy.js +92 -0
  285. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts +2 -2
  286. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  287. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +125 -0
  288. package/dist/ts/ts/Spreadsheet/CollectionAux.js +34 -0
  289. package/dist/ts/ts/Spreadsheet/DataMap.d.ts +1 -1
  290. package/dist/ts/ts/Spreadsheet/DataMap.d.ts.map +1 -1
  291. package/dist/ts/ts/Spreadsheet/DataMap.js +33 -0
  292. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts +2 -2
  293. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts.map +1 -1
  294. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +41 -0
  295. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts +1 -1
  296. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts.map +1 -1
  297. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +418 -0
  298. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts +3 -3
  299. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts.map +1 -1
  300. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +85 -0
  301. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +90 -0
  302. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +58 -0
  303. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +85 -0
  304. package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +133 -0
  305. package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +15 -0
  306. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +74 -0
  307. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +58 -0
  308. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +62 -0
  309. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +94 -0
  310. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +81 -0
  311. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +91 -0
  312. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts +3 -3
  313. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  314. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +193 -0
  315. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +238 -0
  316. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +105 -0
  317. package/dist/ts/ts/Template.Web.js +22 -0
  318. package/dist/ts/ts/ValidationPackages/ValidationPackage.js +53 -0
  319. package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +78 -0
  320. package/dist/ts/ts/WebRequest/WebRequest.Node.js +13 -0
  321. package/dist/ts/ts/WebRequest/WebRequest.js +19 -0
  322. package/dist/ts/ts/Xlsx.d.ts +1 -1
  323. package/dist/ts/ts/Xlsx.d.ts.map +1 -1
  324. package/dist/ts/ts/Xlsx.js +91 -0
  325. package/dist/ts/ts/Yaml/Encode.js +8 -0
  326. package/dist/ts/ts/Yaml/ValidationPackage.js +26 -0
  327. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +40 -0
  328. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +344 -0
  329. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +103 -0
  330. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +19 -0
  331. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +17 -0
  332. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +7 -0
  333. package/dist/ts/ts/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js +5 -0
  334. package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +18 -0
  335. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +44 -0
  336. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +5 -0
  337. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +142 -0
  338. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +76 -0
  339. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +359 -0
  340. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +344 -0
  341. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +154 -0
  342. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +116 -0
  343. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +126 -0
  344. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +135 -0
  345. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +422 -0
  346. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +5 -0
  347. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +25 -0
  348. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +28 -0
  349. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -0
  350. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +69 -0
  351. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +42 -0
  352. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +29 -0
  353. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +348 -0
  354. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +86 -0
  355. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +68 -0
  356. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +12 -0
  357. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +54 -0
  358. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +33 -0
  359. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +63 -0
  360. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +66 -0
  361. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +544 -0
  362. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +31 -0
  363. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +38 -0
  364. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +79 -0
  365. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js +57 -0
  366. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +235 -0
  367. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +16 -0
  368. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +45 -0
  369. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +89 -0
  370. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +480 -0
  371. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +11 -0
  372. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +212 -0
  373. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +164 -0
  374. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +136 -0
  375. package/package.json +10 -7
  376. package/dist/ts/__vite-browser-external-2447137e.js +0 -4
  377. package/dist/ts/__vite-browser-external-b3701507.cjs +0 -1
  378. package/dist/ts/arctrl.cjs.js +0 -5691
  379. package/dist/ts/arctrl.es.js +0 -35562
  380. package/dist/ts/arctrl.umd.js +0 -5691
@@ -0,0 +1,131 @@
1
+ import { unwrap, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { LDNode } from '../LDObject.js';
3
+ import { LDPropertyValue } from './PropertyValue.js';
4
+ import { clean } from '../Helper.js';
5
+ import { contains } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
6
+ import { stringHash } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
7
+
8
+ class LDSample {
9
+ constructor() {
10
+ }
11
+ static get schemaType() {
12
+ return "https://bioschemas.org/Sample";
13
+ }
14
+ static get name() {
15
+ return "http://schema.org/name";
16
+ }
17
+ static get additionalProperty() {
18
+ return "http://schema.org/additionalProperty";
19
+ }
20
+ static tryGetNameAsString(s, context) {
21
+ const matchValue = s.TryGetPropertyAsSingleton(LDSample.name, unwrap(context));
22
+ let matchResult, n;
23
+ if (matchValue != null) {
24
+ if (typeof value(matchValue) === "string") {
25
+ matchResult = 0;
26
+ n = value(matchValue);
27
+ } else {
28
+ matchResult = 1;
29
+ }
30
+ } else {
31
+ matchResult = 1;
32
+ }
33
+ switch (matchResult) {
34
+ case 0:
35
+ return n;
36
+ default:
37
+ return void 0;
38
+ }
39
+ }
40
+ static getNameAsString(s, context) {
41
+ const matchValue = s.TryGetPropertyAsSingleton(LDSample.name, unwrap(context));
42
+ let matchResult, n;
43
+ if (matchValue != null) {
44
+ if (typeof value(matchValue) === "string") {
45
+ matchResult = 0;
46
+ n = value(matchValue);
47
+ } else {
48
+ matchResult = 1;
49
+ }
50
+ } else {
51
+ matchResult = 1;
52
+ }
53
+ switch (matchResult) {
54
+ case 0:
55
+ return n;
56
+ default:
57
+ throw new Error(`Could not access property \`name\` of object with @id \`${s.Id}\``);
58
+ }
59
+ }
60
+ static setNameAsString(s, n) {
61
+ s.SetProperty(LDSample.name, n);
62
+ }
63
+ static getAdditionalProperties(s, graph, context) {
64
+ return s.GetPropertyNodes(LDSample.additionalProperty, (ldObject, context_1) => LDPropertyValue.validate(ldObject, unwrap(context_1)), unwrap(graph), unwrap(context));
65
+ }
66
+ static setAdditionalProperties(s, additionalProperties, context) {
67
+ return s.SetProperty(LDSample.additionalProperty, additionalProperties, unwrap(context));
68
+ }
69
+ static getCharacteristics(s, graph, context) {
70
+ return s.GetPropertyNodes(LDSample.additionalProperty, (ldObject, context_1) => LDPropertyValue.validateCharacteristicValue(ldObject, unwrap(context_1)), unwrap(graph), unwrap(context));
71
+ }
72
+ static getFactors(s, graph, context) {
73
+ return s.GetPropertyNodes(LDSample.additionalProperty, (ldObject, context_1) => LDPropertyValue.validateFactorValue(ldObject, unwrap(context_1)), unwrap(graph), unwrap(context));
74
+ }
75
+ static validate(s, context) {
76
+ return s.HasType(LDSample.schemaType, unwrap(context)) && s.HasProperty(LDSample.name, unwrap(context));
77
+ }
78
+ static genIDSample(name) {
79
+ return clean(`#Sample_${name}`);
80
+ }
81
+ static genIDSource(name) {
82
+ return clean(`#Source_${name}`);
83
+ }
84
+ static genIDMaterial(name) {
85
+ return clean(`#Material_${name}`);
86
+ }
87
+ static validateSample(s, context) {
88
+ return LDSample.validate(s, unwrap(context)) && contains("Sample", s.AdditionalType, {
89
+ Equals: (x, y) => x === y,
90
+ GetHashCode: stringHash
91
+ });
92
+ }
93
+ static validateSource(s, context) {
94
+ return LDSample.validate(s, unwrap(context)) && contains("Source", s.AdditionalType, {
95
+ Equals: (x, y) => x === y,
96
+ GetHashCode: stringHash
97
+ });
98
+ }
99
+ static validateMaterial(s, context) {
100
+ return LDSample.validate(s, unwrap(context)) && contains("Material", s.AdditionalType, {
101
+ Equals: (x, y) => x === y,
102
+ GetHashCode: stringHash
103
+ });
104
+ }
105
+ static create(id, name, additionalProperties, context) {
106
+ const s = new LDNode(id, [LDSample.schemaType], void 0, unwrap(context));
107
+ s.SetProperty(LDSample.name, name, unwrap(context));
108
+ s.SetOptionalProperty(LDSample.additionalProperty, additionalProperties, unwrap(context));
109
+ return s;
110
+ }
111
+ static createSample(name, id, additionalProperties, context) {
112
+ const id_2 = id == null ? LDSample.genIDSample(name) : value(id);
113
+ const s = LDSample.create(id_2, name, unwrap(additionalProperties), unwrap(context));
114
+ s.AdditionalType = ["Sample"];
115
+ return s;
116
+ }
117
+ static createSource(name, id, additionalProperties, context) {
118
+ const id_2 = id == null ? LDSample.genIDSource(name) : value(id);
119
+ const s = LDSample.create(id_2, name, unwrap(additionalProperties), unwrap(context));
120
+ s.AdditionalType = ["Source"];
121
+ return s;
122
+ }
123
+ static createMaterial(name, id, additionalProperties, context) {
124
+ const id_2 = id == null ? LDSample.genIDMaterial(name) : value(id);
125
+ const s = LDSample.create(id_2, name, unwrap(additionalProperties), unwrap(context));
126
+ s.AdditionalType = ["Material"];
127
+ return s;
128
+ }
129
+ }
130
+
131
+ export { LDSample };
@@ -0,0 +1,173 @@
1
+ import { unwrap, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { LDNode } from '../LDObject.js';
3
+ import { LDPropertyValue } from './PropertyValue.js';
4
+ import { LDPerson } from './Person.js';
5
+ import { LDDefinedTerm } from './DefinedTerm.js';
6
+ import { LDComment } from './Comment.js';
7
+ import { clean } from '../Helper.js';
8
+
9
+ class LDScholarlyArticle {
10
+ constructor() {
11
+ }
12
+ static get schemaType() {
13
+ return "http://schema.org/ScholarlyArticle";
14
+ }
15
+ static get headline() {
16
+ return "http://schema.org/headline";
17
+ }
18
+ static get identifier() {
19
+ return "http://schema.org/identifier";
20
+ }
21
+ static get author() {
22
+ return "http://schema.org/author";
23
+ }
24
+ static get url() {
25
+ return "http://schema.org/url";
26
+ }
27
+ static get sameAs() {
28
+ return "http://schema.org/sameAs";
29
+ }
30
+ static get creativeWorkStatus() {
31
+ return "http://schema.org/creativeWorkStatus";
32
+ }
33
+ static get comment() {
34
+ return "http://schema.org/comment";
35
+ }
36
+ static tryGetHeadlineAsString(s, context) {
37
+ const matchValue = s.TryGetPropertyAsSingleton(LDScholarlyArticle.headline, unwrap(context));
38
+ let matchResult, n;
39
+ if (matchValue != null) {
40
+ if (typeof value(matchValue) === "string") {
41
+ matchResult = 0;
42
+ n = value(matchValue);
43
+ } else {
44
+ matchResult = 1;
45
+ }
46
+ } else {
47
+ matchResult = 1;
48
+ }
49
+ switch (matchResult) {
50
+ case 0:
51
+ return n;
52
+ default:
53
+ return void 0;
54
+ }
55
+ }
56
+ static getHeadlineAsString(s, context) {
57
+ const matchValue = s.TryGetPropertyAsSingleton(LDScholarlyArticle.headline, unwrap(context));
58
+ if (matchValue == null) {
59
+ throw new Error(`Could not access property \`headline\` of object with @id \`${s.Id}\``);
60
+ } else if (typeof value(matchValue) === "string") {
61
+ const n = value(matchValue);
62
+ return n;
63
+ } else {
64
+ throw new Error(`Value of property \`headline\` of object with @id \`${s.Id}\` should have been a string`);
65
+ }
66
+ }
67
+ static setHeadlineAsString(s, n) {
68
+ s.SetProperty(LDScholarlyArticle.headline, n);
69
+ }
70
+ static getIdentifiers(s, context) {
71
+ return s.GetPropertyValues(LDScholarlyArticle.identifier, void 0, unwrap(context));
72
+ }
73
+ static getIdentifiersAsPropertyValue(s, graph, context) {
74
+ return s.GetPropertyNodes(LDScholarlyArticle.identifier, (ldObject, context_1) => LDPropertyValue.validate(ldObject, unwrap(context_1)), unwrap(graph), unwrap(context));
75
+ }
76
+ static setIdentifiers(s, identifiers) {
77
+ s.SetProperty(LDScholarlyArticle.identifier, identifiers);
78
+ }
79
+ static getAuthors(s, graph, context) {
80
+ return s.GetPropertyNodes(LDScholarlyArticle.author, (ldObject, context_1) => LDPerson.validate(ldObject, unwrap(context_1)), unwrap(graph), unwrap(context));
81
+ }
82
+ static setAuthors(s, authors, context) {
83
+ return s.SetProperty(LDScholarlyArticle.author, authors, unwrap(context));
84
+ }
85
+ static tryGetUrlAsString(s, context) {
86
+ const matchValue = s.TryGetPropertyAsSingleton(LDScholarlyArticle.url, unwrap(context));
87
+ let matchResult, u;
88
+ if (matchValue != null) {
89
+ if (typeof value(matchValue) === "string") {
90
+ matchResult = 0;
91
+ u = value(matchValue);
92
+ } else {
93
+ matchResult = 1;
94
+ }
95
+ } else {
96
+ matchResult = 1;
97
+ }
98
+ switch (matchResult) {
99
+ case 0:
100
+ return u;
101
+ default:
102
+ return void 0;
103
+ }
104
+ }
105
+ static tryGetSameAsAsString(s, context) {
106
+ const matchValue = s.TryGetPropertyAsSingleton(LDScholarlyArticle.sameAs, unwrap(context));
107
+ let matchResult, sa;
108
+ if (matchValue != null) {
109
+ if (typeof value(matchValue) === "string") {
110
+ matchResult = 0;
111
+ sa = value(matchValue);
112
+ } else {
113
+ matchResult = 1;
114
+ }
115
+ } else {
116
+ matchResult = 1;
117
+ }
118
+ switch (matchResult) {
119
+ case 0:
120
+ return sa;
121
+ default:
122
+ return void 0;
123
+ }
124
+ }
125
+ static tryGetCreativeWorkStatus(s, graph, context) {
126
+ let cws;
127
+ const matchValue = s.TryGetPropertyAsSingleNode(LDScholarlyArticle.creativeWorkStatus, unwrap(graph), unwrap(context));
128
+ let matchResult, cws_1;
129
+ if (matchValue != null) {
130
+ if (cws = value(matchValue), LDDefinedTerm.validate(cws, unwrap(context))) {
131
+ matchResult = 0;
132
+ cws_1 = value(matchValue);
133
+ } else {
134
+ matchResult = 1;
135
+ }
136
+ } else {
137
+ matchResult = 1;
138
+ }
139
+ switch (matchResult) {
140
+ case 0:
141
+ return cws_1;
142
+ default:
143
+ return void 0;
144
+ }
145
+ }
146
+ static setCreativeWorkStatus(s, cws, context) {
147
+ return s.SetProperty(LDScholarlyArticle.creativeWorkStatus, cws, unwrap(context));
148
+ }
149
+ static getComments(s, graph, context) {
150
+ return s.GetPropertyNodes(LDScholarlyArticle.comment, (ldObject, context_1) => LDComment.validate(ldObject, unwrap(context_1)), unwrap(graph), unwrap(context));
151
+ }
152
+ static setcomments(s, comments, context) {
153
+ return s.SetProperty(LDScholarlyArticle.comment, comments, unwrap(context));
154
+ }
155
+ static genID(headline, url) {
156
+ return clean(url == null ? `#${headline}` : value(url));
157
+ }
158
+ static validate(s, context) {
159
+ return s.HasType(LDScholarlyArticle.schemaType, unwrap(context)) && s.HasProperty(LDScholarlyArticle.headline, unwrap(context));
160
+ }
161
+ static create(headline, identifiers, id, authors, url, creativeWorkStatus, comments, context) {
162
+ const s = new LDNode(id == null ? LDScholarlyArticle.genID(headline, unwrap(url)) : value(id), [LDScholarlyArticle.schemaType], void 0, unwrap(context));
163
+ s.SetProperty(LDScholarlyArticle.headline, headline, unwrap(context));
164
+ s.SetProperty(LDScholarlyArticle.identifier, identifiers, unwrap(context));
165
+ s.SetOptionalProperty(LDScholarlyArticle.author, authors, unwrap(context));
166
+ s.SetOptionalProperty(LDScholarlyArticle.url, url, unwrap(context));
167
+ s.SetOptionalProperty(LDScholarlyArticle.creativeWorkStatus, creativeWorkStatus, unwrap(context));
168
+ s.SetOptionalProperty(LDScholarlyArticle.comment, comments, unwrap(context));
169
+ return s;
170
+ }
171
+ }
172
+
173
+ export { LDScholarlyArticle };
@@ -0,0 +1,7 @@
1
+ import { replace } from '../../node_modules/@fable-org/fable-library-js/String.js';
2
+
3
+ function clean(id) {
4
+ return replace(id, " ", "_");
5
+ }
6
+
7
+ export { clean };
@@ -0,0 +1,288 @@
1
+ import { ActivePatterns_$007CRegex$007C_$007C } from '../Core/Helper/Regex.js';
2
+ import { defaultArg, value, unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
3
+ import { FSharpRef, toString } from '../../node_modules/@fable-org/fable-library-js/Types.js';
4
+ import { Uri } from '../../node_modules/@fable-org/fable-library-js/Uri.js';
5
+ import { getEnumerator, disposeSafe, safeHash, stringHash, defaultOf, comparePrimitives } from '../../node_modules/@fable-org/fable-library-js/Util.js';
6
+ import { addToDict, getItemFromDict, tryGetValue } from '../../node_modules/@fable-org/fable-library-js/MapUtil.js';
7
+ import { reduce, map, sort, tryPick } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
8
+ import { StringDictionary_ofSeq } from '../Core/Helper/Collections.js';
9
+ import { boxHashSeq, mergeHashes, hash } from '../Core/Helper/HashCodes.js';
10
+
11
+ const IRIHelper_compactIRIRegex = "(?<prefix>.*):(?<suffix>[^\\/][^\\/].*)";
12
+ function IRIHelper_$007CCompactIri$007C_$007C(termDefition) {
13
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(IRIHelper_compactIRIRegex, termDefition);
14
+ if (activePatternResult != null) {
15
+ const result = value(activePatternResult);
16
+ return [result.groups && result.groups.prefix || "", result.groups && result.groups.suffix || ""];
17
+ } else {
18
+ return void 0;
19
+ }
20
+ }
21
+ function IRIHelper_combine(baseIRI, relative) {
22
+ if (relative.startsWith("http://") ? true : relative.startsWith("https://")) {
23
+ return relative;
24
+ } else {
25
+ return toString(Uri.create(Uri.create(baseIRI), relative));
26
+ }
27
+ }
28
+ function IRIHelper_combineOptional(baseIRI, relative) {
29
+ if (baseIRI == null) {
30
+ if (relative != null) {
31
+ const r_1 = value(relative);
32
+ return r_1;
33
+ } else {
34
+ return void 0;
35
+ }
36
+ } else if (relative == null) {
37
+ const b_1 = value(baseIRI);
38
+ return b_1;
39
+ } else {
40
+ const b = value(baseIRI);
41
+ const r = value(relative);
42
+ return IRIHelper_combine(b, r);
43
+ }
44
+ }
45
+ class LDContext {
46
+ constructor(mappings, baseContexts) {
47
+ this["baseContexts@41"] = defaultArg(baseContexts, []);
48
+ this.name = void 0;
49
+ this["mappings@45"] = mappings == null ? /* @__PURE__ */ new Map([]) : value(mappings);
50
+ this.reverseMappings = /* @__PURE__ */ new Map([]);
51
+ this.compactReverseMappings = /* @__PURE__ */ new Map([]);
52
+ let enumerator = getEnumerator(this["mappings@45"]);
53
+ try {
54
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
55
+ const kvp = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
56
+ this.addReverseMapping(kvp[0], kvp[1]);
57
+ }
58
+ } finally {
59
+ disposeSafe(enumerator);
60
+ }
61
+ }
62
+ get Mappings() {
63
+ const this$ = this;
64
+ return this$["mappings@45"];
65
+ }
66
+ get BaseContexts() {
67
+ const this$ = this;
68
+ return this$["baseContexts@41"];
69
+ }
70
+ set BaseContexts(value) {
71
+ const this$ = this;
72
+ this$["baseContexts@41"] = value;
73
+ }
74
+ get Name() {
75
+ const this$ = this;
76
+ return unwrap(this$.name);
77
+ }
78
+ set Name(value) {
79
+ const this$ = this;
80
+ this$.name = value;
81
+ }
82
+ AddMapping(term, definition) {
83
+ const this$ = this;
84
+ const key = term;
85
+ const value = definition;
86
+ const dict = this$["mappings@45"];
87
+ if (dict.has(key)) {
88
+ dict.set(key, value);
89
+ } else {
90
+ addToDict(dict, key, value);
91
+ }
92
+ this$.addReverseMapping(term, definition);
93
+ }
94
+ TryResolveTerm(term) {
95
+ const this$ = this;
96
+ return term.indexOf(":") >= 0 ? reduce(IRIHelper_combineOptional, map((term_1) => this$.tryFindTerm(term_1), term.split(":"))) : this$.tryFindTerm(term);
97
+ }
98
+ TryGetTerm(iri) {
99
+ const this$ = this;
100
+ return this$.tryFindIri(iri);
101
+ }
102
+ PropertyNamesMatch(p1, p2) {
103
+ let p2Def_2, p1Def_2, p1Def_1, p2Def_1;
104
+ const this$ = this;
105
+ if (p1 === p2) {
106
+ return true;
107
+ } else {
108
+ const p1Def = this$.TryResolveTerm(p1);
109
+ const p2Def = this$.TryResolveTerm(p2);
110
+ return p1Def == null ? p2Def != null && (p2Def_2 = value(p2Def), p1 === p2Def_2) : p2Def == null ? (p1Def_2 = value(p1Def), p1Def_2 === p2) : (p1Def_1 = value(p1Def), p2Def_1 = value(p2Def), p1Def_1 === p2Def_1);
111
+ }
112
+ }
113
+ static fromMappingSeq(mappings) {
114
+ return new LDContext(StringDictionary_ofSeq(mappings));
115
+ }
116
+ static combine_InPlace(baseContext, specificContext) {
117
+ void specificContext.BaseContexts.push(baseContext);
118
+ return specificContext;
119
+ }
120
+ static combine(baseContext, specificContext) {
121
+ return new LDContext(void 0, [specificContext, baseContext]);
122
+ }
123
+ static tryCombineOptional(baseContext, specificContext) {
124
+ let s_1, f_1, f, s;
125
+ return baseContext == null ? specificContext != null ? (s_1 = value(specificContext), s_1) : void 0 : specificContext == null ? (f_1 = value(baseContext), f_1) : (f = value(baseContext), s = value(specificContext), LDContext.combine(f, s));
126
+ }
127
+ ShallowCopy() {
128
+ const this$ = this;
129
+ const newMappings = /* @__PURE__ */ new Map([]);
130
+ let enumerator = getEnumerator(this$["mappings@45"]);
131
+ try {
132
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
133
+ const kvp = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
134
+ addToDict(newMappings, kvp[0], kvp[1]);
135
+ }
136
+ } finally {
137
+ disposeSafe(enumerator);
138
+ }
139
+ return new LDContext(newMappings, this$["baseContexts@41"]);
140
+ }
141
+ DeepCopy() {
142
+ const this$ = this;
143
+ const newMappings = /* @__PURE__ */ new Map([]);
144
+ let enumerator = getEnumerator(this$["mappings@45"]);
145
+ try {
146
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
147
+ const kvp = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
148
+ addToDict(newMappings, kvp[0], kvp[1]);
149
+ }
150
+ } finally {
151
+ disposeSafe(enumerator);
152
+ }
153
+ const newBaseContexts = [];
154
+ let enumerator_1 = getEnumerator(this$["baseContexts@41"]);
155
+ try {
156
+ while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
157
+ const ctx = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
158
+ void newBaseContexts.push(ctx.DeepCopy());
159
+ }
160
+ } finally {
161
+ disposeSafe(enumerator_1);
162
+ }
163
+ return new LDContext(newMappings, newBaseContexts);
164
+ }
165
+ StructurallyEquals(other) {
166
+ const this$ = this;
167
+ return safeHash(this$) === safeHash(other);
168
+ }
169
+ ReferenceEquals(other) {
170
+ const this$ = this;
171
+ return this$ === other;
172
+ }
173
+ Equals(other) {
174
+ let other_1;
175
+ const this$ = this;
176
+ return other instanceof LDContext && (other_1 = other, this$.StructurallyEquals(other_1));
177
+ }
178
+ GetHashCode() {
179
+ const this$ = this;
180
+ const mappingsHash = boxHashSeq(map((k) => mergeHashes(hash(k), hash(getItemFromDict(this$.Mappings, k))), sort(this$.Mappings.keys(), {
181
+ Compare: comparePrimitives
182
+ }))) | 0;
183
+ let nameHash;
184
+ const matchValue = this$.Name;
185
+ nameHash = matchValue == null ? 0 : stringHash(value(matchValue));
186
+ const baseContextsHash = (this$["baseContexts@41"].length === 0 ? 0 : reduce(mergeHashes, map(safeHash, this$["baseContexts@41"]))) | 0;
187
+ return mergeHashes(mergeHashes(mappingsHash, nameHash), baseContextsHash) | 0;
188
+ }
189
+ "System.ICloneable.Clone"() {
190
+ const this$ = this;
191
+ return this$.DeepCopy();
192
+ }
193
+ addReverseMapping(key, value$1) {
194
+ const this$ = this;
195
+ const key_1 = value$1;
196
+ const value_1 = key;
197
+ const dict = this$.reverseMappings;
198
+ if (dict.has(key_1)) {
199
+ dict.set(key_1, value_1);
200
+ } else {
201
+ addToDict(dict, key_1, value_1);
202
+ }
203
+ const activePatternResult = IRIHelper_$007CCompactIri$007C_$007C(value$1);
204
+ if (activePatternResult != null) {
205
+ const prefix = value(activePatternResult)[0];
206
+ const suffix = value(activePatternResult)[1];
207
+ const key_2 = prefix;
208
+ const value_2 = [suffix, key];
209
+ const dict_1 = this$.compactReverseMappings;
210
+ if (dict_1.has(key_2)) {
211
+ dict_1.set(key_2, value_2);
212
+ } else {
213
+ addToDict(dict_1, key_2, value_2);
214
+ }
215
+ let matchValue;
216
+ let patternInput;
217
+ let outArg = defaultOf();
218
+ patternInput = [tryGetValue(this$["mappings@45"], prefix, new FSharpRef(() => outArg, (v) => {
219
+ outArg = v;
220
+ })), outArg];
221
+ matchValue = patternInput[0] ? patternInput[1] : void 0;
222
+ if (matchValue == null) ; else {
223
+ const key_4 = IRIHelper_combine(value(matchValue), suffix);
224
+ const value_3 = key;
225
+ const dict_3 = this$.reverseMappings;
226
+ if (dict_3.has(key_4)) {
227
+ dict_3.set(key_4, value_3);
228
+ } else {
229
+ addToDict(dict_3, key_4, value_3);
230
+ }
231
+ }
232
+ } else {
233
+ let matchValue_1;
234
+ let patternInput_1;
235
+ let outArg_1 = defaultOf();
236
+ patternInput_1 = [tryGetValue(this$.compactReverseMappings, key, new FSharpRef(() => outArg_1, (v_2) => {
237
+ outArg_1 = v_2;
238
+ })), outArg_1];
239
+ matchValue_1 = patternInput_1[0] ? patternInput_1[1] : void 0;
240
+ if (matchValue_1 == null) ; else {
241
+ const term = value(matchValue_1)[1];
242
+ const key_6 = IRIHelper_combine(value$1, value(matchValue_1)[0]);
243
+ const value_4 = term;
244
+ const dict_5 = this$.reverseMappings;
245
+ if (dict_5.has(key_6)) {
246
+ dict_5.set(key_6, value_4);
247
+ } else {
248
+ addToDict(dict_5, key_6, value_4);
249
+ }
250
+ }
251
+ }
252
+ }
253
+ tryFindTerm(term) {
254
+ let prefix, suffix, d;
255
+ const this$ = this;
256
+ let definition;
257
+ let matchValue;
258
+ let patternInput;
259
+ let outArg = defaultOf();
260
+ patternInput = [tryGetValue(this$["mappings@45"], term, new FSharpRef(() => outArg, (v) => {
261
+ outArg = v;
262
+ })), outArg];
263
+ matchValue = patternInput[0] ? patternInput[1] : void 0;
264
+ definition = matchValue == null ? tryPick((ctx) => ctx.TryResolveTerm(term), this$["baseContexts@41"]) : value(matchValue);
265
+ if (definition == null) {
266
+ return void 0;
267
+ } else {
268
+ const activePatternResult = IRIHelper_$007CCompactIri$007C_$007C(value(definition));
269
+ return activePatternResult != null ? (prefix = value(activePatternResult)[0], suffix = value(activePatternResult)[1], IRIHelper_combine(prefix === term ? prefix : defaultArg(this$.tryFindTerm(prefix), prefix), suffix === term ? suffix : defaultArg(this$.tryFindTerm(suffix), suffix))) : (d = value(definition), d);
270
+ }
271
+ }
272
+ tryFindIri(iri) {
273
+ const this$ = this;
274
+ let matchValue;
275
+ let patternInput;
276
+ let outArg = defaultOf();
277
+ patternInput = [tryGetValue(this$.reverseMappings, iri, new FSharpRef(() => outArg, (v) => {
278
+ outArg = v;
279
+ })), outArg];
280
+ matchValue = patternInput[0] ? patternInput[1] : void 0;
281
+ return matchValue == null ? tryPick((ctx) => ctx.TryGetTerm(iri), this$["baseContexts@41"]) : value(matchValue);
282
+ }
283
+ tryCompactIRI(iri) {
284
+ throw new Error("TryCompactIRI is Not implemented yet");
285
+ }
286
+ }
287
+
288
+ export { IRIHelper_$007CCompactIri$007C_$007C, IRIHelper_combine, IRIHelper_combineOptional, IRIHelper_compactIRIRegex, LDContext };