@nfdi4plants/arctrl 1.0.0-alpha10

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 (296) hide show
  1. package/ARC.js +262 -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 +848 -0
  15. package/ISA/ISA/ArcTypes/ArcTableAux.js +1105 -0
  16. package/ISA/ISA/ArcTypes/ArcTables.js +479 -0
  17. package/ISA/ISA/ArcTypes/ArcTypes.js +2281 -0
  18. package/ISA/ISA/ArcTypes/CompositeCell.js +180 -0
  19. package/ISA/ISA/ArcTypes/CompositeColumn.js +48 -0
  20. package/ISA/ISA/ArcTypes/CompositeHeader.js +668 -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 +338 -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/Template.Json.js +85 -0
  102. package/Templates/Template.Spreadsheet.js +315 -0
  103. package/Templates/Template.Web.js +27 -0
  104. package/Templates/Template.js +179 -0
  105. package/Templates/Templates.js +82 -0
  106. package/WebRequest/WebRequest.js +38 -0
  107. package/fable_modules/Fable.Fetch.2.6.0/Fable.Fetch.fableproj +21 -0
  108. package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs +469 -0
  109. package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +111 -0
  110. package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +57 -0
  111. package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +104 -0
  112. package/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +20 -0
  113. package/fable_modules/Fable.Promise.3.2.0/Promise.fs +766 -0
  114. package/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +217 -0
  115. package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +31 -0
  116. package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +19 -0
  117. package/fable_modules/Fable.SimpleHttp.3.5.0/Fable.SimpleHttp.fableproj +23 -0
  118. package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs +357 -0
  119. package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +429 -0
  120. package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs +52 -0
  121. package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +112 -0
  122. package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs +387 -0
  123. package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs.js +240 -0
  124. package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs +725 -0
  125. package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs.js +522 -0
  126. package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs +195 -0
  127. package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs.js +208 -0
  128. package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs +209 -0
  129. package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs.js +137 -0
  130. package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs +61 -0
  131. package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs.js +62 -0
  132. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs +24 -0
  133. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs.js +56 -0
  134. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs +102 -0
  135. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs.js +6 -0
  136. package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs +200 -0
  137. package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs.js +137 -0
  138. package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs +139 -0
  139. package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs.js +116 -0
  140. package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs +120 -0
  141. package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs.js +120 -0
  142. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs +229 -0
  143. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs.js +421 -0
  144. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs +151 -0
  145. package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs.js +277 -0
  146. package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs +114 -0
  147. package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs.js +104 -0
  148. package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs +177 -0
  149. package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs.js +249 -0
  150. package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs +200 -0
  151. package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs.js +125 -0
  152. package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs +202 -0
  153. package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs.js +135 -0
  154. package/fable_modules/FsSpreadsheet.4.1.0/FsSpreadsheet.fableproj +58 -0
  155. package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs +183 -0
  156. package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs.js +138 -0
  157. package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs +628 -0
  158. package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs.js +398 -0
  159. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs +19 -0
  160. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs.js +41 -0
  161. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs +222 -0
  162. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs.js +235 -0
  163. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs +93 -0
  164. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs.js +91 -0
  165. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs +65 -0
  166. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs.js +74 -0
  167. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs +22 -0
  168. package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs.js +40 -0
  169. package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs +249 -0
  170. package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs.js +325 -0
  171. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs +455 -0
  172. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs.js +310 -0
  173. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs +140 -0
  174. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs.js +173 -0
  175. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs +6 -0
  176. package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs.js +17 -0
  177. package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  178. package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
  179. package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  180. package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
  181. package/fable_modules/Thoth.Json.10.1.0/Decode.fs +1366 -0
  182. package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +1798 -0
  183. package/fable_modules/Thoth.Json.10.1.0/Encode.fs +621 -0
  184. package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +472 -0
  185. package/fable_modules/Thoth.Json.10.1.0/Extra.fs +31 -0
  186. package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +8 -0
  187. package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +30 -0
  188. package/fable_modules/Thoth.Json.10.1.0/Types.fs +59 -0
  189. package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +98 -0
  190. package/fable_modules/Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs +19 -0
  191. package/fable_modules/Thoth.Json.10.1.0/package.json +5 -0
  192. package/fable_modules/fable-library.4.1.4/Array.d.ts +120 -0
  193. package/fable_modules/fable-library.4.1.4/Array.js +1204 -0
  194. package/fable_modules/fable-library.4.1.4/Async.d.ts +32 -0
  195. package/fable_modules/fable-library.4.1.4/Async.js +158 -0
  196. package/fable_modules/fable-library.4.1.4/AsyncBuilder.d.ts +59 -0
  197. package/fable_modules/fable-library.4.1.4/AsyncBuilder.js +183 -0
  198. package/fable_modules/fable-library.4.1.4/BigInt.d.ts +115 -0
  199. package/fable_modules/fable-library.4.1.4/BigInt.js +282 -0
  200. package/fable_modules/fable-library.4.1.4/BitConverter.d.ts +27 -0
  201. package/fable_modules/fable-library.4.1.4/BitConverter.js +138 -0
  202. package/fable_modules/fable-library.4.1.4/Boolean.d.ts +3 -0
  203. package/fable_modules/fable-library.4.1.4/Boolean.js +21 -0
  204. package/fable_modules/fable-library.4.1.4/Char.d.ts +65 -0
  205. package/fable_modules/fable-library.4.1.4/Char.js +169 -0
  206. package/fable_modules/fable-library.4.1.4/Choice.d.ts +138 -0
  207. package/fable_modules/fable-library.4.1.4/Choice.js +227 -0
  208. package/fable_modules/fable-library.4.1.4/Date.d.ts +70 -0
  209. package/fable_modules/fable-library.4.1.4/Date.js +451 -0
  210. package/fable_modules/fable-library.4.1.4/DateOffset.d.ts +63 -0
  211. package/fable_modules/fable-library.4.1.4/DateOffset.js +268 -0
  212. package/fable_modules/fable-library.4.1.4/DateOnly.d.ts +18 -0
  213. package/fable_modules/fable-library.4.1.4/DateOnly.js +124 -0
  214. package/fable_modules/fable-library.4.1.4/Decimal.d.ts +45 -0
  215. package/fable_modules/fable-library.4.1.4/Decimal.js +212 -0
  216. package/fable_modules/fable-library.4.1.4/Double.d.ts +11 -0
  217. package/fable_modules/fable-library.4.1.4/Double.js +46 -0
  218. package/fable_modules/fable-library.4.1.4/Encoding.d.ts +12 -0
  219. package/fable_modules/fable-library.4.1.4/Encoding.js +173 -0
  220. package/fable_modules/fable-library.4.1.4/Event.d.ts +31 -0
  221. package/fable_modules/fable-library.4.1.4/Event.js +93 -0
  222. package/fable_modules/fable-library.4.1.4/FSharp.Collections.d.ts +7 -0
  223. package/fable_modules/fable-library.4.1.4/FSharp.Collections.js +27 -0
  224. package/fable_modules/fable-library.4.1.4/FSharp.Core.d.ts +17 -0
  225. package/fable_modules/fable-library.4.1.4/FSharp.Core.js +69 -0
  226. package/fable_modules/fable-library.4.1.4/Global.d.ts +24 -0
  227. package/fable_modules/fable-library.4.1.4/Global.js +8 -0
  228. package/fable_modules/fable-library.4.1.4/Guid.d.ts +10 -0
  229. package/fable_modules/fable-library.4.1.4/Guid.js +142 -0
  230. package/fable_modules/fable-library.4.1.4/Int32.d.ts +28 -0
  231. package/fable_modules/fable-library.4.1.4/Int32.js +135 -0
  232. package/fable_modules/fable-library.4.1.4/List.d.ts +143 -0
  233. package/fable_modules/fable-library.4.1.4/List.js +1273 -0
  234. package/fable_modules/fable-library.4.1.4/Long.d.ts +3 -0
  235. package/fable_modules/fable-library.4.1.4/Long.js +46 -0
  236. package/fable_modules/fable-library.4.1.4/MailboxProcessor.d.ts +25 -0
  237. package/fable_modules/fable-library.4.1.4/MailboxProcessor.js +93 -0
  238. package/fable_modules/fable-library.4.1.4/Map.d.ts +178 -0
  239. package/fable_modules/fable-library.4.1.4/Map.js +1396 -0
  240. package/fable_modules/fable-library.4.1.4/MapUtil.d.ts +10 -0
  241. package/fable_modules/fable-library.4.1.4/MapUtil.js +112 -0
  242. package/fable_modules/fable-library.4.1.4/MutableMap.d.ts +52 -0
  243. package/fable_modules/fable-library.4.1.4/MutableMap.js +326 -0
  244. package/fable_modules/fable-library.4.1.4/MutableSet.d.ts +39 -0
  245. package/fable_modules/fable-library.4.1.4/MutableSet.js +232 -0
  246. package/fable_modules/fable-library.4.1.4/Native.d.ts +2 -0
  247. package/fable_modules/fable-library.4.1.4/Native.js +8 -0
  248. package/fable_modules/fable-library.4.1.4/Numeric.d.ts +19 -0
  249. package/fable_modules/fable-library.4.1.4/Numeric.js +71 -0
  250. package/fable_modules/fable-library.4.1.4/Observable.d.ts +32 -0
  251. package/fable_modules/fable-library.4.1.4/Observable.js +113 -0
  252. package/fable_modules/fable-library.4.1.4/Option.d.ts +28 -0
  253. package/fable_modules/fable-library.4.1.4/Option.js +96 -0
  254. package/fable_modules/fable-library.4.1.4/README.md +3 -0
  255. package/fable_modules/fable-library.4.1.4/Random.d.ts +37 -0
  256. package/fable_modules/fable-library.4.1.4/Random.js +170 -0
  257. package/fable_modules/fable-library.4.1.4/Range.d.ts +12 -0
  258. package/fable_modules/fable-library.4.1.4/Range.js +45 -0
  259. package/fable_modules/fable-library.4.1.4/Reflection.d.ts +119 -0
  260. package/fable_modules/fable-library.4.1.4/Reflection.js +461 -0
  261. package/fable_modules/fable-library.4.1.4/RegExp.d.ts +10 -0
  262. package/fable_modules/fable-library.4.1.4/RegExp.js +132 -0
  263. package/fable_modules/fable-library.4.1.4/Seq.d.ts +165 -0
  264. package/fable_modules/fable-library.4.1.4/Seq.js +1379 -0
  265. package/fable_modules/fable-library.4.1.4/Seq2.d.ts +18 -0
  266. package/fable_modules/fable-library.4.1.4/Seq2.js +111 -0
  267. package/fable_modules/fable-library.4.1.4/Set.d.ts +190 -0
  268. package/fable_modules/fable-library.4.1.4/Set.js +1789 -0
  269. package/fable_modules/fable-library.4.1.4/String.d.ts +49 -0
  270. package/fable_modules/fable-library.4.1.4/String.js +540 -0
  271. package/fable_modules/fable-library.4.1.4/System.Collections.Generic.d.ts +71 -0
  272. package/fable_modules/fable-library.4.1.4/System.Collections.Generic.js +307 -0
  273. package/fable_modules/fable-library.4.1.4/System.Text.d.ts +30 -0
  274. package/fable_modules/fable-library.4.1.4/System.Text.js +110 -0
  275. package/fable_modules/fable-library.4.1.4/SystemException.d.ts +5 -0
  276. package/fable_modules/fable-library.4.1.4/SystemException.js +5 -0
  277. package/fable_modules/fable-library.4.1.4/TimeOnly.d.ts +15 -0
  278. package/fable_modules/fable-library.4.1.4/TimeOnly.js +122 -0
  279. package/fable_modules/fable-library.4.1.4/TimeSpan.d.ts +34 -0
  280. package/fable_modules/fable-library.4.1.4/TimeSpan.js +177 -0
  281. package/fable_modules/fable-library.4.1.4/Timer.d.ts +19 -0
  282. package/fable_modules/fable-library.4.1.4/Timer.js +67 -0
  283. package/fable_modules/fable-library.4.1.4/Types.d.ts +58 -0
  284. package/fable_modules/fable-library.4.1.4/Types.js +208 -0
  285. package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.d.ts +2 -0
  286. package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.js +4 -0
  287. package/fable_modules/fable-library.4.1.4/Uri.d.ts +29 -0
  288. package/fable_modules/fable-library.4.1.4/Uri.js +142 -0
  289. package/fable_modules/fable-library.4.1.4/Util.d.ts +187 -0
  290. package/fable_modules/fable-library.4.1.4/Util.js +662 -0
  291. package/fable_modules/fable-library.4.1.4/lib/big.d.ts +338 -0
  292. package/fable_modules/fable-library.4.1.4/lib/big.js +826 -0
  293. package/fable_modules/fable-library.4.1.4/package.json +23 -0
  294. package/fable_modules/project_cracked.json +1 -0
  295. package/index.js +13 -0
  296. package/package.json +24 -0
@@ -0,0 +1,310 @@
1
+ import { disposeSafe, getEnumerator, comparePrimitives, int32ToString, defaultOf, equals } from "../../fable-library.4.1.4/Util.js";
2
+ import { FsRangeBase_$reflection, FsRangeBase, FsRangeBase__set_RangeAddress_6A2513BC, FsRangeBase__ColumnCount, FsRangeBase__get_RangeAddress } from "../Ranges/FsRangeBase.fs.js";
3
+ import { exists, toList, choose, tryPick, tryFind, find, max, length, iterate, iterateIndexed, map, reduce, singleton, collect, delay, initialize } from "../../fable-library.4.1.4/Seq.js";
4
+ import { FsRange_$ctor_6A2513BC, FsRange__FirstRow } from "../Ranges/FsRange.fs.js";
5
+ import { FsColumn } from "../FsColumn.fs.js";
6
+ import { FsRangeAddress__Copy, FsRangeAddress__Union_6A2513BC, FsRangeAddress__get_LastAddress, FsRangeAddress__get_FirstAddress, FsRangeAddress_$ctor_7E77A4A0 } from "../Ranges/FsRangeAddress.fs.js";
7
+ import { FsAddress__get_ColumnNumber, FsAddress__get_RowNumber, FsAddress_$ctor_Z37302880 } from "../FsAddress.fs.js";
8
+ import { rangeDouble } from "../../fable-library.4.1.4/Range.js";
9
+ import { FsRow } from "../FsRow.fs.js";
10
+ import { FsTableField__set_Index_Z524259A4, FsTableField_$ctor_Z18115A39, FsTableField__HeaderCell_10EBE01C, FsTableField__get_Index, FsTableField_$ctor_726EFFB, FsTableField__get_Name, FsTableField_$ctor_6547009B, FsTableField__get_Column } from "./FsTableField.fs.js";
11
+ import { getItemFromDict, addToDict, addToSet } from "../../fable-library.4.1.4/MapUtil.js";
12
+ import { FsRangeColumn__get_Index, FsRangeColumn_$ctor_6A2513BC, FsRangeColumn_$ctor_Z524259A4 } from "../Ranges/FsRangeColumn.fs.js";
13
+ import { FsCellsCollection__TryGetCell_Z37302880, FsCellsCollection__GetCellsInColumn_Z524259A4, Dictionary_tryGet } from "../Cells/FsCellsCollection.fs.js";
14
+ import { replace } from "../../fable-library.4.1.4/String.js";
15
+ import { defaultArg, value as value_2 } from "../../fable-library.4.1.4/Option.js";
16
+ import { FsRangeRow__Cells_Z2740B3CA } from "../Ranges/FsRangeRow.fs.js";
17
+ import { DataType } from "../Cells/FsCell.fs.js";
18
+ import { class_type } from "../../fable-library.4.1.4/Reflection.js";
19
+
20
+ export class FsTable extends FsRangeBase {
21
+ constructor(name, rangeAddress, showTotalsRow, showHeaderRow) {
22
+ super(rangeAddress);
23
+ this._name = replace(name.trim(), " ", "_");
24
+ this._lastRangeAddress = rangeAddress;
25
+ this._showTotalsRow = defaultArg(showTotalsRow, false);
26
+ this._showHeaderRow = defaultArg(showHeaderRow, true);
27
+ this._fieldNames = (new Map([]));
28
+ this._uniqueNames = (new Set([]));
29
+ }
30
+ get Name() {
31
+ const this$ = this;
32
+ return this$._name;
33
+ }
34
+ GetFieldNames(cellsCollection) {
35
+ const this$ = this;
36
+ if ((!equals(this$._fieldNames, defaultOf()) && !equals(this$._lastRangeAddress, defaultOf())) && equals(this$._lastRangeAddress, FsRangeBase__get_RangeAddress(this$))) {
37
+ return this$._fieldNames;
38
+ }
39
+ else {
40
+ this$._lastRangeAddress = FsRangeBase__get_RangeAddress(this$);
41
+ return this$._fieldNames;
42
+ }
43
+ }
44
+ GetFields(cellsCollection) {
45
+ const this$ = this;
46
+ return initialize(FsRangeBase__ColumnCount(this$), (i) => this$.GetFieldAt(i, cellsCollection));
47
+ }
48
+ get ShowHeaderRow() {
49
+ const this$ = this;
50
+ return this$._showHeaderRow;
51
+ }
52
+ set ShowHeaderRow(showHeaderRow) {
53
+ const this$ = this;
54
+ this$._showHeaderRow = showHeaderRow;
55
+ }
56
+ HeadersRow() {
57
+ const this$ = this;
58
+ return !this$.ShowHeaderRow ? defaultOf() : FsRange__FirstRow(FsRange_$ctor_6A2513BC(FsRangeBase__get_RangeAddress(this$)));
59
+ }
60
+ GetColumns(cellsCollection) {
61
+ const this$ = this;
62
+ return delay(() => collect((i) => singleton(new FsColumn(FsRangeAddress_$ctor_7E77A4A0(FsAddress_$ctor_Z37302880(FsAddress__get_RowNumber(FsRangeAddress__get_FirstAddress(FsRangeBase__get_RangeAddress(this$))), i), FsAddress_$ctor_Z37302880(FsAddress__get_RowNumber(FsRangeAddress__get_LastAddress(FsRangeBase__get_RangeAddress(this$))), i)), cellsCollection)), rangeDouble(FsAddress__get_ColumnNumber(FsRangeAddress__get_FirstAddress(FsRangeBase__get_RangeAddress(this$))), 1, FsAddress__get_ColumnNumber(FsRangeAddress__get_LastAddress(FsRangeBase__get_RangeAddress(this$))))));
63
+ }
64
+ GetRows(cellsCollection) {
65
+ const this$ = this;
66
+ return delay(() => collect((i) => singleton(new FsRow(FsRangeAddress_$ctor_7E77A4A0(FsAddress_$ctor_Z37302880(i, FsAddress__get_ColumnNumber(FsRangeAddress__get_FirstAddress(FsRangeBase__get_RangeAddress(this$)))), FsAddress_$ctor_Z37302880(i, FsAddress__get_ColumnNumber(FsRangeAddress__get_LastAddress(FsRangeBase__get_RangeAddress(this$))))), cellsCollection)), rangeDouble(FsAddress__get_RowNumber(FsRangeAddress__get_FirstAddress(FsRangeBase__get_RangeAddress(this$))), 1, FsAddress__get_RowNumber(FsRangeAddress__get_LastAddress(FsRangeBase__get_RangeAddress(this$))))));
67
+ }
68
+ RescanRange() {
69
+ const this$ = this;
70
+ FsRangeBase__set_RangeAddress_6A2513BC(this$, reduce(FsRangeAddress__Union_6A2513BC, map((v) => FsRangeBase__get_RangeAddress(FsTableField__get_Column(v)), this$._fieldNames.values())));
71
+ }
72
+ static rescanRange(table) {
73
+ table.RescanRange();
74
+ return table;
75
+ }
76
+ GetUniqueName(originalName, initialOffset, enforceOffset) {
77
+ const this$ = this;
78
+ let name = originalName + (enforceOffset ? int32ToString(initialOffset) : "");
79
+ if (this$._uniqueNames.has(name)) {
80
+ let i = initialOffset;
81
+ name = (originalName + int32ToString(i));
82
+ while (this$._uniqueNames.has(name)) {
83
+ i = ((i + 1) | 0);
84
+ name = (originalName + int32ToString(i));
85
+ }
86
+ }
87
+ addToSet(name, this$._uniqueNames);
88
+ return name;
89
+ }
90
+ static getUniqueNames(originalName, initialOffset, enforceOffset, table) {
91
+ return table.GetUniqueName(originalName, initialOffset, enforceOffset);
92
+ }
93
+ InitFields(fieldNames) {
94
+ const this$ = this;
95
+ iterateIndexed((i, fn) => {
96
+ const tableField = FsTableField_$ctor_6547009B(fn, i, FsRangeColumn_$ctor_Z524259A4(i));
97
+ addToDict(this$._fieldNames, fn, tableField);
98
+ }, fieldNames);
99
+ }
100
+ static initFields(fieldNames, table) {
101
+ table.InitFields(fieldNames);
102
+ return table;
103
+ }
104
+ AddFields(tableFields) {
105
+ const this$ = this;
106
+ iterate((tf) => {
107
+ addToDict(this$._fieldNames, FsTableField__get_Name(tf), tf);
108
+ }, tableFields);
109
+ }
110
+ static addFields(tableFields, table) {
111
+ table.AddFields(tableFields);
112
+ return table;
113
+ }
114
+ Field(name, cellsCollection) {
115
+ let s, offset;
116
+ const this$ = this;
117
+ const matchValue = Dictionary_tryGet(name, this$._fieldNames);
118
+ if (matchValue == null) {
119
+ const newField = FsTableField_$ctor_726EFFB(name, ((s = map(FsTableField__get_Index, this$._fieldNames.values()), (length(s) === 0) ? 0 : max(s, {
120
+ Compare: comparePrimitives,
121
+ }))) + 1, FsRangeColumn_$ctor_6A2513BC((offset = (this$._fieldNames.size | 0), FsRangeAddress_$ctor_7E77A4A0(FsAddress_$ctor_Z37302880(FsAddress__get_RowNumber(FsRangeAddress__get_FirstAddress(FsRangeBase__get_RangeAddress(this$))), FsAddress__get_ColumnNumber(FsRangeAddress__get_FirstAddress(FsRangeBase__get_RangeAddress(this$))) + offset), FsAddress_$ctor_Z37302880(FsAddress__get_RowNumber(FsRangeAddress__get_LastAddress(FsRangeBase__get_RangeAddress(this$))), FsAddress__get_ColumnNumber(FsRangeAddress__get_FirstAddress(FsRangeBase__get_RangeAddress(this$))) + offset)))), defaultOf(), defaultOf());
122
+ if (this$.ShowHeaderRow) {
123
+ const value = FsTableField__HeaderCell_10EBE01C(newField, cellsCollection, true).SetValueAs(name);
124
+ }
125
+ addToDict(this$._fieldNames, name, newField);
126
+ this$.RescanRange();
127
+ return newField;
128
+ }
129
+ else {
130
+ return matchValue;
131
+ }
132
+ }
133
+ GetField(name, cellsCollection) {
134
+ const this$ = this;
135
+ const name_1 = replace(name, "\r\n", "\n");
136
+ try {
137
+ return getItemFromDict(this$.GetFieldNames(cellsCollection), name_1);
138
+ }
139
+ catch (matchValue) {
140
+ throw new Error(("The header row doesn\'t contain field name \'" + name_1) + "\'.");
141
+ }
142
+ }
143
+ static getField(name, cellsCollection, table) {
144
+ return table.GetField(name, cellsCollection);
145
+ }
146
+ GetFieldAt(index, cellsCollection) {
147
+ const this$ = this;
148
+ try {
149
+ return find((ftf) => (FsTableField__get_Index(ftf) === index), this$.GetFieldNames(cellsCollection).values());
150
+ }
151
+ catch (matchValue) {
152
+ throw new Error(`FsTableField with index ${index} does not exist in the FsTable.`);
153
+ }
154
+ }
155
+ GetFieldIndex(name, cellsCollection) {
156
+ const this$ = this;
157
+ return FsTableField__get_Index(this$.GetField(name, cellsCollection)) | 0;
158
+ }
159
+ RenameField(oldName, newName) {
160
+ const this$ = this;
161
+ const matchValue = Dictionary_tryGet(oldName, this$._fieldNames);
162
+ if (matchValue == null) {
163
+ throw new Error("The FsTabelField does not exist in this FsTable", "oldName");
164
+ }
165
+ else {
166
+ const field = matchValue;
167
+ this$._fieldNames.delete(oldName);
168
+ addToDict(this$._fieldNames, newName, field);
169
+ }
170
+ }
171
+ static renameField(oldName, newName, table) {
172
+ table.RenameField(oldName, newName);
173
+ return table;
174
+ }
175
+ TryGetHeaderCellOfColumnAt(cellsCollection, colIndex) {
176
+ const this$ = this;
177
+ const fstRowIndex = FsAddress__get_RowNumber(FsRangeAddress__get_FirstAddress(FsRangeBase__get_RangeAddress(this$))) | 0;
178
+ return tryFind((c) => (c.RowNumber === fstRowIndex), FsCellsCollection__GetCellsInColumn_Z524259A4(cellsCollection, colIndex));
179
+ }
180
+ static tryGetHeaderCellOfColumnIndexAt(cellsCollection, colIndex, table) {
181
+ return table.TryGetHeaderCellOfColumnAt(cellsCollection, colIndex);
182
+ }
183
+ TryGetHeaderCellOfColumn(cellsCollection, column) {
184
+ const this$ = this;
185
+ return this$.TryGetHeaderCellOfColumnAt(cellsCollection, FsRangeColumn__get_Index(column));
186
+ }
187
+ static tryGetHeaderCellOfColumn(cellsCollection, column, table) {
188
+ return table.TryGetHeaderCellOfColumn(cellsCollection, column);
189
+ }
190
+ GetHeaderCellOfColumnAt(cellsCollection, colIndex) {
191
+ const this$ = this;
192
+ return value_2(this$.TryGetHeaderCellOfColumnAt(cellsCollection, colIndex));
193
+ }
194
+ static getHeaderCellOfColumnIndexAt(cellsCollection, colIndex, table) {
195
+ return table.GetHeaderCellOfColumnAt(cellsCollection, colIndex);
196
+ }
197
+ GetHeaderCellOfColumn(cellsCollection, column) {
198
+ const this$ = this;
199
+ return value_2(this$.TryGetHeaderCellOfColumn(cellsCollection, column));
200
+ }
201
+ static getHeaderCellOfColumn(cellsCollection, column, table) {
202
+ return table.GetHeaderCellOfColumn(cellsCollection, column);
203
+ }
204
+ GetHeaderCellOfTableField(cellsCollection, tableField) {
205
+ const this$ = this;
206
+ return FsTableField__HeaderCell_10EBE01C(tableField, cellsCollection, this$.ShowHeaderRow);
207
+ }
208
+ static getHeaderCellOfTableField(cellsCollection, tableField, table) {
209
+ return table.GetHeaderCellOfTableField(cellsCollection, tableField);
210
+ }
211
+ TryGetHeaderCellOfTableFieldAt(cellsCollection, tableFieldIndex) {
212
+ const this$ = this;
213
+ return tryPick((tf) => {
214
+ if (FsTableField__get_Index(tf) === tableFieldIndex) {
215
+ return FsTableField__HeaderCell_10EBE01C(tf, cellsCollection, this$.ShowHeaderRow);
216
+ }
217
+ else {
218
+ return void 0;
219
+ }
220
+ }, this$._fieldNames.values());
221
+ }
222
+ static tryGetHeaderCellOfTableFieldIndexAt(cellsCollection, tableFieldIndex, table) {
223
+ return table.TryGetHeaderCellOfTableFieldAt(cellsCollection, tableFieldIndex);
224
+ }
225
+ GetHeaderCellOfTableFieldAt(cellsCollection, tableFieldIndex) {
226
+ const this$ = this;
227
+ return value_2(this$.TryGetHeaderCellOfTableFieldAt(cellsCollection, tableFieldIndex));
228
+ }
229
+ static getHeaderCellOfTableFieldIndexAt(cellsCollection, tableFieldIndex, table) {
230
+ return table.GetHeaderCellOfTableFieldAt(cellsCollection, tableFieldIndex);
231
+ }
232
+ TryGetHeaderCellByFieldName(cellsCollection, fieldName) {
233
+ const this$ = this;
234
+ const matchValue = Dictionary_tryGet(fieldName, this$._fieldNames);
235
+ return (matchValue == null) ? void 0 : FsTableField__HeaderCell_10EBE01C(matchValue, cellsCollection, this$.ShowHeaderRow);
236
+ }
237
+ static tryGetHeaderCellByFieldName(cellsCollection, fieldName, table) {
238
+ return table.TryGetHeaderCellByFieldName(cellsCollection, fieldName);
239
+ }
240
+ GetDataCellsOfColumnAt(cellsCollection, colIndex) {
241
+ const this$ = this;
242
+ return choose((ri) => FsCellsCollection__TryGetCell_Z37302880(cellsCollection, ri, colIndex), toList(rangeDouble(FsAddress__get_RowNumber(FsRangeAddress__get_FirstAddress(FsRangeBase__get_RangeAddress(this$))) + 1, 1, FsAddress__get_RowNumber(FsRangeAddress__get_LastAddress(FsRangeBase__get_RangeAddress(this$))))));
243
+ }
244
+ static getDataCellsOfColumnIndexAt(cellsCollection, colIndex, table) {
245
+ return table.GetDataCellsOfColumnAt(cellsCollection, colIndex);
246
+ }
247
+ Copy() {
248
+ const this$ = this;
249
+ const ra = FsRangeAddress__Copy(FsRangeBase__get_RangeAddress(this$));
250
+ return new FsTable(this$.Name, ra, false, this$.ShowHeaderRow);
251
+ }
252
+ static copy(table) {
253
+ return table.Copy();
254
+ }
255
+ RescanFieldNames(cellsCollection) {
256
+ const this$ = this;
257
+ if (this$.ShowHeaderRow) {
258
+ const oldFieldNames = this$._fieldNames;
259
+ this$._fieldNames = (new Map([]));
260
+ let cellPos = 0;
261
+ const enumerator = getEnumerator(FsRangeRow__Cells_Z2740B3CA(this$.HeadersRow(), cellsCollection));
262
+ try {
263
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
264
+ const cell = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
265
+ let name = cell.Value;
266
+ const matchValue = Dictionary_tryGet(name, oldFieldNames);
267
+ if (matchValue == null) {
268
+ if ((name === defaultOf()) !== (name === "")) {
269
+ name = this$.GetUniqueName("Column", cellPos + 1, true);
270
+ const value = cell.SetValueAs(name);
271
+ cell.DataType = (new DataType(0, []));
272
+ }
273
+ if (this$._fieldNames.has(name)) {
274
+ throw new Error(("The header row contains more than one field name \'" + name) + "\'.");
275
+ }
276
+ addToDict(this$._fieldNames, name, FsTableField_$ctor_Z18115A39(name, cellPos));
277
+ cellPos = ((cellPos + 1) | 0);
278
+ }
279
+ else {
280
+ const tableField = matchValue;
281
+ FsTableField__set_Index_Z524259A4(tableField, cellPos);
282
+ addToDict(this$._fieldNames, name, tableField);
283
+ cellPos = ((cellPos + 1) | 0);
284
+ }
285
+ }
286
+ }
287
+ finally {
288
+ disposeSafe(enumerator);
289
+ }
290
+ }
291
+ else {
292
+ const colCount = FsRangeBase__ColumnCount(this$) | 0;
293
+ for (let i = 1; i <= colCount; i++) {
294
+ if (!exists((v) => (FsTableField__get_Index(v) === (i - 1)), this$._fieldNames.values())) {
295
+ const name_1 = "Column" + int32ToString(i);
296
+ addToDict(this$._fieldNames, name_1, FsTableField_$ctor_Z18115A39(name_1, i - 1));
297
+ }
298
+ }
299
+ }
300
+ }
301
+ }
302
+
303
+ export function FsTable_$reflection() {
304
+ return class_type("FsSpreadsheet.FsTable", void 0, FsTable, FsRangeBase_$reflection());
305
+ }
306
+
307
+ export function FsTable_$ctor_30096B47(name, rangeAddress, showTotalsRow, showHeaderRow) {
308
+ return new FsTable(name, rangeAddress, showTotalsRow, showHeaderRow);
309
+ }
310
+
@@ -0,0 +1,140 @@
1
+ namespace FsSpreadsheet
2
+
3
+ /// <summary>
4
+ /// Creates an FsTableFiled with given name, index, FsRangeColumn, totalRowLabel, and the totalsRowFunction.
5
+ /// </summary>
6
+ [<AllowNullLiteral>]
7
+ type FsTableField (name : string, index : int, column : FsRangeColumn, totalsRowLabel, totalsRowFunction) =
8
+
9
+ let mutable _totalsRowsFunction = totalsRowFunction
10
+ let mutable _totalsRowLabel = totalsRowLabel
11
+ let mutable _column = column
12
+ let mutable _index = index
13
+ let mutable _name = name
14
+
15
+ /// <summary>
16
+ /// Creates an empty FsTableField.
17
+ /// </summary>
18
+ new() = FsTableField("", 0, null, null, null)
19
+
20
+ /// <summary>
21
+ /// Creates an FsTableField with the given name.
22
+ /// </summary>
23
+ new(name : string) = FsTableField(name, 0, null, null, null)
24
+
25
+ /// <summary>
26
+ /// Creates an FsTableField with the given name and index.
27
+ /// </summary>
28
+ new(name : string, index : int) = FsTableField(name, index, null, null, null)
29
+
30
+ /// <summary>
31
+ /// Creates an FsTableField with the given name, index, and FsRangeColumn.
32
+ /// </summary>
33
+ new(name, index, column) = FsTableField(name, index, column, null, null)
34
+
35
+ /// <summary>
36
+ /// Gets or sets the FsRangeColumn of this FsTableField.
37
+ /// </summary>
38
+ member val Column = _column with get, set
39
+ //with get() =
40
+ // //let column =
41
+ // // if _column = null then
42
+
43
+ // // else
44
+ // _column
45
+ // //column
46
+ //and set(column) = _column <- column
47
+
48
+ /// <summary>
49
+ /// Gets or sets the 0-based index of the FsTableField inside the associated FsTable.
50
+ /// Sets the associated FsRangeColumn's column index accordingly.
51
+ /// </summary>
52
+ member this.Index
53
+ with get() = _index
54
+ and set index =
55
+ if index = _index then ()
56
+ else
57
+ _index <- index
58
+ match _column with
59
+ | null -> ()
60
+ | _ ->
61
+ let indDiff = index - _index
62
+ let newCol =
63
+ let raFstRow = this.Column.RangeAddress.FirstAddress.RowNumber
64
+ let newFstAddr = FsAddress(raFstRow, _index + indDiff)
65
+ let raLstRow = this.Column.RangeAddress.LastAddress.RowNumber
66
+ let newLstAddr = FsAddress(raLstRow, _index + indDiff)
67
+ FsRangeAddress(newFstAddr, newLstAddr)
68
+ |> FsRangeColumn
69
+ this.Column <- newCol
70
+
71
+ /// <summary>
72
+ /// The name of this FsTableField.
73
+ /// </summary>
74
+ member this.Name = _name
75
+
76
+ /// <summary>
77
+ /// Sets the name of the FsTableField. If `showHeaderRow` is true, takes the respective FsCellsCollection and renames the header cell
78
+ /// according to the name of the FsTableField.
79
+ /// </summary>
80
+ // TO DO: ask HLW: why this and not normal setter? If inferring from cellsColl, wouldn't it be better to name the method more precisely?
81
+ member this.SetName(name, cellsCollection : FsCellsCollection, showHeaderRow : bool) =
82
+ _name <- name
83
+ if showHeaderRow then
84
+ this.Column.FirstCell(cellsCollection).SetValueAs<string>(name)
85
+
86
+ /// <summary>
87
+ /// Sets the name of a given FsTableField. If `showHeaderRow` is true, takes the respective FsCellsCollection and renames the header cell
88
+ /// according to the name of the FsTableField.
89
+ /// </summary>
90
+ static member setName name cellsCollection showHeaderRow (tableField : FsTableField) =
91
+ tableField.SetName(name, cellsCollection, showHeaderRow)
92
+ tableField
93
+
94
+ /// <summary>
95
+ /// Creates a deep copy of this FsTableField.
96
+ /// </summary>
97
+ member this.Copy() =
98
+ let col = this.Column.Copy()
99
+ let ind = this.Index
100
+ let nam = this.Name
101
+ FsTableField(nam, ind, col, null, null)
102
+
103
+ /// <summary>
104
+ /// Returns a deep copy of a given FsTableField.
105
+ /// </summary>
106
+ static member copy (tableField : FsTableField) =
107
+ tableField.Copy()
108
+
109
+ /// <summary>
110
+ /// Returns the header cell (taken from a given FsCellsCollection) for the FsTableField if `showHeaderRow` is true. Else fails.
111
+ /// </summary>
112
+ /// <exception cref="System.Exception">if `showHeaderRow` is false.</exception>
113
+ member this.HeaderCell (cellsCollection : FsCellsCollection, showHeaderRow : bool) =
114
+ if not showHeaderRow then
115
+ failwithf "tried to get header cell of table field \"%s\" even though showHeaderRow is set to zero" _name
116
+ else
117
+ this.Column.FirstCell(cellsCollection)
118
+
119
+ /// <summary>
120
+ /// Returns the header cell (taken from an FsCellsCollection) for a given FsTableField if `showHeaderRow` is true. Else fails.
121
+ /// </summary>
122
+ /// <exception cref="System.Exception">if `showHeaderRow` is false.</exception>
123
+ static member getHeaderCell cellsCollection showHeaderRow (tableField : FsTableField) =
124
+ tableField.HeaderCell(cellsCollection, showHeaderRow)
125
+
126
+ /// <summary>
127
+ /// Gets the collection of data cells for this FsTableField. Excludes the header and footer cells.
128
+ /// </summary>
129
+ /// <param name="cellsCollection">The FsCellsCollection respective to the FsTableField where the data cells are taken from.</param>
130
+ member this.DataCells (cellsCollection : FsCellsCollection) =
131
+ this.Column.Cells(cellsCollection)
132
+ |> Seq.skip 1 // ClosedXML implementation never shows header cell
133
+
134
+ /// <summary>
135
+ /// Gets the collection of data cells for a given FsTableField. Excludes the header and footer cells.
136
+ /// </summary>
137
+ /// <param name="cellsCollection">The FsCellsCollection respective to the FsTableField where the data cells are taken from.</param>
138
+ /// <param name="tableField">The FsTableField to get the data cells from.</param>
139
+ static member getDataCells cellsCollection (tableField : FsTableField) =
140
+ tableField.DataCells(cellsCollection)
@@ -0,0 +1,173 @@
1
+ import { class_type } from "../../fable-library.4.1.4/Reflection.js";
2
+ import { equals, defaultOf } from "../../fable-library.4.1.4/Util.js";
3
+ import { FsRangeColumn__Cells_Z2740B3CA, FsRangeColumn__Copy, FsRangeColumn__FirstCell_Z2740B3CA, FsRangeColumn_$ctor_6A2513BC } from "../Ranges/FsRangeColumn.fs.js";
4
+ import { FsRangeAddress__get_LastAddress, FsRangeAddress__get_FirstAddress, FsRangeAddress_$ctor_7E77A4A0 } from "../Ranges/FsRangeAddress.fs.js";
5
+ import { FsAddress__get_RowNumber, FsAddress_$ctor_Z37302880 } from "../FsAddress.fs.js";
6
+ import { FsRangeBase__get_RangeAddress } from "../Ranges/FsRangeBase.fs.js";
7
+ import { printf, toFail } from "../../fable-library.4.1.4/String.js";
8
+ import { skip } from "../../fable-library.4.1.4/Seq.js";
9
+
10
+ export class FsTableField {
11
+ constructor(name, index, column, totalsRowLabel, totalsRowFunction) {
12
+ this._totalsRowsFunction = totalsRowFunction;
13
+ this._totalsRowLabel = totalsRowLabel;
14
+ this._column = column;
15
+ this._index = (index | 0);
16
+ this._name = name;
17
+ this["Column@"] = this._column;
18
+ }
19
+ }
20
+
21
+ export function FsTableField_$reflection() {
22
+ return class_type("FsSpreadsheet.FsTableField", void 0, FsTableField);
23
+ }
24
+
25
+ export function FsTableField_$ctor_726EFFB(name, index, column, totalsRowLabel, totalsRowFunction) {
26
+ return new FsTableField(name, index, column, totalsRowLabel, totalsRowFunction);
27
+ }
28
+
29
+ /**
30
+ * Creates an empty FsTableField.
31
+ */
32
+ export function FsTableField_$ctor() {
33
+ return FsTableField_$ctor_726EFFB("", 0, defaultOf(), defaultOf(), defaultOf());
34
+ }
35
+
36
+ /**
37
+ * Creates an FsTableField with the given name.
38
+ */
39
+ export function FsTableField_$ctor_Z721C83C5(name) {
40
+ return FsTableField_$ctor_726EFFB(name, 0, defaultOf(), defaultOf(), defaultOf());
41
+ }
42
+
43
+ /**
44
+ * Creates an FsTableField with the given name and index.
45
+ */
46
+ export function FsTableField_$ctor_Z18115A39(name, index) {
47
+ return FsTableField_$ctor_726EFFB(name, index, defaultOf(), defaultOf(), defaultOf());
48
+ }
49
+
50
+ /**
51
+ * Creates an FsTableField with the given name, index, and FsRangeColumn.
52
+ */
53
+ export function FsTableField_$ctor_6547009B(name, index, column) {
54
+ return FsTableField_$ctor_726EFFB(name, index, column, defaultOf(), defaultOf());
55
+ }
56
+
57
+ /**
58
+ * Gets or sets the FsRangeColumn of this FsTableField.
59
+ */
60
+ export function FsTableField__get_Column(__) {
61
+ return __["Column@"];
62
+ }
63
+
64
+ /**
65
+ * Gets or sets the FsRangeColumn of this FsTableField.
66
+ */
67
+ export function FsTableField__set_Column_Z7F7BA1C4(__, v) {
68
+ __["Column@"] = v;
69
+ }
70
+
71
+ /**
72
+ * Gets or sets the 0-based index of the FsTableField inside the associated FsTable.
73
+ * Sets the associated FsRangeColumn's column index accordingly.
74
+ */
75
+ export function FsTableField__get_Index(this$) {
76
+ return this$._index;
77
+ }
78
+
79
+ /**
80
+ * Gets or sets the 0-based index of the FsTableField inside the associated FsTable.
81
+ * Sets the associated FsRangeColumn's column index accordingly.
82
+ */
83
+ export function FsTableField__set_Index_Z524259A4(this$, index) {
84
+ if (index === this$._index) {
85
+ }
86
+ else {
87
+ this$._index = (index | 0);
88
+ if (equals(this$._column, defaultOf())) {
89
+ }
90
+ else {
91
+ const indDiff = (index - this$._index) | 0;
92
+ FsTableField__set_Column_Z7F7BA1C4(this$, FsRangeColumn_$ctor_6A2513BC(FsRangeAddress_$ctor_7E77A4A0(FsAddress_$ctor_Z37302880(FsAddress__get_RowNumber(FsRangeAddress__get_FirstAddress(FsRangeBase__get_RangeAddress(FsTableField__get_Column(this$)))), this$._index + indDiff), FsAddress_$ctor_Z37302880(FsAddress__get_RowNumber(FsRangeAddress__get_LastAddress(FsRangeBase__get_RangeAddress(FsTableField__get_Column(this$)))), this$._index + indDiff))));
93
+ }
94
+ }
95
+ }
96
+
97
+ /**
98
+ * The name of this FsTableField.
99
+ */
100
+ export function FsTableField__get_Name(this$) {
101
+ return this$._name;
102
+ }
103
+
104
+ /**
105
+ * Sets the name of the FsTableField. If `showHeaderRow` is true, takes the respective FsCellsCollection and renames the header cell
106
+ * according to the name of the FsTableField.
107
+ */
108
+ export function FsTableField__SetName_103577A7(this$, name, cellsCollection, showHeaderRow) {
109
+ this$._name = name;
110
+ if (showHeaderRow) {
111
+ FsRangeColumn__FirstCell_Z2740B3CA(FsTableField__get_Column(this$), cellsCollection).SetValueAs(name);
112
+ }
113
+ }
114
+
115
+ /**
116
+ * Sets the name of a given FsTableField. If `showHeaderRow` is true, takes the respective FsCellsCollection and renames the header cell
117
+ * according to the name of the FsTableField.
118
+ */
119
+ export function FsTableField_setName(name, cellsCollection, showHeaderRow, tableField) {
120
+ FsTableField__SetName_103577A7(tableField, name, cellsCollection, showHeaderRow);
121
+ return tableField;
122
+ }
123
+
124
+ /**
125
+ * Creates a deep copy of this FsTableField.
126
+ */
127
+ export function FsTableField__Copy(this$) {
128
+ const col = FsRangeColumn__Copy(FsTableField__get_Column(this$));
129
+ const ind = FsTableField__get_Index(this$) | 0;
130
+ return FsTableField_$ctor_726EFFB(FsTableField__get_Name(this$), ind, col, defaultOf(), defaultOf());
131
+ }
132
+
133
+ /**
134
+ * Returns a deep copy of a given FsTableField.
135
+ */
136
+ export function FsTableField_copy_Z5343F797(tableField) {
137
+ return FsTableField__Copy(tableField);
138
+ }
139
+
140
+ /**
141
+ * Returns the header cell (taken from a given FsCellsCollection) for the FsTableField if `showHeaderRow` is true. Else fails.
142
+ */
143
+ export function FsTableField__HeaderCell_10EBE01C(this$, cellsCollection, showHeaderRow) {
144
+ if (!showHeaderRow) {
145
+ const arg = this$._name;
146
+ return toFail(printf("tried to get header cell of table field \"%s\" even though showHeaderRow is set to zero"))(arg);
147
+ }
148
+ else {
149
+ return FsRangeColumn__FirstCell_Z2740B3CA(FsTableField__get_Column(this$), cellsCollection);
150
+ }
151
+ }
152
+
153
+ /**
154
+ * Returns the header cell (taken from an FsCellsCollection) for a given FsTableField if `showHeaderRow` is true. Else fails.
155
+ */
156
+ export function FsTableField_getHeaderCell(cellsCollection, showHeaderRow, tableField) {
157
+ return FsTableField__HeaderCell_10EBE01C(tableField, cellsCollection, showHeaderRow);
158
+ }
159
+
160
+ /**
161
+ * Gets the collection of data cells for this FsTableField. Excludes the header and footer cells.
162
+ */
163
+ export function FsTableField__DataCells_Z2740B3CA(this$, cellsCollection) {
164
+ return skip(1, FsRangeColumn__Cells_Z2740B3CA(FsTableField__get_Column(this$), cellsCollection));
165
+ }
166
+
167
+ /**
168
+ * Gets the collection of data cells for a given FsTableField. Excludes the header and footer cells.
169
+ */
170
+ export function FsTableField_getDataCells(cellsCollection, tableField) {
171
+ return FsTableField__DataCells_Z2740B3CA(tableField, cellsCollection);
172
+ }
173
+
@@ -0,0 +1,6 @@
1
+ namespace FsSpreadsheet
2
+
3
+ [<AllowNullLiteral>]
4
+ type FsTableRow (rangeAddress : FsRangeAddress) =
5
+
6
+ inherit FsRangeRow(rangeAddress)
@@ -0,0 +1,17 @@
1
+ import { FsRangeRow_$reflection, FsRangeRow } from "../Ranges/FsRangeRow.fs.js";
2
+ import { class_type } from "../../fable-library.4.1.4/Reflection.js";
3
+
4
+ export class FsTableRow extends FsRangeRow {
5
+ constructor(rangeAddress) {
6
+ super(rangeAddress);
7
+ }
8
+ }
9
+
10
+ export function FsTableRow_$reflection() {
11
+ return class_type("FsSpreadsheet.FsTableRow", void 0, FsTableRow, FsRangeRow_$reflection());
12
+ }
13
+
14
+ export function FsTableRow_$ctor_6A2513BC(rangeAddress) {
15
+ return new FsTableRow(rangeAddress);
16
+ }
17
+
@@ -0,0 +1,3 @@
1
+ namespace Microsoft.BuildSettings
2
+ [<System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.0", FrameworkDisplayName="")>]
3
+ do ()
@@ -0,0 +1,19 @@
1
+ // <auto-generated>
2
+ // Generated by the FSharp WriteCodeFragment class.
3
+ // </auto-generated>
4
+ namespace FSharp
5
+
6
+ open System
7
+ open System.Reflection
8
+
9
+
10
+ [<assembly: System.Reflection.AssemblyCompanyAttribute("Heinrich Lukas Weil, Oliver Maus, Kevin Schneider, Kevin Frey, Timo Mühlhaus")>]
11
+ [<assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")>]
12
+ [<assembly: System.Reflection.AssemblyDescriptionAttribute("Fable compliant Spreadsheet creation and manipulation in FSharp")>]
13
+ [<assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")>]
14
+ [<assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")>]
15
+ [<assembly: System.Reflection.AssemblyProductAttribute("FsSpreadsheet")>]
16
+ [<assembly: System.Reflection.AssemblyTitleAttribute("FsSpreadsheet")>]
17
+ [<assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")>]
18
+ [<assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/CSBiology/FsSpreadsheet")>]
19
+ do()