@nfdi4plants/arctrl 2.2.3 → 2.3.0

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 (481) hide show
  1. package/ARC.js +63 -23
  2. package/CWL/CWLTypes.js +3 -3
  3. package/CWL/Decode.js +7 -7
  4. package/CWL/Inputs.js +4 -4
  5. package/CWL/Outputs.js +4 -4
  6. package/CWL/Requirements.js +3 -3
  7. package/CWL/ToolDescription.js +2 -2
  8. package/CWL/WorkflowDescription.js +2 -2
  9. package/CWL/WorkflowSteps.js +3 -3
  10. package/Contract/ArcAssay.js +4 -4
  11. package/Contract/ArcInvestigation.js +2 -2
  12. package/Contract/ArcStudy.js +4 -4
  13. package/Contract/Contract.js +3 -3
  14. package/Contract/Datamap.js +2 -2
  15. package/Contract/Git.js +4 -4
  16. package/Contract/ValidationPackagesConfig.js +2 -2
  17. package/ContractIO/ContractIO.js +204 -0
  18. package/ContractIO/FileSystemHelper.js +130 -0
  19. package/Core/ArcTypes.js +9 -9
  20. package/Core/Comment.js +8 -8
  21. package/Core/CommentList.js +4 -4
  22. package/Core/Conversion.js +11 -11
  23. package/Core/Data.js +5 -5
  24. package/Core/DataContext.js +2 -2
  25. package/Core/DataFile.js +2 -2
  26. package/Core/DataMap.js +3 -3
  27. package/Core/Helper/Collections.js +8 -8
  28. package/Core/Helper/HashCodes.js +5 -5
  29. package/Core/Helper/Identifier.js +1 -1
  30. package/Core/Helper/Regex.js +3 -3
  31. package/Core/Helper/SemVer.js +6 -6
  32. package/Core/OntologyAnnotation.js +7 -7
  33. package/Core/OntologySourceReference.js +3 -3
  34. package/Core/Person.js +9 -9
  35. package/Core/Process/ColumnIndex.js +5 -5
  36. package/Core/Process/Component.js +4 -4
  37. package/Core/Process/Factor.js +5 -5
  38. package/Core/Process/FactorValue.js +5 -5
  39. package/Core/Process/Material.js +5 -5
  40. package/Core/Process/MaterialAttribute.js +3 -3
  41. package/Core/Process/MaterialAttributeValue.js +5 -5
  42. package/Core/Process/MaterialType.js +2 -2
  43. package/Core/Process/Process.js +8 -8
  44. package/Core/Process/ProcessInput.js +5 -5
  45. package/Core/Process/ProcessOutput.js +5 -5
  46. package/Core/Process/ProcessParameterValue.js +5 -5
  47. package/Core/Process/ProcessSequence.js +6 -6
  48. package/Core/Process/Protocol.js +5 -5
  49. package/Core/Process/ProtocolParameter.js +3 -3
  50. package/Core/Process/Sample.js +5 -5
  51. package/Core/Process/Source.js +5 -5
  52. package/Core/Publication.js +8 -8
  53. package/Core/Table/ArcTable.js +13 -13
  54. package/Core/Table/ArcTableAux.js +15 -15
  55. package/Core/Table/ArcTables.js +9 -9
  56. package/Core/Table/CompositeCell.js +3 -3
  57. package/Core/Table/CompositeColumn.js +4 -4
  58. package/Core/Table/CompositeHeader.js +4 -4
  59. package/Core/Template.js +6 -6
  60. package/Core/Templates.js +6 -6
  61. package/Core/Value.js +7 -7
  62. package/CrossAsync.js +34 -0
  63. package/FileSystem/Commit.js +2 -2
  64. package/FileSystem/FileSystem.js +4 -4
  65. package/FileSystem/FileSystemTree.js +8 -8
  66. package/FileSystem/Path.js +2 -2
  67. package/FileSystem.js +102 -0
  68. package/Json/ARC.js +3 -3
  69. package/Json/Assay.js +4 -4
  70. package/Json/Comment.js +5 -5
  71. package/Json/ConverterOptions.js +2 -2
  72. package/Json/Data.js +4 -4
  73. package/Json/DataFile.js +1 -1
  74. package/Json/DataMap/DataContext.js +3 -3
  75. package/Json/DataMap/DataMap.js +1 -1
  76. package/Json/Decode.js +9 -9
  77. package/Json/Encode.js +5 -5
  78. package/Json/IDTable.js +3 -3
  79. package/Json/Investigation.js +5 -5
  80. package/Json/LDObject.js +6 -6
  81. package/Json/OntologyAnnotation.js +5 -5
  82. package/Json/OntologySourceReference.js +4 -4
  83. package/Json/Person.js +5 -5
  84. package/Json/Process/AssayMaterials.js +3 -3
  85. package/Json/Process/Component.js +3 -3
  86. package/Json/Process/Factor.js +3 -3
  87. package/Json/Process/FactorValue.js +3 -3
  88. package/Json/Process/Material.js +4 -4
  89. package/Json/Process/MaterialAttribute.js +3 -3
  90. package/Json/Process/MaterialAttributeValue.js +3 -3
  91. package/Json/Process/MaterialType.js +1 -1
  92. package/Json/Process/Process.js +4 -4
  93. package/Json/Process/ProcessInput.js +1 -1
  94. package/Json/Process/ProcessOutput.js +1 -1
  95. package/Json/Process/ProcessParameterValue.js +3 -3
  96. package/Json/Process/Protocol.js +4 -4
  97. package/Json/Process/ProtocolParameter.js +3 -3
  98. package/Json/Process/Sample.js +5 -5
  99. package/Json/Process/Source.js +4 -4
  100. package/Json/Process/StudyMaterials.js +3 -3
  101. package/Json/Process/Value.js +1 -1
  102. package/Json/PropertyValue.js +3 -3
  103. package/Json/Publication.js +4 -4
  104. package/Json/StringTable.js +4 -4
  105. package/Json/Study.js +5 -5
  106. package/Json/Table/ArcTable.js +10 -10
  107. package/Json/Table/CellTable.js +4 -4
  108. package/Json/Table/CompositeCell.js +3 -3
  109. package/Json/Table/CompositeHeader.js +2 -2
  110. package/Json/Table/IOType.js +1 -1
  111. package/Json/Table/OATable.js +4 -4
  112. package/Json/Table/Templates.js +5 -5
  113. package/Json/context/rocrate/isa_assay_context.js +3 -3
  114. package/Json/context/rocrate/isa_comment_context.js +3 -3
  115. package/Json/context/rocrate/isa_component_context.js +3 -3
  116. package/Json/context/rocrate/isa_data_context.js +3 -3
  117. package/Json/context/rocrate/isa_factor_context.js +3 -3
  118. package/Json/context/rocrate/isa_factor_value_context.js +3 -3
  119. package/Json/context/rocrate/isa_investigation_context.js +3 -3
  120. package/Json/context/rocrate/isa_material_attribute_context.js +3 -3
  121. package/Json/context/rocrate/isa_material_attribute_value_context.js +3 -3
  122. package/Json/context/rocrate/isa_material_context.js +3 -3
  123. package/Json/context/rocrate/isa_ontology_annotation_context.js +3 -3
  124. package/Json/context/rocrate/isa_ontology_source_reference_context.js +3 -3
  125. package/Json/context/rocrate/isa_organization_context.js +3 -3
  126. package/Json/context/rocrate/isa_person_context.js +3 -3
  127. package/Json/context/rocrate/isa_process_context.js +3 -3
  128. package/Json/context/rocrate/isa_process_parameter_value_context.js +3 -3
  129. package/Json/context/rocrate/isa_protocol_context.js +3 -3
  130. package/Json/context/rocrate/isa_protocol_parameter_context.js +3 -3
  131. package/Json/context/rocrate/isa_publication_context.js +3 -3
  132. package/Json/context/rocrate/isa_sample_context.js +3 -3
  133. package/Json/context/rocrate/isa_source_context.js +3 -3
  134. package/Json/context/rocrate/isa_study_context.js +3 -3
  135. package/Json/context/rocrate/property_value_context.js +1 -1
  136. package/Json/context/rocrate/rocrate_context.js +3 -3
  137. package/Json.js +2 -2
  138. package/JsonIO/ARC.js +3 -3
  139. package/JsonIO/Assay.js +2 -2
  140. package/JsonIO/Comment.js +2 -2
  141. package/JsonIO/Data.js +2 -2
  142. package/JsonIO/DataFile.js +2 -2
  143. package/JsonIO/DataMap/DataMap.js +1 -1
  144. package/JsonIO/Investigation.js +2 -2
  145. package/JsonIO/LDObject.js +2 -2
  146. package/JsonIO/OntologyAnnotation.js +2 -2
  147. package/JsonIO/OntologySourceReference.js +2 -2
  148. package/JsonIO/Person.js +2 -2
  149. package/JsonIO/Process/Component.js +2 -2
  150. package/JsonIO/Process/Factor.js +2 -2
  151. package/JsonIO/Process/FactorValue.js +2 -2
  152. package/JsonIO/Process/Material.js +2 -2
  153. package/JsonIO/Process/MaterialAttribute.js +2 -2
  154. package/JsonIO/Process/MaterialAttributeValue.js +2 -2
  155. package/JsonIO/Process/MaterialType.js +2 -2
  156. package/JsonIO/Process/Process.js +2 -2
  157. package/JsonIO/Process/ProcessInput.js +2 -2
  158. package/JsonIO/Process/ProcessOutput.js +2 -2
  159. package/JsonIO/Process/ProcessParameterValue.js +2 -2
  160. package/JsonIO/Process/ProcessSequence.js +4 -4
  161. package/JsonIO/Process/Protocol.js +2 -2
  162. package/JsonIO/Process/ProtocolParameter.js +2 -2
  163. package/JsonIO/Process/Sample.js +2 -2
  164. package/JsonIO/Process/Source.js +2 -2
  165. package/JsonIO/Process/StudyMaterials.js +3 -3
  166. package/JsonIO/Process/Value.js +1 -1
  167. package/JsonIO/Publication.js +2 -2
  168. package/JsonIO/Study.js +2 -2
  169. package/JsonIO/Table/ArcTable.js +5 -5
  170. package/JsonIO/Table/CompositeCell.js +2 -2
  171. package/JsonIO/Table/CompositeHeader.js +2 -2
  172. package/JsonIO/Table/Compression.js +3 -3
  173. package/JsonIO/Table/IOType.js +2 -2
  174. package/JsonIO/Table/Templates.js +3 -3
  175. package/ROCrate/ArcROCrateMetadata.js +3 -3
  176. package/ROCrate/ISAProfile/Assay.js +4 -4
  177. package/ROCrate/ISAProfile/Data.js +4 -4
  178. package/ROCrate/ISAProfile/Dataset.js +2 -2
  179. package/ROCrate/ISAProfile/Investigation.js +4 -4
  180. package/ROCrate/ISAProfile/LabProcess.js +4 -4
  181. package/ROCrate/ISAProfile/LabProtocol.js +4 -4
  182. package/ROCrate/ISAProfile/Person.js +4 -4
  183. package/ROCrate/ISAProfile/PropertyValue.js +4 -4
  184. package/ROCrate/ISAProfile/Sample.js +4 -4
  185. package/ROCrate/ISAProfile/ScholarlyArticle.js +4 -4
  186. package/ROCrate/ISAProfile/Study.js +4 -4
  187. package/ROCrate/LDObject.js +2 -2
  188. package/Spreadsheet/AnnotationTable/ArcTable.js +13 -13
  189. package/Spreadsheet/AnnotationTable/CompositeCell.js +2 -2
  190. package/Spreadsheet/AnnotationTable/CompositeColumn.js +7 -7
  191. package/Spreadsheet/AnnotationTable/CompositeHeader.js +6 -6
  192. package/Spreadsheet/ArcAssay.js +7 -7
  193. package/Spreadsheet/ArcInvestigation.js +12 -12
  194. package/Spreadsheet/ArcStudy.js +7 -7
  195. package/Spreadsheet/CollectionAux.js +7 -7
  196. package/Spreadsheet/DataMap.js +3 -3
  197. package/Spreadsheet/DataMapTable/DataMapColumn.js +6 -6
  198. package/Spreadsheet/DataMapTable/DataMapHeader.js +5 -5
  199. package/Spreadsheet/DataMapTable/DataMapTable.js +10 -10
  200. package/Spreadsheet/Metadata/Assays.js +5 -5
  201. package/Spreadsheet/Metadata/Comment.js +2 -2
  202. package/Spreadsheet/Metadata/Contacts.js +5 -5
  203. package/Spreadsheet/Metadata/Conversions.js +5 -5
  204. package/Spreadsheet/Metadata/DesignDescriptors.js +1 -1
  205. package/Spreadsheet/Metadata/Factors.js +5 -5
  206. package/Spreadsheet/Metadata/OntologyAnnotation.js +5 -5
  207. package/Spreadsheet/Metadata/OntologySourceReference.js +5 -5
  208. package/Spreadsheet/Metadata/Protocols.js +5 -5
  209. package/Spreadsheet/Metadata/Publication.js +5 -5
  210. package/Spreadsheet/Metadata/SparseTable.js +17 -17
  211. package/Spreadsheet/Metadata/Study.js +8 -8
  212. package/Spreadsheet/Template.js +13 -13
  213. package/Template.Web.js +4 -4
  214. package/ValidationPackages/ValidationPackage.js +5 -5
  215. package/ValidationPackages/ValidationPackagesConfig.js +8 -8
  216. package/WebRequest/WebRequest.Node.js +2 -2
  217. package/WebRequest/WebRequest.js +2 -2
  218. package/Xlsx.js +16 -3
  219. package/Yaml/Encode.js +1 -1
  220. package/Yaml/ValidationPackage.js +4 -4
  221. package/Yaml/ValidationPackagesConfig.js +4 -4
  222. package/fable_modules/DynamicObj.4.0.3/DynObj.fs.js +6 -6
  223. package/fable_modules/DynamicObj.4.0.3/DynamicObj.fs.js +4 -4
  224. package/fable_modules/DynamicObj.4.0.3/FableJS.fs.js +4 -4
  225. package/fable_modules/DynamicObj.4.0.3/HashCodes.fs.js +5 -5
  226. package/fable_modules/DynamicObj.4.0.3/PropertyHelper.fs.js +2 -2
  227. package/fable_modules/DynamicObj.4.0.3/ReflectionUtils.fs.js +1 -1
  228. package/fable_modules/Fable.Exceljs.1.6.0/Cell.fs +32 -0
  229. package/fable_modules/Fable.Exceljs.1.6.0/Column.fs +24 -0
  230. package/fable_modules/Fable.Exceljs.1.6.0/Csv.fs +12 -0
  231. package/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs +61 -0
  232. package/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js +4 -0
  233. package/fable_modules/Fable.Exceljs.1.6.0/Extensions.fs +36 -0
  234. package/fable_modules/Fable.Exceljs.1.6.0/Extensions.fs.js +20 -0
  235. package/fable_modules/Fable.Exceljs.1.6.0/Fable.Exceljs.fableproj +53 -0
  236. package/fable_modules/Fable.Exceljs.1.6.0/Row.fs +34 -0
  237. package/fable_modules/Fable.Exceljs.1.6.0/Table.fs +85 -0
  238. package/fable_modules/Fable.Exceljs.1.6.0/Table.fs.js +22 -0
  239. package/fable_modules/Fable.Exceljs.1.6.0/Unions.fs +87 -0
  240. package/fable_modules/Fable.Exceljs.1.6.0/Unions.fs.js +73 -0
  241. package/fable_modules/Fable.Exceljs.1.6.0/Workbook.fs +37 -0
  242. package/fable_modules/Fable.Exceljs.1.6.0/Worksheet.fs +120 -0
  243. package/fable_modules/Fable.Exceljs.1.6.0/Xlsx.fs +18 -0
  244. package/fable_modules/Fable.Exceljs.1.6.0/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.fs +3 -0
  245. package/fable_modules/Fable.Exceljs.1.6.0/obj/Debug/net6.0/Fable.Exceljs.AssemblyInfo.fs +19 -0
  246. package/fable_modules/Fable.Exceljs.1.6.0/obj/Debug/netstandard2.0/Fable.Exceljs.AssemblyInfo.fs +19 -0
  247. package/fable_modules/Fable.Exceljs.1.6.0/obj/Release/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.fs +3 -0
  248. package/fable_modules/Fable.Exceljs.1.6.0/obj/Release/net6.0/Fable.Exceljs.AssemblyInfo.fs +19 -0
  249. package/fable_modules/Fable.Exceljs.1.6.0/obj/Release/netstandard2.0/Fable.Exceljs.AssemblyInfo.fs +19 -0
  250. package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +8 -8
  251. package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +57 -0
  252. package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +104 -0
  253. package/fable_modules/{Fable.Promise.2.2.2 → Fable.Promise.3.2.0}/Fable.Promise.fableproj +4 -3
  254. package/fable_modules/Fable.Promise.3.2.0/Promise.fs +766 -0
  255. package/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +217 -0
  256. package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +31 -0
  257. package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +19 -0
  258. package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
  259. package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
  260. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Cells/FsCell.fs.js +14 -14
  261. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Cells/FsCellsCollection.fs.js +6 -6
  262. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/CellBuilder.fs.js +4 -4
  263. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/ColumnBuilder.fs.js +3 -3
  264. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/DSL.fs.js +2 -2
  265. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Expression.fs.js +1 -1
  266. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/RowBuilder.fs.js +3 -3
  267. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/SheetBuilder.fs.js +3 -3
  268. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/TableBuilder.fs.js +3 -3
  269. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Transform.fs.js +6 -6
  270. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Types.fs.js +4 -4
  271. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/WorkbookBuilder.fs.js +3 -3
  272. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsAddress.fs.js +8 -8
  273. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsColumn.fs.js +3 -3
  274. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsRow.fs.js +3 -3
  275. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsSpreadsheet.fableproj +5 -5
  276. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsWorkbook.fs.js +6 -6
  277. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsWorksheet.fs.js +9 -9
  278. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Cell.fs.js +2 -2
  279. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Column.fs.js +2 -2
  280. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Row.fs.js +2 -2
  281. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Table.fs.js +1 -1
  282. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Value.fs.js +5 -5
  283. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Workbook.fs.js +1 -1
  284. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Worksheet.fs.js +3 -3
  285. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRange.fs.js +3 -3
  286. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeAddress.fs.js +3 -3
  287. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeBase.fs.js +3 -3
  288. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeColumn.fs.js +3 -3
  289. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeRow.fs.js +1 -1
  290. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/SheetBuilder.fs.js +8 -8
  291. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Tables/FsTable.fs.js +7 -7
  292. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Tables/FsTableField.fs.js +4 -4
  293. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Tables/FsTableRow.fs.js +1 -1
  294. package/fable_modules/FsSpreadsheet.6.3.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  295. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +1 -1
  296. package/fable_modules/FsSpreadsheet.6.3.1/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  297. package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +1 -1
  298. package/fable_modules/FsSpreadsheet.Js.6.3.1/Cell.fs +88 -0
  299. package/fable_modules/FsSpreadsheet.Js.6.3.1/Cell.fs.js +79 -0
  300. package/fable_modules/FsSpreadsheet.Js.6.3.1/FsExtensions.fs +69 -0
  301. package/fable_modules/FsSpreadsheet.Js.6.3.1/FsExtensions.fs.js +64 -0
  302. package/fable_modules/FsSpreadsheet.Js.6.3.1/FsSpreadsheet.Js.fableproj +57 -0
  303. package/fable_modules/FsSpreadsheet.Js.6.3.1/Json.fs +59 -0
  304. package/fable_modules/FsSpreadsheet.Js.6.3.1/Json.fs.js +39 -0
  305. package/fable_modules/FsSpreadsheet.Js.6.3.1/Table.fs +50 -0
  306. package/fable_modules/FsSpreadsheet.Js.6.3.1/Table.fs.js +54 -0
  307. package/fable_modules/FsSpreadsheet.Js.6.3.1/Workbook.fs +27 -0
  308. package/fable_modules/FsSpreadsheet.Js.6.3.1/Workbook.fs.js +34 -0
  309. package/fable_modules/FsSpreadsheet.Js.6.3.1/Worksheet.fs +41 -0
  310. package/fable_modules/FsSpreadsheet.Js.6.3.1/Worksheet.fs.js +63 -0
  311. package/fable_modules/FsSpreadsheet.Js.6.3.1/Xlsx.fs +74 -0
  312. package/fable_modules/FsSpreadsheet.Js.6.3.1/Xlsx.fs.js +70 -0
  313. package/fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js +19 -19
  314. package/fable_modules/Thoth.Json.Core.0.4.0/Encode.fs.js +6 -6
  315. package/fable_modules/Thoth.Json.Core.0.4.0/Types.fs.js +2 -2
  316. package/fable_modules/Thoth.Json.JavaScript.0.3.0/Decode.fs.js +1 -1
  317. package/fable_modules/Thoth.Json.JavaScript.0.3.0/Encode.fs.js +2 -2
  318. package/fable_modules/YAMLicious.0.0.3/Decode.fs.js +15 -15
  319. package/fable_modules/YAMLicious.0.0.3/Encode.fs.js +6 -6
  320. package/fable_modules/YAMLicious.0.0.3/Library.fs.js +1 -1
  321. package/fable_modules/YAMLicious.0.0.3/Persil.fs.js +3 -3
  322. package/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +6 -6
  323. package/fable_modules/YAMLicious.0.0.3/Reader.fs.js +7 -7
  324. package/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +3 -3
  325. package/fable_modules/YAMLicious.0.0.3/Writer.fs.js +4 -4
  326. package/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +6 -6
  327. package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/CHANGELOG.md +6 -0
  328. package/fable_modules/fable-library-js.4.24.0/CollectionUtil.d.ts +7 -0
  329. package/fable_modules/fable-library-js.4.24.0/CollectionUtil.js +182 -0
  330. package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/String.d.ts +10 -2
  331. package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/package.json +1 -1
  332. package/fable_modules/project_cracked.json +1 -1
  333. package/package.json +1 -1
  334. package/fable_modules/Fable.Promise.2.2.2/Promise.fs +0 -176
  335. package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +0 -143
  336. package/fable_modules/Fable.Promise.2.2.2/PromiseImpl.fs +0 -4
  337. package/fable_modules/Fable.Promise.2.2.2/PromiseImpl.fs.js +0 -4
  338. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → Fable.Exceljs.1.6.0}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
  339. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → Fable.Exceljs.1.6.0}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
  340. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Cells/FsCell.fs +0 -0
  341. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Cells/FsCellsCollection.fs +0 -0
  342. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/CellBuilder.fs +0 -0
  343. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/ColumnBuilder.fs +0 -0
  344. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/DSL.fs +0 -0
  345. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Expression.fs +0 -0
  346. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Operators.fs +0 -0
  347. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Operators.fs.js +0 -0
  348. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/RowBuilder.fs +0 -0
  349. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/SheetBuilder.fs +0 -0
  350. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/TableBuilder.fs +0 -0
  351. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Transform.fs +0 -0
  352. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Types.fs +0 -0
  353. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/WorkbookBuilder.fs +0 -0
  354. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsAddress.fs +0 -0
  355. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsColumn.fs +0 -0
  356. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsRow.fs +0 -0
  357. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsWorkbook.fs +0 -0
  358. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsWorksheet.fs +0 -0
  359. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Cell.fs +0 -0
  360. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Column.fs +0 -0
  361. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Row.fs +0 -0
  362. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Table.fs +0 -0
  363. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Value.fs +0 -0
  364. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Workbook.fs +0 -0
  365. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Worksheet.fs +0 -0
  366. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRange.fs +0 -0
  367. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeAddress.fs +0 -0
  368. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeBase.fs +0 -0
  369. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeColumn.fs +0 -0
  370. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeRow.fs +0 -0
  371. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/SheetBuilder.fs +0 -0
  372. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Tables/FsTable.fs +0 -0
  373. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Tables/FsTableField.fs +0 -0
  374. /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Tables/FsTableRow.fs +0 -0
  375. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Array.d.ts +0 -0
  376. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Array.js +0 -0
  377. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Async.d.ts +0 -0
  378. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Async.js +0 -0
  379. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/AsyncBuilder.d.ts +0 -0
  380. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/AsyncBuilder.js +0 -0
  381. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/BigInt.d.ts +0 -0
  382. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/BigInt.js +0 -0
  383. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/BitConverter.d.ts +0 -0
  384. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/BitConverter.js +0 -0
  385. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Boolean.d.ts +0 -0
  386. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Boolean.js +0 -0
  387. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Char.d.ts +0 -0
  388. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Char.js +0 -0
  389. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Choice.d.ts +0 -0
  390. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Choice.js +0 -0
  391. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/ConditionalWeakTable.d.ts +0 -0
  392. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/ConditionalWeakTable.js +0 -0
  393. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Date.d.ts +0 -0
  394. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Date.js +0 -0
  395. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/DateOffset.d.ts +0 -0
  396. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/DateOffset.js +0 -0
  397. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/DateOnly.d.ts +0 -0
  398. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/DateOnly.js +0 -0
  399. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Decimal.d.ts +0 -0
  400. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Decimal.js +0 -0
  401. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Double.d.ts +0 -0
  402. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Double.js +0 -0
  403. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Encoding.d.ts +0 -0
  404. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Encoding.js +0 -0
  405. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Event.d.ts +0 -0
  406. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Event.js +0 -0
  407. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/FSharp.Collections.d.ts +0 -0
  408. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/FSharp.Collections.js +0 -0
  409. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/FSharp.Core.CompilerServices.d.ts +0 -0
  410. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/FSharp.Core.CompilerServices.js +0 -0
  411. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/FSharp.Core.d.ts +0 -0
  412. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/FSharp.Core.js +0 -0
  413. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Global.d.ts +0 -0
  414. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Global.js +0 -0
  415. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Guid.d.ts +0 -0
  416. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Guid.js +0 -0
  417. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Int32.d.ts +0 -0
  418. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Int32.js +0 -0
  419. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/List.d.ts +0 -0
  420. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/List.js +0 -0
  421. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Long.d.ts +0 -0
  422. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Long.js +0 -0
  423. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MailboxProcessor.d.ts +0 -0
  424. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MailboxProcessor.js +0 -0
  425. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Map.d.ts +0 -0
  426. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Map.js +0 -0
  427. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MapUtil.d.ts +0 -0
  428. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MapUtil.js +0 -0
  429. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MutableMap.d.ts +0 -0
  430. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MutableMap.js +0 -0
  431. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MutableSet.d.ts +0 -0
  432. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MutableSet.js +0 -0
  433. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Native.d.ts +0 -0
  434. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Native.js +0 -0
  435. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Numeric.d.ts +0 -0
  436. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Numeric.js +0 -0
  437. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Observable.d.ts +0 -0
  438. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Observable.js +0 -0
  439. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Option.d.ts +0 -0
  440. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Option.js +0 -0
  441. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/README.md +0 -0
  442. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Random.d.ts +0 -0
  443. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Random.js +0 -0
  444. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Range.d.ts +0 -0
  445. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Range.js +0 -0
  446. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Reflection.d.ts +0 -0
  447. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Reflection.js +0 -0
  448. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/RegExp.d.ts +0 -0
  449. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/RegExp.js +0 -0
  450. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Result.d.ts +0 -0
  451. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Result.js +0 -0
  452. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Seq.d.ts +0 -0
  453. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Seq.js +0 -0
  454. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Seq2.d.ts +0 -0
  455. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Seq2.js +0 -0
  456. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Set.d.ts +0 -0
  457. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Set.js +0 -0
  458. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/String.js +0 -0
  459. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/System.Collections.Generic.d.ts +0 -0
  460. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/System.Collections.Generic.js +0 -0
  461. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/System.Text.d.ts +0 -0
  462. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/System.Text.js +0 -0
  463. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/SystemException.d.ts +0 -0
  464. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/SystemException.js +0 -0
  465. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/TimeOnly.d.ts +0 -0
  466. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/TimeOnly.js +0 -0
  467. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/TimeSpan.d.ts +0 -0
  468. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/TimeSpan.js +0 -0
  469. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Timer.d.ts +0 -0
  470. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Timer.js +0 -0
  471. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Types.d.ts +0 -0
  472. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Types.js +0 -0
  473. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Unicode.13.0.0.d.ts +0 -0
  474. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Unicode.13.0.0.js +0 -0
  475. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Uri.d.ts +0 -0
  476. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Uri.js +0 -0
  477. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Util.d.ts +0 -0
  478. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Util.js +0 -0
  479. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/big.d.ts +0 -0
  480. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/lib/big.d.ts +0 -0
  481. /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/lib/big.js +0 -0
@@ -0,0 +1,85 @@
1
+ [<AutoOpen>]
2
+ module Fable.ExcelJs.Table
3
+
4
+ open Fable.Core
5
+ open Fable.Core.JsInterop
6
+ open Fable.ExcelJs
7
+ open Cell
8
+
9
+ [<RequireQualifiedAccess>]
10
+ type TotalsFunctions =
11
+ /// Default
12
+ | [<CompiledName("Total")>] Total
13
+ /// No totals function for this column
14
+ | [<CompiledName("none")>] None
15
+ /// Compute average for the column
16
+ | [<CompiledName("average")>] Average
17
+ /// Count the entries that are numbers
18
+ | [<CompiledName("countNums")>] CountNums
19
+ /// Count of entries
20
+ | [<CompiledName("count")>] Count
21
+ /// The maximum value in this column
22
+ | [<CompiledName("max")>] Max
23
+ /// The minimum value in this column
24
+ | [<CompiledName("min")>] Min
25
+ /// The standard deviation for this column
26
+ | [<CompiledName("stdDev")>] StdDev
27
+ /// The variance for this column
28
+ | [<CompiledName("var")>] Var
29
+ /// The sum of entries for this column
30
+ | [<CompiledName("sum")>] Sum
31
+ /// A custom formula. Requires an associated totalsRowFormula value.
32
+ | [<CompiledName("custom")>] Custom
33
+
34
+ with
35
+ static member defaultValue = Total
36
+
37
+ // https://fable.io/docs/javascript/features.html#paramobject
38
+ [<AllowNullLiteral>]
39
+ [<Global>]
40
+ type TableColumn
41
+ [<ParamObject; Emit("$0")>]
42
+ (
43
+ name: string,
44
+ ?filterButton: bool,
45
+ ?totalsRowLabel: TotalsFunctions,
46
+ ?totalsRowFunction: string,
47
+ ?totalsRowFormula: obj
48
+ ) =
49
+ member val name: string = jsNative with get, set
50
+ member val filterButton: bool = jsNative with get, set
51
+ member val totalsRowLabel: TotalsFunctions = jsNative with get, set
52
+ member val totalsRowFunction: string = jsNative with get, set
53
+ member val totalsRowFormula: obj = jsNative with get, set
54
+
55
+ [<AllowNullLiteral>]
56
+ [<Global>]
57
+ type Table
58
+ [<ParamObject; Emit("$0")>]
59
+ ( name: string,
60
+ ref: CellAdress,
61
+ columns: TableColumn [],
62
+ rows: RowValues [] [],
63
+ ?displayName: string,
64
+ ?headerRow: bool,
65
+ ?totalsRow: bool,
66
+ ?style: obj
67
+ ) =
68
+ /// The name of the table
69
+ member val name: string = jsNative with get, set
70
+ /// The display name of the table.
71
+ member val displayName: string = jsNative with get, set
72
+ /// Top left cell of the table
73
+ member val ref: CellAdress = jsNative with get, set
74
+ /// Show headers at top of table
75
+ member val headerRow: bool = jsNative with get, set
76
+ /// Show totals at bottom of table
77
+ member val totalsRow: bool = jsNative with get, set
78
+ /// More style properties
79
+ member val style: obj = jsNative with get, set
80
+ /// columns
81
+ member val columns: TableColumn [] = jsNative with get, set
82
+ /// rows
83
+ member val rows: RowValues [] [] = jsNative with get, set
84
+ /// full range of table. Exmp "A1:D4"
85
+ member val tableRef: CellRange = jsNative with get
@@ -0,0 +1,22 @@
1
+ import { Union } from "../fable-library-js.4.24.0/Types.js";
2
+ import { union_type } from "../fable-library-js.4.24.0/Reflection.js";
3
+
4
+ export class TotalsFunctions extends Union {
5
+ constructor(tag, fields) {
6
+ super();
7
+ this.tag = tag;
8
+ this.fields = fields;
9
+ }
10
+ cases() {
11
+ return ["Total", "none", "average", "countNums", "count", "max", "min", "stdDev", "var", "sum", "custom"];
12
+ }
13
+ }
14
+
15
+ export function TotalsFunctions_$reflection() {
16
+ return union_type("Fable.ExcelJs.Table.TotalsFunctions", [], TotalsFunctions, () => [[], [], [], [], [], [], [], [], [], [], []]);
17
+ }
18
+
19
+ export function TotalsFunctions_get_defaultValue() {
20
+ return new TotalsFunctions(0, []);
21
+ }
22
+
@@ -0,0 +1,87 @@
1
+ [<AutoOpen>]
2
+ module Fable.ExcelJs.Unions
3
+
4
+ open Fable.Core
5
+ open Fable.Core.JsInterop
6
+
7
+ type ErrorValue =
8
+ | NotApplicable
9
+ | Ref
10
+ | Name
11
+ | DivZero
12
+ | Null
13
+ | Value
14
+ | Num
15
+ with
16
+ member this.toString =
17
+ match this with
18
+ | NotApplicable -> "#N/A"
19
+ | Ref -> "#REF!"
20
+ | Name -> "#NAME?"
21
+ | DivZero -> "#DIV/0!"
22
+ | Null -> "#NULL!"
23
+ | Value -> "#VALUE!"
24
+ | Num -> "#NUM!"
25
+ static member ofString (str:string) =
26
+ match str with
27
+ | "#N/A" -> NotApplicable
28
+ | "#REF!" -> Ref
29
+ | "#NAME?" -> Name
30
+ | "#DIV/0!" -> DivZero
31
+ | "#NULL!" -> Null
32
+ | "#VALUE!" -> Value
33
+ | "#NUM!" -> Num
34
+ | anyElse -> failwith "Cannot match input string to ErrorValue"
35
+
36
+
37
+ type ValueType =
38
+ | Null = 0
39
+ | Merge = 1
40
+ | Number = 2
41
+ | String = 3
42
+ | Date = 4
43
+ | Hyperlink = 5
44
+ | Formula = 6
45
+ | RichText = 8
46
+ | Boolean = 9
47
+ | Error = 10
48
+
49
+ // TODO: implement this with create function to easily use
50
+ //[<Erase>]
51
+ //type ValueType =
52
+ //| Null
53
+ //| Merge
54
+ //| Number of float
55
+ //| String of string
56
+ //| Date of System.DateOnly
57
+ //| Hyperlink of string
58
+ //| Formula of obj
59
+ //| RichText of obj []
60
+ //| Boolean of bool
61
+ //| Error of obj
62
+
63
+ [<RequireQualifiedAccess>]
64
+ type StyleOption =
65
+ /// inherit from row above
66
+ | [<CompiledName("'i'")>] Inherit
67
+ /// inherit from row above and include empty cells
68
+ | [<CompiledName("'i+'")>] InheritWithNulls
69
+ /// original style
70
+ | [<CompiledName("'o'")>] Original
71
+ /// original style and include empty cells
72
+ | [<CompiledName("'o+'")>] OriginalWithNulls
73
+ /// Default; no style options
74
+ | [<CompiledName("'n'")>] None
75
+
76
+ type CellValue = obj option
77
+ /// e.g. "B5", "A1", "AZ3",..
78
+ type CellAdress = string
79
+ /// e.g. ""A1:C5""
80
+ type CellRange = string
81
+
82
+ /// Example1: {|key1 = "Test"; key2 = 2; key3 = 4; key4 = None; key5 = None; key7 = "Test me too"|}.
83
+ /// Example2: createObj ["key1" ==> "Test"; "key2" ==> 2; "key3" ==> 4; "key4" ==> None; "key5" ==> None; "key7" ==> "Test me too" ]
84
+ /// Example3: Row.createValues (["key1","Test"; "key2",2])
85
+ /// Example4: [Some "Test"; Some 2; Some 4; None; None; None; Some "Test me too"]
86
+ type RowValues = obj
87
+
@@ -0,0 +1,73 @@
1
+ import { Union } from "../fable-library-js.4.24.0/Types.js";
2
+ import { union_type } from "../fable-library-js.4.24.0/Reflection.js";
3
+
4
+ export class ErrorValue extends Union {
5
+ constructor(tag, fields) {
6
+ super();
7
+ this.tag = tag;
8
+ this.fields = fields;
9
+ }
10
+ cases() {
11
+ return ["NotApplicable", "Ref", "Name", "DivZero", "Null", "Value", "Num"];
12
+ }
13
+ }
14
+
15
+ export function ErrorValue_$reflection() {
16
+ return union_type("Fable.ExcelJs.Unions.ErrorValue", [], ErrorValue, () => [[], [], [], [], [], [], []]);
17
+ }
18
+
19
+ export function ErrorValue__get_toString(this$) {
20
+ switch (this$.tag) {
21
+ case 1:
22
+ return "#REF!";
23
+ case 2:
24
+ return "#NAME?";
25
+ case 3:
26
+ return "#DIV/0!";
27
+ case 4:
28
+ return "#NULL!";
29
+ case 5:
30
+ return "#VALUE!";
31
+ case 6:
32
+ return "#NUM!";
33
+ default:
34
+ return "#N/A";
35
+ }
36
+ }
37
+
38
+ export function ErrorValue_ofString_Z721C83C5(str) {
39
+ switch (str) {
40
+ case "#N/A":
41
+ return new ErrorValue(0, []);
42
+ case "#REF!":
43
+ return new ErrorValue(1, []);
44
+ case "#NAME?":
45
+ return new ErrorValue(2, []);
46
+ case "#DIV/0!":
47
+ return new ErrorValue(3, []);
48
+ case "#NULL!":
49
+ return new ErrorValue(4, []);
50
+ case "#VALUE!":
51
+ return new ErrorValue(5, []);
52
+ case "#NUM!":
53
+ return new ErrorValue(6, []);
54
+ default:
55
+ throw new Error("Cannot match input string to ErrorValue");
56
+ }
57
+ }
58
+
59
+ export class StyleOption extends Union {
60
+ constructor(tag, fields) {
61
+ super();
62
+ this.tag = tag;
63
+ this.fields = fields;
64
+ }
65
+ cases() {
66
+ return ["\'i\'", "\'i+\'", "\'o\'", "\'o+\'", "\'n\'"];
67
+ }
68
+ }
69
+
70
+ export function StyleOption_$reflection() {
71
+ return union_type("Fable.ExcelJs.Unions.StyleOption", [], StyleOption, () => [[], [], [], [], []]);
72
+ }
73
+
@@ -0,0 +1,37 @@
1
+ [<AutoOpen>]
2
+ module Fable.ExcelJs.Workbook
3
+
4
+ open Fable.Core
5
+ open Fable.Core.JsInterop
6
+ open Fable.ExcelJs
7
+ open Worksheet
8
+ open Xlsx
9
+
10
+ type Workbook =
11
+ abstract member creator : string with get, set
12
+ abstract member lastModifiedBy : string with get, set
13
+ abstract member created : System.DateTime with get, set
14
+ abstract member modified : System.DateTime with get, set
15
+ abstract member lastPrinted : System.DateTime with get, set
16
+ abstract member description : string with get, set
17
+ abstract member keywords : string with get, set
18
+ abstract member manager : string with get, set
19
+ abstract member category : string with get, set
20
+ abstract member company: string with get, set
21
+ abstract member xlsx: Xlsx with get
22
+ abstract member addWorksheet: string -> Worksheet
23
+ [<Emit("$0.addWorksheet($1,{properties: $2})")>]
24
+ abstract member addWorksheet: string * WorksheetProperties -> Worksheet
25
+ /// Remove the worksheet using worksheet id
26
+ abstract member removeWorksheet: int -> unit
27
+ /// fetch sheet by name
28
+ abstract member getWorksheet: string -> Worksheet
29
+ /// fetch sheet by id.
30
+ /// INFO: Be careful when using it!
31
+ /// It tries to access to `worksheet.id` field. Sometimes (really very often) workbook has worksheets with id not starting from 1.
32
+ /// For instance It happens when any worksheet has been deleted.
33
+ /// It's much more safety when you assume that ids are random. And stop to use this function.
34
+ abstract member getWorksheet: int -> Worksheet
35
+ abstract member worksheets: Worksheet [] with get
36
+ [<Emit("$0.eachSheet(function(worksheet, sheetId){$1([worksheet, sheetId])})")>] //oh boy
37
+ abstract member eachSheet: func:(Worksheet*int -> unit) -> unit
@@ -0,0 +1,120 @@
1
+ [<AutoOpen>]
2
+ module Fable.ExcelJs.Worksheet
3
+
4
+ open Fable.Core
5
+ open Fable.Core.JsInterop
6
+ open Fable.ExcelJs
7
+ open Cell
8
+ open Row
9
+ open Column
10
+ open Table
11
+
12
+ type WorksheetProperties =
13
+ abstract member tabColor : obj with get, set
14
+ abstract member outlineLevelCol : int with get, set
15
+ abstract member outlineLevelRow : int with get, set
16
+ abstract member defaultRowHeight: int with get, set
17
+ abstract member defaultColWidth : int with get, set
18
+ abstract member dyDescent : int with get, set
19
+
20
+ [<Erase>]
21
+ type WorksheetState =
22
+ /// make worksheet visible
23
+ | [<CompiledName("visible")>] Visible
24
+ /// make worksheet hidden
25
+ | [<CompiledName("hidden")>] Hidden
26
+ /// make worksheet hidden
27
+ | [<CompiledName("veryHidden")>] VeryHidden
28
+
29
+ type ITableRef =
30
+ abstract member worksheet: Worksheet with get
31
+ abstract member table: Table option with get
32
+ abstract member ref: CellAdress with get, set
33
+ abstract member name: string with get, set
34
+ abstract member headerRow: bool with get, set
35
+ abstract member displayName: string with get, set
36
+ abstract member showFirstColumn: bool with get, set
37
+ abstract member showLastColumn: bool with get, set
38
+
39
+ and Worksheet =
40
+ abstract member id: int with get, set
41
+ abstract member name: string with get, set
42
+ abstract member state: WorksheetState with get, set
43
+ abstract member properties: WorksheetProperties with get, set
44
+ /// Get the last editable row in a worksheet (or undefined if there are none)
45
+ abstract member lastRow: Row option with get
46
+ abstract member lastColumn: Column option with get
47
+ [<Emit("$0._lastRowNumber")>]
48
+ abstract member lastRowNumber: int with get
49
+ // Add column headers and define column keys and widths
50
+ // Note: these column structures are a workbook-building convenience only,
51
+ // apart from the column width, they will not be fully persisted.
52
+ abstract member columns: Column [] with get, set
53
+ [<Emit("$0._rows")>]
54
+ abstract member rows: Row [] with get
55
+ /// Not sure how this should be used
56
+ abstract member tables: obj with get, set
57
+ /// A count of the number of columns that have values.
58
+ abstract member actualColumnCount: int with get
59
+ /// The total column size of the document. Equal to the maximum cell count from all of the rows
60
+ abstract member columnCount: int with get
61
+ /// A count of the number of rows that have values. If a mid-document row is empty, it will not be included in the count.
62
+ abstract member actualRowCount: int with get
63
+ /// The total row size of the document. Equal to the row number of the last row that has values.
64
+ abstract member rowCount: int with get
65
+ /// add a table to a sheet
66
+ abstract member addTable: Table -> ITableRef
67
+ /// get a table from worksheet by name
68
+ abstract member getTable: string -> ITableRef
69
+ /// get all tables from worksheet
70
+ abstract member getTables: unit -> ITableRef []
71
+ /// remove table from worksheet by name
72
+ abstract member removeTable: string -> unit
73
+ /// Access an individual columns by key, letter and 1-based column number
74
+ abstract member getColumn: string -> Column
75
+ /// Access an individual columns by key, letter and 1-based column number
76
+ abstract member getColumn: int -> Column
77
+ abstract member addRow: CellValue [] -> Row
78
+ /// Add a Row as `obj` with `column.key` as key and row value as value, after the last current row.
79
+ /// `obj` can be anonymous record type or fable createObj.
80
+ /// Use None to not set value for row for a given column or just skip.
81
+ abstract member addRow: rowValues:RowValues -> Row
82
+ /// obj can be any of the allowed inputs of `addRow`
83
+ abstract member addRows: rowValuesArray:RowValues [] -> Row []
84
+ /// insert new row at rowIndex and return as row object
85
+ abstract member insertRow: rowIndex:int*RowValues -> Row
86
+ /// insert new row with specified style at rowIndex and return as row object
87
+ abstract member insertRow: rowIndex:int*RowValues*StyleOption -> Row
88
+ /// insert an array of rows at rowIndex and return as row object array. Shifts all rows beginning from position by number of inserted rows
89
+ abstract member insertRows: rowIndex:int*RowValues [] -> Row []
90
+ /// insert an array of rows with specified style at rowIndex and return as row object array. Shifts all rows beginning from position by number of inserted rows
91
+ abstract member insertRows: rowIndex:int*RowValues []*StyleOption -> Row []
92
+ abstract member getRow: int -> Row
93
+ abstract member getRows: int*int -> Row []
94
+ /// Cut one or more rows (rows below are shifted up).
95
+ /// Removed rows are replaced by nulls in worksheet.rows
96
+ /// Known Issue: If a splice causes any merged cells to move, the results may be unpredictable.
97
+ abstract member spliceRows: rowIndexStart:int*nRows:int -> unit
98
+ /// Cut one or more rows and insert newRows instead.
99
+ /// Known Issue: If a splice causes any merged cells to move, the results may be unpredictable.
100
+ [<Emit("$0.spliceRows($1,$2,$3...)")>]
101
+ abstract member spliceRows: rowIndexStart:int*nRows:int* [<ParamSeqAttribute>] newRows: CellValue [] [] -> unit
102
+ /// Duplicate row at rowIndex
103
+ [<Emit("$0.duplicateRow($1, 1, true)")>]
104
+ abstract member duplicateRow: rowIndex:int -> unit
105
+ /// Duplicate row `amount` times at rowIndex
106
+ [<Emit("$0.duplicateRow($1, $2, true)")>]
107
+ abstract member duplicateRow: rowIndex:int*amount:int -> unit
108
+ /// Duplicate row at rowIndex, if
109
+ /// `insert`: true if you want to insert new rows for the duplicates, or false if you want to replace them
110
+ [<Emit("$0.duplicateRow($1, 1, $2)")>]
111
+ abstract member duplicateRow: rowIndex:int*insert:bool -> unit
112
+ /// Duplicate row `amount` times at rowIndex
113
+ /// `insert`: true if you want to insert new rows for the duplicates, or false if you want to replace them
114
+ abstract member duplicateRow: rowIndex:int*amount:int*insert:bool -> unit
115
+ [<Emit("$0.eachRow(function(row, rowNumber){$1([row, rowNumber])})")>] //oh boy
116
+ abstract member eachRow: func:(Row*int -> unit) -> unit
117
+ [<Emit("$0.eachRow({ includeEmpty: $1 }, function(row, rowNumber){$2([row, rowNumber])})")>]
118
+ abstract member eachRow: includeEmpty:bool*func:(Row*int -> unit) -> unit
119
+ abstract member getCell: CellAdress -> Cell
120
+
@@ -0,0 +1,18 @@
1
+ [<AutoOpen>]
2
+ module Fable.ExcelJs.Xlsx
3
+
4
+ open Fable.Core.JS
5
+
6
+ type Xlsx =
7
+ /// read from a file
8
+ abstract member readFile: filename:string -> Promise<unit>
9
+ /// read from a stream
10
+ abstract member read: filename:System.IO.Stream -> Promise<unit>
11
+ /// load from a buffer
12
+ abstract member load: filename:obj -> Promise<unit>
13
+ /// write to a file
14
+ abstract member writeFile: filename:string -> Promise<unit>
15
+ /// write to a stream
16
+ abstract member write: filename:System.IO.Stream -> Promise<unit>
17
+ /// write to a new buffer
18
+ abstract member writeBuffer: unit -> Promise<obj>
@@ -0,0 +1,3 @@
1
+ namespace Microsoft.BuildSettings
2
+ [<System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName="")>]
3
+ do ()
@@ -0,0 +1,19 @@
1
+ // <auto-generated>
2
+ // Generated by the FSharp WriteCodeFragment class.
3
+ // </auto-generated>
4
+ namespace FSharp
5
+
6
+ open System
7
+ open System.Reflection
8
+
9
+
10
+ [<assembly: System.Reflection.AssemblyCompanyAttribute("Kevin Frey")>]
11
+ [<assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")>]
12
+ [<assembly: System.Reflection.AssemblyDescriptionAttribute("Fable bindings for exceljs")>]
13
+ [<assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")>]
14
+ [<assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")>]
15
+ [<assembly: System.Reflection.AssemblyProductAttribute("Fable.Exceljs")>]
16
+ [<assembly: System.Reflection.AssemblyTitleAttribute("Fable.Exceljs")>]
17
+ [<assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")>]
18
+ [<assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Freymaurer/Fable.exceljs")>]
19
+ do()
@@ -0,0 +1,19 @@
1
+ // <auto-generated>
2
+ // Generated by the FSharp WriteCodeFragment class.
3
+ // </auto-generated>
4
+ namespace FSharp
5
+
6
+ open System
7
+ open System.Reflection
8
+
9
+
10
+ [<assembly: System.Reflection.AssemblyCompanyAttribute("Kevin Frey")>]
11
+ [<assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")>]
12
+ [<assembly: System.Reflection.AssemblyDescriptionAttribute("Fable bindings for exceljs")>]
13
+ [<assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")>]
14
+ [<assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")>]
15
+ [<assembly: System.Reflection.AssemblyProductAttribute("Fable.Exceljs")>]
16
+ [<assembly: System.Reflection.AssemblyTitleAttribute("Fable.Exceljs")>]
17
+ [<assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")>]
18
+ [<assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Freymaurer/Fable.exceljs")>]
19
+ do()
@@ -0,0 +1,3 @@
1
+ namespace Microsoft.BuildSettings
2
+ [<System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName="")>]
3
+ do ()
@@ -0,0 +1,19 @@
1
+ // <auto-generated>
2
+ // Generated by the FSharp WriteCodeFragment class.
3
+ // </auto-generated>
4
+ namespace FSharp
5
+
6
+ open System
7
+ open System.Reflection
8
+
9
+
10
+ [<assembly: System.Reflection.AssemblyCompanyAttribute("Kevin Frey")>]
11
+ [<assembly: System.Reflection.AssemblyConfigurationAttribute("Release")>]
12
+ [<assembly: System.Reflection.AssemblyDescriptionAttribute("Fable bindings for exceljs")>]
13
+ [<assembly: System.Reflection.AssemblyFileVersionAttribute("1.6.0.0")>]
14
+ [<assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.6.0")>]
15
+ [<assembly: System.Reflection.AssemblyProductAttribute("Fable.Exceljs")>]
16
+ [<assembly: System.Reflection.AssemblyTitleAttribute("Fable.Exceljs")>]
17
+ [<assembly: System.Reflection.AssemblyVersionAttribute("1.6.0.0")>]
18
+ [<assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Freymaurer/Fable.exceljs")>]
19
+ do()
@@ -0,0 +1,19 @@
1
+ // <auto-generated>
2
+ // Generated by the FSharp WriteCodeFragment class.
3
+ // </auto-generated>
4
+ namespace FSharp
5
+
6
+ open System
7
+ open System.Reflection
8
+
9
+
10
+ [<assembly: System.Reflection.AssemblyCompanyAttribute("Kevin Frey")>]
11
+ [<assembly: System.Reflection.AssemblyConfigurationAttribute("Release")>]
12
+ [<assembly: System.Reflection.AssemblyDescriptionAttribute("Fable bindings for exceljs")>]
13
+ [<assembly: System.Reflection.AssemblyFileVersionAttribute("1.6.0.0")>]
14
+ [<assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.6.0")>]
15
+ [<assembly: System.Reflection.AssemblyProductAttribute("Fable.Exceljs")>]
16
+ [<assembly: System.Reflection.AssemblyTitleAttribute("Fable.Exceljs")>]
17
+ [<assembly: System.Reflection.AssemblyVersionAttribute("1.6.0.0")>]
18
+ [<assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Freymaurer/Fable.exceljs")>]
19
+ do()
@@ -1,11 +1,11 @@
1
- import { Union } from "../fable-library-js.4.22.0/Types.js";
2
- import { array_type, tuple_type, bool_type, class_type, union_type, obj_type, int32_type, string_type } from "../fable-library-js.4.22.0/Reflection.js";
3
- import { defaultArg } from "../fable-library-js.4.22.0/Option.js";
4
- import { empty } from "../fable-library-js.4.22.0/Seq.js";
5
- import { keyValueList } from "../fable-library-js.4.22.0/MapUtil.js";
6
- import { int32ToString } from "../fable-library-js.4.22.0/Util.js";
7
- import { result } from "../Fable.Promise.2.2.2/Promise.fs.js";
8
- import { singleton } from "../fable-library-js.4.22.0/List.js";
1
+ import { Union } from "../fable-library-js.4.24.0/Types.js";
2
+ import { array_type, tuple_type, bool_type, class_type, union_type, obj_type, int32_type, string_type } from "../fable-library-js.4.24.0/Reflection.js";
3
+ import { defaultArg } from "../fable-library-js.4.24.0/Option.js";
4
+ import { empty } from "../fable-library-js.4.24.0/Seq.js";
5
+ import { keyValueList } from "../fable-library-js.4.24.0/MapUtil.js";
6
+ import { int32ToString } from "../fable-library-js.4.24.0/Util.js";
7
+ import { result } from "../Fable.Promise.3.2.0/Promise.fs.js";
8
+ import { singleton } from "../fable-library-js.4.24.0/List.js";
9
9
 
10
10
  export class Types_HttpRequestHeaders extends Union {
11
11
  constructor(tag, fields) {
@@ -0,0 +1,57 @@
1
+ [<RequireQualifiedAccess>]
2
+ module AsyncIterable
3
+
4
+ open Fable.Core
5
+ open Fable.Core.JsInterop
6
+
7
+ [<Emit("""{
8
+ [Symbol.asyncIterator]() {
9
+ return {
10
+ next: $0,
11
+ return: $1
12
+ }
13
+ }
14
+ }""")>]
15
+ let private createAsyncIterator (onNext: unit -> JS.Promise<obj>) (onCancel: unit -> obj): JS.AsyncIterable<'T> = jsNative
16
+
17
+ /// Creates AsyncIterable. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of#specifications
18
+ let create (onNext: unit -> JS.Promise<'T option>): JS.AsyncIterable<'T> =
19
+ createAsyncIterator
20
+ (fun () ->
21
+ onNext() |> Promise.map (function
22
+ | Some value -> createObj ["value" ==> value; "done" ==> false]
23
+ | None -> createObj ["done" ==> true]
24
+ ))
25
+ (fun () -> createObj [ "done" ==> true ])
26
+
27
+ /// Creates AsyncIterable with a cleaning function for cancellation (JS caller invokes `break` or `return` during iteration)
28
+ let createCancellable (onCancel: unit -> unit) (onNext: unit -> JS.Promise<'T option>): JS.AsyncIterable<'T> =
29
+ createAsyncIterator
30
+ (fun () ->
31
+ onNext() |> Promise.map (function
32
+ | Some value -> createObj ["value" ==> value; "done" ==> false]
33
+ | None -> createObj ["done" ==> true]
34
+ ))
35
+ (fun () ->
36
+ onCancel()
37
+ createObj [ "done" ==> true ])
38
+
39
+ type CancellationToken() =
40
+ member this.Cancel(): unit =
41
+ raise !!this
42
+
43
+ /// Iterates AsyncIterable. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of
44
+ let iter (action: CancellationToken -> 'T -> unit) (iterable: JS.AsyncIterable<'T>): JS.Promise<unit> =
45
+ let token = CancellationToken()
46
+ emitJsExpr () """(async () => {
47
+ for await (const value of iterable) {
48
+ try {
49
+ action(token, value)
50
+ } catch (err) {
51
+ if (err instanceof token.constructor) {
52
+ break;
53
+ }
54
+ throw(err);
55
+ }
56
+ }
57
+ })()"""