@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,344 @@
1
+ import { getItemFromDict, addToDict, addToSet } from '../../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
2
+ import { some, value } from '../../../../node_modules/@fable-org/fable-library-js/Option.js';
3
+ import { comparePrimitives } from '../../../../node_modules/@fable-org/fable-library-js/Util.js';
4
+ import { map, iterate, isEmpty, max, collect, delay, min, minBy, empty, singleton } from '../../../../node_modules/@fable-org/fable-library-js/Seq.js';
5
+ import { rangeDouble } from '../../../../node_modules/@fable-org/fable-library-js/Range.js';
6
+ import { FsAddress } from '../FsAddress.fs.js';
7
+
8
+ function Dictionary_tryGet(k, dict) {
9
+ if (dict.has(k)) {
10
+ return some(getItemFromDict(dict, k));
11
+ } else {
12
+ return void 0;
13
+ }
14
+ }
15
+ class FsCellsCollection {
16
+ constructor() {
17
+ this._columnsUsed = /* @__PURE__ */ new Map([]);
18
+ this._deleted = /* @__PURE__ */ new Map([]);
19
+ this._rowsCollection = /* @__PURE__ */ new Map([]);
20
+ this._maxColumnUsed = 0;
21
+ this._maxRowUsed = 0;
22
+ this._rowsUsed = /* @__PURE__ */ new Map([]);
23
+ this._count = 0;
24
+ }
25
+ get Count() {
26
+ const this$ = this;
27
+ return this$._count | 0;
28
+ }
29
+ set Count(count) {
30
+ const this$ = this;
31
+ this$._count = count | 0;
32
+ }
33
+ get MaxRowNumber() {
34
+ const this$ = this;
35
+ return this$._maxRowUsed | 0;
36
+ }
37
+ get MaxColumnNumber() {
38
+ const this$ = this;
39
+ return this$._maxColumnUsed | 0;
40
+ }
41
+ Copy() {
42
+ const this$ = this;
43
+ const cells = map((c) => c.Copy(), this$.GetCells());
44
+ return FsCellsCollection.createFromCells(cells);
45
+ }
46
+ static copy(cellsCollection) {
47
+ return cellsCollection.Copy();
48
+ }
49
+ static IncrementUsage(dictionary, key) {
50
+ const matchValue = Dictionary_tryGet(key, dictionary);
51
+ if (matchValue == null) {
52
+ addToDict(dictionary, key, 1);
53
+ } else {
54
+ const count = value(matchValue) | 0;
55
+ dictionary.set(key, count + 1);
56
+ }
57
+ }
58
+ static DecrementUsage(dictionary, key) {
59
+ const matchValue = Dictionary_tryGet(key, dictionary);
60
+ if (matchValue == null) {
61
+ return false;
62
+ } else if (value(matchValue) > 1) {
63
+ const count_1 = value(matchValue) | 0;
64
+ dictionary.set(key, count_1 - 1);
65
+ return false;
66
+ } else {
67
+ dictionary.delete(key);
68
+ return true;
69
+ }
70
+ }
71
+ static createFromCells(cells) {
72
+ const fcc = new FsCellsCollection();
73
+ fcc.AddMany(cells);
74
+ return fcc;
75
+ }
76
+ Clear() {
77
+ const this$ = this;
78
+ this$._count = 0;
79
+ this$._rowsUsed.clear();
80
+ this$._columnsUsed.clear();
81
+ this$._rowsCollection.clear();
82
+ this$._maxRowUsed = 0;
83
+ this$._maxColumnUsed = 0;
84
+ return this$;
85
+ }
86
+ Add(cell, row, column) {
87
+ let matchValue, columnsCollection_1;
88
+ const this$ = this;
89
+ if (row != null) {
90
+ cell.RowNumber = value(row) | 0;
91
+ }
92
+ if (column != null) {
93
+ cell.ColumnNumber = value(column) | 0;
94
+ }
95
+ const row_1 = cell.RowNumber | 0;
96
+ const column_1 = cell.ColumnNumber | 0;
97
+ this$._count = this$._count + 1 | 0;
98
+ FsCellsCollection.IncrementUsage(this$._rowsUsed, row_1);
99
+ FsCellsCollection.IncrementUsage(this$._columnsUsed, column_1);
100
+ addToDict((matchValue = Dictionary_tryGet(row_1, this$._rowsCollection), matchValue == null ? (columnsCollection_1 = /* @__PURE__ */ new Map([]), addToDict(this$._rowsCollection, row_1, columnsCollection_1), columnsCollection_1) : value(matchValue)), column_1, cell);
101
+ if (row_1 > this$._maxRowUsed) {
102
+ this$._maxRowUsed = row_1 | 0;
103
+ }
104
+ if (column_1 > this$._maxColumnUsed) {
105
+ this$._maxColumnUsed = column_1 | 0;
106
+ }
107
+ const matchValue_1 = Dictionary_tryGet(row_1, this$._deleted);
108
+ if (matchValue_1 == null) ; else {
109
+ const delHash = value(matchValue_1);
110
+ delHash.delete(column_1);
111
+ }
112
+ }
113
+ static addCellWithIndeces(rowIndex, colIndex, cell, cellsCollection) {
114
+ cellsCollection.Add(cell, rowIndex, colIndex);
115
+ }
116
+ static addCell(cell, cellsCollection) {
117
+ cellsCollection.Add(cell);
118
+ return cellsCollection;
119
+ }
120
+ AddMany(cells) {
121
+ const this$ = this;
122
+ iterate((arg) => {
123
+ this$.Add(arg);
124
+ }, cells);
125
+ }
126
+ static addCells(cells, cellsCollection) {
127
+ cellsCollection.AddMany(cells);
128
+ return cellsCollection;
129
+ }
130
+ ContainsCellAt(rowIndex, colIndex) {
131
+ const this$ = this;
132
+ const matchValue = Dictionary_tryGet(rowIndex, this$._rowsCollection);
133
+ if (matchValue == null) {
134
+ return false;
135
+ } else {
136
+ const colsCollection = value(matchValue);
137
+ return colsCollection.has(colIndex);
138
+ }
139
+ }
140
+ static containsCellAt(rowIndex, colIndex, cellsCollection) {
141
+ return cellsCollection.ContainsCellAt(rowIndex, colIndex);
142
+ }
143
+ RemoveCellAt(row, column) {
144
+ let delHash;
145
+ const this$ = this;
146
+ this$._count = this$._count - 1 | 0;
147
+ const rowRemoved = FsCellsCollection.DecrementUsage(this$._rowsUsed, row);
148
+ const columnRemoved = FsCellsCollection.DecrementUsage(this$._columnsUsed, column);
149
+ if (rowRemoved && row === this$._maxRowUsed) {
150
+ this$._maxRowUsed = (!isEmpty(this$._rowsUsed.keys()) ? max(this$._rowsUsed.keys(), {
151
+ Compare: comparePrimitives
152
+ }) : 0) | 0;
153
+ }
154
+ if (columnRemoved && column === this$._maxColumnUsed) {
155
+ this$._maxColumnUsed = (!isEmpty(this$._columnsUsed.keys()) ? max(this$._columnsUsed.keys(), {
156
+ Compare: comparePrimitives
157
+ }) : 0) | 0;
158
+ }
159
+ const matchValue = Dictionary_tryGet(row, this$._deleted);
160
+ if (matchValue == null) {
161
+ const delHash_3 = /* @__PURE__ */ new Set([]);
162
+ addToSet(column, delHash_3);
163
+ addToDict(this$._deleted, row, delHash_3);
164
+ } else if (delHash = value(matchValue), delHash.has(column)) {
165
+ value(matchValue);
166
+ } else {
167
+ const delHash_2 = value(matchValue);
168
+ addToSet(column, delHash_2);
169
+ }
170
+ const matchValue_1 = Dictionary_tryGet(row, this$._rowsCollection);
171
+ if (matchValue_1 == null) ; else {
172
+ const columnsCollection = value(matchValue_1);
173
+ columnsCollection.delete(column);
174
+ if (columnsCollection.size === 0) {
175
+ this$._rowsCollection.delete(row);
176
+ }
177
+ }
178
+ }
179
+ static removeCellAt(rowIndex, colIndex, cellsCollection) {
180
+ cellsCollection.RemoveCellAt(rowIndex, colIndex);
181
+ return cellsCollection;
182
+ }
183
+ TryRemoveValueAt(rowIndex, colIndex) {
184
+ const this$ = this;
185
+ const matchValue = Dictionary_tryGet(rowIndex, this$._rowsCollection);
186
+ if (matchValue == null) ; else {
187
+ const colsCollection = value(matchValue);
188
+ try {
189
+ getItemFromDict(colsCollection, colIndex).Value = "";
190
+ } catch (matchValue_1) {
191
+ }
192
+ }
193
+ }
194
+ static tryRemoveValueAt(rowIndex, colIndex, cellsCollection) {
195
+ cellsCollection.TryRemoveValueAt(rowIndex, colIndex);
196
+ return cellsCollection;
197
+ }
198
+ RemoveValueAt(rowIndex, colIndex) {
199
+ const this$ = this;
200
+ getItemFromDict(getItemFromDict(this$._rowsCollection, rowIndex), colIndex).Value = "";
201
+ }
202
+ static removeValueAt(rowIndex, colIndex, cellsCollection) {
203
+ cellsCollection.RemoveValueAt(rowIndex, colIndex);
204
+ return cellsCollection;
205
+ }
206
+ GetCells() {
207
+ const this$ = this;
208
+ return collect((columnsCollection) => columnsCollection.values(), this$._rowsCollection.values());
209
+ }
210
+ static getCells(cellsCollection) {
211
+ return cellsCollection.GetCells();
212
+ }
213
+ GetCellsInRangeBy(rowStart, columnStart, rowEnd, columnEnd, predicate) {
214
+ const this$ = this;
215
+ const finalRow = (rowEnd > this$._maxRowUsed ? this$._maxRowUsed : rowEnd) | 0;
216
+ const finalColumn = (columnEnd > this$._maxColumnUsed ? this$._maxColumnUsed : columnEnd) | 0;
217
+ return delay(() => collect((ro) => {
218
+ const matchValue = Dictionary_tryGet(ro, this$._rowsCollection);
219
+ if (matchValue == null) {
220
+ return empty();
221
+ } else {
222
+ const columnsCollection = value(matchValue);
223
+ return collect((co) => {
224
+ const matchValue_1 = Dictionary_tryGet(co, columnsCollection);
225
+ let matchResult, cell_1;
226
+ if (matchValue_1 != null) {
227
+ if (predicate(value(matchValue_1))) {
228
+ matchResult = 0;
229
+ cell_1 = value(matchValue_1);
230
+ } else {
231
+ matchResult = 1;
232
+ }
233
+ } else {
234
+ matchResult = 1;
235
+ }
236
+ switch (matchResult) {
237
+ case 0:
238
+ return singleton(cell_1);
239
+ default: {
240
+ return empty();
241
+ }
242
+ }
243
+ }, rangeDouble(columnStart, 1, finalColumn));
244
+ }
245
+ }, rangeDouble(rowStart, 1, finalRow)));
246
+ }
247
+ static filterCellsFromTo(rowStart, columnStart, rowEnd, columnEnd, predicate, cellsCollection) {
248
+ return cellsCollection.GetCellsInRangeBy(rowStart, columnStart, rowEnd, columnEnd, predicate);
249
+ }
250
+ GetCellsInStringRangeBy(startAddress, lastAddress, predicate) {
251
+ const this$ = this;
252
+ return this$.GetCellsInRangeBy(startAddress.RowNumber, startAddress.ColumnNumber, lastAddress.RowNumber, lastAddress.ColumnNumber, predicate);
253
+ }
254
+ static filterCellsFromToAddress(startAddress, lastAddress, predicate, cellsCollection) {
255
+ return cellsCollection.GetCellsInStringRangeBy(startAddress, lastAddress, predicate);
256
+ }
257
+ GetCellsInRange(rowStart, columnStart, rowEnd, columnEnd) {
258
+ const this$ = this;
259
+ const finalRow = (rowEnd > this$._maxRowUsed ? this$._maxRowUsed : rowEnd) | 0;
260
+ const finalColumn = (columnEnd > this$._maxColumnUsed ? this$._maxColumnUsed : columnEnd) | 0;
261
+ return delay(() => collect((ro) => {
262
+ const matchValue = Dictionary_tryGet(ro, this$._rowsCollection);
263
+ if (matchValue == null) {
264
+ return empty();
265
+ } else {
266
+ const columnsCollection = value(matchValue);
267
+ return collect((co) => {
268
+ const matchValue_1 = Dictionary_tryGet(co, columnsCollection);
269
+ if (matchValue_1 != null) {
270
+ return singleton(value(matchValue_1));
271
+ } else {
272
+ return empty();
273
+ }
274
+ }, rangeDouble(columnStart, 1, finalColumn));
275
+ }
276
+ }, rangeDouble(rowStart, 1, finalRow)));
277
+ }
278
+ static getCellsFromTo(rowStart, columnStart, rowEnd, columnEnd, cellsCollection) {
279
+ return cellsCollection.GetCellsInRange(rowStart, columnStart, rowEnd, columnEnd);
280
+ }
281
+ GetCellsInStringRange(startAddress, lastAddress) {
282
+ const this$ = this;
283
+ return this$.GetCellsInRange(startAddress.RowNumber, startAddress.ColumnNumber, lastAddress.RowNumber, lastAddress.ColumnNumber);
284
+ }
285
+ static getCellsFromToAddress(startAddress, lastAddress, cellsCollection) {
286
+ return cellsCollection.GetCellsInStringRange(startAddress, lastAddress);
287
+ }
288
+ TryGetCell(row, column) {
289
+ const this$ = this;
290
+ if (row > this$._maxRowUsed ? true : column > this$._maxColumnUsed) {
291
+ return void 0;
292
+ } else {
293
+ const matchValue = Dictionary_tryGet(row, this$._rowsCollection);
294
+ if (matchValue == null) {
295
+ return void 0;
296
+ } else {
297
+ const matchValue_1 = Dictionary_tryGet(column, value(matchValue));
298
+ return matchValue_1 == null ? void 0 : value(matchValue_1);
299
+ }
300
+ }
301
+ }
302
+ static tryGetCell(rowIndex, colIndex, cellsCollection) {
303
+ return cellsCollection.TryGetCell(rowIndex, colIndex);
304
+ }
305
+ GetCellsInColumn(colIndex) {
306
+ const this$ = this;
307
+ return this$.GetCellsInRange(1, colIndex, this$._maxRowUsed, colIndex);
308
+ }
309
+ static getCellsInColumn(colIndex, cellsCollection) {
310
+ return cellsCollection.GetCellsInColumn(colIndex);
311
+ }
312
+ GetCellsInRow(rowIndex) {
313
+ const this$ = this;
314
+ return this$.GetCellsInRange(rowIndex, 1, rowIndex, this$._maxColumnUsed);
315
+ }
316
+ static getCellsInRow(rowIndex, cellsCollection) {
317
+ return cellsCollection.GetCellsInRow(rowIndex);
318
+ }
319
+ GetFirstAddress() {
320
+ let d_1;
321
+ const this$ = this;
322
+ return (isEmpty(this$._rowsCollection) ? true : isEmpty(this$._rowsCollection.keys())) ? new FsAddress(0, 0) : new FsAddress(min(this$._rowsCollection.keys(), {
323
+ Compare: comparePrimitives
324
+ }), (d_1 = minBy((d) => min(d.keys(), {
325
+ Compare: comparePrimitives
326
+ }), this$._rowsCollection.values(), {
327
+ Compare: comparePrimitives
328
+ }), min(d_1.keys(), {
329
+ Compare: comparePrimitives
330
+ })));
331
+ }
332
+ static getFirstAddress(cells) {
333
+ return cells.GetFirstAddress();
334
+ }
335
+ GetLastAddress() {
336
+ const this$ = this;
337
+ return new FsAddress(this$.MaxRowNumber, this$.MaxColumnNumber);
338
+ }
339
+ static getLastAddress(cells) {
340
+ return cells.GetLastAddress();
341
+ }
342
+ }
343
+
344
+ export { Dictionary_tryGet, FsCellsCollection };
@@ -0,0 +1,154 @@
1
+ import { parse } from '../../../node_modules/@fable-org/fable-library-js/Int32.js';
2
+ import { toFail, toText, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
3
+ import { StringBuilder_$ctor, StringBuilder__Append_244C7CD6 } from '../../../node_modules/@fable-org/fable-library-js/System.Text.js';
4
+ import { iterate } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
5
+ import { isLetter, isDigit } from '../../../node_modules/@fable-org/fable-library-js/Char.js';
6
+ import { toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
7
+ import { value, unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
8
+ import { stringHash, identityHash } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
9
+ import { mergeHashes } from './HashCodes.fs.js';
10
+
11
+ function CellReference_colAdressToIndex(columnAdress) {
12
+ const length = columnAdress.length | 0;
13
+ let sum = 0;
14
+ for (let i = 0; i <= length - 1; i++) {
15
+ let c_1;
16
+ const c = columnAdress[length - 1 - i];
17
+ c_1 = c.toLocaleUpperCase();
18
+ let factor;
19
+ const value = Math.pow(26, i);
20
+ factor = value >>> 0;
21
+ sum = sum + ((c_1.charCodeAt(0) >>> 0) - 64) * factor;
22
+ }
23
+ return sum;
24
+ }
25
+ function CellReference_indexToColAdress(i) {
26
+ const loop = (index_mut, acc_mut) => {
27
+ loop:
28
+ while (true) {
29
+ const index = index_mut, acc = acc_mut;
30
+ if (index === 0) {
31
+ return acc;
32
+ } else {
33
+ const mod26 = (index - 1) % 26;
34
+ index_mut = ~~((index - 1) / 26);
35
+ acc_mut = String.fromCharCode(("A".charCodeAt(0) >>> 0) + mod26) + acc;
36
+ continue loop;
37
+ }
38
+ }
39
+ };
40
+ return loop(i, "");
41
+ }
42
+ function CellReference_ofIndices(column, row) {
43
+ const arg = CellReference_indexToColAdress(column);
44
+ return toText(printf("%s%i"))(arg)(row);
45
+ }
46
+ function CellReference_toIndices(reference) {
47
+ const charPart = StringBuilder_$ctor();
48
+ const numPart = StringBuilder_$ctor();
49
+ iterate((c) => {
50
+ if (isLetter(c)) {
51
+ StringBuilder__Append_244C7CD6(charPart, c);
52
+ } else if (isDigit(c)) {
53
+ StringBuilder__Append_244C7CD6(numPart, c);
54
+ } else {
55
+ toFail(printf("Reference %s does not match Excel A1-style"))(reference);
56
+ }
57
+ }, reference.split(""));
58
+ return [CellReference_colAdressToIndex(toString(charPart)), parse(toString(numPart), 511, true, 32)];
59
+ }
60
+ class FsAddress {
61
+ constructor(rowNumber, columnNumber, fixedRow, fixedColumn) {
62
+ this._fixedRow = fixedRow != null && value(fixedRow);
63
+ this._fixedColumn = fixedColumn != null && value(fixedColumn);
64
+ this._rowNumber = rowNumber | 0;
65
+ this._columnNumber = columnNumber | 0;
66
+ this._trimmedAddress = "";
67
+ }
68
+ static fromString(cellAddressString, fixedRow, fixedColumn) {
69
+ const patternInput = CellReference_toIndices(cellAddressString);
70
+ return new FsAddress(~~patternInput[1], ~~patternInput[0], unwrap(fixedRow), unwrap(fixedColumn));
71
+ }
72
+ get ColumnNumber() {
73
+ const self = this;
74
+ return self._columnNumber | 0;
75
+ }
76
+ set ColumnNumber(colI) {
77
+ const self = this;
78
+ self._columnNumber = colI | 0;
79
+ }
80
+ get RowNumber() {
81
+ const self = this;
82
+ return self._rowNumber | 0;
83
+ }
84
+ set RowNumber(rowI) {
85
+ const self = this;
86
+ self._rowNumber = rowI | 0;
87
+ }
88
+ get Address() {
89
+ const self = this;
90
+ return CellReference_ofIndices(self._columnNumber >>> 0, self._rowNumber >>> 0);
91
+ }
92
+ set Address(address) {
93
+ const self = this;
94
+ const patternInput = CellReference_toIndices(address);
95
+ self._rowNumber = ~~patternInput[1] | 0;
96
+ self._columnNumber = ~~patternInput[0] | 0;
97
+ }
98
+ get FixedRow() {
99
+ return false;
100
+ }
101
+ get FixedColumn() {
102
+ return false;
103
+ }
104
+ Copy() {
105
+ const this$ = this;
106
+ const colNo = this$.ColumnNumber | 0;
107
+ return new FsAddress(this$.RowNumber, colNo, this$.FixedRow, this$.FixedColumn);
108
+ }
109
+ static copy(address) {
110
+ return address.Copy();
111
+ }
112
+ UpdateIndices(rowIndex, colIndex) {
113
+ const self = this;
114
+ self._columnNumber = colIndex | 0;
115
+ self._rowNumber = rowIndex | 0;
116
+ }
117
+ static updateIndices(rowIndex, colIndex, address) {
118
+ address.UpdateIndices(rowIndex, colIndex);
119
+ return address;
120
+ }
121
+ ToIndices() {
122
+ const self = this;
123
+ return [self._rowNumber, self._columnNumber];
124
+ }
125
+ static toIndices(address) {
126
+ return address.ToIndices();
127
+ }
128
+ Compare(address) {
129
+ const self = this;
130
+ return self.Address === address.Address && self.ColumnNumber === address.ColumnNumber && self.RowNumber === address.RowNumber && self.FixedColumn === address.FixedColumn && self.FixedRow === address.FixedRow;
131
+ }
132
+ static compare(address1, address2) {
133
+ return address1.Compare(address2);
134
+ }
135
+ GetHashCode() {
136
+ let copyOfStruct, copyOfStruct_1;
137
+ const this$ = this;
138
+ let hash_7;
139
+ let hash_5;
140
+ let hash_3;
141
+ const hash_1 = stringHash(this$.Address) | 0;
142
+ hash_3 = mergeHashes(this$.ColumnNumber, hash_1);
143
+ hash_5 = mergeHashes(this$.RowNumber, hash_3);
144
+ hash_7 = mergeHashes((copyOfStruct = this$.FixedColumn, identityHash(copyOfStruct)), hash_5);
145
+ return mergeHashes((copyOfStruct_1 = this$.FixedRow, identityHash(copyOfStruct_1)), hash_7) | 0;
146
+ }
147
+ Equals(other) {
148
+ let other_1;
149
+ const this$ = this;
150
+ return other instanceof FsAddress && (other_1 = other, this$.Compare(other_1));
151
+ }
152
+ }
153
+
154
+ export { CellReference_colAdressToIndex, CellReference_indexToColAdress, CellReference_ofIndices, CellReference_toIndices, FsAddress };
@@ -0,0 +1,116 @@
1
+ import { FsRangeAddress } from './Ranges/FsRangeAddress.fs.js';
2
+ import { FsAddress } from './FsAddress.fs.js';
3
+ import { FsCellsCollection } from './Cells/FsCellsCollection.fs.js';
4
+ import { map, exists, length, minBy, maxBy } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
5
+ import { getEnumerator, toIterator, comparePrimitives } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
6
+ import { FsRangeBase } from './Ranges/FsRangeBase.fs.js';
7
+
8
+ class FsColumn extends FsRangeBase {
9
+ constructor(rangeAddress, cells) {
10
+ super(rangeAddress);
11
+ this["cells@18"] = cells;
12
+ }
13
+ static empty() {
14
+ return new FsColumn(new FsRangeAddress(new FsAddress(0, 0), new FsAddress(0, 0)), new FsCellsCollection());
15
+ }
16
+ static createAt(index, cells) {
17
+ const getIndexBy = (f) => {
18
+ if (length(cells.GetCellsInColumn(index)) === 0) {
19
+ return 1;
20
+ } else {
21
+ return f((c) => c.Address.RowNumber)(cells.GetCellsInColumn(index)).Address.RowNumber | 0;
22
+ }
23
+ };
24
+ const minRowIndex = getIndexBy((projection) => (source_1) => minBy(projection, source_1, {
25
+ Compare: comparePrimitives
26
+ })) | 0;
27
+ const maxRowIndex = getIndexBy((projection_1) => (source_2) => maxBy(projection_1, source_2, {
28
+ Compare: comparePrimitives
29
+ })) | 0;
30
+ return new FsColumn(new FsRangeAddress(new FsAddress(minRowIndex, index), new FsAddress(maxRowIndex, index)), cells);
31
+ }
32
+ get Cells() {
33
+ const this$ = this;
34
+ return super.Cells(this$["cells@18"]);
35
+ }
36
+ get Index() {
37
+ const this$ = this;
38
+ return this$.RangeAddress.FirstAddress.ColumnNumber | 0;
39
+ }
40
+ set Index(i) {
41
+ const this$ = this;
42
+ this$.RangeAddress.FirstAddress.ColumnNumber = i | 0;
43
+ this$.RangeAddress.LastAddress.ColumnNumber = i | 0;
44
+ }
45
+ get MinRowIndex() {
46
+ const this$ = this;
47
+ return this$.RangeAddress.FirstAddress.RowNumber | 0;
48
+ }
49
+ get MaxRowIndex() {
50
+ const this$ = this;
51
+ return this$.RangeAddress.LastAddress.RowNumber | 0;
52
+ }
53
+ Copy() {
54
+ const this$ = this;
55
+ const ra = this$.RangeAddress.Copy();
56
+ const cells = map((c) => c.Copy(), this$.Cells);
57
+ const fcc = new FsCellsCollection();
58
+ fcc.AddMany(cells);
59
+ return new FsColumn(ra, fcc);
60
+ }
61
+ static copy(column) {
62
+ return column.Copy();
63
+ }
64
+ static getIndex(column) {
65
+ return column.Index;
66
+ }
67
+ HasCellAt(rowIndex) {
68
+ const this$ = this;
69
+ return exists((c) => c.RowNumber === rowIndex, this$.Cells);
70
+ }
71
+ static hasCellAt(rowIndex, column) {
72
+ return column.HasCellAt(rowIndex);
73
+ }
74
+ Item(rowIndex) {
75
+ const this$ = this;
76
+ return super.Cell(new FsAddress(rowIndex, 1), this$["cells@18"]);
77
+ }
78
+ static item(rowIndex, column) {
79
+ return column.Item(rowIndex);
80
+ }
81
+ TryItem(rowIndex) {
82
+ const this$ = this;
83
+ return this$.HasCellAt(rowIndex) ? this$.Item(rowIndex) : void 0;
84
+ }
85
+ static tryItem(rowIndex, column) {
86
+ return column.TryItem(rowIndex);
87
+ }
88
+ ToDenseColumn() {
89
+ const this$ = this;
90
+ for (let i = this$.MinRowIndex; i <= this$.MaxRowIndex; i++) {
91
+ this$.Item(i);
92
+ }
93
+ }
94
+ static toDenseColumn(column) {
95
+ column.ToDenseColumn();
96
+ return column;
97
+ }
98
+ static createDenseColumnOf(column) {
99
+ const newColumn = column.Copy();
100
+ newColumn.ToDenseColumn();
101
+ return newColumn;
102
+ }
103
+ GetEnumerator() {
104
+ const this$ = this;
105
+ return getEnumerator(this$.Cells);
106
+ }
107
+ [Symbol.iterator]() {
108
+ return toIterator(getEnumerator(this));
109
+ }
110
+ "System.Collections.IEnumerable.GetEnumerator"() {
111
+ const this$ = this;
112
+ return getEnumerator(this$);
113
+ }
114
+ }
115
+
116
+ export { FsColumn };