@nfdi4plants/arctrl 1.0.0-alpha6

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 (277) hide show
  1. package/ARCtrl.js +257 -0
  2. package/Contract/Contract.js +95 -0
  3. package/Contracts/Contracts.ARCtrl.js +35 -0
  4. package/Contracts/Contracts.ArcAssay.js +65 -0
  5. package/Contracts/Contracts.ArcInvestigation.js +58 -0
  6. package/Contracts/Contracts.ArcStudy.js +65 -0
  7. package/Contracts/Contracts.Git.js +91 -0
  8. package/FileSystem/Commit.js +18 -0
  9. package/FileSystem/DefaultGitignore.js +3 -0
  10. package/FileSystem/FileSystem.js +53 -0
  11. package/FileSystem/FileSystemTree.js +223 -0
  12. package/FileSystem/Path.js +38 -0
  13. package/FileSystemTree.js +51 -0
  14. package/ISA/ISA/ArcTypes/ArcTable.js +744 -0
  15. package/ISA/ISA/ArcTypes/ArcTableAux.js +1142 -0
  16. package/ISA/ISA/ArcTypes/ArcTables.js +380 -0
  17. package/ISA/ISA/ArcTypes/ArcTypes.js +2018 -0
  18. package/ISA/ISA/ArcTypes/CompositeCell.js +180 -0
  19. package/ISA/ISA/ArcTypes/CompositeColumn.js +42 -0
  20. package/ISA/ISA/ArcTypes/CompositeHeader.js +358 -0
  21. package/ISA/ISA/ArcTypes/CompositeRow.js +111 -0
  22. package/ISA/ISA/ArcTypes/IdentifierSetters.js +26 -0
  23. package/ISA/ISA/Builder/Types.js +243 -0
  24. package/ISA/ISA/Fable.js +50 -0
  25. package/ISA/ISA/Helper.js +326 -0
  26. package/ISA/ISA/Identifier.js +76 -0
  27. package/ISA/ISA/JsonTypes/AnnotationValue.js +56 -0
  28. package/ISA/ISA/JsonTypes/Assay.js +620 -0
  29. package/ISA/ISA/JsonTypes/AssayMaterials.js +39 -0
  30. package/ISA/ISA/JsonTypes/ColumnIndex.js +246 -0
  31. package/ISA/ISA/JsonTypes/Comment.js +58 -0
  32. package/ISA/ISA/JsonTypes/CommentList.js +139 -0
  33. package/ISA/ISA/JsonTypes/Component.js +158 -0
  34. package/ISA/ISA/JsonTypes/Data.js +55 -0
  35. package/ISA/ISA/JsonTypes/DataFile.js +68 -0
  36. package/ISA/ISA/JsonTypes/Factor.js +128 -0
  37. package/ISA/ISA/JsonTypes/FactorValue.js +109 -0
  38. package/ISA/ISA/JsonTypes/Investigation.js +204 -0
  39. package/ISA/ISA/JsonTypes/Material.js +66 -0
  40. package/ISA/ISA/JsonTypes/MaterialAttribute.js +101 -0
  41. package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +126 -0
  42. package/ISA/ISA/JsonTypes/MaterialType.js +41 -0
  43. package/ISA/ISA/JsonTypes/OntologyAnnotation.js +219 -0
  44. package/ISA/ISA/JsonTypes/OntologySourceReference.js +85 -0
  45. package/ISA/ISA/JsonTypes/Person.js +137 -0
  46. package/ISA/ISA/JsonTypes/Process.js +401 -0
  47. package/ISA/ISA/JsonTypes/ProcessInput.js +297 -0
  48. package/ISA/ISA/JsonTypes/ProcessOutput.js +263 -0
  49. package/ISA/ISA/JsonTypes/ProcessParameterValue.js +129 -0
  50. package/ISA/ISA/JsonTypes/ProcessSequence.js +255 -0
  51. package/ISA/ISA/JsonTypes/Protocol.js +277 -0
  52. package/ISA/ISA/JsonTypes/ProtocolParameter.js +101 -0
  53. package/ISA/ISA/JsonTypes/Publication.js +105 -0
  54. package/ISA/ISA/JsonTypes/Sample.js +71 -0
  55. package/ISA/ISA/JsonTypes/Source.js +54 -0
  56. package/ISA/ISA/JsonTypes/Study.js +942 -0
  57. package/ISA/ISA/JsonTypes/StudyMaterials.js +45 -0
  58. package/ISA/ISA/JsonTypes/URI.js +19 -0
  59. package/ISA/ISA/JsonTypes/Value.js +210 -0
  60. package/ISA/ISA/Regex.js +588 -0
  61. package/ISA/ISA.Json/Assay.js +123 -0
  62. package/ISA/ISA.Json/Comment.js +84 -0
  63. package/ISA/ISA.Json/ConverterOptions.js +33 -0
  64. package/ISA/ISA.Json/Data.js +271 -0
  65. package/ISA/ISA.Json/Decode.js +46 -0
  66. package/ISA/ISA.Json/Factor.js +194 -0
  67. package/ISA/ISA.Json/GEncode.js +15 -0
  68. package/ISA/ISA.Json/Investigation.js +132 -0
  69. package/ISA/ISA.Json/Material.js +233 -0
  70. package/ISA/ISA.Json/Ontology.js +204 -0
  71. package/ISA/ISA.Json/Person.js +204 -0
  72. package/ISA/ISA.Json/Process.js +291 -0
  73. package/ISA/ISA.Json/Protocol.js +242 -0
  74. package/ISA/ISA.Json/Publication.js +92 -0
  75. package/ISA/ISA.Json/Study.js +230 -0
  76. package/ISA/ISA.Json/Validation/Fable.js +69 -0
  77. package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +88 -0
  78. package/ISA/ISA.Json/Validation/ValidationResult.js +45 -0
  79. package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +137 -0
  80. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +78 -0
  81. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +59 -0
  82. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +478 -0
  83. package/ISA/ISA.Spreadsheet/ArcAssay.js +150 -0
  84. package/ISA/ISA.Spreadsheet/ArcInvestigation.js +314 -0
  85. package/ISA/ISA.Spreadsheet/ArcStudy.js +67 -0
  86. package/ISA/ISA.Spreadsheet/CollectionAux.js +128 -0
  87. package/ISA/ISA.Spreadsheet/Metadata/Assays.js +81 -0
  88. package/ISA/ISA.Spreadsheet/Metadata/Comment.js +60 -0
  89. package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +104 -0
  90. package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +180 -0
  91. package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +27 -0
  92. package/ISA/ISA.Spreadsheet/Metadata/Factors.js +85 -0
  93. package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +65 -0
  94. package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +73 -0
  95. package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +116 -0
  96. package/ISA/ISA.Spreadsheet/Metadata/Publication.js +96 -0
  97. package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +451 -0
  98. package/ISA/ISA.Spreadsheet/Metadata/Study.js +260 -0
  99. package/README.md +277 -0
  100. package/SemVer.js +60 -0
  101. package/Templates/Templates.Json.js +40 -0
  102. package/Templates/Templates.Spreadsheet.js +315 -0
  103. package/Templates/Templates.js +179 -0
  104. package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs +387 -0
  105. package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs.js +240 -0
  106. package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs +725 -0
  107. package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs.js +522 -0
  108. package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs +195 -0
  109. package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs.js +208 -0
  110. package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs +209 -0
  111. package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs.js +137 -0
  112. package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs +61 -0
  113. package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs.js +62 -0
  114. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs +24 -0
  115. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs.js +56 -0
  116. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs +102 -0
  117. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs.js +6 -0
  118. package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs +200 -0
  119. package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs.js +137 -0
  120. package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs +139 -0
  121. package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs.js +116 -0
  122. package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs +120 -0
  123. package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs.js +120 -0
  124. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs +229 -0
  125. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs.js +421 -0
  126. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs +151 -0
  127. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs.js +277 -0
  128. package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs +114 -0
  129. package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs.js +104 -0
  130. package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs +177 -0
  131. package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs.js +249 -0
  132. package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs +200 -0
  133. package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs.js +125 -0
  134. package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs +202 -0
  135. package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs.js +135 -0
  136. package/fable_modules/FsSpreadsheet.4.1.0/FsSpreadsheet.fableproj +58 -0
  137. package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs +183 -0
  138. package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs.js +138 -0
  139. package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs +628 -0
  140. package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs.js +398 -0
  141. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs +19 -0
  142. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs.js +41 -0
  143. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs +222 -0
  144. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs.js +235 -0
  145. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs +93 -0
  146. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs.js +91 -0
  147. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs +65 -0
  148. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs.js +74 -0
  149. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs +22 -0
  150. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs.js +40 -0
  151. package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs +249 -0
  152. package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs.js +325 -0
  153. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs +455 -0
  154. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs.js +310 -0
  155. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs +140 -0
  156. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs.js +173 -0
  157. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs +6 -0
  158. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs.js +17 -0
  159. package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  160. package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
  161. package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  162. package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
  163. package/fable_modules/Thoth.Json.10.1.0/Decode.fs +1366 -0
  164. package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +1798 -0
  165. package/fable_modules/Thoth.Json.10.1.0/Encode.fs +621 -0
  166. package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +472 -0
  167. package/fable_modules/Thoth.Json.10.1.0/Extra.fs +31 -0
  168. package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +8 -0
  169. package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +30 -0
  170. package/fable_modules/Thoth.Json.10.1.0/Types.fs +59 -0
  171. package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +98 -0
  172. package/fable_modules/Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs +19 -0
  173. package/fable_modules/Thoth.Json.10.1.0/package.json +5 -0
  174. package/fable_modules/fable-library.4.1.4/Array.d.ts +120 -0
  175. package/fable_modules/fable-library.4.1.4/Array.js +1204 -0
  176. package/fable_modules/fable-library.4.1.4/Async.d.ts +32 -0
  177. package/fable_modules/fable-library.4.1.4/Async.js +158 -0
  178. package/fable_modules/fable-library.4.1.4/AsyncBuilder.d.ts +59 -0
  179. package/fable_modules/fable-library.4.1.4/AsyncBuilder.js +183 -0
  180. package/fable_modules/fable-library.4.1.4/BigInt.d.ts +115 -0
  181. package/fable_modules/fable-library.4.1.4/BigInt.js +282 -0
  182. package/fable_modules/fable-library.4.1.4/BitConverter.d.ts +27 -0
  183. package/fable_modules/fable-library.4.1.4/BitConverter.js +138 -0
  184. package/fable_modules/fable-library.4.1.4/Boolean.d.ts +3 -0
  185. package/fable_modules/fable-library.4.1.4/Boolean.js +21 -0
  186. package/fable_modules/fable-library.4.1.4/Char.d.ts +65 -0
  187. package/fable_modules/fable-library.4.1.4/Char.js +169 -0
  188. package/fable_modules/fable-library.4.1.4/Choice.d.ts +138 -0
  189. package/fable_modules/fable-library.4.1.4/Choice.js +227 -0
  190. package/fable_modules/fable-library.4.1.4/Date.d.ts +70 -0
  191. package/fable_modules/fable-library.4.1.4/Date.js +451 -0
  192. package/fable_modules/fable-library.4.1.4/DateOffset.d.ts +63 -0
  193. package/fable_modules/fable-library.4.1.4/DateOffset.js +268 -0
  194. package/fable_modules/fable-library.4.1.4/DateOnly.d.ts +18 -0
  195. package/fable_modules/fable-library.4.1.4/DateOnly.js +124 -0
  196. package/fable_modules/fable-library.4.1.4/Decimal.d.ts +45 -0
  197. package/fable_modules/fable-library.4.1.4/Decimal.js +212 -0
  198. package/fable_modules/fable-library.4.1.4/Double.d.ts +11 -0
  199. package/fable_modules/fable-library.4.1.4/Double.js +46 -0
  200. package/fable_modules/fable-library.4.1.4/Encoding.d.ts +12 -0
  201. package/fable_modules/fable-library.4.1.4/Encoding.js +173 -0
  202. package/fable_modules/fable-library.4.1.4/Event.d.ts +31 -0
  203. package/fable_modules/fable-library.4.1.4/Event.js +93 -0
  204. package/fable_modules/fable-library.4.1.4/FSharp.Collections.d.ts +7 -0
  205. package/fable_modules/fable-library.4.1.4/FSharp.Collections.js +27 -0
  206. package/fable_modules/fable-library.4.1.4/FSharp.Core.d.ts +17 -0
  207. package/fable_modules/fable-library.4.1.4/FSharp.Core.js +69 -0
  208. package/fable_modules/fable-library.4.1.4/Global.d.ts +24 -0
  209. package/fable_modules/fable-library.4.1.4/Global.js +8 -0
  210. package/fable_modules/fable-library.4.1.4/Guid.d.ts +10 -0
  211. package/fable_modules/fable-library.4.1.4/Guid.js +142 -0
  212. package/fable_modules/fable-library.4.1.4/Int32.d.ts +28 -0
  213. package/fable_modules/fable-library.4.1.4/Int32.js +135 -0
  214. package/fable_modules/fable-library.4.1.4/List.d.ts +143 -0
  215. package/fable_modules/fable-library.4.1.4/List.js +1273 -0
  216. package/fable_modules/fable-library.4.1.4/Long.d.ts +3 -0
  217. package/fable_modules/fable-library.4.1.4/Long.js +46 -0
  218. package/fable_modules/fable-library.4.1.4/MailboxProcessor.d.ts +25 -0
  219. package/fable_modules/fable-library.4.1.4/MailboxProcessor.js +93 -0
  220. package/fable_modules/fable-library.4.1.4/Map.d.ts +178 -0
  221. package/fable_modules/fable-library.4.1.4/Map.js +1396 -0
  222. package/fable_modules/fable-library.4.1.4/MapUtil.d.ts +10 -0
  223. package/fable_modules/fable-library.4.1.4/MapUtil.js +112 -0
  224. package/fable_modules/fable-library.4.1.4/MutableMap.d.ts +52 -0
  225. package/fable_modules/fable-library.4.1.4/MutableMap.js +326 -0
  226. package/fable_modules/fable-library.4.1.4/MutableSet.d.ts +39 -0
  227. package/fable_modules/fable-library.4.1.4/MutableSet.js +232 -0
  228. package/fable_modules/fable-library.4.1.4/Native.d.ts +2 -0
  229. package/fable_modules/fable-library.4.1.4/Native.js +8 -0
  230. package/fable_modules/fable-library.4.1.4/Numeric.d.ts +19 -0
  231. package/fable_modules/fable-library.4.1.4/Numeric.js +71 -0
  232. package/fable_modules/fable-library.4.1.4/Observable.d.ts +32 -0
  233. package/fable_modules/fable-library.4.1.4/Observable.js +113 -0
  234. package/fable_modules/fable-library.4.1.4/Option.d.ts +28 -0
  235. package/fable_modules/fable-library.4.1.4/Option.js +96 -0
  236. package/fable_modules/fable-library.4.1.4/README.md +3 -0
  237. package/fable_modules/fable-library.4.1.4/Random.d.ts +37 -0
  238. package/fable_modules/fable-library.4.1.4/Random.js +170 -0
  239. package/fable_modules/fable-library.4.1.4/Range.d.ts +12 -0
  240. package/fable_modules/fable-library.4.1.4/Range.js +45 -0
  241. package/fable_modules/fable-library.4.1.4/Reflection.d.ts +119 -0
  242. package/fable_modules/fable-library.4.1.4/Reflection.js +461 -0
  243. package/fable_modules/fable-library.4.1.4/RegExp.d.ts +10 -0
  244. package/fable_modules/fable-library.4.1.4/RegExp.js +132 -0
  245. package/fable_modules/fable-library.4.1.4/Seq.d.ts +165 -0
  246. package/fable_modules/fable-library.4.1.4/Seq.js +1379 -0
  247. package/fable_modules/fable-library.4.1.4/Seq2.d.ts +18 -0
  248. package/fable_modules/fable-library.4.1.4/Seq2.js +111 -0
  249. package/fable_modules/fable-library.4.1.4/Set.d.ts +190 -0
  250. package/fable_modules/fable-library.4.1.4/Set.js +1789 -0
  251. package/fable_modules/fable-library.4.1.4/String.d.ts +49 -0
  252. package/fable_modules/fable-library.4.1.4/String.js +540 -0
  253. package/fable_modules/fable-library.4.1.4/System.Collections.Generic.d.ts +71 -0
  254. package/fable_modules/fable-library.4.1.4/System.Collections.Generic.js +307 -0
  255. package/fable_modules/fable-library.4.1.4/System.Text.d.ts +30 -0
  256. package/fable_modules/fable-library.4.1.4/System.Text.js +110 -0
  257. package/fable_modules/fable-library.4.1.4/SystemException.d.ts +5 -0
  258. package/fable_modules/fable-library.4.1.4/SystemException.js +5 -0
  259. package/fable_modules/fable-library.4.1.4/TimeOnly.d.ts +15 -0
  260. package/fable_modules/fable-library.4.1.4/TimeOnly.js +122 -0
  261. package/fable_modules/fable-library.4.1.4/TimeSpan.d.ts +34 -0
  262. package/fable_modules/fable-library.4.1.4/TimeSpan.js +177 -0
  263. package/fable_modules/fable-library.4.1.4/Timer.d.ts +19 -0
  264. package/fable_modules/fable-library.4.1.4/Timer.js +67 -0
  265. package/fable_modules/fable-library.4.1.4/Types.d.ts +58 -0
  266. package/fable_modules/fable-library.4.1.4/Types.js +208 -0
  267. package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.d.ts +2 -0
  268. package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.js +4 -0
  269. package/fable_modules/fable-library.4.1.4/Uri.d.ts +29 -0
  270. package/fable_modules/fable-library.4.1.4/Uri.js +142 -0
  271. package/fable_modules/fable-library.4.1.4/Util.d.ts +187 -0
  272. package/fable_modules/fable-library.4.1.4/Util.js +662 -0
  273. package/fable_modules/fable-library.4.1.4/lib/big.d.ts +338 -0
  274. package/fable_modules/fable-library.4.1.4/lib/big.js +826 -0
  275. package/fable_modules/fable-library.4.1.4/package.json +23 -0
  276. package/fable_modules/project_cracked.json +1 -0
  277. package/package.json +22 -0
@@ -0,0 +1,522 @@
1
+ import { addToSet, addToDict, getItemFromDict } from "../../fable-library.4.1.4/MapUtil.js";
2
+ import { some } from "../../fable-library.4.1.4/Option.js";
3
+ import { class_type } from "../../fable-library.4.1.4/Reflection.js";
4
+ import { minBy, min, singleton, empty, delay, collect, max, isEmpty, iterate, map } from "../../fable-library.4.1.4/Seq.js";
5
+ import { FsAddress_$ctor_Z37302880, FsAddress__get_ColumnNumber, FsAddress__get_RowNumber } from "../FsAddress.fs.js";
6
+ import { comparePrimitives } from "../../fable-library.4.1.4/Util.js";
7
+ import { rangeDouble } from "../../fable-library.4.1.4/Range.js";
8
+
9
+ export function Dictionary_tryGet(k, dict) {
10
+ if (dict.has(k)) {
11
+ return some(getItemFromDict(dict, k));
12
+ }
13
+ else {
14
+ return void 0;
15
+ }
16
+ }
17
+
18
+ export class FsCellsCollection {
19
+ constructor() {
20
+ this._columnsUsed = (new Map([]));
21
+ this._deleted = (new Map([]));
22
+ this._rowsCollection = (new Map([]));
23
+ this._maxColumnUsed = 0;
24
+ this._maxRowUsed = 0;
25
+ this._rowsUsed = (new Map([]));
26
+ this._count = 0;
27
+ }
28
+ }
29
+
30
+ export function FsCellsCollection_$reflection() {
31
+ return class_type("FsSpreadsheet.FsCellsCollection", void 0, FsCellsCollection);
32
+ }
33
+
34
+ export function FsCellsCollection_$ctor() {
35
+ return new FsCellsCollection();
36
+ }
37
+
38
+ export function FsCellsCollection__get_Count(this$) {
39
+ return this$._count;
40
+ }
41
+
42
+ function FsCellsCollection__set_Count_Z524259A4(this$, count) {
43
+ this$._count = (count | 0);
44
+ }
45
+
46
+ /**
47
+ * The highest rowIndex in The FsCellsCollection.
48
+ */
49
+ export function FsCellsCollection__get_MaxRowNumber(this$) {
50
+ return this$._maxRowUsed;
51
+ }
52
+
53
+ /**
54
+ * The highest columnIndex in The FsCellsCollection.
55
+ */
56
+ export function FsCellsCollection__get_MaxColumnNumber(this$) {
57
+ return this$._maxColumnUsed;
58
+ }
59
+
60
+ /**
61
+ * Creates a deep copy of the FsCellsCollection.
62
+ */
63
+ export function FsCellsCollection__Copy(this$) {
64
+ return FsCellsCollection_createFromCells_Z21F271A4(map((c) => c.Copy(), FsCellsCollection__GetCells(this$)));
65
+ }
66
+
67
+ /**
68
+ * Returns a deep copy of a given FsCellsCollection.
69
+ */
70
+ export function FsCellsCollection_copy_Z2740B3CA(cellsCollection) {
71
+ return FsCellsCollection__Copy(cellsCollection);
72
+ }
73
+
74
+ function FsCellsCollection_IncrementUsage_71185086(dictionary, key) {
75
+ const matchValue = Dictionary_tryGet(key, dictionary);
76
+ if (matchValue == null) {
77
+ addToDict(dictionary, key, 1);
78
+ }
79
+ else {
80
+ const count = matchValue | 0;
81
+ dictionary.set(key, count + 1);
82
+ }
83
+ }
84
+
85
+ function FsCellsCollection_DecrementUsage_71185086(dictionary, key) {
86
+ const matchValue = Dictionary_tryGet(key, dictionary);
87
+ if (matchValue == null) {
88
+ return false;
89
+ }
90
+ else if (matchValue > 1) {
91
+ const count_1 = matchValue | 0;
92
+ dictionary.set(key, count_1 - 1);
93
+ return false;
94
+ }
95
+ else {
96
+ dictionary.delete(key);
97
+ return true;
98
+ }
99
+ }
100
+
101
+ /**
102
+ * Creates an FsCellsCollection from the given FsCells.
103
+ */
104
+ export function FsCellsCollection_createFromCells_Z21F271A4(cells) {
105
+ const fcc = FsCellsCollection_$ctor();
106
+ FsCellsCollection__Add_Z21F271A4(fcc, cells);
107
+ return fcc;
108
+ }
109
+
110
+ /**
111
+ * Empties the whole FsCellsCollection.
112
+ */
113
+ export function FsCellsCollection__Clear(this$) {
114
+ this$._count = 0;
115
+ this$._rowsUsed.clear();
116
+ this$._columnsUsed.clear();
117
+ this$._rowsCollection.clear();
118
+ this$._maxRowUsed = 0;
119
+ this$._maxColumnUsed = 0;
120
+ return this$;
121
+ }
122
+
123
+ /**
124
+ * Adds an FsCell of given rowIndex and columnIndex to the FsCellsCollection.
125
+ */
126
+ export function FsCellsCollection__Add_2E78CE33(this$, row, column, cell) {
127
+ let matchValue, columnsCollection_1;
128
+ cell.RowNumber = (row | 0);
129
+ cell.ColumnNumber = (column | 0);
130
+ this$._count = ((this$._count + 1) | 0);
131
+ FsCellsCollection_IncrementUsage_71185086(this$._rowsUsed, row);
132
+ FsCellsCollection_IncrementUsage_71185086(this$._columnsUsed, column);
133
+ addToDict((matchValue = Dictionary_tryGet(row, this$._rowsCollection), (matchValue == null) ? ((columnsCollection_1 = (new Map([])), (addToDict(this$._rowsCollection, row, columnsCollection_1), columnsCollection_1))) : matchValue), column, cell);
134
+ if (row > this$._maxRowUsed) {
135
+ this$._maxRowUsed = (row | 0);
136
+ }
137
+ if (column > this$._maxColumnUsed) {
138
+ this$._maxColumnUsed = (column | 0);
139
+ }
140
+ const matchValue_1 = Dictionary_tryGet(row, this$._deleted);
141
+ if (matchValue_1 == null) {
142
+ }
143
+ else {
144
+ const delHash = matchValue_1;
145
+ delHash.delete(column);
146
+ }
147
+ }
148
+
149
+ /**
150
+ * Adds an FsCell of given rowIndex and columnIndex to an FsCellsCollection.
151
+ */
152
+ export function FsCellsCollection_addCellWithIndeces(rowIndex, colIndex, cell, cellsCollection) {
153
+ FsCellsCollection__Add_2E78CE33(cellsCollection, rowIndex, colIndex, cell);
154
+ }
155
+
156
+ /**
157
+ * Adds an FsCell to the FsCellsCollection.
158
+ */
159
+ export function FsCellsCollection__Add_Z334DF64D(this$, cell) {
160
+ FsCellsCollection__Add_2E78CE33(this$, FsAddress__get_RowNumber(cell.Address), FsAddress__get_ColumnNumber(cell.Address), cell);
161
+ }
162
+
163
+ /**
164
+ * Adds an FsCell to an FsCellsCollection.
165
+ */
166
+ export function FsCellsCollection_addCell(cell, cellsCollection) {
167
+ FsCellsCollection__Add_Z334DF64D(cellsCollection, cell);
168
+ return cellsCollection;
169
+ }
170
+
171
+ /**
172
+ * Adds FsCells to the FsCellsCollection.
173
+ */
174
+ export function FsCellsCollection__Add_Z21F271A4(this$, cells) {
175
+ iterate((arg_1) => {
176
+ const value = FsCellsCollection__Add_Z334DF64D(this$, arg_1);
177
+ }, cells);
178
+ }
179
+
180
+ /**
181
+ * Adds FsCells to an FsCellsCollection.
182
+ */
183
+ export function FsCellsCollection_addCells(cells, cellsCollection) {
184
+ FsCellsCollection__Add_Z21F271A4(cellsCollection, cells);
185
+ return cellsCollection;
186
+ }
187
+
188
+ /**
189
+ * Checks if an FsCell exists at given row- and columnIndex.
190
+ */
191
+ export function FsCellsCollection__ContainsCellAt_Z37302880(this$, rowIndex, colIndex) {
192
+ const matchValue = Dictionary_tryGet(rowIndex, this$._rowsCollection);
193
+ if (matchValue == null) {
194
+ return false;
195
+ }
196
+ else {
197
+ const colsCollection = matchValue;
198
+ return colsCollection.has(colIndex);
199
+ }
200
+ }
201
+
202
+ /**
203
+ * Checks if an FsCell exists at given row- and columnIndex of a given FsCellsCollection.
204
+ */
205
+ export function FsCellsCollection_containsCellAt(rowIndex, colIndex, cellsCollection) {
206
+ return FsCellsCollection__ContainsCellAt_Z37302880(cellsCollection, rowIndex, colIndex);
207
+ }
208
+
209
+ /**
210
+ * Removes an FsCell of given rowIndex and columnIndex from the FsCellsCollection.
211
+ */
212
+ export function FsCellsCollection__RemoveCellAt_Z37302880(this$, row, column) {
213
+ let delHash;
214
+ this$._count = ((this$._count - 1) | 0);
215
+ const rowRemoved = FsCellsCollection_DecrementUsage_71185086(this$._rowsUsed, row);
216
+ const columnRemoved = FsCellsCollection_DecrementUsage_71185086(this$._columnsUsed, column);
217
+ if (rowRemoved && (row === this$._maxRowUsed)) {
218
+ this$._maxRowUsed = ((!isEmpty(this$._rowsUsed.keys()) ? max(this$._rowsUsed.keys(), {
219
+ Compare: comparePrimitives,
220
+ }) : 0) | 0);
221
+ }
222
+ if (columnRemoved && (column === this$._maxColumnUsed)) {
223
+ this$._maxColumnUsed = ((!isEmpty(this$._columnsUsed.keys()) ? max(this$._columnsUsed.keys(), {
224
+ Compare: comparePrimitives,
225
+ }) : 0) | 0);
226
+ }
227
+ const matchValue = Dictionary_tryGet(row, this$._deleted);
228
+ if (matchValue == null) {
229
+ const delHash_3 = new Set([]);
230
+ addToSet(column, delHash_3);
231
+ addToDict(this$._deleted, row, delHash_3);
232
+ }
233
+ else if ((delHash = matchValue, delHash.has(column))) {
234
+ const delHash_1 = matchValue;
235
+ }
236
+ else {
237
+ const delHash_2 = matchValue;
238
+ addToSet(column, delHash_2);
239
+ }
240
+ const matchValue_1 = Dictionary_tryGet(row, this$._rowsCollection);
241
+ if (matchValue_1 == null) {
242
+ }
243
+ else {
244
+ const columnsCollection = matchValue_1;
245
+ columnsCollection.delete(column);
246
+ if (columnsCollection.size === 0) {
247
+ this$._rowsCollection.delete(row);
248
+ }
249
+ }
250
+ }
251
+
252
+ /**
253
+ * Removes an FsCell of given rowIndex and columnIndex from an FsCellsCollection.
254
+ */
255
+ export function FsCellsCollection_removeCellAt(rowIndex, colIndex, cellsCollection) {
256
+ FsCellsCollection__RemoveCellAt_Z37302880(cellsCollection, rowIndex, colIndex);
257
+ return cellsCollection;
258
+ }
259
+
260
+ /**
261
+ * Removes the value of an FsCell at given row- and columnIndex if it exists from the FsCollection.
262
+ */
263
+ export function FsCellsCollection__TryRemoveValueAt_Z37302880(this$, rowIndex, colIndex) {
264
+ const matchValue = Dictionary_tryGet(rowIndex, this$._rowsCollection);
265
+ if (matchValue == null) {
266
+ }
267
+ else {
268
+ const colsCollection = matchValue;
269
+ try {
270
+ getItemFromDict(colsCollection, colIndex).Value = "";
271
+ }
272
+ catch (matchValue_1) {
273
+ }
274
+ }
275
+ }
276
+
277
+ /**
278
+ * Removes the value of an FsCell at given row- and columnIndex if it exists from a given FsCollection.
279
+ */
280
+ export function FsCellsCollection_tryRemoveValueAt(rowIndex, colIndex, cellsCollection) {
281
+ FsCellsCollection__TryRemoveValueAt_Z37302880(cellsCollection, rowIndex, colIndex);
282
+ return cellsCollection;
283
+ }
284
+
285
+ /**
286
+ * Removes the value of an FsCell at given row- and columnIndex from the FsCollection.
287
+ */
288
+ export function FsCellsCollection__RemoveValueAt_Z37302880(this$, rowIndex, colIndex) {
289
+ getItemFromDict(getItemFromDict(this$._rowsCollection, rowIndex), colIndex).Value = "";
290
+ }
291
+
292
+ /**
293
+ * Removes the value of an FsCell at given row- and columnIndex from a given FsCollection.
294
+ */
295
+ export function FsCellsCollection_removeValueAt(rowIndex, colIndex, cellsCollection) {
296
+ FsCellsCollection__RemoveValueAt_Z37302880(cellsCollection, rowIndex, colIndex);
297
+ return cellsCollection;
298
+ }
299
+
300
+ /**
301
+ * Returns all FsCells of the FsCellsCollection.
302
+ */
303
+ export function FsCellsCollection__GetCells(this$) {
304
+ return collect((columnsCollection) => columnsCollection.values(), this$._rowsCollection.values());
305
+ }
306
+
307
+ /**
308
+ * Returns all FsCells of the FsCellsCollection.
309
+ */
310
+ export function FsCellsCollection_getCells_Z2740B3CA(cellsCollection) {
311
+ return FsCellsCollection__GetCells(cellsCollection);
312
+ }
313
+
314
+ /**
315
+ * Returns the FsCells from given rowStart to rowEnd and columnStart to columnEnd and fulfilling the predicate.
316
+ */
317
+ export function FsCellsCollection__GetCells_6611854F(this$, rowStart, columnStart, rowEnd, columnEnd, predicate) {
318
+ const finalRow = ((rowEnd > this$._maxRowUsed) ? this$._maxRowUsed : rowEnd) | 0;
319
+ const finalColumn = ((columnEnd > this$._maxColumnUsed) ? this$._maxColumnUsed : columnEnd) | 0;
320
+ return delay(() => collect((ro) => {
321
+ const matchValue = Dictionary_tryGet(ro, this$._rowsCollection);
322
+ if (matchValue == null) {
323
+ return empty();
324
+ }
325
+ else {
326
+ const columnsCollection = matchValue;
327
+ return collect((co) => {
328
+ const matchValue_1 = Dictionary_tryGet(co, columnsCollection);
329
+ let matchResult, cell_1;
330
+ if (matchValue_1 != null) {
331
+ if (predicate(matchValue_1)) {
332
+ matchResult = 0;
333
+ cell_1 = matchValue_1;
334
+ }
335
+ else {
336
+ matchResult = 1;
337
+ }
338
+ }
339
+ else {
340
+ matchResult = 1;
341
+ }
342
+ switch (matchResult) {
343
+ case 0:
344
+ return singleton(cell_1);
345
+ default: {
346
+ return empty();
347
+ }
348
+ }
349
+ }, rangeDouble(columnStart, 1, finalColumn));
350
+ }
351
+ }, rangeDouble(rowStart, 1, finalRow)));
352
+ }
353
+
354
+ /**
355
+ * Returns the FsCells from an FsCellsCollection with given rowStart to rowEnd and columnStart to columnEnd and fulfilling the predicate.
356
+ */
357
+ export function FsCellsCollection_filterCellsFromTo(rowStart, columnStart, rowEnd, columnEnd, predicate, cellsCollection) {
358
+ return FsCellsCollection__GetCells_6611854F(cellsCollection, rowStart, columnStart, rowEnd, columnEnd, predicate);
359
+ }
360
+
361
+ /**
362
+ * Returns the FsCells from given startAddress to lastAddress and fulfilling the predicate.
363
+ */
364
+ export function FsCellsCollection__GetCells_24D826EF(this$, startAddress, lastAddress, predicate) {
365
+ return FsCellsCollection__GetCells_6611854F(this$, FsAddress__get_RowNumber(startAddress), FsAddress__get_ColumnNumber(startAddress), FsAddress__get_RowNumber(lastAddress), FsAddress__get_ColumnNumber(lastAddress), predicate);
366
+ }
367
+
368
+ /**
369
+ * Returns the FsCells from an FsCellsCollection with given startAddress to lastAddress and fulfilling the predicate.
370
+ */
371
+ export function FsCellsCollection_filterCellsFromToAddress(startAddress, lastAddress, predicate, cellsCollection) {
372
+ return FsCellsCollection__GetCells_24D826EF(cellsCollection, startAddress, lastAddress, predicate);
373
+ }
374
+
375
+ /**
376
+ * Returns the FsCells from given rowStart to rowEnd and columnStart to columnEnd.
377
+ */
378
+ export function FsCellsCollection__GetCells_Z6C21C500(this$, rowStart, columnStart, rowEnd, columnEnd) {
379
+ const finalRow = ((rowEnd > this$._maxRowUsed) ? this$._maxRowUsed : rowEnd) | 0;
380
+ const finalColumn = ((columnEnd > this$._maxColumnUsed) ? this$._maxColumnUsed : columnEnd) | 0;
381
+ return delay(() => collect((ro) => {
382
+ const matchValue = Dictionary_tryGet(ro, this$._rowsCollection);
383
+ if (matchValue == null) {
384
+ return empty();
385
+ }
386
+ else {
387
+ const columnsCollection = matchValue;
388
+ return collect((co) => {
389
+ const matchValue_1 = Dictionary_tryGet(co, columnsCollection);
390
+ if (matchValue_1 != null) {
391
+ return singleton(matchValue_1);
392
+ }
393
+ else {
394
+ return empty();
395
+ }
396
+ }, rangeDouble(columnStart, 1, finalColumn));
397
+ }
398
+ }, rangeDouble(rowStart, 1, finalRow)));
399
+ }
400
+
401
+ /**
402
+ * Returns the FsCells from an FsCellsCollection with given rowStart to rowEnd and columnStart to columnEnd.
403
+ */
404
+ export function FsCellsCollection_getCellsFromTo(rowStart, columnStart, rowEnd, columnEnd, cellsCollection) {
405
+ return FsCellsCollection__GetCells_Z6C21C500(cellsCollection, rowStart, columnStart, rowEnd, columnEnd);
406
+ }
407
+
408
+ /**
409
+ * Returns the FsCells from given startAddress to lastAddress.
410
+ */
411
+ export function FsCellsCollection__GetCells_7E77A4A0(this$, startAddress, lastAddress) {
412
+ return FsCellsCollection__GetCells_Z6C21C500(this$, FsAddress__get_RowNumber(startAddress), FsAddress__get_ColumnNumber(startAddress), FsAddress__get_RowNumber(lastAddress), FsAddress__get_ColumnNumber(lastAddress));
413
+ }
414
+
415
+ /**
416
+ * Returns the FsCells from an FsCellsCollection with given startAddress to lastAddress.
417
+ */
418
+ export function FsCellsCollection_getCellsFromToAddress(startAddress, lastAddress, cellsCollection) {
419
+ return FsCellsCollection__GetCells_7E77A4A0(cellsCollection, startAddress, lastAddress);
420
+ }
421
+
422
+ /**
423
+ * Returns the FsCell at given rowIndex and columnIndex if it exists. Otherwise returns None.
424
+ */
425
+ export function FsCellsCollection__TryGetCell_Z37302880(this$, row, column) {
426
+ if ((row > this$._maxRowUsed) ? true : (column > this$._maxColumnUsed)) {
427
+ return void 0;
428
+ }
429
+ else {
430
+ const matchValue = Dictionary_tryGet(row, this$._rowsCollection);
431
+ if (matchValue == null) {
432
+ return void 0;
433
+ }
434
+ else {
435
+ const matchValue_1 = Dictionary_tryGet(column, matchValue);
436
+ if (matchValue_1 == null) {
437
+ return void 0;
438
+ }
439
+ else {
440
+ return matchValue_1;
441
+ }
442
+ }
443
+ }
444
+ }
445
+
446
+ /**
447
+ * Returns the FsCell from an FsCellsCollection at given rowIndex and columnIndex if it exists. Otherwise returns None.
448
+ */
449
+ export function FsCellsCollection_tryGetCell(rowIndex, colIndex, cellsCollection) {
450
+ return FsCellsCollection__TryGetCell_Z37302880(cellsCollection, rowIndex, colIndex);
451
+ }
452
+
453
+ /**
454
+ * Returns all FsCells in the given columnIndex.
455
+ */
456
+ export function FsCellsCollection__GetCellsInColumn_Z524259A4(this$, colIndex) {
457
+ return FsCellsCollection__GetCells_Z6C21C500(this$, 1, colIndex, this$._maxRowUsed, colIndex);
458
+ }
459
+
460
+ /**
461
+ * Returns all FsCells in an FsCellsCollection with the given columnIndex.
462
+ */
463
+ export function FsCellsCollection_getCellsInColumn(colIndex, cellsCollection) {
464
+ return FsCellsCollection__GetCellsInColumn_Z524259A4(cellsCollection, colIndex);
465
+ }
466
+
467
+ /**
468
+ * Returns all FsCells in the given rowIndex.
469
+ */
470
+ export function FsCellsCollection__GetCellsInRow_Z524259A4(this$, rowIndex) {
471
+ return FsCellsCollection__GetCells_Z6C21C500(this$, rowIndex, 1, rowIndex, this$._maxColumnUsed);
472
+ }
473
+
474
+ /**
475
+ * Returns all FsCells in an FsCellsCollection with the given rowIndex.
476
+ */
477
+ export function FsCellsCollection_getCellsInRow(rowIndex, cellsCollection) {
478
+ return FsCellsCollection__GetCellsInRow_Z524259A4(cellsCollection, rowIndex);
479
+ }
480
+
481
+ /**
482
+ * Returns the upper left corner of the FsCellsCollection.
483
+ */
484
+ export function FsCellsCollection__GetFirstAddress(this$) {
485
+ let d_1;
486
+ if (isEmpty(this$._rowsCollection) ? true : isEmpty(this$._rowsCollection.keys())) {
487
+ return FsAddress_$ctor_Z37302880(0, 0);
488
+ }
489
+ else {
490
+ return FsAddress_$ctor_Z37302880(min(this$._rowsCollection.keys(), {
491
+ Compare: comparePrimitives,
492
+ }), (d_1 = minBy((d) => min(d.keys(), {
493
+ Compare: comparePrimitives,
494
+ }), this$._rowsCollection.values(), {
495
+ Compare: comparePrimitives,
496
+ }), min(d_1.keys(), {
497
+ Compare: comparePrimitives,
498
+ })));
499
+ }
500
+ }
501
+
502
+ /**
503
+ * Returns the upper left corner of a given FsCellsCollection.
504
+ */
505
+ export function FsCellsCollection_getFirstAddress_Z2740B3CA(cells) {
506
+ return FsCellsCollection__GetFirstAddress(cells);
507
+ }
508
+
509
+ /**
510
+ * Returns the lower right corner of the FsCellsCollection.
511
+ */
512
+ export function FsCellsCollection__GetLastAddress(this$) {
513
+ return FsAddress_$ctor_Z37302880(FsCellsCollection__get_MaxRowNumber(this$), FsCellsCollection__get_MaxColumnNumber(this$));
514
+ }
515
+
516
+ /**
517
+ * Returns the lower right corner of a given FsCellsCollection.
518
+ */
519
+ export function FsCellsCollection_getLastAddress_Z2740B3CA(cells) {
520
+ return FsCellsCollection__GetLastAddress(cells);
521
+ }
522
+