@nfdi4plants/arctrl 3.2.3 → 3.3.0

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 (453) hide show
  1. package/dist/ts/index.d.ts +44 -7
  2. package/dist/ts/index.d.ts.map +1 -1
  3. package/dist/ts/index.js +45 -8
  4. package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +195 -92
  5. package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +251 -30
  6. package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +61 -11
  7. package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +15 -5
  8. package/dist/ts/node_modules/@fable-org/fable-library-ts/BitConverter.js +139 -0
  9. package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +1 -1
  10. package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +68 -12
  11. package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +24 -10
  12. package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +8 -2
  13. package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +1 -1
  14. package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +11 -2
  15. package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +220 -155
  16. package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +7 -2
  17. package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +46 -39
  18. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +75 -92
  19. package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +56 -76
  20. package/dist/ts/node_modules/@fable-org/fable-library-ts/NumberStyles.js +54 -0
  21. package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +10 -5
  22. package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +3 -4
  23. package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +4 -3
  24. package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +2 -2
  25. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +128 -64
  26. package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +4 -8
  27. package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +64 -57
  28. package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +68 -21
  29. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +3 -2
  30. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +2 -2
  31. package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +5 -5
  32. package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +23 -12
  33. package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +88 -49
  34. package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +121 -74
  35. package/dist/ts/ts/ARC.d.ts +19 -2
  36. package/dist/ts/ts/ARC.d.ts.map +1 -1
  37. package/dist/ts/ts/ARC.js +128 -89
  38. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +0 -2
  39. package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -1
  40. package/dist/ts/ts/CWL/CWLKnownFieldNames.js +1 -7
  41. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +46 -27
  42. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
  43. package/dist/ts/ts/CWL/CWLProcessingUnit.js +312 -123
  44. package/dist/ts/ts/CWL/CWLTypes.d.ts +481 -148
  45. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
  46. package/dist/ts/ts/CWL/CWLTypes.js +887 -201
  47. package/dist/ts/ts/CWL/Decode.d.ts +480 -211
  48. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
  49. package/dist/ts/ts/CWL/Decode.js +3614 -2462
  50. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +9 -0
  51. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -1
  52. package/dist/ts/ts/CWL/DynamicObjHelpers.js +55 -5
  53. package/dist/ts/ts/CWL/Encode.d.ts +225 -85
  54. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
  55. package/dist/ts/ts/CWL/Encode.js +1858 -970
  56. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +42 -28
  57. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
  58. package/dist/ts/ts/CWL/ExpressionToolDescription.js +34 -13
  59. package/dist/ts/ts/CWL/HashHelpers.d.ts +38 -0
  60. package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
  61. package/dist/ts/ts/CWL/HashHelpers.js +255 -6
  62. package/dist/ts/ts/CWL/Inputs.d.ts +127 -56
  63. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
  64. package/dist/ts/ts/CWL/Inputs.js +107 -16
  65. package/dist/ts/ts/CWL/OperationDescription.d.ts +41 -21
  66. package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
  67. package/dist/ts/ts/CWL/OperationDescription.js +35 -9
  68. package/dist/ts/ts/CWL/Outputs.d.ts +93 -42
  69. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
  70. package/dist/ts/ts/CWL/Outputs.js +101 -19
  71. package/dist/ts/ts/CWL/ParameterReference.d.ts +11 -8
  72. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
  73. package/dist/ts/ts/CWL/ParameterReference.js +18 -25
  74. package/dist/ts/ts/CWL/ParameterValue.d.ts +15 -1
  75. package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -1
  76. package/dist/ts/ts/CWL/ParameterValue.js +59 -35
  77. package/dist/ts/ts/CWL/Requirements.d.ts +240 -98
  78. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
  79. package/dist/ts/ts/CWL/Requirements.js +462 -89
  80. package/dist/ts/ts/CWL/ScalarQuoting.d.ts +51 -0
  81. package/dist/ts/ts/CWL/ScalarQuoting.d.ts.map +1 -0
  82. package/dist/ts/ts/CWL/ScalarQuoting.js +250 -0
  83. package/dist/ts/ts/CWL/ToolDescription.d.ts +63 -50
  84. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
  85. package/dist/ts/ts/CWL/ToolDescription.js +34 -13
  86. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +45 -26
  87. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
  88. package/dist/ts/ts/CWL/WorkflowDescription.js +38 -11
  89. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +248 -65
  90. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
  91. package/dist/ts/ts/CWL/WorkflowSteps.js +413 -43
  92. package/dist/ts/ts/CWLRunResolver.d.ts +30 -12
  93. package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
  94. package/dist/ts/ts/CWLRunResolver.js +221 -86
  95. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  96. package/dist/ts/ts/Contract/ARC.js +13 -14
  97. package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
  98. package/dist/ts/ts/Contract/ArcAssay.js +4 -4
  99. package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
  100. package/dist/ts/ts/Contract/ArcInvestigation.js +3 -4
  101. package/dist/ts/ts/Contract/ArcRun.d.ts +12 -2
  102. package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
  103. package/dist/ts/ts/Contract/ArcRun.js +47 -20
  104. package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
  105. package/dist/ts/ts/Contract/ArcStudy.js +4 -4
  106. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +18 -4
  107. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  108. package/dist/ts/ts/Contract/ArcWorkflow.js +55 -17
  109. package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
  110. package/dist/ts/ts/Contract/Datamap.js +16 -17
  111. package/dist/ts/ts/Contract/Git.js +1 -1
  112. package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
  113. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +4 -5
  114. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  115. package/dist/ts/ts/ContractIO/ContractIO.js +15 -16
  116. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
  117. package/dist/ts/ts/Conversion/Assay.js +26 -18
  118. package/dist/ts/ts/Conversion/Basic.d.ts +4 -0
  119. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
  120. package/dist/ts/ts/Conversion/Basic.js +55 -31
  121. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
  122. package/dist/ts/ts/Conversion/ColumnIndex.js +2 -4
  123. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
  124. package/dist/ts/ts/Conversion/DateTime.js +1 -2
  125. package/dist/ts/ts/Conversion/Investigation.js +11 -11
  126. package/dist/ts/ts/Conversion/Person.js +11 -11
  127. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
  128. package/dist/ts/ts/Conversion/Process.js +107 -86
  129. package/dist/ts/ts/Conversion/Run.d.ts +36 -6
  130. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
  131. package/dist/ts/ts/Conversion/Run.js +320 -136
  132. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
  133. package/dist/ts/ts/Conversion/ScholarlyArticle.js +75 -9
  134. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
  135. package/dist/ts/ts/Conversion/Study.js +23 -12
  136. package/dist/ts/ts/Conversion/Table.js +5 -5
  137. package/dist/ts/ts/Conversion/Workflow.d.ts +48 -9
  138. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
  139. package/dist/ts/ts/Conversion/Workflow.js +655 -163
  140. package/dist/ts/ts/Conversion.js +6 -6
  141. package/dist/ts/ts/Core/ArcTypes.d.ts +73 -28
  142. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  143. package/dist/ts/ts/Core/ArcTypes.js +219 -129
  144. package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
  145. package/dist/ts/ts/Core/Comment.js +2 -2
  146. package/dist/ts/ts/Core/CommentList.js +7 -7
  147. package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
  148. package/dist/ts/ts/Core/Conversion.js +41 -41
  149. package/dist/ts/ts/Core/Data.d.ts.map +1 -1
  150. package/dist/ts/ts/Core/Data.js +14 -11
  151. package/dist/ts/ts/Core/DataContext.d.ts +1 -1
  152. package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
  153. package/dist/ts/ts/Core/DataContext.js +4 -4
  154. package/dist/ts/ts/Core/DataFile.d.ts +11 -8
  155. package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
  156. package/dist/ts/ts/Core/DataFile.js +55 -61
  157. package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
  158. package/dist/ts/ts/Core/Datamap.js +2 -3
  159. package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
  160. package/dist/ts/ts/Core/Helper/Collections.js +2 -4
  161. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  162. package/dist/ts/ts/Core/Helper/Identifier.js +12 -15
  163. package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
  164. package/dist/ts/ts/Core/Helper/ORCID.js +2 -3
  165. package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
  166. package/dist/ts/ts/Core/Helper/Regex.js +52 -53
  167. package/dist/ts/ts/Core/Helper/SemVer.d.ts +13 -3
  168. package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
  169. package/dist/ts/ts/Core/Helper/SemVer.js +96 -6
  170. package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
  171. package/dist/ts/ts/Core/Helper/Url.js +1 -1
  172. package/dist/ts/ts/Core/OntologyAnnotation.js +22 -22
  173. package/dist/ts/ts/Core/Person.d.ts.map +1 -1
  174. package/dist/ts/ts/Core/Person.js +2 -2
  175. package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
  176. package/dist/ts/ts/Core/Process/ColumnIndex.js +10 -12
  177. package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
  178. package/dist/ts/ts/Core/Process/Component.js +22 -22
  179. package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
  180. package/dist/ts/ts/Core/Process/Factor.js +7 -7
  181. package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
  182. package/dist/ts/ts/Core/Process/FactorValue.js +15 -15
  183. package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
  184. package/dist/ts/ts/Core/Process/Material.js +2 -2
  185. package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
  186. package/dist/ts/ts/Core/Process/MaterialAttribute.js +6 -6
  187. package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
  188. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +16 -16
  189. package/dist/ts/ts/Core/Process/Process.js +21 -21
  190. package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
  191. package/dist/ts/ts/Core/Process/ProcessInput.js +2 -2
  192. package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
  193. package/dist/ts/ts/Core/Process/ProcessOutput.js +2 -2
  194. package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
  195. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +17 -17
  196. package/dist/ts/ts/Core/Process/ProcessSequence.js +4 -4
  197. package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
  198. package/dist/ts/ts/Core/Process/Protocol.js +9 -9
  199. package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
  200. package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -6
  201. package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
  202. package/dist/ts/ts/Core/Publication.js +3 -3
  203. package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -1
  204. package/dist/ts/ts/Core/ScalarValue.js +9 -13
  205. package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
  206. package/dist/ts/ts/Core/Table/ArcTable.js +18 -18
  207. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +1 -1
  208. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
  209. package/dist/ts/ts/Core/Table/ArcTableAux.js +50 -70
  210. package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
  211. package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
  212. package/dist/ts/ts/Core/Table/CompositeHeader.js +5 -6
  213. package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
  214. package/dist/ts/ts/Core/Templates.js +2 -2
  215. package/dist/ts/ts/FileSystem/Path.d.ts +13 -2
  216. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  217. package/dist/ts/ts/FileSystem/Path.js +37 -19
  218. package/dist/ts/ts/Json/Assay.js +22 -22
  219. package/dist/ts/ts/Json/Comment.js +9 -9
  220. package/dist/ts/ts/Json/Data.d.ts.map +1 -1
  221. package/dist/ts/ts/Json/Data.js +11 -11
  222. package/dist/ts/ts/Json/Datamap/DataContext.js +2 -2
  223. package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
  224. package/dist/ts/ts/Json/Decode.js +3 -5
  225. package/dist/ts/ts/Json/Encode.js +2 -2
  226. package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
  227. package/dist/ts/ts/Json/Investigation.js +20 -20
  228. package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
  229. package/dist/ts/ts/Json/OntologyAnnotation.js +18 -18
  230. package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
  231. package/dist/ts/ts/Json/OntologySourceReference.js +9 -9
  232. package/dist/ts/ts/Json/Person.d.ts.map +1 -1
  233. package/dist/ts/ts/Json/Person.js +20 -20
  234. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
  235. package/dist/ts/ts/Json/Process/AssayMaterials.js +1 -2
  236. package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
  237. package/dist/ts/ts/Json/Process/Component.js +5 -6
  238. package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
  239. package/dist/ts/ts/Json/Process/Factor.js +7 -7
  240. package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
  241. package/dist/ts/ts/Json/Process/FactorValue.js +2 -3
  242. package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
  243. package/dist/ts/ts/Json/Process/Material.js +9 -10
  244. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
  245. package/dist/ts/ts/Json/Process/MaterialAttribute.js +5 -6
  246. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
  247. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +2 -3
  248. package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
  249. package/dist/ts/ts/Json/Process/Process.js +8 -9
  250. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
  251. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +1 -2
  252. package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
  253. package/dist/ts/ts/Json/Process/Protocol.js +17 -17
  254. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
  255. package/dist/ts/ts/Json/Process/ProtocolParameter.js +6 -6
  256. package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
  257. package/dist/ts/ts/Json/Process/Sample.js +9 -9
  258. package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
  259. package/dist/ts/ts/Json/Process/Source.js +10 -11
  260. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
  261. package/dist/ts/ts/Json/Process/StudyMaterials.js +1 -2
  262. package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
  263. package/dist/ts/ts/Json/PropertyValue.js +24 -24
  264. package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
  265. package/dist/ts/ts/Json/Publication.js +10 -10
  266. package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -2
  267. package/dist/ts/ts/Json/ROCrate/LDGraph.js +2 -2
  268. package/dist/ts/ts/Json/ROCrate/LDNode.js +5 -5
  269. package/dist/ts/ts/Json/Run.js +9 -9
  270. package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
  271. package/dist/ts/ts/Json/StringTable.js +4 -7
  272. package/dist/ts/ts/Json/Study.js +20 -20
  273. package/dist/ts/ts/Json/Table/CellTable.js +1 -2
  274. package/dist/ts/ts/Json/Table/OATable.js +1 -2
  275. package/dist/ts/ts/Json/Workflow.js +9 -9
  276. package/dist/ts/ts/Json.d.ts +121 -1
  277. package/dist/ts/ts/Json.d.ts.map +1 -1
  278. package/dist/ts/ts/Json.js +310 -2
  279. package/dist/ts/ts/JsonIO/Comment.d.ts +15 -0
  280. package/dist/ts/ts/JsonIO/Comment.d.ts.map +1 -0
  281. package/dist/ts/ts/JsonIO/Comment.js +67 -0
  282. package/dist/ts/ts/JsonIO/Data.d.ts +9 -0
  283. package/dist/ts/ts/JsonIO/Data.d.ts.map +1 -0
  284. package/dist/ts/ts/JsonIO/Data.js +49 -0
  285. package/dist/ts/ts/JsonIO/DataFile.d.ts +9 -0
  286. package/dist/ts/ts/JsonIO/DataFile.d.ts.map +1 -0
  287. package/dist/ts/ts/JsonIO/DataFile.js +48 -0
  288. package/dist/ts/ts/JsonIO/LDObject.d.ts +6 -0
  289. package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
  290. package/dist/ts/ts/JsonIO/LDObject.js +173 -17
  291. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts +15 -0
  292. package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts.map +1 -0
  293. package/dist/ts/ts/JsonIO/OntologySourceReference.js +67 -0
  294. package/dist/ts/ts/JsonIO/Publication.d.ts +15 -0
  295. package/dist/ts/ts/JsonIO/Publication.d.ts.map +1 -0
  296. package/dist/ts/ts/JsonIO/Publication.js +68 -0
  297. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts +9 -0
  298. package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts.map +1 -0
  299. package/dist/ts/ts/JsonIO/Table/ArcTable.js +74 -0
  300. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts +6 -0
  301. package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts.map +1 -0
  302. package/dist/ts/ts/JsonIO/Table/CompositeCell.js +29 -0
  303. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts +6 -0
  304. package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts.map +1 -0
  305. package/dist/ts/ts/JsonIO/Table/CompositeHeader.js +29 -0
  306. package/dist/ts/ts/JsonIO/Table/IOType.d.ts +6 -0
  307. package/dist/ts/ts/JsonIO/Table/IOType.d.ts.map +1 -0
  308. package/dist/ts/ts/JsonIO/Table/IOType.js +29 -0
  309. package/dist/ts/ts/License.d.ts.map +1 -1
  310. package/dist/ts/ts/License.js +6 -6
  311. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  312. package/dist/ts/ts/ROCrate/LDContext.js +31 -39
  313. package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
  314. package/dist/ts/ts/ROCrate/LDObject.js +56 -49
  315. package/dist/ts/ts/ROCrate/LDTypes/Comment.js +2 -2
  316. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +3 -3
  317. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +2 -2
  318. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +5 -5
  319. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +1 -0
  320. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
  321. package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +3 -0
  322. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
  323. package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +22 -17
  324. package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +2 -2
  325. package/dist/ts/ts/ROCrate/LDTypes/File.js +5 -5
  326. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +2 -2
  327. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +9 -9
  328. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +4 -4
  329. package/dist/ts/ts/ROCrate/LDTypes/Organization.js +1 -1
  330. package/dist/ts/ts/ROCrate/LDTypes/Person.js +7 -7
  331. package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +1 -1
  332. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
  333. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +45 -48
  334. package/dist/ts/ts/ROCrate/LDTypes/Sample.js +3 -3
  335. package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +4 -4
  336. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +3 -3
  337. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +3 -3
  338. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +2 -2
  339. package/dist/ts/ts/ROCrateIO.d.ts +18 -4
  340. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  341. package/dist/ts/ts/ROCrateIO.js +49 -38
  342. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  343. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +9 -10
  344. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
  345. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +7 -7
  346. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  347. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +6 -8
  348. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +20 -20
  349. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  350. package/dist/ts/ts/Spreadsheet/ArcAssay.js +7 -7
  351. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +8 -8
  352. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  353. package/dist/ts/ts/Spreadsheet/ArcRun.js +5 -6
  354. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  355. package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
  356. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  357. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +5 -6
  358. package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
  359. package/dist/ts/ts/Spreadsheet/CollectionAux.js +10 -14
  360. package/dist/ts/ts/Spreadsheet/Datamap.js +1 -2
  361. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +3 -3
  362. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +10 -10
  363. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
  364. package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +9 -10
  365. package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
  366. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
  367. package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
  368. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +5 -5
  369. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
  370. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
  371. package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
  372. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +4 -4
  373. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
  374. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +3 -3
  375. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
  376. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +5 -5
  377. package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
  378. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +4 -4
  379. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +1 -1
  380. package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
  381. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +7 -7
  382. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  383. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +17 -17
  384. package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
  385. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +8 -8
  386. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  387. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
  388. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +1 -1
  389. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
  390. package/dist/ts/ts/WorkflowGraph/Adapters.js +5 -6
  391. package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -6
  392. package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
  393. package/dist/ts/ts/WorkflowGraph/Builder.js +264 -138
  394. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +6 -0
  395. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
  396. package/dist/ts/ts/WorkflowGraph/GraphTypes.js +4 -1
  397. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +8 -5
  398. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
  399. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +27 -10
  400. package/dist/ts/ts/Xlsx.js +3 -3
  401. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +3 -3
  402. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  403. package/dist/ts/ts/Yaml/ValidationPackage.js +11 -23
  404. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +3 -3
  405. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  406. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +11 -23
  407. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +16 -20
  408. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/FableJS.fs.js +1 -1
  409. package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/ReflectionUtils.fs.js +8 -8
  410. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +1 -2
  411. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.6.0/Http.fs.js +4 -4
  412. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCell.fs.js +8 -8
  413. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCellsCollection.fs.js +18 -18
  414. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsAddress.fs.js +3 -3
  415. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js +1 -1
  416. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorksheet.fs.js +7 -7
  417. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Value.fs.js +3 -5
  418. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Worksheet.fs.js +7 -7
  419. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Ranges/FsRangeBase.fs.js +1 -2
  420. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Tables/FsTable.fs.js +7 -7
  421. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +2 -2
  422. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Table.fs.js +1 -2
  423. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js +49 -71
  424. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Encode.fs.js +1 -1
  425. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.5.0/Decode.fs.js +1 -2
  426. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Compare.fs.js +857 -0
  427. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/CoreSchema.fs.js +725 -0
  428. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Decode.fs.js +1175 -0
  429. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Encode.fs.js +123 -0
  430. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Layout.fs.js +282 -0
  431. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexeme.fs.js +203 -0
  432. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexer.fs.js +1502 -0
  433. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Model.fs.js +564 -0
  434. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Node.fs.js +453 -0
  435. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Parser.fs.js +2622 -0
  436. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Reader.fs.js +108 -0
  437. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Source.fs.js +649 -0
  438. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Tag.fs.js +32 -0
  439. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Validate.fs.js +1084 -0
  440. package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Writer.fs.js +2927 -0
  441. package/package.json +5 -4
  442. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Decode.fs.js +0 -1669
  443. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Encode.fs.js +0 -57
  444. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Escapes.fs.js +0 -320
  445. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Interop/JsInterop.fs.js +0 -10
  446. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Persil.fs.js +0 -414
  447. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +0 -319
  448. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +0 -1884
  449. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +0 -23
  450. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/RegexActivePatterns.fs.js +0 -313
  451. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +0 -840
  452. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Writer.fs.js +0 -689
  453. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js +0 -359
@@ -1,689 +0,0 @@
1
- import { value, defaultArg } from '../../../node_modules/@fable-org/fable-library-ts/Option.js';
2
- import { PreprocessorElement_Line, PreprocessorElement_Level, YAMLContent, ScalarStyle, PreprocessorElement_Intendation, PreprocessorElement, WriterOptions_get_Default } from './YAMLiciousTypes.fs.js';
3
- import { forAll, toList, delay, collect, singleton, map as map$1 } from '../../../node_modules/@fable-org/fable-library-ts/Seq.js';
4
- import { map, ofArray, isEmpty, empty, head, tail, cons, reverse, singleton as singleton$1 } from '../../../node_modules/@fable-org/fable-library-ts/List.js';
5
- import { replace, join, trimEnd, substring, split } from '../../../node_modules/@fable-org/fable-library-ts/String.js';
6
- import { Exception, int32ToString } from '../../../node_modules/@fable-org/fable-library-ts/Util.js';
7
- import { Line_normalizeNewlines } from './Syntax.fs.js';
8
- import { write as write$1 } from './Preprocessing.fs.js';
9
-
10
- function StyleVerifier_isInlineSimpleScalar(v) {
11
- if (!(v.Value.indexOf("\n") >= 0) && v.Comment == null) {
12
- const matchValue = v.Style;
13
- let matchResult = void 0;
14
- if (matchValue != null) {
15
- switch (value(matchValue).tag) {
16
- case /* Block */
17
- 3: {
18
- matchResult = 1;
19
- break;
20
- }
21
- default:
22
- matchResult = 0;
23
- }
24
- } else {
25
- matchResult = 0;
26
- }
27
- switch (matchResult) {
28
- case 0:
29
- return true;
30
- default:
31
- return false;
32
- }
33
- } else {
34
- return false;
35
- }
36
- }
37
- function StyleVerifier_checkInlineSequence(ele) {
38
- return forAll((x) => {
39
- if (x.tag === /* Value */
40
- 1) {
41
- return StyleVerifier_isInlineSimpleScalar(x.fields[0]);
42
- } else {
43
- return false;
44
- }
45
- }, ele);
46
- }
47
- function Formatting_mkComment(comment) {
48
- return "#" + comment;
49
- }
50
- function Formatting_mkKey(key) {
51
- return key + ":";
52
- }
53
- function Formatting_mkMinusLine(c) {
54
- return "- " + c;
55
- }
56
- const Formatting_continuationPrefix = " ";
57
- function Formatting_mkTag(tag) {
58
- let s = void 0;
59
- if (tag != null) {
60
- if (value(tag) === "!") {
61
- return "! ";
62
- } else if (s = value(tag), s.startsWith("!") && !s.startsWith("!!")) {
63
- const s_1 = value(tag);
64
- return s_1 + " ";
65
- } else {
66
- const s_2 = value(tag);
67
- return "!<" + s_2 + "> ";
68
- }
69
- } else {
70
- return "";
71
- }
72
- }
73
- function Formatting_mkAnchor(anchor) {
74
- let option_1 = void 0;
75
- return defaultArg((option_1 = anchor, option_1 != null ? "&" + value(option_1) + " " : void 0), "");
76
- }
77
- function Formatting_mkNodePrefix(content) {
78
- return Formatting_mkTag(content.Tag) + Formatting_mkAnchor(content.Anchor);
79
- }
80
- function Formatting_appendOptionalComment(comment, s) {
81
- let option_1 = void 0;
82
- return s + defaultArg((option_1 = comment, option_1 != null ? " " + Formatting_mkComment(value(option_1)) : void 0), "");
83
- }
84
- function Formatting_appendComment(content, s) {
85
- return Formatting_appendOptionalComment(content.Comment, s);
86
- }
87
- function Formatting_escapeSingleQuoted(s) {
88
- return replace(s, "'", "''");
89
- }
90
- function Formatting_escapeDoubleQuoted(s) {
91
- return replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(s, "\\", "\\\\"), '"', '\\"'), "\0", "\\0"), "\x07", "\\a"), "\b", "\\b"), " ", "\\t"), "\v", "\\v"), "\f", "\\f"), "\r", "\\r"), "\x1B", "\\e"), "…", "\\N"), " ", "\\_"), "\u2028", "\\L"), "\u2029", "\\P"), "\n", "\\n");
92
- }
93
- function Formatting_resolveBlockStyle(options, content) {
94
- const matchValue_1 = content.Style;
95
- let matchResult = void 0, chomp = void 0, indent = void 0, style = void 0;
96
- if (options.PreserveScalarStyle) {
97
- if (matchValue_1 != null) {
98
- if (value(matchValue_1).tag === /* Block */
99
- 3) {
100
- matchResult = 0;
101
- chomp = value(matchValue_1).fields[1];
102
- indent = value(matchValue_1).fields[2];
103
- style = value(matchValue_1).fields[0];
104
- } else {
105
- matchResult = 1;
106
- }
107
- } else {
108
- matchResult = 1;
109
- }
110
- } else {
111
- matchResult = 1;
112
- }
113
- switch (matchResult) {
114
- case 0:
115
- return [style, chomp, indent];
116
- default:
117
- return [options.MultilineFallbackStyle, options.MultilineFallbackChomping, void 0];
118
- }
119
- }
120
- function Formatting_scalarToInlineText(options, content) {
121
- const v = content.Value;
122
- if (options.PreserveScalarStyle) {
123
- const matchValue = content.Style;
124
- let matchResult = void 0;
125
- if (matchValue != null) {
126
- switch (value(matchValue).tag) {
127
- case /* SingleQuoted */
128
- 1: {
129
- matchResult = 0;
130
- break;
131
- }
132
- case /* DoubleQuoted */
133
- 2: {
134
- matchResult = 1;
135
- break;
136
- }
137
- default:
138
- matchResult = 2;
139
- }
140
- } else {
141
- matchResult = 2;
142
- }
143
- switch (matchResult) {
144
- case 0:
145
- return "'" + Formatting_escapeSingleQuoted(v) + "'";
146
- case 1:
147
- return '"' + Formatting_escapeDoubleQuoted(v) + '"';
148
- default:
149
- return v;
150
- }
151
- } else {
152
- return v;
153
- }
154
- }
155
- function Formatting_mkKeyContent(options, content) {
156
- return Formatting_mkNodePrefix(content) + Formatting_scalarToInlineText(options, content);
157
- }
158
- function Formatting_mkMappingKey(options, key) {
159
- return Formatting_mkKey(Formatting_mkKeyContent(options, key));
160
- }
161
- function Formatting_shouldEmitBlockScalar(options, content) {
162
- const hasMultiline = content.Value.indexOf("\n") >= 0;
163
- const matchValue_1 = content.Style;
164
- let matchResult = void 0;
165
- if (options.PreserveScalarStyle) {
166
- if (matchValue_1 != null) {
167
- switch (value(matchValue_1).tag) {
168
- case /* Plain */
169
- 0: {
170
- matchResult = 0;
171
- break;
172
- }
173
- case /* Block */
174
- 3: {
175
- matchResult = 1;
176
- break;
177
- }
178
- default:
179
- matchResult = 2;
180
- }
181
- } else {
182
- matchResult = 2;
183
- }
184
- } else {
185
- matchResult = 2;
186
- }
187
- switch (matchResult) {
188
- case 0:
189
- return false;
190
- case 1:
191
- return true;
192
- default:
193
- return hasMultiline;
194
- }
195
- }
196
- function Formatting_shouldEmitPlainMultilineScalar(options, content) {
197
- if (options.PreserveScalarStyle && content.Value.indexOf("\n") >= 0) {
198
- const matchValue = content.Style;
199
- let matchResult = void 0;
200
- if (matchValue != null) {
201
- if (value(matchValue).tag === /* Plain */
202
- 0) {
203
- matchResult = 0;
204
- } else {
205
- matchResult = 1;
206
- }
207
- } else {
208
- matchResult = 1;
209
- }
210
- switch (matchResult) {
211
- case 0:
212
- return true;
213
- default:
214
- return false;
215
- }
216
- } else {
217
- return false;
218
- }
219
- }
220
- function Formatting_mkInlineContent(options, content) {
221
- const inlineScalar = Formatting_scalarToInlineText(options, content);
222
- return Formatting_appendComment(content, Formatting_mkNodePrefix(content) + inlineScalar);
223
- }
224
- function Formatting_mkInlineSequence(options, seq) {
225
- return "[" + join(", ", map((x) => {
226
- if (x.tag === /* Value */
227
- 1) {
228
- const v = x.fields[0];
229
- return Formatting_mkNodePrefix(v) + Formatting_scalarToInlineText(options, v);
230
- } else {
231
- throw new Exception("Invalid sequence element");
232
- }
233
- }, seq)) + "]";
234
- }
235
- function Formatting_mkBlockHeader(style, chomp, indent) {
236
- let option_1 = void 0;
237
- return (style.tag === /* Folded */
238
- 1 ? ">" : "|") + defaultArg((option_1 = indent, option_1 != null ? int32ToString(value(option_1)) : void 0), "") + (chomp.tag === /* Clip */
239
- 1 ? "" : chomp.tag === /* Keep */
240
- 2 ? "+" : "-");
241
- }
242
- function Formatting_bodyTextForChomping(chomp, value) {
243
- const normalized = Line_normalizeNewlines(value);
244
- switch (chomp.tag) {
245
- case /* Clip */
246
- 1:
247
- case /* Keep */
248
- 2:
249
- if (normalized.endsWith("\n")) {
250
- return substring(normalized, 0, normalized.length - 1);
251
- } else {
252
- return normalized;
253
- }
254
- default:
255
- return trimEnd(normalized, "\n");
256
- }
257
- }
258
- function Formatting_splitPreservingEmpty(s) {
259
- return ofArray(split(s, ["\n"], void 0, 0));
260
- }
261
- function Formatting_plainMultilineLines(content) {
262
- return Formatting_splitPreservingEmpty(Line_normalizeNewlines(content.Value));
263
- }
264
- function Formatting_mkPlainMultilineNode(mkHeader, lines) {
265
- const patternInput = isEmpty(lines) ? ["", empty()] : [head(lines), tail(lines)];
266
- const continuationLines = map((line) => PreprocessorElement_Line(Formatting_continuationPrefix + line), patternInput[1]);
267
- return PreprocessorElement_Level(cons(PreprocessorElement_Line(mkHeader(patternInput[0])), continuationLines));
268
- }
269
- function Formatting_mkPlainMultilineMapping(options, key, content) {
270
- return Formatting_mkPlainMultilineNode((firstLine) => Formatting_appendComment(content, Formatting_mkMappingKey(options, key) + " " + Formatting_mkNodePrefix(content) + firstLine), Formatting_plainMultilineLines(content));
271
- }
272
- function Formatting_mkPlainMultilineSequenceItem(options, content) {
273
- return Formatting_mkPlainMultilineNode((firstLine) => Formatting_appendComment(content, "- " + Formatting_mkNodePrefix(content) + firstLine), Formatting_plainMultilineLines(content));
274
- }
275
- function Formatting_mkPlainMultilineRoot(options, content) {
276
- return Formatting_mkPlainMultilineNode((firstLine) => Formatting_appendComment(content, Formatting_mkNodePrefix(content) + firstLine), Formatting_plainMultilineLines(content));
277
- }
278
- function Formatting_tryLegacyPlainMultilineContent(items) {
279
- const loop = (allowMetadata_1_mut, remaining_mut, acc_mut) => {
280
- loop:
281
- while (true) {
282
- const allowMetadata_1 = allowMetadata_1_mut, remaining = remaining_mut, acc = acc_mut;
283
- let content = void 0, hasPlainCompatibleStyle = void 0, matchValue = void 0, hasOnlyContinuationContent = void 0;
284
- let matchResult = void 0, content_2 = void 0, rest_1 = void 0;
285
- if (!isEmpty(remaining)) {
286
- if (head(remaining).tag === /* Value */
287
- 1) {
288
- if (content = head(remaining).fields[0], hasPlainCompatibleStyle = (matchValue = content.Style, matchValue != null ? value(matchValue).tag === /* Plain */
289
- 0 : true), hasOnlyContinuationContent = content.Comment == null && content.Anchor == null && content.Tag == null, hasPlainCompatibleStyle && (allowMetadata_1 ? true : hasOnlyContinuationContent)) {
290
- matchResult = 1;
291
- content_2 = head(remaining).fields[0];
292
- rest_1 = tail(remaining);
293
- } else {
294
- matchResult = 2;
295
- }
296
- } else {
297
- matchResult = 2;
298
- }
299
- } else {
300
- matchResult = 0;
301
- }
302
- switch (matchResult) {
303
- case 0:
304
- return reverse(acc);
305
- case 1: {
306
- allowMetadata_1_mut = false;
307
- remaining_mut = rest_1;
308
- acc_mut = cons(content_2, acc);
309
- continue loop;
310
- }
311
- default:
312
- return void 0;
313
- }
314
- break;
315
- }
316
- };
317
- const matchValue_1 = loop(true, items, empty());
318
- let matchResult_1 = void 0, firstSegment = void 0, segments = void 0;
319
- if (matchValue_1 != null) {
320
- if (!isEmpty(value(matchValue_1))) {
321
- if (!isEmpty(tail(value(matchValue_1)))) {
322
- matchResult_1 = 0;
323
- firstSegment = head(value(matchValue_1));
324
- segments = value(matchValue_1);
325
- } else {
326
- matchResult_1 = 1;
327
- }
328
- } else {
329
- matchResult_1 = 1;
330
- }
331
- } else {
332
- matchResult_1 = 1;
333
- }
334
- switch (matchResult_1) {
335
- case 0:
336
- return new YAMLContent(join("\n", map((segment) => segment.Value, segments)), firstSegment.Comment, firstSegment.Anchor, firstSegment.Tag, ScalarStyle.Plain);
337
- default:
338
- return void 0;
339
- }
340
- }
341
- function Formatting_mkBlockScalarMapping(options, key, content) {
342
- const patternInput = Formatting_resolveBlockStyle(options, content);
343
- const chomp = patternInput[1];
344
- const header = Formatting_mkBlockHeader(patternInput[0], chomp, patternInput[2]);
345
- const lines = Formatting_splitPreservingEmpty(Formatting_bodyTextForChomping(chomp, content.Value));
346
- return PreprocessorElement_Level(ofArray([PreprocessorElement_Line(Formatting_appendComment(content, Formatting_mkMappingKey(options, key) + " " + Formatting_mkNodePrefix(content) + header)), PreprocessorElement_Intendation(map(PreprocessorElement_Line, lines))]));
347
- }
348
- function Formatting_mkBlockScalarSequenceItem(options, content) {
349
- const patternInput = Formatting_resolveBlockStyle(options, content);
350
- const chomp = patternInput[1];
351
- const header = Formatting_mkBlockHeader(patternInput[0], chomp, patternInput[2]);
352
- const lines = Formatting_splitPreservingEmpty(Formatting_bodyTextForChomping(chomp, content.Value));
353
- return PreprocessorElement_Level(ofArray([PreprocessorElement_Line(Formatting_appendComment(content, "- " + Formatting_mkNodePrefix(content) + header)), PreprocessorElement_Intendation(map(PreprocessorElement_Line, lines))]));
354
- }
355
- function Formatting_mkBlockScalarRoot(options, content) {
356
- const patternInput = Formatting_resolveBlockStyle(options, content);
357
- const chomp = patternInput[1];
358
- const header = Formatting_mkBlockHeader(patternInput[0], chomp, patternInput[2]);
359
- const lines = Formatting_splitPreservingEmpty(Formatting_bodyTextForChomping(chomp, content.Value));
360
- return PreprocessorElement_Level(ofArray([PreprocessorElement_Line(Formatting_appendComment(content, Formatting_mkNodePrefix(content) + header)), PreprocessorElement_Intendation(map(PreprocessorElement_Line, lines))]));
361
- }
362
- function detokenizeWithOptions(options, ele) {
363
- const loop = (ele_1) => {
364
- switch (ele_1.tag) {
365
- case /* Mapping */
366
- 0: {
367
- const key = ele_1.fields[0];
368
- const v = ele_1.fields[1];
369
- let matchResult = void 0, value_6 = void 0, value_7 = void 0, value_8 = void 0, a = void 0, items_6 = void 0, value_10 = void 0, value_11 = void 0, value_12 = void 0, seq_2 = void 0, seq_3 = void 0, anyElse = void 0;
370
- if (key.Comment != null) {
371
- matchResult = 0;
372
- } else {
373
- switch (v.tag) {
374
- case /* Object */
375
- 3: {
376
- if (isEmpty(v.fields[0])) {
377
- if (Formatting_tryLegacyPlainMultilineContent(v.fields[0]) != null) {
378
- matchResult = 5;
379
- items_6 = v.fields[0];
380
- } else {
381
- matchResult = 11;
382
- }
383
- } else {
384
- switch (head(v.fields[0]).tag) {
385
- case /* Value */
386
- 1: {
387
- if (isEmpty(tail(v.fields[0]))) {
388
- if (Formatting_shouldEmitPlainMultilineScalar(options, head(v.fields[0]).fields[0])) {
389
- matchResult = 1;
390
- value_6 = head(v.fields[0]).fields[0];
391
- } else if (Formatting_shouldEmitBlockScalar(options, head(v.fields[0]).fields[0])) {
392
- matchResult = 2;
393
- value_7 = head(v.fields[0]).fields[0];
394
- } else {
395
- matchResult = 3;
396
- value_8 = head(v.fields[0]).fields[0];
397
- }
398
- } else if (Formatting_tryLegacyPlainMultilineContent(v.fields[0]) != null) {
399
- matchResult = 5;
400
- items_6 = v.fields[0];
401
- } else {
402
- matchResult = 12;
403
- anyElse = v;
404
- }
405
- break;
406
- }
407
- case /* Alias */
408
- 7: {
409
- if (isEmpty(tail(v.fields[0]))) {
410
- matchResult = 4;
411
- a = head(v.fields[0]).fields[0];
412
- } else if (Formatting_tryLegacyPlainMultilineContent(v.fields[0]) != null) {
413
- matchResult = 5;
414
- items_6 = v.fields[0];
415
- } else {
416
- matchResult = 12;
417
- anyElse = v;
418
- }
419
- break;
420
- }
421
- case /* Sequence */
422
- 2: {
423
- if (Formatting_tryLegacyPlainMultilineContent(v.fields[0]) != null) {
424
- matchResult = 5;
425
- items_6 = v.fields[0];
426
- } else if (isEmpty(tail(v.fields[0]))) {
427
- if (StyleVerifier_checkInlineSequence(head(v.fields[0]).fields[0])) {
428
- matchResult = 9;
429
- seq_2 = head(v.fields[0]).fields[0];
430
- } else {
431
- matchResult = 12;
432
- anyElse = v;
433
- }
434
- } else {
435
- matchResult = 12;
436
- anyElse = v;
437
- }
438
- break;
439
- }
440
- default:
441
- if (Formatting_tryLegacyPlainMultilineContent(v.fields[0]) != null) {
442
- matchResult = 5;
443
- items_6 = v.fields[0];
444
- } else {
445
- matchResult = 12;
446
- anyElse = v;
447
- }
448
- }
449
- }
450
- break;
451
- }
452
- case /* Value */
453
- 1: {
454
- if (Formatting_shouldEmitBlockScalar(options, v.fields[0])) {
455
- matchResult = 6;
456
- value_10 = v.fields[0];
457
- } else if (Formatting_shouldEmitPlainMultilineScalar(options, v.fields[0])) {
458
- matchResult = 7;
459
- value_11 = v.fields[0];
460
- } else {
461
- matchResult = 8;
462
- value_12 = v.fields[0];
463
- }
464
- break;
465
- }
466
- case /* Sequence */
467
- 2: {
468
- if (StyleVerifier_checkInlineSequence(v.fields[0])) {
469
- matchResult = 10;
470
- seq_3 = v.fields[0];
471
- } else {
472
- matchResult = 12;
473
- anyElse = v;
474
- }
475
- break;
476
- }
477
- default: {
478
- matchResult = 12;
479
- anyElse = v;
480
- }
481
- }
482
- }
483
- switch (matchResult) {
484
- case 0:
485
- return PreprocessorElement_Level(ofArray([PreprocessorElement_Line(Formatting_appendOptionalComment(key.Comment, Formatting_mkMappingKey(options, key))), PreprocessorElement_Intendation(singleton$1(loop(v)))]));
486
- case 1:
487
- return Formatting_mkPlainMultilineMapping(options, key, value_6);
488
- case 2:
489
- return Formatting_mkBlockScalarMapping(options, key, value_7);
490
- case 3:
491
- return PreprocessorElement_Line(Formatting_mkMappingKey(options, key) + " " + Formatting_mkInlineContent(options, value_8));
492
- case 4:
493
- return PreprocessorElement_Line(Formatting_mkMappingKey(options, key) + " *" + a);
494
- case 5:
495
- return Formatting_mkPlainMultilineMapping(options, key, value(Formatting_tryLegacyPlainMultilineContent(items_6)));
496
- case 6:
497
- return Formatting_mkBlockScalarMapping(options, key, value_10);
498
- case 7:
499
- return Formatting_mkPlainMultilineMapping(options, key, value_11);
500
- case 8:
501
- return PreprocessorElement_Line(Formatting_mkMappingKey(options, key) + " " + Formatting_mkInlineContent(options, value_12));
502
- case 9:
503
- return PreprocessorElement_Line(Formatting_mkMappingKey(options, key) + " " + Formatting_mkInlineSequence(options, seq_2));
504
- case 10:
505
- return PreprocessorElement_Line(Formatting_mkMappingKey(options, key) + " " + Formatting_mkInlineSequence(options, seq_3));
506
- case 11:
507
- return PreprocessorElement_Line(Formatting_mkMappingKey(options, key) + " {}");
508
- default:
509
- return PreprocessorElement_Level(ofArray([PreprocessorElement_Line(Formatting_mkMappingKey(options, key)), PreprocessorElement_Intendation(singleton$1(loop(anyElse)))]));
510
- }
511
- }
512
- case /* Object */
513
- 3:
514
- if (Formatting_tryLegacyPlainMultilineContent(ele_1.fields[0]) != null) {
515
- const items_7 = ele_1.fields[0];
516
- return Formatting_mkPlainMultilineRoot(options, value(Formatting_tryLegacyPlainMultilineContent(items_7)));
517
- } else if (isEmpty(ele_1.fields[0])) {
518
- return PreprocessorElement_Line("{}");
519
- } else {
520
- const seq_4 = ele_1.fields[0];
521
- return PreprocessorElement_Level(toList(delay(() => map$1(loop, seq_4))));
522
- }
523
- case /* Value */
524
- 1:
525
- if (Formatting_shouldEmitPlainMultilineScalar(options, ele_1.fields[0])) {
526
- const value_14 = ele_1.fields[0];
527
- return Formatting_mkPlainMultilineRoot(options, value_14);
528
- } else if (Formatting_shouldEmitBlockScalar(options, ele_1.fields[0])) {
529
- const value_15 = ele_1.fields[0];
530
- return Formatting_mkBlockScalarRoot(options, value_15);
531
- } else {
532
- const value_16 = ele_1.fields[0];
533
- return PreprocessorElement_Line(Formatting_mkInlineContent(options, value_16));
534
- }
535
- case /* Sequence */
536
- 2: {
537
- const seq_5 = ele_1.fields[0];
538
- return PreprocessorElement_Level(toList(delay(() => collect((element_1) => {
539
- const matchValue = element_1;
540
- let matchResult_1 = void 0, value_21 = void 0, value_22 = void 0, value_23 = void 0, a_1 = void 0, items_12 = void 0, value_25 = void 0, value_26 = void 0, value_27 = void 0, nested_1 = void 0, anyElse_1 = void 0;
541
- switch (matchValue.tag) {
542
- case /* Object */
543
- 3: {
544
- if (isEmpty(matchValue.fields[0])) {
545
- if (Formatting_tryLegacyPlainMultilineContent(matchValue.fields[0]) != null) {
546
- matchResult_1 = 4;
547
- items_12 = matchValue.fields[0];
548
- } else {
549
- matchResult_1 = 9;
550
- }
551
- } else {
552
- switch (head(matchValue.fields[0]).tag) {
553
- case /* Value */
554
- 1: {
555
- if (isEmpty(tail(matchValue.fields[0]))) {
556
- if (Formatting_shouldEmitPlainMultilineScalar(options, head(matchValue.fields[0]).fields[0])) {
557
- matchResult_1 = 0;
558
- value_21 = head(matchValue.fields[0]).fields[0];
559
- } else if (Formatting_shouldEmitBlockScalar(options, head(matchValue.fields[0]).fields[0])) {
560
- matchResult_1 = 1;
561
- value_22 = head(matchValue.fields[0]).fields[0];
562
- } else {
563
- matchResult_1 = 2;
564
- value_23 = head(matchValue.fields[0]).fields[0];
565
- }
566
- } else if (Formatting_tryLegacyPlainMultilineContent(matchValue.fields[0]) != null) {
567
- matchResult_1 = 4;
568
- items_12 = matchValue.fields[0];
569
- } else {
570
- matchResult_1 = 10;
571
- anyElse_1 = matchValue;
572
- }
573
- break;
574
- }
575
- case /* Alias */
576
- 7: {
577
- if (isEmpty(tail(matchValue.fields[0]))) {
578
- matchResult_1 = 3;
579
- a_1 = head(matchValue.fields[0]).fields[0];
580
- } else if (Formatting_tryLegacyPlainMultilineContent(matchValue.fields[0]) != null) {
581
- matchResult_1 = 4;
582
- items_12 = matchValue.fields[0];
583
- } else {
584
- matchResult_1 = 10;
585
- anyElse_1 = matchValue;
586
- }
587
- break;
588
- }
589
- default:
590
- if (Formatting_tryLegacyPlainMultilineContent(matchValue.fields[0]) != null) {
591
- matchResult_1 = 4;
592
- items_12 = matchValue.fields[0];
593
- } else {
594
- matchResult_1 = 10;
595
- anyElse_1 = matchValue;
596
- }
597
- }
598
- }
599
- break;
600
- }
601
- case /* Value */
602
- 1: {
603
- if (Formatting_shouldEmitPlainMultilineScalar(options, matchValue.fields[0])) {
604
- matchResult_1 = 5;
605
- value_25 = matchValue.fields[0];
606
- } else if (Formatting_shouldEmitBlockScalar(options, matchValue.fields[0])) {
607
- matchResult_1 = 6;
608
- value_26 = matchValue.fields[0];
609
- } else {
610
- matchResult_1 = 7;
611
- value_27 = matchValue.fields[0];
612
- }
613
- break;
614
- }
615
- case /* Sequence */
616
- 2: {
617
- if (StyleVerifier_checkInlineSequence(matchValue.fields[0])) {
618
- matchResult_1 = 8;
619
- nested_1 = matchValue.fields[0];
620
- } else {
621
- matchResult_1 = 10;
622
- anyElse_1 = matchValue;
623
- }
624
- break;
625
- }
626
- default: {
627
- matchResult_1 = 10;
628
- anyElse_1 = matchValue;
629
- }
630
- }
631
- switch (matchResult_1) {
632
- case 0:
633
- return singleton(Formatting_mkPlainMultilineSequenceItem(options, value_21));
634
- case 1:
635
- return singleton(Formatting_mkBlockScalarSequenceItem(options, value_22));
636
- case 2:
637
- return singleton(PreprocessorElement_Line(Formatting_mkMinusLine(Formatting_mkInlineContent(options, value_23))));
638
- case 3:
639
- return singleton(PreprocessorElement_Line("- *" + a_1));
640
- case 4:
641
- return singleton(Formatting_mkPlainMultilineSequenceItem(options, value(Formatting_tryLegacyPlainMultilineContent(items_12))));
642
- case 5:
643
- return singleton(Formatting_mkPlainMultilineSequenceItem(options, value_25));
644
- case 6:
645
- return singleton(Formatting_mkBlockScalarSequenceItem(options, value_26));
646
- case 7:
647
- return singleton(PreprocessorElement_Line(Formatting_mkMinusLine(Formatting_mkInlineContent(options, value_27))));
648
- case 8:
649
- return singleton(PreprocessorElement_Line(Formatting_mkMinusLine(Formatting_mkInlineSequence(options, nested_1))));
650
- case 9:
651
- return singleton(PreprocessorElement_Line("- {}"));
652
- default:
653
- return singleton(PreprocessorElement_Level(ofArray([PreprocessorElement_Line("-"), PreprocessorElement_Intendation(singleton$1(loop(anyElse_1)))])));
654
- }
655
- }, seq_5))));
656
- }
657
- case /* Comment */
658
- 4: {
659
- const c = ele_1.fields[0];
660
- return PreprocessorElement_Line(Formatting_mkComment(c));
661
- }
662
- case /* DocumentStart */
663
- 5:
664
- return PreprocessorElement_Line("---");
665
- case /* DocumentEnd */
666
- 6:
667
- return PreprocessorElement_Line("...");
668
- case /* Alias */
669
- 7: {
670
- const a_2 = ele_1.fields[0];
671
- return PreprocessorElement_Line("*" + a_2);
672
- }
673
- default:
674
- return PreprocessorElement.Nil;
675
- }
676
- };
677
- return loop(ele);
678
- }
679
- function detokenize(ele) {
680
- return detokenizeWithOptions(WriterOptions_get_Default(), ele);
681
- }
682
- function writeWithOptions(ele, writerOptions, fconfig) {
683
- return write$1(detokenizeWithOptions(writerOptions, ele), fconfig);
684
- }
685
- function write(ele, fconfig) {
686
- return writeWithOptions(ele, WriterOptions_get_Default(), fconfig);
687
- }
688
-
689
- export { Formatting_appendOptionalComment, Formatting_mkBlockScalarMapping, Formatting_mkBlockScalarRoot, Formatting_mkBlockScalarSequenceItem, Formatting_mkComment, Formatting_mkInlineContent, Formatting_mkInlineSequence, Formatting_mkKey, Formatting_mkKeyContent, Formatting_mkMappingKey, Formatting_mkMinusLine, Formatting_mkNodePrefix, Formatting_mkPlainMultilineMapping, Formatting_mkPlainMultilineRoot, Formatting_mkPlainMultilineSequenceItem, Formatting_resolveBlockStyle, Formatting_shouldEmitBlockScalar, Formatting_shouldEmitPlainMultilineScalar, Formatting_tryLegacyPlainMultilineContent, StyleVerifier_checkInlineSequence, detokenize, detokenizeWithOptions, write, writeWithOptions };