@nfdi4plants/arctrl 3.0.0-beta.5 → 3.0.0-beta.6

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 (306) hide show
  1. package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +894 -4
  2. package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +121 -3
  3. package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +279 -1
  4. package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +101 -2
  5. package/dist/ts/node_modules/@fable-org/fable-library-js/Choice.js +187 -0
  6. package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +156 -2
  7. package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +183 -7
  8. package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +217 -5
  9. package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +154 -5
  10. package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +20 -1
  11. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Collections.js +30 -0
  12. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +68 -1
  13. package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +6 -1
  14. package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +98 -1
  15. package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +18 -1
  16. package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +601 -5
  17. package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +10 -1
  18. package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +760 -16
  19. package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +26 -1
  20. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +18 -8
  21. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +36 -4
  22. package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +35 -1
  23. package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +26 -1
  24. package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +355 -1
  25. package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +21 -2
  26. package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +133 -1
  27. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +543 -8
  28. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +53 -4
  29. package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +673 -41
  30. package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +197 -4
  31. package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +128 -3
  32. package/dist/ts/node_modules/@fable-org/fable-library-js/SystemException.js +8 -0
  33. package/dist/ts/node_modules/@fable-org/fable-library-js/TimeSpan.js +180 -0
  34. package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +20 -2
  35. package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +406 -2
  36. package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +2 -2
  37. package/dist/ts/ts/ARC.d.ts +12 -5
  38. package/dist/ts/ts/ARC.d.ts.map +1 -1
  39. package/dist/ts/ts/ARC.js +172 -93
  40. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  41. package/dist/ts/ts/Contract/ARC.js +8 -1
  42. package/dist/ts/ts/Contract/ArcAssay.js +14 -5
  43. package/dist/ts/ts/Contract/ArcInvestigation.js +10 -1
  44. package/dist/ts/ts/Contract/ArcRun.js +19 -6
  45. package/dist/ts/ts/Contract/ArcStudy.js +19 -6
  46. package/dist/ts/ts/Contract/ArcWorkflow.js +19 -6
  47. package/dist/ts/ts/Contract/Contract.js +42 -1
  48. package/dist/ts/ts/Contract/Datamap.js +61 -17
  49. package/dist/ts/ts/Contract/Git.d.ts.map +1 -1
  50. package/dist/ts/ts/Contract/Git.js +22 -6
  51. package/dist/ts/ts/Contract/License.d.ts +5 -0
  52. package/dist/ts/ts/Contract/License.d.ts.map +1 -0
  53. package/dist/ts/ts/Contract/License.js +34 -0
  54. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +31 -6
  55. package/dist/ts/ts/ContractIO/ContractIO.js +5 -5
  56. package/dist/ts/ts/ContractIO/FileSystemHelper.js +16 -4
  57. package/dist/ts/ts/Conversion.js +321 -48
  58. package/dist/ts/ts/Core/ArcTypes.js +216 -15
  59. package/dist/ts/ts/Core/Comment.js +11 -1
  60. package/dist/ts/ts/Core/CommentList.js +77 -2
  61. package/dist/ts/ts/Core/Conversion.js +123 -43
  62. package/dist/ts/ts/Core/Data.js +9 -2
  63. package/dist/ts/ts/Core/DataContext.js +19 -4
  64. package/dist/ts/ts/Core/DataFile.js +38 -1
  65. package/dist/ts/ts/Core/DataMap.js +111 -5
  66. package/dist/ts/ts/Core/Helper/Collections.js +106 -5
  67. package/dist/ts/ts/Core/Helper/HashCodes.js +4 -4
  68. package/dist/ts/ts/Core/Helper/Identifier.js +100 -2
  69. package/dist/ts/ts/Core/Helper/Regex.js +134 -2
  70. package/dist/ts/ts/Core/Helper/SemVer.js +23 -2
  71. package/dist/ts/ts/Core/IdentifierSetters.js +27 -3
  72. package/dist/ts/ts/Core/OntologyAnnotation.js +4 -1
  73. package/dist/ts/ts/Core/OntologySourceReference.js +8 -1
  74. package/dist/ts/ts/Core/Person.js +8 -1
  75. package/dist/ts/ts/Core/Process/ColumnIndex.js +121 -4
  76. package/dist/ts/ts/Core/Process/Component.js +37 -4
  77. package/dist/ts/ts/Core/Process/Factor.js +9 -4
  78. package/dist/ts/ts/Core/Process/FactorValue.js +61 -4
  79. package/dist/ts/ts/Core/Process/Material.js +14 -4
  80. package/dist/ts/ts/Core/Process/MaterialAttribute.js +41 -3
  81. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +67 -4
  82. package/dist/ts/ts/Core/Process/MaterialType.js +15 -1
  83. package/dist/ts/ts/Core/Process/Process.js +150 -7
  84. package/dist/ts/ts/Core/Process/ProcessInput.js +48 -8
  85. package/dist/ts/ts/Core/Process/ProcessOutput.js +44 -7
  86. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +10 -5
  87. package/dist/ts/ts/Core/Process/ProcessSequence.js +127 -6
  88. package/dist/ts/ts/Core/Process/Protocol.js +78 -4
  89. package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -2
  90. package/dist/ts/ts/Core/Process/Sample.js +21 -3
  91. package/dist/ts/ts/Core/Process/Source.js +13 -3
  92. package/dist/ts/ts/Core/Publication.js +8 -1
  93. package/dist/ts/ts/Core/Table/ArcTable.js +34 -25
  94. package/dist/ts/ts/Core/Table/ArcTableAux.js +150 -23
  95. package/dist/ts/ts/Core/Table/ArcTables.js +24 -15
  96. package/dist/ts/ts/Core/Table/CompositeCell.js +7 -3
  97. package/dist/ts/ts/Core/Table/CompositeColumn.js +8 -4
  98. package/dist/ts/ts/Core/Table/CompositeHeader.js +18 -15
  99. package/dist/ts/ts/Core/Template.js +12 -2
  100. package/dist/ts/ts/Core/Templates.js +8 -4
  101. package/dist/ts/ts/Core/Value.js +7 -3
  102. package/dist/ts/ts/CrossAsync.js +11 -1
  103. package/dist/ts/ts/FileSystem/Commit.js +18 -0
  104. package/dist/ts/ts/FileSystem/FileSystem.js +8 -3
  105. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +1 -0
  106. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
  107. package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -13
  108. package/dist/ts/ts/FileSystem/Path.d.ts +2 -0
  109. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  110. package/dist/ts/ts/FileSystem/Path.js +17 -3
  111. package/dist/ts/ts/Json/Assay.js +26 -26
  112. package/dist/ts/ts/Json/Comment.js +10 -10
  113. package/dist/ts/ts/Json/Data.js +6 -6
  114. package/dist/ts/ts/Json/DataMap/DataContext.js +4 -4
  115. package/dist/ts/ts/Json/DataMap/DataMap.js +2 -2
  116. package/dist/ts/ts/Json/Decode.js +14 -9
  117. package/dist/ts/ts/Json/Encode.js +43 -11
  118. package/dist/ts/ts/Json/Investigation.js +40 -22
  119. package/dist/ts/ts/Json/OntologyAnnotation.js +5 -5
  120. package/dist/ts/ts/Json/OntologySourceReference.js +2 -2
  121. package/dist/ts/ts/Json/Person.js +26 -26
  122. package/dist/ts/ts/Json/Process/Component.js +9 -6
  123. package/dist/ts/ts/Json/Process/Factor.js +3 -3
  124. package/dist/ts/ts/Json/Process/FactorValue.js +8 -8
  125. package/dist/ts/ts/Json/Process/Material.js +9 -9
  126. package/dist/ts/ts/Json/Process/MaterialAttribute.js +1 -1
  127. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +8 -8
  128. package/dist/ts/ts/Json/Process/Process.js +12 -12
  129. package/dist/ts/ts/Json/Process/ProcessInput.js +4 -4
  130. package/dist/ts/ts/Json/Process/ProcessOutput.js +3 -3
  131. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +10 -7
  132. package/dist/ts/ts/Json/Process/Protocol.js +12 -12
  133. package/dist/ts/ts/Json/Process/ProtocolParameter.js +3 -3
  134. package/dist/ts/ts/Json/Process/Sample.js +14 -14
  135. package/dist/ts/ts/Json/Process/Source.js +9 -9
  136. package/dist/ts/ts/Json/Process/Value.js +1 -1
  137. package/dist/ts/ts/Json/PropertyValue.js +1 -1
  138. package/dist/ts/ts/Json/Publication.js +6 -6
  139. package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -0
  140. package/dist/ts/ts/Json/ROCrate/LDGraph.js +3 -3
  141. package/dist/ts/ts/Json/ROCrate/LDNode.js +19 -19
  142. package/dist/ts/ts/Json/Run.js +7 -7
  143. package/dist/ts/ts/Json/StringTable.js +1 -1
  144. package/dist/ts/ts/Json/Study.js +32 -32
  145. package/dist/ts/ts/Json/Table/ArcTable.js +29 -29
  146. package/dist/ts/ts/Json/Table/CellTable.js +6 -6
  147. package/dist/ts/ts/Json/Table/CompositeCell.js +4 -4
  148. package/dist/ts/ts/Json/Table/CompositeHeader.js +2 -2
  149. package/dist/ts/ts/Json/Table/IOType.js +1 -1
  150. package/dist/ts/ts/Json/Table/OATable.js +7 -7
  151. package/dist/ts/ts/Json/Table/Templates.js +92 -6
  152. package/dist/ts/ts/Json/Workflow.js +11 -11
  153. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +27 -1
  154. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +17 -1
  155. package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +19 -1
  156. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +27 -1
  157. package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +20 -1
  158. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +18 -1
  159. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +20 -1
  160. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +16 -1
  161. package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +25 -1
  162. package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +24 -1
  163. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +23 -1
  164. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +20 -1
  165. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +19 -1
  166. package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +19 -1
  167. package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +35 -1
  168. package/dist/ts/ts/Json/context/rocrate/rocrate_context.js +61 -0
  169. package/dist/ts/ts/Json.d.ts +13 -1
  170. package/dist/ts/ts/Json.d.ts.map +1 -1
  171. package/dist/ts/ts/Json.js +89 -2
  172. package/dist/ts/ts/JsonIO/Assay.js +15 -3
  173. package/dist/ts/ts/JsonIO/Investigation.js +15 -3
  174. package/dist/ts/ts/JsonIO/LDObject.js +17 -3
  175. package/dist/ts/ts/JsonIO/OntologyAnnotation.js +12 -2
  176. package/dist/ts/ts/JsonIO/Person.d.ts +16 -0
  177. package/dist/ts/ts/JsonIO/Person.d.ts.map +1 -0
  178. package/dist/ts/ts/JsonIO/Person.js +67 -0
  179. package/dist/ts/ts/JsonIO/Run.js +9 -3
  180. package/dist/ts/ts/JsonIO/Study.js +15 -3
  181. package/dist/ts/ts/JsonIO/Table/Compression.js +3 -3
  182. package/dist/ts/ts/JsonIO/Table/Templates.js +60 -5
  183. package/dist/ts/ts/JsonIO/Workflow.js +9 -3
  184. package/dist/ts/ts/License.d.ts +39 -0
  185. package/dist/ts/ts/License.d.ts.map +1 -0
  186. package/dist/ts/ts/License.js +123 -0
  187. package/dist/ts/ts/ROCrate/Generic/Comment.js +5 -1
  188. package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts +69 -0
  189. package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts.map +1 -0
  190. package/dist/ts/ts/ROCrate/Generic/CreativeWork.js +450 -0
  191. package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts +1 -0
  192. package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +1 -1
  193. package/dist/ts/ts/ROCrate/Generic/Dataset.js +27 -1
  194. package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +5 -1
  195. package/dist/ts/ts/ROCrate/Generic/File.js +5 -1
  196. package/dist/ts/ts/ROCrate/Generic/LabProcess.js +5 -1
  197. package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +5 -1
  198. package/dist/ts/ts/ROCrate/Generic/Organization.js +5 -1
  199. package/dist/ts/ts/ROCrate/Generic/Person.js +7 -2
  200. package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +5 -1
  201. package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +19 -15
  202. package/dist/ts/ts/ROCrate/Generic/Sample.js +5 -1
  203. package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +5 -1
  204. package/dist/ts/ts/ROCrate/LDContext.js +15 -6
  205. package/dist/ts/ts/ROCrate/LDObject.js +53 -17
  206. package/dist/ts/ts/ROCrateIO.d.ts +9 -3
  207. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  208. package/dist/ts/ts/ROCrateIO.js +67 -14
  209. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +18 -15
  210. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +5 -4
  211. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +40 -17
  212. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
  213. package/dist/ts/ts/Spreadsheet/ArcAssay.js +30 -15
  214. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +32 -18
  215. package/dist/ts/ts/Spreadsheet/ArcRun.js +23 -8
  216. package/dist/ts/ts/Spreadsheet/ArcStudy.js +22 -7
  217. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +23 -8
  218. package/dist/ts/ts/Spreadsheet/CollectionAux.js +75 -5
  219. package/dist/ts/ts/Spreadsheet/DataMap.js +1 -1
  220. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +4 -4
  221. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +8 -8
  222. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +4 -4
  223. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
  224. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +1 -1
  225. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
  226. package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +6 -3
  227. package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +9 -3
  228. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -4
  229. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +7 -5
  230. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +1 -1
  231. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +10 -8
  232. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +5 -5
  233. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +6 -6
  234. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +246 -10
  235. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +19 -13
  236. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
  237. package/dist/ts/ts/Template.Web.js +5 -1
  238. package/dist/ts/ts/ValidationPackages/ValidationPackage.js +8 -1
  239. package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +10 -3
  240. package/dist/ts/ts/WebRequest/WebRequest.Node.js +1 -0
  241. package/dist/ts/ts/Xlsx.js +41 -1
  242. package/dist/ts/ts/Yaml/ValidationPackage.js +18 -2
  243. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -2
  244. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +27 -4
  245. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +14 -3
  246. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +30 -4
  247. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +5 -1
  248. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +65 -2
  249. package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +257 -1
  250. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +71 -1
  251. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +11 -1
  252. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +188 -11
  253. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +80 -2
  254. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +63 -4
  255. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +17 -7
  256. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/CellBuilder.fs.js +198 -0
  257. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Expression.fs.js +46 -0
  258. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/RowBuilder.fs.js +131 -0
  259. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Types.fs.js +307 -0
  260. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +38 -2
  261. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +11 -4
  262. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +12 -5
  263. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +9 -2
  264. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +14 -7
  265. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +31 -1
  266. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Cell.fs.js +65 -0
  267. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Column.fs.js +38 -0
  268. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Row.fs.js +38 -0
  269. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Table.fs.js +34 -0
  270. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +49 -3
  271. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Workbook.fs.js +44 -0
  272. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Worksheet.fs.js +129 -0
  273. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +9 -2
  274. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -3
  275. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +12 -3
  276. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +17 -2
  277. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +9 -2
  278. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +12 -5
  279. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +12 -3
  280. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +2 -2
  281. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +42 -3
  282. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Json.fs.js +53 -0
  283. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +9 -9
  284. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +1 -1
  285. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +2 -2
  286. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +5 -1
  287. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +730 -23
  288. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +192 -7
  289. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +45 -1
  290. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +15 -2
  291. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +1383 -15
  292. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +45 -4
  293. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +10 -0
  294. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +5 -5
  295. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +16 -6
  296. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +26 -23
  297. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +1 -1
  298. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +8 -8
  299. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +18 -2
  300. package/package.json +1 -1
  301. package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts +0 -2
  302. package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts.map +0 -1
  303. package/dist/ts/ts/FileSystem/DefaultGitattributes.js +0 -3
  304. package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts +0 -2
  305. package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts.map +0 -1
  306. package/dist/ts/ts/FileSystem/DefaultGitignore.js +0 -3
@@ -0,0 +1,129 @@
1
+ import { seq } from '../../Thoth.Json.Core.0.7.0/Encode.fs.js';
2
+ import { toList, delay, map, collect, singleton, append, isEmpty, empty, iterate } from '../../../../node_modules/@fable-org/fable-library-js/Seq.js';
3
+ import { encodeNoNumbers, encode, decode as decode$1 } from './Row.fs.js';
4
+ import { value, defaultArg } from '../../../../node_modules/@fable-org/fable-library-js/Option.js';
5
+ import { FsCell } from '../Cells/FsCell.fs.js';
6
+ import { rangeDouble } from '../../../../node_modules/@fable-org/fable-library-js/Range.js';
7
+ import { encode as encode$1, decode } from './Table.fs.js';
8
+ import { FsWorksheet } from '../FsWorksheet.fs.js';
9
+ import { object, string, seq as seq$1 } from '../../Thoth.Json.Core.0.7.0/Decode.fs.js';
10
+ import { encodeNoNumbers as encodeNoNumbers$1, encode as encode$2, decode as decode$2 } from './Column.fs.js';
11
+
12
+ function encodeRows(noNumbering, sheet) {
13
+ sheet.RescanRows();
14
+ const jRows = noNumbering ? seq(toList(delay(() => map((r) => encodeNoNumbers(toList(delay(() => collect((c) => {
15
+ const matchValue = sheet.CellCollection.TryGetCell(r, c);
16
+ return matchValue == null ? singleton(new FsCell("")) : singleton(value(matchValue));
17
+ }, rangeDouble(1, 1, sheet.MaxColumnIndex))))), rangeDouble(1, 1, sheet.MaxRowIndex))))) : seq(map(encode, sheet.Rows));
18
+ const values_1 = toList(delay(() => {
19
+ let value;
20
+ return append(singleton(["name", (value = sheet.Name, {
21
+ Encode(helpers) {
22
+ return helpers.encodeString(value);
23
+ }
24
+ })]), delay(() => append(!isEmpty(sheet.Tables) ? singleton(["tables", seq(map(encode$1, sheet.Tables))]) : empty(), delay(() => singleton(["rows", jRows])))));
25
+ }));
26
+ return {
27
+ Encode(helpers_1) {
28
+ const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_1)], values_1);
29
+ return helpers_1.encodeObject(arg);
30
+ }
31
+ };
32
+ }
33
+ const decodeRows = object((builder) => {
34
+ let arg_5, objectArg_2;
35
+ let rowIndex = 0;
36
+ let n;
37
+ const objectArg = builder.Required;
38
+ n = objectArg.Field("name", string);
39
+ let ts;
40
+ const arg_3 = seq$1(decode);
41
+ const objectArg_1 = builder.Optional;
42
+ ts = objectArg_1.Field("tables", arg_3);
43
+ const rs = defaultArg((arg_5 = seq$1(decode$1), objectArg_2 = builder.Optional, objectArg_2.Field("rows", arg_5)), empty());
44
+ const sheet = new FsWorksheet(n);
45
+ iterate((tupledArg) => {
46
+ const rowI = tupledArg[0];
47
+ let colIndex = 0;
48
+ const rowI_1 = (rowI == null ? rowIndex + 1 : value(rowI)) | 0;
49
+ rowIndex = rowI_1 | 0;
50
+ const r = sheet.Row(rowI_1);
51
+ iterate((cell) => {
52
+ let colI;
53
+ const matchValue = cell.ColumnNumber | 0;
54
+ colI = matchValue === 0 ? colIndex + 1 : matchValue;
55
+ colIndex = colI | 0;
56
+ const c = r.Item(colI);
57
+ c.Value = cell.Value;
58
+ c.DataType = cell.DataType;
59
+ }, tupledArg[1]);
60
+ }, rs);
61
+ if (ts == null) {
62
+ } else {
63
+ iterate((t) => {
64
+ sheet.AddTable(t);
65
+ }, value(ts));
66
+ }
67
+ return sheet;
68
+ });
69
+ function encodeColumns(noNumbering, sheet) {
70
+ sheet.RescanRows();
71
+ const jColumns = noNumbering ? seq(toList(delay(() => map((c) => encodeNoNumbers$1(toList(delay(() => collect((r) => {
72
+ const matchValue = sheet.CellCollection.TryGetCell(r, c);
73
+ return matchValue == null ? singleton(new FsCell("")) : singleton(value(matchValue));
74
+ }, rangeDouble(1, 1, sheet.MaxRowIndex))))), rangeDouble(1, 1, sheet.MaxColumnIndex))))) : seq(map(encode$2, sheet.Columns));
75
+ const values_1 = toList(delay(() => {
76
+ let value;
77
+ return append(singleton(["name", (value = sheet.Name, {
78
+ Encode(helpers) {
79
+ return helpers.encodeString(value);
80
+ }
81
+ })]), delay(() => append(!isEmpty(sheet.Tables) ? singleton(["tables", seq(map(encode$1, sheet.Tables))]) : empty(), delay(() => singleton(["columns", jColumns])))));
82
+ }));
83
+ return {
84
+ Encode(helpers_1) {
85
+ const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_1)], values_1);
86
+ return helpers_1.encodeObject(arg);
87
+ }
88
+ };
89
+ }
90
+ const decodeColumns = object((builder) => {
91
+ let colIndex = 0;
92
+ let n;
93
+ const objectArg = builder.Required;
94
+ n = objectArg.Field("name", string);
95
+ let ts;
96
+ const arg_3 = seq$1(decode);
97
+ const objectArg_1 = builder.Optional;
98
+ ts = objectArg_1.Field("tables", arg_3);
99
+ let cs;
100
+ const arg_5 = seq$1(decode$2);
101
+ const objectArg_2 = builder.Required;
102
+ cs = objectArg_2.Field("columns", arg_5);
103
+ const sheet = new FsWorksheet(n);
104
+ iterate((tupledArg) => {
105
+ const colI = tupledArg[0];
106
+ let rowIndex = 0;
107
+ const colI_1 = (colI == null ? colIndex + 1 : value(colI)) | 0;
108
+ colIndex = colI_1 | 0;
109
+ const col = sheet.Column(colI_1);
110
+ iterate((cell) => {
111
+ let rowI;
112
+ const matchValue = cell.RowNumber | 0;
113
+ rowI = matchValue === 0 ? rowIndex + 1 : matchValue;
114
+ rowIndex = rowI | 0;
115
+ const c = col.Item(rowIndex);
116
+ c.Value = cell.Value;
117
+ c.DataType = cell.DataType;
118
+ }, tupledArg[1]);
119
+ }, cs);
120
+ if (ts == null) {
121
+ } else {
122
+ iterate((t) => {
123
+ sheet.AddTable(t);
124
+ }, value(ts));
125
+ }
126
+ return sheet;
127
+ });
128
+
129
+ export { decodeColumns, decodeRows, encodeColumns, encodeRows };
@@ -1,10 +1,11 @@
1
1
  import { defaultOf, int32ToString } from '../../../../node_modules/@fable-org/fable-library-js/Util.js';
2
2
  import { some } from '../../../../node_modules/@fable-org/fable-library-js/Option.js';
3
- import { FsRangeBase } from './FsRangeBase.fs.js';
3
+ import { FsRangeBase, FsRangeBase_$reflection } from './FsRangeBase.fs.js';
4
4
  import { toText, printf } from '../../../../node_modules/@fable-org/fable-library-js/String.js';
5
5
  import { FsRangeRow } from './FsRangeRow.fs.js';
6
6
  import { FsRangeAddress } from './FsRangeAddress.fs.js';
7
7
  import { FsAddress } from '../FsAddress.fs.js';
8
+ import { class_type } from '../../../../node_modules/@fable-org/fable-library-js/Reflection.js';
8
9
 
9
10
  class FsRange extends FsRangeBase {
10
11
  constructor(rangeAddress, styleValue) {
@@ -24,5 +25,11 @@ class FsRange extends FsRangeBase {
24
25
  return self.Row(1);
25
26
  }
26
27
  }
28
+ function FsRange_$reflection() {
29
+ return class_type("FsSpreadsheet.FsRange", void 0, FsRange, FsRangeBase_$reflection());
30
+ }
31
+ function FsRange_$ctor_Z15E90CDC(rangeAddress, styleValue) {
32
+ return new FsRange(rangeAddress, styleValue);
33
+ }
27
34
 
28
- export { FsRange };
35
+ export { FsRange, FsRange_$ctor_Z15E90CDC, FsRange_$reflection };
@@ -1,5 +1,6 @@
1
- import { FsAddress } from '../FsAddress.fs.js';
2
- import { toText, printf } from '../../../../node_modules/@fable-org/fable-library-js/String.js';
1
+ import { FsAddress, CellReference_toIndices, CellReference_moveHorizontal } from '../FsAddress.fs.js';
2
+ import { class_type } from '../../../../node_modules/@fable-org/fable-library-js/Reflection.js';
3
+ import { toText, printf, toConsole } from '../../../../node_modules/@fable-org/fable-library-js/String.js';
3
4
  import { item } from '../../../../node_modules/@fable-org/fable-library-js/Array.js';
4
5
 
5
6
  class FsRangeAddress {
@@ -71,6 +72,12 @@ class FsRangeAddress {
71
72
  return self;
72
73
  }
73
74
  }
75
+ function FsRangeAddress_$reflection() {
76
+ return class_type("FsSpreadsheet.FsRangeAddress", void 0, FsRangeAddress);
77
+ }
78
+ function FsRangeAddress_$ctor_7E77A4A0(firstAddress, lastAddress) {
79
+ return new FsRangeAddress(firstAddress, lastAddress);
80
+ }
74
81
  function Range_ofBoundaries(fromCellReference, toCellReference) {
75
82
  return toText(printf("%s:%s"))(fromCellReference)(toCellReference);
76
83
  }
@@ -78,5 +85,77 @@ function Range_toBoundaries(area) {
78
85
  const a = area.split(":");
79
86
  return [item(0, a), item(1, a)];
80
87
  }
88
+ function Range_rightBoundary(area) {
89
+ return CellReference_toIndices(Range_toBoundaries(area)[1])[0];
90
+ }
91
+ function Range_leftBoundary(area) {
92
+ return CellReference_toIndices(Range_toBoundaries(area)[0])[0];
93
+ }
94
+ function Range_upperBoundary(area) {
95
+ return CellReference_toIndices(Range_toBoundaries(area)[0])[1];
96
+ }
97
+ function Range_lowerBoundary(area) {
98
+ return CellReference_toIndices(Range_toBoundaries(area)[1])[1];
99
+ }
100
+ function Range_moveHorizontal(amount, area) {
101
+ let tupledArg_1;
102
+ const tupledArg = Range_toBoundaries(area);
103
+ tupledArg_1 = [CellReference_moveHorizontal(amount, tupledArg[0]), CellReference_moveHorizontal(amount, tupledArg[1])];
104
+ return Range_ofBoundaries(tupledArg_1[0], tupledArg_1[1]);
105
+ }
106
+ function Range_moveVertical(amount, area) {
107
+ let tupledArg_1;
108
+ const tupledArg = Range_toBoundaries(area);
109
+ tupledArg_1 = [CellReference_moveHorizontal(amount, tupledArg[0]), CellReference_moveHorizontal(amount, tupledArg[1])];
110
+ return Range_ofBoundaries(tupledArg_1[0], tupledArg_1[1]);
111
+ }
112
+ function Range_extendRight(amount, area) {
113
+ let tupledArg_1;
114
+ const tupledArg = Range_toBoundaries(area);
115
+ tupledArg_1 = [tupledArg[0], CellReference_moveHorizontal(amount, tupledArg[1])];
116
+ return Range_ofBoundaries(tupledArg_1[0], tupledArg_1[1]);
117
+ }
118
+ function Range_extendLeft(amount, area) {
119
+ let tupledArg_1;
120
+ const tupledArg = Range_toBoundaries(area);
121
+ tupledArg_1 = [CellReference_moveHorizontal(amount, tupledArg[0]), tupledArg[1]];
122
+ return Range_ofBoundaries(tupledArg_1[0], tupledArg_1[1]);
123
+ }
124
+ function Range_referenceExceedsAreaRight(reference, area) {
125
+ return CellReference_toIndices(reference)[0] > Range_rightBoundary(area);
126
+ }
127
+ function Range_referenceExceedsAreaLeft(reference, area) {
128
+ return CellReference_toIndices(reference)[0] < Range_leftBoundary(area);
129
+ }
130
+ function Range_referenceExceedsAreaAbove(reference, area) {
131
+ return CellReference_toIndices(reference)[1] > Range_upperBoundary(area);
132
+ }
133
+ function Range_referenceExceedsAreaBelow(reference, area) {
134
+ return CellReference_toIndices(reference)[1] < Range_lowerBoundary(area);
135
+ }
136
+ function Range_referenceExceedsArea(reference, area) {
137
+ if ((Range_referenceExceedsAreaRight(reference, area) ? true : Range_referenceExceedsAreaLeft(reference, area)) ? true : Range_referenceExceedsAreaAbove(reference, area)) {
138
+ return true;
139
+ } else {
140
+ return Range_referenceExceedsAreaBelow(reference, area);
141
+ }
142
+ }
143
+ function Range_isCorrect(area) {
144
+ try {
145
+ const hor = Range_leftBoundary(area) <= Range_rightBoundary(area);
146
+ const ver = Range_upperBoundary(area) <= Range_lowerBoundary(area);
147
+ if (!hor) {
148
+ toConsole(printf("Right area boundary must be higher or equal to left area boundary."));
149
+ }
150
+ if (!ver) {
151
+ toConsole(printf("Lower area boundary must be higher or equal to upper area boundary."));
152
+ }
153
+ return hor && ver;
154
+ } catch (err) {
155
+ const arg_1 = err.message;
156
+ toConsole(printf('Area "%s" could not be parsed: %s'))(area)(arg_1);
157
+ return false;
158
+ }
159
+ }
81
160
 
82
- export { FsRangeAddress, Range_ofBoundaries, Range_toBoundaries };
161
+ export { FsRangeAddress, FsRangeAddress_$ctor_7E77A4A0, FsRangeAddress_$reflection, Range_extendLeft, Range_extendRight, Range_isCorrect, Range_leftBoundary, Range_lowerBoundary, Range_moveHorizontal, Range_moveVertical, Range_ofBoundaries, Range_referenceExceedsArea, Range_referenceExceedsAreaAbove, Range_referenceExceedsAreaBelow, Range_referenceExceedsAreaLeft, Range_referenceExceedsAreaRight, Range_rightBoundary, Range_toBoundaries, Range_upperBoundary };
@@ -3,13 +3,16 @@ import { defaultOf, equals } from '../../../../node_modules/@fable-org/fable-lib
3
3
  import { toFail, printf } from '../../../../node_modules/@fable-org/fable-library-js/String.js';
4
4
  import { value } from '../../../../node_modules/@fable-org/fable-library-js/Option.js';
5
5
  import { FsCell } from '../Cells/FsCell.fs.js';
6
+ import { class_type } from '../../../../node_modules/@fable-org/fable-library-js/Reflection.js';
6
7
 
7
8
  class FsRangeBase {
8
9
  constructor(rangeAddress) {
9
10
  this._sortRows = defaultOf();
10
11
  this._sortColumns = defaultOf();
11
12
  this._rangeAddress = rangeAddress;
13
+ let _id;
12
14
  FsRangeBase.IdCounter = FsRangeBase.IdCounter + 1 | 0;
15
+ _id = FsRangeBase.IdCounter;
13
16
  }
14
17
  Extend(address) {
15
18
  const this$ = this;
@@ -22,7 +25,7 @@ class FsRangeBase {
22
25
  set RangeAddress(rangeAdress) {
23
26
  const this$ = this;
24
27
  if (!equals(rangeAdress, this$._rangeAddress)) {
25
- this$._rangeAddress;
28
+ const oldAddress = this$._rangeAddress;
26
29
  this$._rangeAddress = rangeAdress;
27
30
  }
28
31
  }
@@ -43,7 +46,7 @@ class FsRangeBase {
43
46
  const absoluteAddress = new FsAddress(absRow, absColumn, cellAddressInRange.FixedRow, cellAddressInRange.FixedColumn);
44
47
  const newCell = FsCell.createEmptyWithAdress(absoluteAddress);
45
48
  this$.Extend(absoluteAddress);
46
- cells.Add(newCell, absRow, absColumn);
49
+ const value = cells.Add(newCell, absRow, absColumn);
47
50
  return newCell;
48
51
  } else {
49
52
  return value(cell);
@@ -62,8 +65,14 @@ class FsRangeBase {
62
65
  return this$._rangeAddress.LastAddress.RowNumber - this$._rangeAddress.FirstAddress.RowNumber + 1 | 0;
63
66
  }
64
67
  }
68
+ function FsRangeBase_$reflection() {
69
+ return class_type("FsSpreadsheet.FsRangeBase", void 0, FsRangeBase);
70
+ }
71
+ function FsRangeBase_$ctor_6A2513BC(rangeAddress) {
72
+ return new FsRangeBase(rangeAddress);
73
+ }
65
74
  (() => {
66
75
  FsRangeBase.IdCounter = 0;
67
76
  })();
68
77
 
69
- export { FsRangeBase };
78
+ export { FsRangeBase, FsRangeBase_$ctor_6A2513BC, FsRangeBase_$reflection };
@@ -1,6 +1,9 @@
1
1
  import { FsRangeAddress } from './FsRangeAddress.fs.js';
2
2
  import { FsAddress } from '../FsAddress.fs.js';
3
- import { FsRangeBase } from './FsRangeBase.fs.js';
3
+ import { FsRangeBase, FsRangeBase_$reflection } from './FsRangeBase.fs.js';
4
+ import { class_type } from '../../../../node_modules/@fable-org/fable-library-js/Reflection.js';
5
+ import { toList, map } from '../../../../node_modules/@fable-org/fable-library-js/Seq.js';
6
+ import { rangeDouble } from '../../../../node_modules/@fable-org/fable-library-js/Range.js';
4
7
 
5
8
  class FsRangeColumn extends FsRangeBase {
6
9
  constructor(rangeAddress) {
@@ -38,5 +41,17 @@ class FsRangeColumn extends FsRangeBase {
38
41
  return rangeColumn.Copy();
39
42
  }
40
43
  }
44
+ function FsRangeColumn_$reflection() {
45
+ return class_type("FsSpreadsheet.FsRangeColumn", void 0, FsRangeColumn, FsRangeBase_$reflection());
46
+ }
47
+ function FsRangeColumn_$ctor_6A2513BC(rangeAddress) {
48
+ return new FsRangeColumn(rangeAddress);
49
+ }
50
+ function FsSpreadsheet_FsRangeAddress__FsRangeAddress_toRangeColumns_Static_6A2513BC(rangeAddress) {
51
+ const columns = toList(rangeDouble(rangeAddress.FirstAddress.ColumnNumber, 1, rangeAddress.LastAddress.ColumnNumber));
52
+ const fstRow = rangeAddress.FirstAddress.RowNumber | 0;
53
+ const lstRow = rangeAddress.LastAddress.RowNumber | 0;
54
+ return map((c) => new FsRangeColumn(new FsRangeAddress(new FsAddress(fstRow, c), new FsAddress(lstRow, c))), columns);
55
+ }
41
56
 
42
- export { FsRangeColumn };
57
+ export { FsRangeColumn, FsRangeColumn_$ctor_6A2513BC, FsRangeColumn_$reflection, FsSpreadsheet_FsRangeAddress__FsRangeAddress_toRangeColumns_Static_6A2513BC };
@@ -1,6 +1,7 @@
1
1
  import { FsRangeAddress } from './FsRangeAddress.fs.js';
2
2
  import { FsAddress } from '../FsAddress.fs.js';
3
- import { FsRangeBase } from './FsRangeBase.fs.js';
3
+ import { FsRangeBase, FsRangeBase_$reflection } from './FsRangeBase.fs.js';
4
+ import { class_type } from '../../../../node_modules/@fable-org/fable-library-js/Reflection.js';
4
5
 
5
6
  class FsRangeRow extends FsRangeBase {
6
7
  constructor(rangeAddress) {
@@ -25,5 +26,11 @@ class FsRangeRow extends FsRangeBase {
25
26
  return super.Cells(cells);
26
27
  }
27
28
  }
29
+ function FsRangeRow_$reflection() {
30
+ return class_type("FsSpreadsheet.FsRangeRow", void 0, FsRangeRow, FsRangeBase_$reflection());
31
+ }
32
+ function FsRangeRow_$ctor_6A2513BC(rangeAddress) {
33
+ return new FsRangeRow(rangeAddress);
34
+ }
28
35
 
29
- export { FsRangeRow };
36
+ export { FsRangeRow, FsRangeRow_$ctor_6A2513BC, FsRangeRow_$reflection };
@@ -1,7 +1,7 @@
1
1
  import { equals, defaultOf, int32ToString, comparePrimitives, getEnumerator, disposeSafe } from '../../../../node_modules/@fable-org/fable-library-js/Util.js';
2
2
  import { Dictionary_tryGet } from '../Cells/FsCellsCollection.fs.js';
3
3
  import { FsTableField } from './FsTableField.fs.js';
4
- import { length, iterateIndexed, initialize, delay, reduce, map, iterate, max, find, tryFind, tryPick, choose, toList, exists, collect, singleton } from '../../../../node_modules/@fable-org/fable-library-js/Seq.js';
4
+ import { length, iterateIndexed, initialize, delay, collect, singleton, reduce, map, iterate, max, find, tryFind, tryPick, choose, toList, exists } from '../../../../node_modules/@fable-org/fable-library-js/Seq.js';
5
5
  import { FsRange } from '../Ranges/FsRange.fs.js';
6
6
  import { FsRow } from '../FsRow.fs.js';
7
7
  import { FsRangeAddress } from '../Ranges/FsRangeAddress.fs.js';
@@ -10,10 +10,11 @@ import { defaultArg, value, some } from '../../../../node_modules/@fable-org/fab
10
10
  import { FsColumn } from '../FsColumn.fs.js';
11
11
  import { rangeDouble } from '../../../../node_modules/@fable-org/fable-library-js/Range.js';
12
12
  import { replace, toText, printf } from '../../../../node_modules/@fable-org/fable-library-js/String.js';
13
- import { addToSet, addToDict, getItemFromDict } from '../../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
13
+ import { addToDict, addToSet, getItemFromDict } from '../../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
14
14
  import { FsRangeColumn } from '../Ranges/FsRangeColumn.fs.js';
15
15
  import { DataType_String } from '../Cells/FsCell.fs.js';
16
- import { FsRangeBase } from '../Ranges/FsRangeBase.fs.js';
16
+ import { FsRangeBase, FsRangeBase_$reflection } from '../Ranges/FsRangeBase.fs.js';
17
+ import { class_type } from '../../../../node_modules/@fable-org/fable-library-js/Reflection.js';
17
18
 
18
19
  class FsTable extends FsRangeBase {
19
20
  constructor(name, rangeAddress, showTotalsRow, showHeaderRow, fieldNames) {
@@ -162,7 +163,7 @@ class FsTable extends FsRangeBase {
162
163
  Compare: comparePrimitives
163
164
  })) + 1, new FsRangeColumn((offset = this$._fieldNames.size | 0, new FsRangeAddress(new FsAddress(this$.RangeAddress.FirstAddress.RowNumber, this$.RangeAddress.FirstAddress.ColumnNumber + offset), new FsAddress(this$.RangeAddress.LastAddress.RowNumber, this$.RangeAddress.FirstAddress.ColumnNumber + offset)))), some(defaultOf()), some(defaultOf()));
164
165
  if (this$.ShowHeaderRow) {
165
- newField.HeaderCell(cellsCollection, true).SetValueAs(name);
166
+ const value = newField.HeaderCell(cellsCollection, true).SetValueAs(name);
166
167
  }
167
168
  addToDict(this$._fieldNames, name, newField);
168
169
  this$.RescanRange();
@@ -344,5 +345,11 @@ class FsTable extends FsRangeBase {
344
345
  }
345
346
  }
346
347
  }
348
+ function FsTable_$reflection() {
349
+ return class_type("FsSpreadsheet.FsTable", void 0, FsTable, FsRangeBase_$reflection());
350
+ }
351
+ function FsTable_$ctor_3B894C50(name, rangeAddress, showTotalsRow, showHeaderRow, fieldNames) {
352
+ return new FsTable(name, rangeAddress, showTotalsRow, showHeaderRow, fieldNames);
353
+ }
347
354
 
348
- export { FsTable };
355
+ export { FsTable, FsTable_$ctor_3B894C50, FsTable_$reflection };
@@ -5,6 +5,7 @@ import { FsAddress } from '../FsAddress.fs.js';
5
5
  import { defaultArg, some } from '../../../../node_modules/@fable-org/fable-library-js/Option.js';
6
6
  import { toFail, printf } from '../../../../node_modules/@fable-org/fable-library-js/String.js';
7
7
  import { skip } from '../../../../node_modules/@fable-org/fable-library-js/Seq.js';
8
+ import { class_type } from '../../../../node_modules/@fable-org/fable-library-js/Reflection.js';
8
9
 
9
10
  class FsTableField {
10
11
  constructor(name, index, column, totalsRowLabel, totalsRowFunction) {
@@ -29,9 +30,11 @@ class FsTableField {
29
30
  }
30
31
  set Index(index) {
31
32
  const this$ = this;
32
- if (index === this$._index) ; else {
33
+ if (index === this$._index) {
34
+ } else {
33
35
  this$._index = index | 0;
34
- if (equals(this$._column, defaultOf())) ; else {
36
+ if (equals(this$._column, defaultOf())) {
37
+ } else {
35
38
  const indDiff = index - this$._index | 0;
36
39
  const newCol = new FsRangeColumn(new FsRangeAddress(new FsAddress(this$.Column.RangeAddress.FirstAddress.RowNumber, this$._index + indDiff), new FsAddress(this$.Column.RangeAddress.LastAddress.RowNumber, this$._index + indDiff)));
37
40
  this$.Column = newCol;
@@ -82,5 +85,11 @@ class FsTableField {
82
85
  return tableField.DataCells(cellsCollection);
83
86
  }
84
87
  }
88
+ function FsTableField_$reflection() {
89
+ return class_type("FsSpreadsheet.FsTableField", void 0, FsTableField);
90
+ }
91
+ function FsTableField_$ctor_E675DBB(name, index, column, totalsRowLabel, totalsRowFunction) {
92
+ return new FsTableField(name, index, column, totalsRowLabel, totalsRowFunction);
93
+ }
85
94
 
86
- export { FsTableField };
95
+ export { FsTableField, FsTableField_$ctor_E675DBB, FsTableField_$reflection };
@@ -1,10 +1,10 @@
1
1
  import { FsCell, DataType_String, DataType_Boolean, DataType_Date, DataType_Number } from '../FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js';
2
- import { value, some } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { some, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
3
3
  import { fromDate, op_Addition, offset } from '../../../node_modules/@fable-org/fable-library-js/DateOffset.js';
4
4
  import { FsAddress } from '../FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js';
5
5
  import { toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
6
6
  import { parse as parse$2 } from '../../../node_modules/@fable-org/fable-library-js/Double.js';
7
- import { parse as parse$1, toUniversalTime, create, second, minute, hour, day, month, year } from '../../../node_modules/@fable-org/fable-library-js/Date.js';
7
+ import { parse as parse$1, toUniversalTime, create, year, month, day, hour, minute, second } from '../../../node_modules/@fable-org/fable-library-js/Date.js';
8
8
  import { parse } from '../../../node_modules/@fable-org/fable-library-js/Boolean.js';
9
9
 
10
10
  function writeFromFsCell(fsCell) {
@@ -1,12 +1,51 @@
1
1
  import { Xlsx } from './Xlsx.fs.js';
2
- import '../FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js';
3
- import '../FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js';
2
+ import { Json } from './Json.fs.js';
3
+ import { unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
4
4
 
5
5
  function FsSpreadsheet_FsWorkbook__FsWorkbook_fromXlsxFile_Static_Z721C83C5(path) {
6
6
  return Xlsx.fromXlsxFile(path);
7
7
  }
8
+ function FsSpreadsheet_FsWorkbook__FsWorkbook_fromXlsxStream_Static_4D976C1A(stream) {
9
+ return Xlsx.fromXlsxStream(stream);
10
+ }
11
+ function FsSpreadsheet_FsWorkbook__FsWorkbook_fromXlsxBytes_Static_Z3F6BC7B1(bytes) {
12
+ return Xlsx.fromXlsxBytes(bytes);
13
+ }
8
14
  function FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxFile_Static(path, wb) {
9
15
  return Xlsx.toXlsxFile(path, wb);
10
16
  }
17
+ function FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxStream_Static(stream, wb) {
18
+ return Xlsx.toXlsxStream(stream, wb);
19
+ }
20
+ function FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxBytes_Static_32154C9D(wb) {
21
+ return Xlsx.toXlsxBytes(wb);
22
+ }
23
+ function FsSpreadsheet_FsWorkbook__FsWorkbook_ToXlsxFile_Z721C83C5(this$, path) {
24
+ return FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxFile_Static(path, this$);
25
+ }
26
+ function FsSpreadsheet_FsWorkbook__FsWorkbook_ToXlsxStream_4D976C1A(this$, stream) {
27
+ return FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxStream_Static(stream, this$);
28
+ }
29
+ function FsSpreadsheet_FsWorkbook__FsWorkbook_ToXlsxBytes(this$) {
30
+ return FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxBytes_Static_32154C9D(this$);
31
+ }
32
+ function FsSpreadsheet_FsWorkbook__FsWorkbook_fromRowsJsonString_Static_Z721C83C5(json) {
33
+ return Json.fromRowsJsonString(json);
34
+ }
35
+ function FsSpreadsheet_FsWorkbook__FsWorkbook_toRowsJsonString_Static_Z2B6E0EF5(wb, spaces, noNumbering) {
36
+ return Json.toRowsJsonString(wb, unwrap(spaces), unwrap(noNumbering));
37
+ }
38
+ function FsSpreadsheet_FsWorkbook__FsWorkbook_ToRowsJsonString_Z3B036AA(this$, spaces, noNumbering) {
39
+ return FsSpreadsheet_FsWorkbook__FsWorkbook_toRowsJsonString_Static_Z2B6E0EF5(this$, unwrap(spaces), unwrap(noNumbering));
40
+ }
41
+ function FsSpreadsheet_FsWorkbook__FsWorkbook_fromColumnsJsonString_Static_Z721C83C5(json) {
42
+ return Json.fromColumnsJsonString(json);
43
+ }
44
+ function FsSpreadsheet_FsWorkbook__FsWorkbook_toColumnsJsonString_Static_Z2B6E0EF5(wb, spaces, noNumbering) {
45
+ return Json.toColumnsJsonString(wb, unwrap(spaces), unwrap(noNumbering));
46
+ }
47
+ function FsSpreadsheet_FsWorkbook__FsWorkbook_ToColumnsJsonString_Z3B036AA(this$, spaces, noNumbering) {
48
+ return FsSpreadsheet_FsWorkbook__FsWorkbook_toColumnsJsonString_Static_Z2B6E0EF5(this$, unwrap(spaces), unwrap(noNumbering));
49
+ }
11
50
 
12
- export { FsSpreadsheet_FsWorkbook__FsWorkbook_fromXlsxFile_Static_Z721C83C5, FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxFile_Static };
51
+ export { FsSpreadsheet_FsWorkbook__FsWorkbook_ToColumnsJsonString_Z3B036AA, FsSpreadsheet_FsWorkbook__FsWorkbook_ToRowsJsonString_Z3B036AA, FsSpreadsheet_FsWorkbook__FsWorkbook_ToXlsxBytes, FsSpreadsheet_FsWorkbook__FsWorkbook_ToXlsxFile_Z721C83C5, FsSpreadsheet_FsWorkbook__FsWorkbook_ToXlsxStream_4D976C1A, FsSpreadsheet_FsWorkbook__FsWorkbook_fromColumnsJsonString_Static_Z721C83C5, FsSpreadsheet_FsWorkbook__FsWorkbook_fromRowsJsonString_Static_Z721C83C5, FsSpreadsheet_FsWorkbook__FsWorkbook_fromXlsxBytes_Static_Z3F6BC7B1, FsSpreadsheet_FsWorkbook__FsWorkbook_fromXlsxFile_Static_Z721C83C5, FsSpreadsheet_FsWorkbook__FsWorkbook_fromXlsxStream_Static_4D976C1A, FsSpreadsheet_FsWorkbook__FsWorkbook_toColumnsJsonString_Static_Z2B6E0EF5, FsSpreadsheet_FsWorkbook__FsWorkbook_toRowsJsonString_Static_Z2B6E0EF5, FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxBytes_Static_32154C9D, FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxFile_Static, FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxStream_Static };
@@ -0,0 +1,53 @@
1
+ import { fromString } from '../Thoth.Json.JavaScript.0.4.1/Decode.fs.js';
2
+ import { decodeRows, encodeRows, decodeColumns, encodeColumns } from '../FsSpreadsheet.7.0.0-alpha.1/Json/Workbook.fs.js';
3
+ import { FSharpResult$2_Error, FSharpResult$2_Ok } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
4
+ import { toFail, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
5
+ import { toString } from '../Thoth.Json.JavaScript.0.4.1/Encode.fs.js';
6
+ import { defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
7
+ import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
8
+
9
+ class Json {
10
+ constructor() {
11
+ }
12
+ static tryFromRowsJsonString(json) {
13
+ const matchValue = fromString(decodeRows, json);
14
+ return matchValue.tag === /* Error */
15
+ 1 ? FSharpResult$2_Error(matchValue.fields[0]) : FSharpResult$2_Ok(matchValue.fields[0]);
16
+ }
17
+ static fromRowsJsonString(json) {
18
+ const matchValue = Json.tryFromRowsJsonString(json);
19
+ if (matchValue.tag === /* Error */
20
+ 1) {
21
+ const e = matchValue.fields[0];
22
+ return toFail(printf("Could not deserialize json Workbook: \n%s"))(e);
23
+ } else {
24
+ return matchValue.fields[0];
25
+ }
26
+ }
27
+ static toRowsJsonString(wb, spaces, noNumbering) {
28
+ return toString(defaultArg(spaces, 2), encodeRows(defaultArg(noNumbering, false), wb));
29
+ }
30
+ static tryFromColumnsJsonString(json) {
31
+ const matchValue = fromString(decodeColumns, json);
32
+ return matchValue.tag === /* Error */
33
+ 1 ? FSharpResult$2_Error(matchValue.fields[0]) : FSharpResult$2_Ok(matchValue.fields[0]);
34
+ }
35
+ static fromColumnsJsonString(json) {
36
+ const matchValue = Json.tryFromColumnsJsonString(json);
37
+ if (matchValue.tag === /* Error */
38
+ 1) {
39
+ const e = matchValue.fields[0];
40
+ return toFail(printf("Could not deserialize json Workbook: \n%s"))(e);
41
+ } else {
42
+ return matchValue.fields[0];
43
+ }
44
+ }
45
+ static toColumnsJsonString(wb, spaces, noNumbering) {
46
+ return toString(defaultArg(spaces, 2), encodeColumns(defaultArg(noNumbering, false), wb));
47
+ }
48
+ }
49
+ function Json_$reflection() {
50
+ return class_type("FsSpreadsheet.Js.Json", void 0, Json);
51
+ }
52
+
53
+ export { Json, Json_$reflection };
@@ -1,7 +1,7 @@
1
- import { toArray, delay, map as map$1, length, collect, tail } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
2
- import { comparePrimitives, int32ToString, numberHash } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
1
+ import { toArray, delay, map, length, collect, tail } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
2
+ import { int32ToString, comparePrimitives, numberHash } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
3
3
  import { rangeDouble } from '../../../node_modules/@fable-org/fable-library-js/Range.js';
4
- import { map, sortBy } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
4
+ import { map as map$1, sortBy } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
5
5
  import { ofSeq, FSharpMap__TryFind } from '../../../node_modules/@fable-org/fable-library-js/Map.js';
6
6
  import { Array_groupBy } from '../../../node_modules/@fable-org/fable-library-js/Seq2.js';
7
7
  import { value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
@@ -11,17 +11,17 @@ import { FsRangeAddress } from '../FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAdd
11
11
 
12
12
  function writeFromFsTable(fscellcollection, fsTable) {
13
13
  const fsColumns = fsTable.GetColumns(fscellcollection);
14
- const columns = fsTable.ShowHeaderRow ? toArray(delay(() => map$1((headerCell) => ({
14
+ const columns = fsTable.ShowHeaderRow ? toArray(delay(() => map((headerCell) => ({
15
15
  name: headerCell.ValueAsString()
16
- }), fsTable.GetHeaderRow(fscellcollection)))) : toArray(delay(() => map$1((i) => ({
16
+ }), fsTable.GetHeaderRow(fscellcollection)))) : toArray(delay(() => map((i) => ({
17
17
  name: int32ToString(i)
18
18
  }), rangeDouble(1, 1, length(fsColumns)))));
19
- const rows = map((tupledArg) => {
20
- const m = ofSeq(map((tuple_2) => tuple_2[1], tupledArg[1]), {
19
+ const rows = map$1((tupledArg) => {
20
+ const m = ofSeq(map$1((tuple_2) => tuple_2[1], tupledArg[1]), {
21
21
  Compare: comparePrimitives
22
22
  });
23
- return map((i_1) => FSharpMap__TryFind(m, i_1), toArray(rangeDouble(fsTable.RangeAddress.FirstAddress.ColumnNumber, 1, fsTable.RangeAddress.FirstAddress.ColumnNumber + (columns.length - 1))));
24
- }, sortBy((tuple_1) => tuple_1[0], Array_groupBy((tuple) => tuple[0], toArray(delay(() => collect((col) => map$1((c) => {
23
+ return map$1((i_1) => FSharpMap__TryFind(m, i_1), toArray(rangeDouble(fsTable.RangeAddress.FirstAddress.ColumnNumber, 1, fsTable.RangeAddress.FirstAddress.ColumnNumber + (columns.length - 1))));
24
+ }, sortBy((tuple_1) => tuple_1[0], Array_groupBy((tuple) => tuple[0], toArray(delay(() => collect((col) => map((c) => {
25
25
  const rowValue = value(writeFromFsCell(c));
26
26
  return [c.Address.RowNumber, [c.Address.ColumnNumber, rowValue]];
27
27
  }, fsTable.ShowHeaderRow ? tail(col.Cells) : col.Cells), fsColumns))), {
@@ -1,7 +1,7 @@
1
1
  import { FsWorkbook } from '../FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js';
2
2
  import { Excel } from '../Fable.Exceljs.1.6.0/ExcelJs.fs.js';
3
3
  import { getEnumerator, disposeSafe } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
4
- import { readToFsWorksheet, writeFromFsWorksheet } from './Worksheet.fs.js';
4
+ import { writeFromFsWorksheet, readToFsWorksheet } from './Worksheet.fs.js';
5
5
  import { item } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
6
6
 
7
7
  const Aux_theme1 = {
@@ -1,7 +1,7 @@
1
1
  import { map } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
2
2
  import { getEnumerator, disposeSafe } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
3
- import { readToFsCell, writeFromFsCell } from './Cell.fs.js';
4
- import { readToFsTable, writeFromFsTable } from './Table.fs.js';
3
+ import { writeFromFsCell, readToFsCell } from './Cell.fs.js';
4
+ import { writeFromFsTable, readToFsTable } from './Table.fs.js';
5
5
  import { FsWorksheet } from '../FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js';
6
6
  import { item } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
7
7
 
@@ -2,6 +2,7 @@ import { PromiseBuilder__Run_212F1D4B, PromiseBuilder__Delay_62FBFDE1 } from '..
2
2
  import { Excel } from '../Fable.Exceljs.1.6.0/ExcelJs.fs.js';
3
3
  import { promise } from '../Fable.Promise.3.2.0/PromiseImpl.fs.js';
4
4
  import { readToFsWorkbook, writeFromFsWorkbook } from './Workbook.fs.js';
5
+ import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
5
6
 
6
7
  class Xlsx {
7
8
  constructor() {
@@ -62,5 +63,8 @@ class Xlsx {
62
63
  return Xlsx.toXlsxBytes(wb);
63
64
  }
64
65
  }
66
+ function Xlsx_$reflection() {
67
+ return class_type("FsSpreadsheet.Js.Xlsx", void 0, Xlsx);
68
+ }
65
69
 
66
- export { Xlsx };
70
+ export { Xlsx, Xlsx_$reflection };