@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,387 @@
1
+ namespace FsSpreadsheet
2
+
3
+ open System
4
+
5
+ open Fable.Core
6
+
7
+ /// <summary>
8
+ /// Possible DataTypes used in a FsCell.
9
+ /// </summary>
10
+ type DataType =
11
+ | String
12
+ | Boolean
13
+ | Number
14
+ | Date
15
+ | Empty
16
+
17
+ /// <summary>
18
+ /// Returns the proper CellValues case for the given value.
19
+ /// </summary>
20
+ static member inline InferCellValue (value : 'T) =
21
+ let value = box value
22
+ match value with
23
+ | :? char as c -> DataType.String,c.ToString()
24
+ | :? bool as true -> DataType.Boolean, "True"
25
+ | :? bool as false -> DataType.Boolean, "False"
26
+ | :? byte as i -> DataType.Number,i.ToString()
27
+ | :? sbyte as i -> DataType.Number,i.ToString()
28
+ | :? int as i -> DataType.Number,i.ToString()
29
+ | :? int16 as i -> DataType.Number,i.ToString()
30
+ | :? int64 as i -> DataType.Number,i.ToString()
31
+ | :? uint as i -> DataType.Number,i.ToString()
32
+ | :? uint16 as i -> DataType.Number,i.ToString()
33
+ | :? uint64 as i -> DataType.Number,i.ToString()
34
+ | :? single as i -> DataType.Number,i.ToString()
35
+ | :? float as i -> DataType.Number,i.ToString()
36
+ | :? decimal as i -> DataType.Number,i.ToString()
37
+ | :? System.DateTime as d -> DataType.Date,d.ToString()
38
+ | :? string as s -> DataType.String,s.ToString()
39
+ | _ -> DataType.String,value.ToString()
40
+
41
+ // Type based on the type XLCell used in ClosedXml
42
+ /// <summary>
43
+ /// Creates an FsCell of `DataType` dataType, with value of type `string`, and `FsAddress` address.
44
+ /// </summary>
45
+
46
+ [<AttachMembers>]
47
+ type FsCell (value : IConvertible, ?dataType : DataType, ?address : FsAddress) =
48
+
49
+ // TODO: Maybe save as IConvertible
50
+ let mutable _cellValue = string value
51
+ let mutable _dataType = dataType |> Option.defaultValue DataType.String
52
+ let mutable _comment = ""
53
+ let mutable _hyperlink = ""
54
+ let mutable _richText = ""
55
+ let mutable _formulaA1 = ""
56
+ let mutable _formulaR1C1 = ""
57
+
58
+ let mutable _rowIndex : int = address |> Option.map (fun a -> a.RowNumber) |> Option.defaultValue 0
59
+ let mutable _columnIndex : int = address |> Option.map (fun a -> a.ColumnNumber) |> Option.defaultValue 0
60
+
61
+
62
+ /// Creates an empty FsCell, set at row 0, column 0 (1-based).
63
+ static member empty () = FsCell ("", DataType.Empty, FsAddress(0,0))
64
+
65
+ ///// Creates an FsCell of `DataType` `Number`, with the given value, set at row 1, column 1 (1-based).
66
+ //new (value : int) = FsCell (string value, DataType.Number, FsAddress(0,0))
67
+
68
+ ///// Creates an FsCell of `DataType` `Number`, with the given value, set at row 1, column 1 (1-based).
69
+ //new (value : float) = FsCell (string value, DataType.Number, FsAddress(0,0))
70
+
71
+ ///// Creates an empty FsCell, set at `FsAddress` address.
72
+ //new (address : FsAddress) =
73
+ // FsCell ("", DataType.Empty, address)
74
+
75
+ ///// Creates an empty FsCell, set at row rowIndex and column colIndex.
76
+ //new (rowIndex, colIndex) =
77
+ // FsCell("", DataType.Empty, FsAddress(rowIndex, colIndex))
78
+
79
+
80
+ // ----------
81
+ // PROPERTIES
82
+ // ----------
83
+
84
+ /// <summary>
85
+ /// Gets or sets the cell's value. To get or set a strongly typed value, use the GetValue&lt;T&gt; and SetValue methods.
86
+ /// </summary>
87
+ /// <value>
88
+ /// The object containing the value(s) to set.
89
+ /// </value>
90
+ member self.Value
91
+ with get() = _cellValue
92
+ and set(value) = _cellValue <- value
93
+
94
+ /// <summary>
95
+ /// Gets or sets the DataType of this FsCell's data.
96
+ /// <para>Changing the data type will cause FsSpreadsheet to convert the current value to the new DataType. </para>
97
+ /// <para>An exception will be thrown if the current value cannot be converted to the new DataType.</para>
98
+ /// </summary>
99
+ /// <value>
100
+ /// The type of the FsCell's data.
101
+ /// </value>
102
+ /// <exception cref="ArgumentException"></exception>
103
+ member self.DataType
104
+ with get() = _dataType
105
+ and internal set(dataType) = _dataType <- dataType
106
+
107
+ /// <summary>
108
+ /// Gets or sets the columnIndex of the FsCell.
109
+ /// </summary>
110
+ member self.ColumnNumber
111
+ with get() = _columnIndex
112
+ and set(colI) = _columnIndex <- colI
113
+
114
+ /// <summary>
115
+ /// Gets or sets the rowIndex of the FsCell.
116
+ /// </summary>
117
+ member self.RowNumber
118
+ with get() = _rowIndex
119
+ and set(rowI) = _rowIndex <- rowI
120
+
121
+ /// <summary>
122
+ /// Gets this FsCell's address, relative to the FsWorksheet.
123
+ /// </summary>
124
+ /// <value>The FsCell's address.</value>
125
+ member self.Address
126
+ with get() = FsAddress(_rowIndex,_columnIndex)
127
+ and internal set(address : FsAddress) =
128
+ _rowIndex <- address.RowNumber
129
+ _columnIndex <- address.ColumnNumber
130
+
131
+
132
+ /// <summary>
133
+ /// Create an FsCell from given rowNumber, colNumber, and value. Infers the DataType.
134
+ /// </summary>
135
+ static member create (rowNumber : int) (colNumber : int) value =
136
+ let dataT, value = DataType.InferCellValue value
137
+ FsCell(value, dataT, FsAddress(rowNumber, colNumber))
138
+
139
+ /// <summary>
140
+ /// Creates an empty FsCell.
141
+ /// </summary>
142
+ static member createEmpty () =
143
+ FsCell("", DataType.Empty, FsAddress(0,0))
144
+
145
+ /// <summary>
146
+ /// Creates an FsCell with the given FsAdress and value. Inferes the DataType.
147
+ /// </summary>
148
+ static member createWithAdress (adress : FsAddress) value =
149
+ let dataT, value = DataType.InferCellValue value
150
+ FsCell(value, dataT, adress)
151
+
152
+ /// <summary>
153
+ /// Creates an empty FsCell with a given FsAddress.
154
+ /// </summary>
155
+ static member createEmptyWithAdress (adress : FsAddress) =
156
+ FsCell("", DataType.Empty, adress)
157
+
158
+ /// <summary>
159
+ /// Creates an FsCell with the given DataType, rowNumber, colNumber, and value.
160
+ /// </summary>
161
+ static member createWithDataType (dataType : DataType) (rowNumber : int) (colNumber : int) value =
162
+ FsCell(value, dataType, FsAddress(rowNumber, colNumber))
163
+
164
+ //how 2:
165
+ //return (format.ToUpper()) switch
166
+ //{
167
+ // "A" => this.Address.ToString(),
168
+ // "F" => HasFormula ? this.FormulaA1 : string.Empty,
169
+ // "NF" => Style.NumberFormat.Format,
170
+ // "FG" => Style.Font.FontColor.ToString(),
171
+ // "BG" => Style.Fill.BackgroundColor.ToString(),
172
+ // "V" => GetFormattedString(),
173
+ // _ => throw new FormatException($"Format {format} was not recognised."),
174
+ //};
175
+ /// <summary>
176
+ /// Returns a string that represents the current state of the FsCell according to the format.
177
+ /// </summary>
178
+ // /// <param name="format">A: address, F: formula, NF: number format, BG: background color, FG: foreground color, V: formatted value</param>
179
+ // /// <returns></returns>
180
+ override self.ToString() =
181
+ let cellRef = CellReference.indexToColAdress (uint self.ColumnNumber)
182
+ $"{cellRef}{self.RowNumber} : {self.Value} | {self.DataType}"
183
+
184
+ /// <summary>
185
+ /// Copies and replaces DataType and Value from a given FsCell into this one.
186
+ /// </summary>
187
+ member self.CopyFrom(otherCell : FsCell) =
188
+ self.DataType <- otherCell.DataType
189
+ self.Value <- otherCell.Value
190
+
191
+ /// <summary>
192
+ /// Copies DataType and Value from this FsCell to a given one and replaces theirs.
193
+ /// </summary>
194
+ member self.CopyTo(target : FsCell) =
195
+ target.DataType <- self.DataType
196
+ target.Value <- self.Value
197
+
198
+ /// <summary>
199
+ /// Copies and replaces DataType and Value from a source FsCell into a target FsCell. Returns the target cell.
200
+ /// </summary>
201
+ static member copyFromTo (sourceCell : FsCell) (targetCell : FsCell) =
202
+ targetCell.DataType <- sourceCell.DataType
203
+ targetCell.Value <- sourceCell.Value
204
+ targetCell
205
+
206
+ /// <summary>
207
+ /// Creates a deep copy of this FsCell.
208
+ /// </summary>
209
+ member self.Copy() =
210
+ let value = self.Value
211
+ let dt = self.DataType
212
+ let addr = self.Address.Copy()
213
+ FsCell(value, dt, addr)
214
+
215
+ /// <summary>
216
+ /// Returns a deep copy of a given FsCell.
217
+ /// </summary>
218
+ static member copy (cell : FsCell) =
219
+ cell.Copy()
220
+
221
+
222
+ /// <summary>
223
+ /// Gets the value as string
224
+ /// </summary>
225
+ member self.ValueAsString() =
226
+ self.Value
227
+
228
+ /// <summary>
229
+ /// Gets the value as string
230
+ /// </summary>
231
+ static member getValueAsString (cell : FsCell) =
232
+ cell.ValueAsString()
233
+
234
+ /// <summary>
235
+ /// Gets the value as bool
236
+ /// </summary>
237
+ member self.ValueAsBool() =
238
+ bool.Parse (self.Value)
239
+
240
+ /// <summary>
241
+ /// Gets the value as bool
242
+ /// </summary>
243
+ static member getValueAsBool (cell : FsCell) =
244
+ cell.ValueAsBool()
245
+
246
+ /// <summary>
247
+ /// Gets the value as float
248
+ /// </summary>
249
+ member self.ValueAsFloat() =
250
+ Double.Parse (self.Value)
251
+
252
+ /// <summary>
253
+ /// Gets the value as float
254
+ /// </summary>
255
+ static member getValueAsFloat (cell : FsCell) =
256
+ cell.ValueAsFloat()
257
+
258
+ /// <summary>
259
+ /// Gets the value as int
260
+ /// </summary>
261
+ member self.ValueAsInt() =
262
+ Int32.Parse (self.Value)
263
+
264
+ /// <summary>
265
+ /// Gets the value as int
266
+ /// </summary>
267
+ static member getValueAsInt (cell : FsCell) =
268
+ cell.ValueAsInt()
269
+
270
+ /// <summary>
271
+ /// Gets the value as uint
272
+ /// </summary>
273
+ member self.ValueAsUInt() =
274
+ UInt32.Parse (self.Value)
275
+
276
+ /// <summary>
277
+ /// Gets the value as uint
278
+ /// </summary>
279
+ static member getValueAsUInt (cell : FsCell) =
280
+ cell.ValueAsUInt()
281
+
282
+ /// <summary>
283
+ /// Gets the value as long
284
+ /// </summary>
285
+ member self.ValueAsLong() =
286
+ Int64.Parse (self.Value)
287
+
288
+ /// <summary>
289
+ /// Gets the value as long
290
+ /// </summary>
291
+ static member getValueAsLong (cell : FsCell) =
292
+ cell.ValueAsLong()
293
+
294
+ /// <summary>
295
+ /// Gets the value as ulong
296
+ /// </summary>
297
+ member self.ValueAsULong() =
298
+ UInt64.Parse (self.Value)
299
+
300
+ /// <summary>
301
+ /// Gets the value as ulong
302
+ /// </summary>
303
+ static member getValueAsULong (cell : FsCell) =
304
+ cell.ValueAsULong()
305
+
306
+ /// <summary>
307
+ /// Gets the value as double
308
+ /// </summary>
309
+ member self.ValueAsDouble() =
310
+ Double.Parse (self.Value)
311
+
312
+ /// <summary>
313
+ /// Gets the value as double
314
+ /// </summary>
315
+ static member getValueAsDouble (cell : FsCell) =
316
+ cell.ValueAsDouble()
317
+
318
+ /// <summary>
319
+ /// Gets the value as decimal
320
+ /// </summary>
321
+ member self.ValueAsDecimal() =
322
+ Decimal.Parse (self.Value)
323
+
324
+ /// <summary>
325
+ /// Gets the value as decimal
326
+ /// </summary>
327
+ static member getValueAsDecimal (cell : FsCell) =
328
+ cell.ValueAsDecimal()
329
+
330
+ /// <summary>
331
+ /// Gets the value as DateTime
332
+ /// </summary>
333
+ member self.ValueAsDateTime() =
334
+ DateTime.Parse (self.Value)
335
+
336
+ /// <summary>
337
+ /// Gets the value as DateTime
338
+ /// </summary>
339
+ static member getValueAsDateTime (cell : FsCell) =
340
+ cell.ValueAsDateTime()
341
+
342
+ /// <summary>
343
+ /// Gets the value as Guid
344
+ /// </summary>
345
+ member self.ValueAsGuid() =
346
+ Guid.Parse (self.Value)
347
+
348
+ /// <summary>
349
+ /// Gets the value as Guid
350
+ /// </summary>
351
+ static member getValueAsGuid (cell : FsCell) =
352
+ cell.ValueAsGuid()
353
+
354
+ /// <summary>
355
+ /// Gets the value as char
356
+ /// </summary>
357
+ member self.ValueAsChar() =
358
+ Char.Parse (self.Value)
359
+
360
+ /// <summary>
361
+ /// Gets the value as char
362
+ /// </summary>
363
+ static member getValueAsChar (cell : FsCell) =
364
+ cell.ValueAsChar()
365
+
366
+ /// <summary>
367
+ /// Sets the FsCell's value.
368
+ /// <para>FsSpreadsheet will try to translate it to the corresponding type, if it cannot, the value will be left as a string.</para>
369
+ /// </summary>
370
+ /// <value>
371
+ /// The object containing the value to set.
372
+ /// </value>
373
+ member self.SetValueAs<'T>(value) =
374
+ let t,v = DataType.InferCellValue value
375
+ _dataType <- t
376
+ _cellValue <- v
377
+
378
+ /// <summary>
379
+ /// Sets an FsCell's value.
380
+ /// <para>FsSpreadsheet will try to translate it to the corresponding type, if it cannot, the value will be left as a string.</para>
381
+ /// </summary>
382
+ /// <value>
383
+ /// The object containing the value to set.
384
+ /// </value>
385
+ static member setValueAs<'T> value (cell : FsCell)=
386
+ cell.SetValueAs<'T>(value)
387
+ cell
@@ -0,0 +1,240 @@
1
+ import { toString as toString_1, Union } from "../../fable-library.4.1.4/Types.js";
2
+ import { class_type, union_type } from "../../fable-library.4.1.4/Reflection.js";
3
+ import { FsAddress__Copy, CellReference_indexToColAdress, FsAddress__get_ColumnNumber, FsAddress__get_RowNumber, FsAddress_$ctor_Z37302880 } from "../FsAddress.fs.js";
4
+ import { int64ToString, int16ToString, int32ToString } from "../../fable-library.4.1.4/Util.js";
5
+ import { parse as parse_4, toString } from "../../fable-library.4.1.4/Decimal.js";
6
+ import Decimal from "../../fable-library.4.1.4/Decimal.js";
7
+ import { parse } from "../../fable-library.4.1.4/Boolean.js";
8
+ import { parse as parse_1 } from "../../fable-library.4.1.4/Double.js";
9
+ import { parse as parse_2 } from "../../fable-library.4.1.4/Int32.js";
10
+ import { toUInt64, toInt64 } from "../../fable-library.4.1.4/BigInt.js";
11
+ import { parse as parse_3 } from "../../fable-library.4.1.4/Long.js";
12
+ import { parse as parse_5 } from "../../fable-library.4.1.4/Date.js";
13
+ import { parse as parse_6 } from "../../fable-library.4.1.4/Guid.js";
14
+ import { parse as parse_7 } from "../../fable-library.4.1.4/Char.js";
15
+ import { map, defaultArg } from "../../fable-library.4.1.4/Option.js";
16
+
17
+ export class DataType extends Union {
18
+ constructor(tag, fields) {
19
+ super();
20
+ this.tag = tag;
21
+ this.fields = fields;
22
+ }
23
+ cases() {
24
+ return ["String", "Boolean", "Number", "Date", "Empty"];
25
+ }
26
+ }
27
+
28
+ export function DataType_$reflection() {
29
+ return union_type("FsSpreadsheet.DataType", [], DataType, () => [[], [], [], [], []]);
30
+ }
31
+
32
+ export class FsCell {
33
+ constructor(value, dataType, address) {
34
+ this._cellValue = toString_1(value);
35
+ this._dataType = defaultArg(dataType, new DataType(0, []));
36
+ this._comment = "";
37
+ this._hyperlink = "";
38
+ this._richText = "";
39
+ this._formulaA1 = "";
40
+ this._formulaR1C1 = "";
41
+ this._rowIndex = (defaultArg(map(FsAddress__get_RowNumber, address), 0) | 0);
42
+ this._columnIndex = (defaultArg(map(FsAddress__get_ColumnNumber, address), 0) | 0);
43
+ }
44
+ static empty() {
45
+ return new FsCell("", new DataType(4, []), FsAddress_$ctor_Z37302880(0, 0));
46
+ }
47
+ get Value() {
48
+ const self = this;
49
+ return self._cellValue;
50
+ }
51
+ set Value(value) {
52
+ const self = this;
53
+ self._cellValue = value;
54
+ }
55
+ get DataType() {
56
+ const self = this;
57
+ return self._dataType;
58
+ }
59
+ set DataType(dataType) {
60
+ const self = this;
61
+ self._dataType = dataType;
62
+ }
63
+ get ColumnNumber() {
64
+ const self = this;
65
+ return self._columnIndex | 0;
66
+ }
67
+ set ColumnNumber(colI) {
68
+ const self = this;
69
+ self._columnIndex = (colI | 0);
70
+ }
71
+ get RowNumber() {
72
+ const self = this;
73
+ return self._rowIndex | 0;
74
+ }
75
+ set RowNumber(rowI) {
76
+ const self = this;
77
+ self._rowIndex = (rowI | 0);
78
+ }
79
+ get Address() {
80
+ const self = this;
81
+ return FsAddress_$ctor_Z37302880(self._rowIndex, self._columnIndex);
82
+ }
83
+ set Address(address) {
84
+ const self = this;
85
+ self._rowIndex = (FsAddress__get_RowNumber(address) | 0);
86
+ self._columnIndex = (FsAddress__get_ColumnNumber(address) | 0);
87
+ }
88
+ static create(rowNumber, colNumber, value) {
89
+ let patternInput;
90
+ const value_1_1 = value;
91
+ patternInput = ((typeof value_1_1 === "string") ? [new DataType(0, []), value_1_1] : ((typeof value_1_1 === "boolean") ? (value_1_1 ? [new DataType(1, []), "True"] : [new DataType(1, []), "False"]) : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "number") ? [new DataType(2, []), int32ToString(value_1_1)] : ((typeof value_1_1 === "number") ? [new DataType(2, []), int16ToString(value_1_1)] : ((typeof value_1_1 === "bigint") ? [new DataType(2, []), int64ToString(value_1_1)] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "bigint") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((value_1_1 instanceof Decimal) ? [new DataType(2, []), toString(value_1_1)] : ((value_1_1 instanceof Date) ? [new DataType(3, []), toString_1(value_1_1)] : ((typeof value_1_1 === "string") ? [new DataType(0, []), value_1_1] : [new DataType(0, []), toString_1(value_1_1)])))))))))))))));
92
+ return new FsCell(patternInput[1], patternInput[0], FsAddress_$ctor_Z37302880(rowNumber, colNumber));
93
+ }
94
+ static createEmpty() {
95
+ return new FsCell("", new DataType(4, []), FsAddress_$ctor_Z37302880(0, 0));
96
+ }
97
+ static createWithAdress(adress, value) {
98
+ let patternInput;
99
+ const value_1_1 = value;
100
+ patternInput = ((typeof value_1_1 === "string") ? [new DataType(0, []), value_1_1] : ((typeof value_1_1 === "boolean") ? (value_1_1 ? [new DataType(1, []), "True"] : [new DataType(1, []), "False"]) : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "number") ? [new DataType(2, []), int32ToString(value_1_1)] : ((typeof value_1_1 === "number") ? [new DataType(2, []), int16ToString(value_1_1)] : ((typeof value_1_1 === "bigint") ? [new DataType(2, []), int64ToString(value_1_1)] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "bigint") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((value_1_1 instanceof Decimal) ? [new DataType(2, []), toString(value_1_1)] : ((value_1_1 instanceof Date) ? [new DataType(3, []), toString_1(value_1_1)] : ((typeof value_1_1 === "string") ? [new DataType(0, []), value_1_1] : [new DataType(0, []), toString_1(value_1_1)])))))))))))))));
101
+ return new FsCell(patternInput[1], patternInput[0], adress);
102
+ }
103
+ static createEmptyWithAdress(adress) {
104
+ return new FsCell("", new DataType(4, []), adress);
105
+ }
106
+ static createWithDataType(dataType, rowNumber, colNumber, value) {
107
+ return new FsCell(value, dataType, FsAddress_$ctor_Z37302880(rowNumber, colNumber));
108
+ }
109
+ toString() {
110
+ const self = this;
111
+ return `${CellReference_indexToColAdress(self.ColumnNumber >>> 0)}${self.RowNumber} : ${self.Value} | ${self.DataType}`;
112
+ }
113
+ CopyFrom(otherCell) {
114
+ const self = this;
115
+ self.DataType = otherCell.DataType;
116
+ self.Value = otherCell.Value;
117
+ }
118
+ CopyTo(target) {
119
+ const self = this;
120
+ target.DataType = self.DataType;
121
+ target.Value = self.Value;
122
+ }
123
+ static copyFromTo(sourceCell, targetCell) {
124
+ targetCell.DataType = sourceCell.DataType;
125
+ targetCell.Value = sourceCell.Value;
126
+ return targetCell;
127
+ }
128
+ Copy() {
129
+ const self = this;
130
+ return new FsCell(self.Value, self.DataType, FsAddress__Copy(self.Address));
131
+ }
132
+ static copy(cell) {
133
+ return cell.Copy();
134
+ }
135
+ ValueAsString() {
136
+ const self = this;
137
+ return self.Value;
138
+ }
139
+ static getValueAsString(cell) {
140
+ return cell.ValueAsString();
141
+ }
142
+ ValueAsBool() {
143
+ const self = this;
144
+ return parse(self.Value);
145
+ }
146
+ static getValueAsBool(cell) {
147
+ return cell.ValueAsBool();
148
+ }
149
+ ValueAsFloat() {
150
+ const self = this;
151
+ return parse_1(self.Value);
152
+ }
153
+ static getValueAsFloat(cell) {
154
+ return cell.ValueAsFloat();
155
+ }
156
+ ValueAsInt() {
157
+ const self = this;
158
+ return parse_2(self.Value, 511, false, 32) | 0;
159
+ }
160
+ static getValueAsInt(cell) {
161
+ return cell.ValueAsInt();
162
+ }
163
+ ValueAsUInt() {
164
+ const self = this;
165
+ return parse_2(self.Value, 511, true, 32);
166
+ }
167
+ static getValueAsUInt(cell) {
168
+ return cell.ValueAsUInt();
169
+ }
170
+ ValueAsLong() {
171
+ const self = this;
172
+ return toInt64(parse_3(self.Value, 511, false, 64));
173
+ }
174
+ static getValueAsLong(cell) {
175
+ return cell.ValueAsLong();
176
+ }
177
+ ValueAsULong() {
178
+ const self = this;
179
+ return toUInt64(parse_3(self.Value, 511, true, 64));
180
+ }
181
+ static getValueAsULong(cell) {
182
+ return cell.ValueAsULong();
183
+ }
184
+ ValueAsDouble() {
185
+ const self = this;
186
+ return parse_1(self.Value);
187
+ }
188
+ static getValueAsDouble(cell) {
189
+ return cell.ValueAsDouble();
190
+ }
191
+ ValueAsDecimal() {
192
+ const self = this;
193
+ return parse_4(self.Value);
194
+ }
195
+ static getValueAsDecimal(cell) {
196
+ return cell.ValueAsDecimal();
197
+ }
198
+ ValueAsDateTime() {
199
+ const self = this;
200
+ return parse_5(self.Value);
201
+ }
202
+ static getValueAsDateTime(cell) {
203
+ return cell.ValueAsDateTime();
204
+ }
205
+ ValueAsGuid() {
206
+ const self = this;
207
+ return parse_6(self.Value);
208
+ }
209
+ static getValueAsGuid(cell) {
210
+ return cell.ValueAsGuid();
211
+ }
212
+ ValueAsChar() {
213
+ const self = this;
214
+ return parse_7(self.Value);
215
+ }
216
+ static getValueAsChar(cell) {
217
+ return cell.ValueAsChar();
218
+ }
219
+ SetValueAs(value) {
220
+ const self = this;
221
+ let patternInput;
222
+ const value_1_1 = value;
223
+ patternInput = ((typeof value_1_1 === "string") ? [new DataType(0, []), value_1_1] : ((typeof value_1_1 === "boolean") ? (value_1_1 ? [new DataType(1, []), "True"] : [new DataType(1, []), "False"]) : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "number") ? [new DataType(2, []), int32ToString(value_1_1)] : ((typeof value_1_1 === "number") ? [new DataType(2, []), int16ToString(value_1_1)] : ((typeof value_1_1 === "bigint") ? [new DataType(2, []), int64ToString(value_1_1)] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "bigint") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1.toString()] : ((value_1_1 instanceof Decimal) ? [new DataType(2, []), toString(value_1_1)] : ((value_1_1 instanceof Date) ? [new DataType(3, []), toString_1(value_1_1)] : ((typeof value_1_1 === "string") ? [new DataType(0, []), value_1_1] : [new DataType(0, []), toString_1(value_1_1)])))))))))))))));
224
+ self._dataType = patternInput[0];
225
+ self._cellValue = patternInput[1];
226
+ }
227
+ static setValueAs(value, cell) {
228
+ cell.SetValueAs(value);
229
+ return cell;
230
+ }
231
+ }
232
+
233
+ export function FsCell_$reflection() {
234
+ return class_type("FsSpreadsheet.FsCell", void 0, FsCell);
235
+ }
236
+
237
+ export function FsCell_$ctor_Z44506C7(value, dataType, address) {
238
+ return new FsCell(value, dataType, address);
239
+ }
240
+