@nfdi4plants/arctrl 1.1.0 → 2.0.0-alpha.1

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 (377) hide show
  1. package/ARC.js +53 -35
  2. package/{Contracts/Contracts.ARCtrl.js → Contract/ARC.js} +4 -2
  3. package/Contract/ArcAssay.js +102 -0
  4. package/Contract/ArcInvestigation.js +78 -0
  5. package/Contract/ArcStudy.js +102 -0
  6. package/Contract/Contract.js +3 -3
  7. package/{Contracts/Contracts.Git.js → Contract/Git.js} +5 -5
  8. package/{ISA/ISA/ArcTypes → Core}/ArcTypes.js +307 -295
  9. package/Core/Comment.js +97 -0
  10. package/{ISA/ISA/JsonTypes → Core}/CommentList.js +12 -18
  11. package/Core/Conversion.js +1056 -0
  12. package/Core/Helper/Collections.js +318 -0
  13. package/Core/Helper/HashCodes.js +39 -0
  14. package/{ISA/ISA → Core/Helper}/Identifier.js +67 -2
  15. package/{ISA/ISA → Core/Helper}/Regex.js +3 -3
  16. package/{SemVer.js → Core/Helper/SemVer.js} +8 -8
  17. package/{ISA/ISA/ArcTypes → Core}/IdentifierSetters.js +1 -1
  18. package/Core/OntologyAnnotation.js +186 -0
  19. package/Core/OntologySourceReference.js +92 -0
  20. package/Core/Person.js +194 -0
  21. package/Core/Process/ColumnIndex.js +248 -0
  22. package/Core/Process/Component.js +188 -0
  23. package/{ISA/ISA/JsonTypes → Core/Process}/Data.js +8 -8
  24. package/{ISA/ISA/JsonTypes → Core/Process}/DataFile.js +3 -3
  25. package/Core/Process/Factor.js +109 -0
  26. package/{ISA/ISA/JsonTypes → Core/Process}/FactorValue.js +32 -13
  27. package/{ISA/ISA/JsonTypes → Core/Process}/Material.js +9 -9
  28. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttribute.js +17 -17
  29. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttributeValue.js +35 -16
  30. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialType.js +3 -3
  31. package/{ISA/ISA/JsonTypes → Core/Process}/Process.js +46 -79
  32. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessInput.js +42 -42
  33. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessOutput.js +36 -36
  34. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessParameterValue.js +26 -7
  35. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessSequence.js +21 -25
  36. package/{ISA/ISA/JsonTypes → Core/Process}/Protocol.js +26 -57
  37. package/{ISA/ISA/JsonTypes → Core/Process}/ProtocolParameter.js +10 -10
  38. package/{ISA/ISA/JsonTypes → Core/Process}/Sample.js +12 -12
  39. package/{ISA/ISA/JsonTypes → Core/Process}/Source.js +9 -9
  40. package/{ISA/ISA/JsonTypes → Core/Process}/Value.js +24 -31
  41. package/Core/Publication.js +116 -0
  42. package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +49 -155
  43. package/Core/Table/ArcTableAux.js +532 -0
  44. package/{ISA/ISA/ArcTypes → Core/Table}/ArcTables.js +20 -32
  45. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeCell.js +19 -76
  46. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeColumn.js +9 -8
  47. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeHeader.js +14 -34
  48. package/{Templates → Core}/Template.js +16 -17
  49. package/Core/Templates.js +84 -0
  50. package/FileSystem/Commit.js +2 -2
  51. package/FileSystem/FileSystem.js +4 -4
  52. package/FileSystem/FileSystemTree.js +46 -8
  53. package/FileSystem/Path.js +10 -2
  54. package/Json/ARC.js +25 -0
  55. package/Json/Assay.js +202 -0
  56. package/Json/Comment.js +130 -0
  57. package/Json/ConverterOptions.js +18 -0
  58. package/Json/Decode.js +128 -0
  59. package/Json/Encode.js +45 -0
  60. package/Json/Investigation.js +220 -0
  61. package/Json/OntologyAnnotation.js +169 -0
  62. package/Json/OntologySourceReference.js +122 -0
  63. package/Json/Person.js +250 -0
  64. package/Json/Process/AssayMaterials.js +22 -0
  65. package/Json/Process/Component.js +79 -0
  66. package/Json/Process/Data.js +102 -0
  67. package/Json/Process/DataFile.js +81 -0
  68. package/Json/Process/Factor.js +48 -0
  69. package/Json/Process/FactorValue.js +53 -0
  70. package/Json/Process/Material.js +107 -0
  71. package/Json/Process/MaterialAttribute.js +45 -0
  72. package/Json/Process/MaterialAttributeValue.js +70 -0
  73. package/Json/Process/MaterialType.js +60 -0
  74. package/Json/Process/Process.js +107 -0
  75. package/Json/Process/ProcessInput.js +59 -0
  76. package/Json/Process/ProcessOutput.js +71 -0
  77. package/Json/Process/ProcessParameterValue.js +69 -0
  78. package/Json/Process/ProcessSequence.js +53 -0
  79. package/Json/Process/PropertyValue.js +82 -0
  80. package/Json/Process/Protocol.js +147 -0
  81. package/Json/Process/ProtocolParameter.js +45 -0
  82. package/Json/Process/Sample.js +134 -0
  83. package/Json/Process/Source.js +101 -0
  84. package/Json/Process/StudyMaterials.js +24 -0
  85. package/Json/Process/Value.js +42 -0
  86. package/Json/Publication.js +142 -0
  87. package/Json/StringTable.js +44 -0
  88. package/Json/Study.js +306 -0
  89. package/Json/Table/ArcTable.js +223 -0
  90. package/Json/Table/CellTable.js +40 -0
  91. package/Json/Table/CompositeCell.js +65 -0
  92. package/Json/Table/CompositeHeader.js +57 -0
  93. package/Json/Table/Compression.js +38 -0
  94. package/Json/Table/IOType.js +37 -0
  95. package/Json/Table/OATable.js +40 -0
  96. package/Json/Table/Templates.js +107 -0
  97. package/Json/context/rocrate/isa_assay_context.js +32 -0
  98. package/Json/context/rocrate/isa_comment_context.js +23 -0
  99. package/Json/context/rocrate/isa_component_context.js +24 -0
  100. package/Json/context/rocrate/isa_data_context.js +25 -0
  101. package/Json/context/rocrate/isa_factor_context.js +25 -0
  102. package/Json/context/rocrate/isa_factor_value_context.js +23 -0
  103. package/Json/context/rocrate/isa_investigation_context.js +33 -0
  104. package/Json/context/rocrate/isa_material_attribute_context.js +23 -0
  105. package/Json/context/rocrate/isa_material_attribute_value_context.js +23 -0
  106. package/Json/context/rocrate/isa_material_context.js +26 -0
  107. package/Json/context/rocrate/isa_ontology_annotation_context.js +23 -0
  108. package/Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
  109. package/Json/context/rocrate/isa_organization_context.js +22 -0
  110. package/Json/context/rocrate/isa_person_context.js +33 -0
  111. package/Json/context/rocrate/isa_process_context.js +29 -0
  112. package/Json/context/rocrate/isa_process_parameter_value_context.js +23 -0
  113. package/Json/context/rocrate/isa_protocol_context.js +28 -0
  114. package/Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
  115. package/Json/context/rocrate/isa_publication_context.js +25 -0
  116. package/Json/context/rocrate/isa_sample_context.js +24 -0
  117. package/Json/context/rocrate/isa_source_context.js +25 -0
  118. package/Json/context/rocrate/isa_study_context.js +40 -0
  119. package/Json/context/rocrate/property_value_context.js +4 -0
  120. package/Json/context/rocrate/rocrate_context.js +23 -0
  121. package/Json.js +193 -0
  122. package/README.md +50 -12
  123. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
  124. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
  125. package/Spreadsheet/AnnotationTable/CompositeColumn.js +59 -0
  126. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeHeader.js +10 -10
  127. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcAssay.js +11 -11
  128. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcInvestigation.js +34 -37
  129. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcStudy.js +12 -12
  130. package/{ISA/ISA.Spreadsheet → Spreadsheet}/CollectionAux.js +8 -8
  131. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
  132. package/Spreadsheet/Metadata/Comment.js +71 -0
  133. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Contacts.js +28 -30
  134. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Conversions.js +22 -16
  135. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/DesignDescriptors.js +1 -1
  136. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Factors.js +23 -22
  137. package/Spreadsheet/Metadata/OntologyAnnotation.js +64 -0
  138. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/OntologySourceReference.js +22 -24
  139. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Protocols.js +17 -17
  140. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Publication.js +29 -31
  141. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/SparseTable.js +34 -28
  142. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Study.js +38 -40
  143. package/{Templates/Template.Spreadsheet.js → Spreadsheet/Template.js} +31 -31
  144. package/Template.Web.js +27 -0
  145. package/WebRequest/WebRequest.Node.js +15 -0
  146. package/WebRequest/WebRequest.js +10 -29
  147. package/Xlsx.js +85 -0
  148. package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
  149. package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
  150. package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
  151. package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
  152. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js +14 -14
  153. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
  154. package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
  155. package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
  156. package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
  157. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
  158. package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
  159. package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
  160. package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
  161. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
  162. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
  163. package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
  164. package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
  165. package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
  166. package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
  167. package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
  168. package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
  169. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
  170. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +4 -3
  171. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
  172. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
  173. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
  174. package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
  175. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
  176. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
  177. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
  178. package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs +1390 -0
  179. package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +1230 -0
  180. package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs +233 -0
  181. package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +113 -0
  182. package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +28 -0
  183. package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs +76 -0
  184. package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +33 -0
  185. package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  186. package/fable_modules/{Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs → Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/Thoth.Json.Core.AssemblyInfo.fs} +8 -7
  187. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs +79 -0
  188. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +85 -0
  189. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs +32 -0
  190. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +45 -0
  191. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +21 -0
  192. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  193. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +18 -0
  194. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  195. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +19 -0
  196. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Array.d.ts +4 -1
  197. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Array.js +124 -86
  198. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
  199. package/fable_modules/fable-library-js.4.16.0/CHANGELOG.md +47 -0
  200. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -17
  201. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.js +0 -43
  202. package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.d.ts +9 -0
  203. package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.js +21 -0
  204. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.js +340 -42
  205. package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.d.ts +12 -0
  206. package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.js +27 -0
  207. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.js +3 -3
  208. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.js +3 -3
  209. package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
  210. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
  211. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.js +2 -1
  212. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.js +2 -1
  213. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.js +7 -7
  214. package/fable_modules/fable-library-js.4.16.0/Result.d.ts +37 -0
  215. package/fable_modules/fable-library-js.4.16.0/Result.js +165 -0
  216. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.js +2 -2
  217. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.d.ts +1 -0
  218. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.js +8 -5
  219. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +15 -7
  220. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +46 -36
  221. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.d.ts +9 -1
  222. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.js +60 -8
  223. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
  224. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.js +2 -13
  225. package/fable_modules/fable-library-js.4.16.0/big.d.ts +338 -0
  226. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/package.json +4 -3
  227. package/fable_modules/project_cracked.json +1 -1
  228. package/index.js +14 -12
  229. package/package.json +1 -1
  230. package/Contracts/Contracts.ArcTypes.js +0 -268
  231. package/FileSystemTree.js +0 -51
  232. package/ISA/ISA/ArcTypes/ArcTableAux.js +0 -1155
  233. package/ISA/ISA/ArcTypes/CompositeRow.js +0 -111
  234. package/ISA/ISA/Builder/Types.js +0 -243
  235. package/ISA/ISA/Fable.js +0 -123
  236. package/ISA/ISA/Helper.js +0 -503
  237. package/ISA/ISA/JsonTypes/Assay.js +0 -620
  238. package/ISA/ISA/JsonTypes/AssayMaterials.js +0 -39
  239. package/ISA/ISA/JsonTypes/ColumnIndex.js +0 -246
  240. package/ISA/ISA/JsonTypes/Comment.js +0 -58
  241. package/ISA/ISA/JsonTypes/Component.js +0 -165
  242. package/ISA/ISA/JsonTypes/Factor.js +0 -128
  243. package/ISA/ISA/JsonTypes/Investigation.js +0 -204
  244. package/ISA/ISA/JsonTypes/OntologyAnnotation.js +0 -196
  245. package/ISA/ISA/JsonTypes/OntologySourceReference.js +0 -85
  246. package/ISA/ISA/JsonTypes/Person.js +0 -137
  247. package/ISA/ISA/JsonTypes/Publication.js +0 -105
  248. package/ISA/ISA/JsonTypes/Study.js +0 -942
  249. package/ISA/ISA/JsonTypes/StudyMaterials.js +0 -45
  250. package/ISA/ISA/UIHelper.js +0 -19
  251. package/ISA/ISA.Json/ArcTypes/ArcAssay.js +0 -282
  252. package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -93
  253. package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -170
  254. package/ISA/ISA.Json/ArcTypes/ArcTable.js +0 -178
  255. package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -46
  256. package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -77
  257. package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +0 -82
  258. package/ISA/ISA.Json/ArcTypes/IOType.js +0 -35
  259. package/ISA/ISA.Json/ArcTypes/OATable.js +0 -48
  260. package/ISA/ISA.Json/Assay.js +0 -105
  261. package/ISA/ISA.Json/Comment.js +0 -84
  262. package/ISA/ISA.Json/ConverterOptions.js +0 -33
  263. package/ISA/ISA.Json/Data.js +0 -271
  264. package/ISA/ISA.Json/Decode.js +0 -46
  265. package/ISA/ISA.Json/Factor.js +0 -194
  266. package/ISA/ISA.Json/GEncode.js +0 -15
  267. package/ISA/ISA.Json/Investigation.js +0 -114
  268. package/ISA/ISA.Json/Material.js +0 -233
  269. package/ISA/ISA.Json/Ontology.js +0 -223
  270. package/ISA/ISA.Json/Person.js +0 -204
  271. package/ISA/ISA.Json/Process.js +0 -291
  272. package/ISA/ISA.Json/Protocol.js +0 -242
  273. package/ISA/ISA.Json/Publication.js +0 -92
  274. package/ISA/ISA.Json/StringTable.js +0 -43
  275. package/ISA/ISA.Json/Study.js +0 -212
  276. package/ISA/ISA.Json/Validation/Fable.js +0 -69
  277. package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +0 -88
  278. package/ISA/ISA.Json/Validation/ValidationResult.js +0 -45
  279. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +0 -59
  280. package/ISA/ISA.Spreadsheet/Metadata/Comment.js +0 -60
  281. package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
  282. package/Path.js +0 -10
  283. package/Templates/Template.Json.js +0 -83
  284. package/Templates/Template.Web.js +0 -27
  285. package/Templates/Templates.js +0 -82
  286. package/fable_modules/Thoth.Json.10.1.0/Decode.fs +0 -1366
  287. package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +0 -1798
  288. package/fable_modules/Thoth.Json.10.1.0/Encode.fs +0 -621
  289. package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +0 -472
  290. package/fable_modules/Thoth.Json.10.1.0/Extra.fs +0 -31
  291. package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +0 -8
  292. package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +0 -30
  293. package/fable_modules/Thoth.Json.10.1.0/Types.fs +0 -59
  294. package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +0 -98
  295. package/fable_modules/Thoth.Json.10.1.0/package.json +0 -5
  296. package/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
  297. package/fable_modules/fable-library.4.5.0/MapUtil.d.ts +0 -10
  298. /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
  299. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
  300. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.js +0 -0
  301. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
  302. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
  303. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
  304. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
  305. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
  306. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
  307. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
  308. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
  309. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.js +0 -0
  310. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
  311. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
  312. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
  313. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
  314. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
  315. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
  316. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
  317. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
  318. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.js +0 -0
  319. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
  320. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
  321. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
  322. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.js +0 -0
  323. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
  324. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
  325. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
  326. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
  327. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
  328. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.js +0 -0
  329. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
  330. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.js +0 -0
  331. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
  332. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.js +0 -0
  333. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
  334. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
  335. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.js +0 -0
  336. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
  337. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
  338. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
  339. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
  340. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
  341. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
  342. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.js +0 -0
  343. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
  344. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
  345. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
  346. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.js +0 -0
  347. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
  348. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.js +0 -0
  349. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/README.md +0 -0
  350. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
  351. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
  352. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.js +0 -0
  353. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
  354. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
  355. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
  356. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
  357. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
  358. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.js +0 -0
  359. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
  360. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
  361. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
  362. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
  363. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
  364. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
  365. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
  366. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
  367. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
  368. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
  369. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.js +0 -0
  370. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
  371. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.js +0 -0
  372. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
  373. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
  374. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
  375. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.js +0 -0
  376. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
  377. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
@@ -69,10 +69,34 @@ export function StringBuilder__AppendFormat_433E080(x, fmt, o) {
69
69
  void (x.buf.push(format(fmt, o)));
70
70
  return x;
71
71
  }
72
+ export function StringBuilder__AppendFormat_Z3B30EC65(x, fmt, o1, o2) {
73
+ void (x.buf.push(format(fmt, o1, o2)));
74
+ return x;
75
+ }
76
+ export function StringBuilder__AppendFormat_10D165E0(x, fmt, o1, o2, o3) {
77
+ void (x.buf.push(format(fmt, o1, o2, o3)));
78
+ return x;
79
+ }
80
+ export function StringBuilder__AppendFormat_Z17053F5(x, fmt, arr) {
81
+ void (x.buf.push(format(fmt, ...arr)));
82
+ return x;
83
+ }
72
84
  export function StringBuilder__AppendFormat_Z696D8D1B(x, provider, fmt, o) {
73
85
  void (x.buf.push(format(provider, fmt, o)));
74
86
  return x;
75
87
  }
88
+ export function StringBuilder__AppendFormat_26802C9E(x, provider, fmt, o1, o2) {
89
+ void (x.buf.push(format(provider, fmt, o1, o2)));
90
+ return x;
91
+ }
92
+ export function StringBuilder__AppendFormat_Z471ADCBB(x, provider, fmt, o1, o2, o3) {
93
+ void (x.buf.push(format(provider, fmt, o1, o2, o3)));
94
+ return x;
95
+ }
96
+ export function StringBuilder__AppendFormat_6C2E3E6E(x, provider, fmt, arr) {
97
+ void (x.buf.push(format(provider, fmt, ...arr)));
98
+ return x;
99
+ }
76
100
  export function StringBuilder__AppendLine(x) {
77
101
  void (x.buf.push("\n"));
78
102
  return x;
@@ -82,6 +106,40 @@ export function StringBuilder__AppendLine_Z721C83C5(x, s) {
82
106
  void (x.buf.push("\n"));
83
107
  return x;
84
108
  }
109
+ export function StringBuilder__Clear(x) {
110
+ clear(x.buf);
111
+ return x;
112
+ }
113
+ export function StringBuilder__get_Chars_Z524259A4(x, index) {
114
+ let len = 0;
115
+ let i = -1;
116
+ while (((i + 1) < x.buf.length) && (len < index)) {
117
+ i = ((i + 1) | 0);
118
+ len = ((len + x.buf[i].length) | 0);
119
+ }
120
+ if (((index < 0) ? true : (i < 0)) ? true : (i >= x.buf.length)) {
121
+ throw new Error("Index was outside the bounds of the array");
122
+ }
123
+ else {
124
+ const pos = ((len - index) - 1) | 0;
125
+ return x.buf[i][pos];
126
+ }
127
+ }
128
+ export function StringBuilder__set_Chars_413E0D0A(x, index, value) {
129
+ let len = 0;
130
+ let i = -1;
131
+ while (((i + 1) < x.buf.length) && (len < index)) {
132
+ i = ((i + 1) | 0);
133
+ len = ((len + x.buf[i].length) | 0);
134
+ }
135
+ if (((index < 0) ? true : (i < 0)) ? true : (i >= x.buf.length)) {
136
+ throw new Error("Index was outside the bounds of the array");
137
+ }
138
+ else {
139
+ const pos = ((len - index) - 1) | 0;
140
+ x.buf[i] = ((x.buf[i].slice(0, (pos - 1) + 1) + value) + x.buf[i].slice(pos + 1, x.buf[i].length));
141
+ }
142
+ }
85
143
  export function StringBuilder__Replace_Z766F94C0(x, oldValue, newValue) {
86
144
  for (let i = x.buf.length - 1; i >= 0; i--) {
87
145
  x.buf[i] = replace(x.buf[i], oldValue, newValue);
@@ -89,10 +147,8 @@ export function StringBuilder__Replace_Z766F94C0(x, oldValue, newValue) {
89
147
  return x;
90
148
  }
91
149
  export function StringBuilder__Replace_Z384F8060(x, oldValue, newValue) {
92
- for (let i = x.buf.length - 1; i >= 0; i--) {
93
- x.buf[i] = replace(x.buf[i], oldValue, newValue);
94
- }
95
- return x;
150
+ const str = replace(toString(x), oldValue, newValue);
151
+ return StringBuilder__Append_Z721C83C5(StringBuilder__Clear(x), str);
96
152
  }
97
153
  export function StringBuilder__get_Length(x) {
98
154
  let len = 0;
@@ -104,7 +160,3 @@ export function StringBuilder__get_Length(x) {
104
160
  export function StringBuilder__ToString_Z37302880(x, firstIndex, length) {
105
161
  return substring(toString(x), firstIndex, length);
106
162
  }
107
- export function StringBuilder__Clear(x) {
108
- clear(x.buf);
109
- return x;
110
- }
@@ -93,13 +93,16 @@ export interface ISet<T> {
93
93
  keys(): Iterable<T>;
94
94
  values(): Iterable<T>;
95
95
  }
96
- export interface IMap<K, V> {
97
- clear(): void;
96
+ export interface IMapOrWeakMap<K, V> {
98
97
  delete(key: K): boolean;
99
- forEach(callbackfn: (value: V, key: K, map: IMap<K, V>) => void, thisArg?: any): void;
100
98
  get(key: K): V | undefined;
101
99
  has(key: K): boolean;
100
+ set(key: K, value: V): IMapOrWeakMap<K, V>;
101
+ }
102
+ export interface IMap<K, V> extends IMapOrWeakMap<K, V> {
103
+ clear(): void;
102
104
  set(key: K, value: V): IMap<K, V>;
105
+ forEach(callbackfn: (value: V, key: K, map: IMap<K, V>) => void, thisArg?: any): void;
103
106
  readonly size: number;
104
107
  [Symbol.iterator](): Iterator<[K, V]>;
105
108
  entries(): Iterable<[K, V]>;
@@ -159,21 +159,10 @@ export function lazyFromValue(v) {
159
159
  return new Lazy(() => v);
160
160
  }
161
161
  export function padWithZeros(i, length) {
162
- let str = i.toString(10);
163
- while (str.length < length) {
164
- str = "0" + str;
165
- }
166
- return str;
162
+ return i.toString(10).padStart(length, "0");
167
163
  }
168
164
  export function padLeftAndRightWithZeros(i, lengthLeft, lengthRight) {
169
- let str = i.toString(10);
170
- while (str.length < lengthLeft) {
171
- str = "0" + str;
172
- }
173
- while (str.length < lengthRight) {
174
- str = str + "0";
175
- }
176
- return str;
165
+ return i.toString(10).padStart(lengthLeft, "0").padEnd(lengthRight, "0");
177
166
  }
178
167
  export function dateOffset(date) {
179
168
  const date1 = date;
@@ -0,0 +1,338 @@
1
+ // Type definitions for big.js 6.0
2
+ // Project: https://github.com/MikeMcl/big.js/
3
+ // Definitions by: Steve Ognibene <https://github.com/nycdotnet>
4
+ // Roman Nuritdinov (Ky6uk) <https://github.com/Ky6uk>
5
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
+
7
+ import { CustomNumeric } from "../Numeric.js";
8
+
9
+ export type BigSource = number | string | Big;
10
+
11
+ export const enum Comparison {
12
+ GT = 1,
13
+ EQ = 0,
14
+ LT = -1,
15
+ }
16
+
17
+ export const enum RoundingMode {
18
+ /**
19
+ * Rounds towards zero.
20
+ * I.e. truncate, no rounding.
21
+ */
22
+ RoundDown = 0,
23
+ /**
24
+ * Rounds towards nearest neighbour.
25
+ * If equidistant, rounds away from zero.
26
+ */
27
+ RoundHalfUp = 1,
28
+ /**
29
+ * Rounds towards nearest neighbour.
30
+ * If equidistant, rounds towards even neighbour.
31
+ */
32
+ RoundHalfEven = 2,
33
+ /**
34
+ * Rounds away from zero.
35
+ */
36
+ RoundUp = 3,
37
+ }
38
+
39
+ export interface BigConstructor {
40
+ /**
41
+ * Returns a new instance of a Big number object
42
+ *
43
+ * String values may be in exponential, as well as normal (non-exponential) notation.
44
+ * There is no limit to the number of digits of a string value (other than that of Javascript's maximum array size), but the largest recommended exponent magnitude is 1e+6.
45
+ * Infinity, NaN and hexadecimal literal strings, e.g. '0xff', are not valid.
46
+ * String values in octal literal form will be interpreted as decimals, e.g. '011' is 11, not 9.
47
+ *
48
+ * @throws `NaN` on an invalid value.
49
+ */
50
+ new (value: BigSource): Big;
51
+
52
+ /**
53
+ * Returns a new instance of a Big number object
54
+ *
55
+ * String values may be in exponential, as well as normal (non-exponential) notation.
56
+ * There is no limit to the number of digits of a string value (other than that of Javascript's maximum array size), but the largest recommended exponent magnitude is 1e+6.
57
+ * Infinity, NaN and hexadecimal literal strings, e.g. '0xff', are not valid.
58
+ * String values in octal literal form will be interpreted as decimals, e.g. '011' is 11, not 9.
59
+ *
60
+ * @throws `NaN` on an invalid value.
61
+ */
62
+ (value: BigSource): Big;
63
+
64
+ /**
65
+ * Create an additional Big number constructor
66
+ *
67
+ * Values created with the returned constructor will have a separate set of configuration values.
68
+ * This can be used to create Big objects with different DP and RM values.
69
+ * Big numbers created by different constructors can be used together in operations, and it is the DP and RM setting of the Big number that an operation is called upon that will apply.
70
+ * In the interest of memory efficiency, all Big number constructors share the same prototype object,
71
+ * so while the DP and RM (and any other own properties) of a constructor are isolated and untouchable by another, its prototype methods are not.
72
+ */
73
+ (): BigConstructor;
74
+
75
+ /**
76
+ * The maximum number of decimal places of the results of operations involving division.
77
+ * It is relevant only to the div and sqrt methods, and the pow method when the exponent is negative.
78
+ *
79
+ * 0 to 1e+6 inclusive
80
+ * Default value: 20
81
+ */
82
+ DP: number;
83
+ /**
84
+ * The rounding mode used in the above operations and by round, toExponential, toFixed and toPrecision.
85
+ * Default value: 1
86
+ */
87
+ RM: number;
88
+ /**
89
+ * The negative exponent value at and below which toString returns exponential notation.
90
+ *
91
+ * -1e+6 to 0 inclusive
92
+ * Default value: -7
93
+ */
94
+ NE: number;
95
+ /**
96
+ * The positive exponent value at and above which toString returns exponential notation.
97
+ *
98
+ * 0 to 1e+6 inclusive
99
+ * Default value: 21
100
+ */
101
+ PE: number;
102
+ }
103
+
104
+ export interface Big extends CustomNumeric {
105
+ /** Returns a Big number whose value is the absolute value, i.e. the magnitude, of this Big number. */
106
+ abs(): Big;
107
+ /**
108
+ * Returns a Big number whose value is the value of this Big number plus n - alias for .plus().
109
+ *
110
+ * @throws `NaN` if n is invalid.
111
+ */
112
+ add(n: BigSource): Big;
113
+ /**
114
+ * Compare the values.
115
+ *
116
+ * @throws `NaN` if n is invalid.
117
+ */
118
+ cmp(n: BigSource): Comparison;
119
+ /**
120
+ * Returns a Big number whose value is the value of this Big number divided by n.
121
+ *
122
+ * If the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.
123
+ *
124
+ * @throws `NaN` if n is invalid.
125
+ * @throws `±Infinity` on division by zero.
126
+ * @throws `NaN` on division of zero by zero.
127
+ */
128
+ div(n: BigSource): Big;
129
+ /**
130
+ * Returns true if the value of this Big equals the value of n, otherwise returns false.
131
+ *
132
+ * @throws `NaN` if n is invalid.
133
+ */
134
+ eq(n: BigSource): boolean;
135
+ /**
136
+ * Returns true if the value of this Big is greater than the value of n, otherwise returns false.
137
+ *
138
+ * @throws `NaN` if n is invalid.
139
+ */
140
+ gt(n: BigSource): boolean;
141
+ /**
142
+ * Returns true if the value of this Big is greater than or equal to the value of n, otherwise returns false.
143
+ *
144
+ * @throws `NaN` if n is invalid.
145
+ */
146
+ gte(n: BigSource): boolean;
147
+ /**
148
+ * Returns true if the value of this Big is less than the value of n, otherwise returns false.
149
+ *
150
+ * @throws `NaN` if n is invalid.
151
+ */
152
+ lt(n: BigSource): boolean;
153
+ /**
154
+ * Returns true if the value of this Big is less than or equal to the value of n, otherwise returns false.
155
+ *
156
+ * @throws `NaN` if n is invalid.
157
+ */
158
+ lte(n: BigSource): boolean;
159
+ /**
160
+ * Returns a Big number whose value is the value of this Big number minus n.
161
+ *
162
+ * @throws `NaN` if n is invalid.
163
+ */
164
+ minus(n: BigSource): Big;
165
+ /**
166
+ * Returns a Big number whose value is the value of this Big number modulo n, i.e. the integer remainder of dividing this Big number by n.
167
+ *
168
+ * The result will have the same sign as this Big number, and it will match that of Javascript's % operator (within the limits of its precision) and BigDecimal's remainder method.
169
+ *
170
+ * @throws `NaN` if n is negative or otherwise invalid.
171
+ */
172
+ mod(n: BigSource): Big;
173
+ /**
174
+ * Returns a Big number whose value is the value of this Big number times n - alias for .times().
175
+ *
176
+ * @throws `NaN` if n is invalid.
177
+ */
178
+ mul(n: BigSource): Big;
179
+ /**
180
+ * Returns a Big number whose value is the value of this Big number plus n.
181
+ *
182
+ * @throws `NaN` if n is invalid.
183
+ */
184
+ plus(n: BigSource): Big;
185
+ /**
186
+ * Returns a Big number whose value is the value of this Big number raised to the power exp.
187
+ *
188
+ * If exp is negative and the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.
189
+ *
190
+ * @param exp The power to raise the number to, -1e+6 to 1e+6 inclusive
191
+ * @throws `!pow!` if exp is invalid.
192
+ *
193
+ * Note: High value exponents may cause this method to be slow to return.
194
+ */
195
+ pow(exp: number): Big;
196
+ /**
197
+ * Returns a Big number whose value is the value of this Big number rounded using rounding mode rm to a maximum of dp decimal places.
198
+ *
199
+ * @param dp Decimal places, 0 to 1e+6 inclusive
200
+ * @param rm The rounding mode, one of the RoundingMode enumeration values
201
+ * @throws `!round!` if dp is invalid.
202
+ * @throws `!Big.RM!` if rm is invalid.
203
+ */
204
+ round(dp?: number, rm?: RoundingMode): Big;
205
+ /**
206
+ * Returns a Big number whose value is the square root of this Big number.
207
+ *
208
+ * If the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.
209
+ *
210
+ * @throws `NaN` if this Big number is negative.
211
+ */
212
+ sqrt(): Big;
213
+ /**
214
+ * Returns a Big number whose value is the value of this Big number minus n - alias for .minus().
215
+ *
216
+ * @throws `NaN` if n is invalid.
217
+ */
218
+ sub(n: BigSource): Big;
219
+ /**
220
+ * Returns a Big number whose value is the value of this Big number times n.
221
+ *
222
+ * @throws `NaN` if n is invalid.
223
+ */
224
+ times(n: BigSource): Big;
225
+ /**
226
+ * Returns a string representing the value of this Big number in exponential notation to a fixed number of decimal places dp.
227
+ *
228
+ * If the value of this Big number in exponential notation has more digits to the right of the decimal point than is specified by dp,
229
+ * the return value will be rounded to dp decimal places using rounding mode Big.RM.
230
+ *
231
+ * If the value of this Big number in exponential notation has fewer digits to the right of the decimal point than is specified by dp, the return value will be appended with zeros accordingly.
232
+ *
233
+ * If dp is omitted, or is null or undefined, the number of digits after the decimal point defaults to the minimum number of digits necessary to represent the value exactly.
234
+ *
235
+ * @param dp Decimal places, 0 to 1e+6 inclusive
236
+ * @throws `!toFix!` if dp is invalid.
237
+ */
238
+ toExponential(dp?: number): string;
239
+ /**
240
+ * Returns a string representing the value of this Big number in normal notation to a fixed number of decimal places dp.
241
+ *
242
+ * If the value of this Big number in normal notation has more digits to the right of the decimal point than is specified by dp,
243
+ * the return value will be rounded to dp decimal places using rounding mode Big.RM.
244
+ *
245
+ * If the value of this Big number in normal notation has fewer fraction digits then is specified by dp, the return value will be appended with zeros accordingly.
246
+ *
247
+ * Unlike Number.prototype.toFixed, which returns exponential notation if a number is greater or equal to 1021, this method will always return normal notation.
248
+ *
249
+ * If dp is omitted, or is null or undefined, then the return value is simply the value in normal notation.
250
+ * This is also unlike Number.prototype.toFixed, which returns the value to zero decimal places.
251
+ *
252
+ * @param dp Decimal places, 0 to 1e+6 inclusive
253
+ * @throws `!toFix!` if dp is invalid.
254
+ */
255
+ toFixed(dp?: number): string;
256
+ /**
257
+ * Returns a string representing the value of this Big number to the specified number of significant digits sd.
258
+ *
259
+ * If the value of this Big number has more digits than is specified by sd, the return value will be rounded to sd significant digits using rounding mode Big.RM.
260
+ *
261
+ * If the value of this Big number has fewer digits than is specified by sd, the return value will be appended with zeros accordingly.
262
+ *
263
+ * If sd is less than the number of digits necessary to represent the integer part of the value in normal notation, then exponential notation is used.
264
+ *
265
+ * If sd is omitted, or is null or undefined, then the return value is the same as .toString().
266
+ *
267
+ * @param sd Significant digits, 1 to 1e+6 inclusive
268
+ * @throws `!toPre!` if sd is invalid.
269
+ */
270
+ toPrecision(sd?: number): string;
271
+ /**
272
+ * Returns a string representing the value of this Big number.
273
+ *
274
+ * If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned.
275
+ *
276
+ * The point at which toString returns exponential rather than normal notation can be adjusted by changing
277
+ * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard.
278
+ */
279
+ toString(): string;
280
+ /**
281
+ * Returns a primitive number representing the value of this Big number.
282
+ *
283
+ * If Big.strict is true an error will be thrown if toNumber is called on a Big number which cannot be converted to a primitive number without a loss of precision.
284
+ *
285
+ * @since 6.0
286
+ */
287
+ toNumber(): number;
288
+ /**
289
+ * Returns a string representing the value of this Big number.
290
+ *
291
+ * If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned.
292
+ *
293
+ * The point at which toString returns exponential rather than normal notation can be adjusted by changing
294
+ * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard.
295
+ */
296
+ valueOf(): string;
297
+ /**
298
+ * Returns a string representing the value of this Big number.
299
+ *
300
+ * If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned.
301
+ *
302
+ * The point at which toString returns exponential rather than normal notation can be adjusted by changing
303
+ * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard.
304
+ */
305
+ toJSON(): string;
306
+ /**
307
+ * Returns an array of single digits
308
+ */
309
+ c: number[];
310
+ /**
311
+ * Returns the exponent, Integer, -1e+6 to 1e+6 inclusive
312
+ */
313
+ e: number;
314
+ /**
315
+ * Returns the sign, -1 or 1
316
+ */
317
+ s: number;
318
+ }
319
+
320
+ // We want the exported symbol 'Big' to represent two things:
321
+ // - The Big interface, when used in a type context.
322
+ // - The BigConstructor instance, when used in a value context.
323
+ export const Big: BigConstructor;
324
+
325
+ // The default export is the same as type/value combo symbol 'Big'.
326
+ export default Big;
327
+
328
+ // If you pull in big.js via a <script> tag, the global symbol 'Big' is automatically defined.
329
+ // To let TypeScript know that, add this to your project's global types file, e.g. "types.d.ts":
330
+ //
331
+ // import BigJs from 'big.js';
332
+ // declare global {
333
+ // const Big = BigJs;
334
+ // type Big = BigJs;
335
+ // }
336
+ //
337
+ // There is a way to have TypeScript know to do this automatically (using "export as namespace"),
338
+ // but I couldn't get it working correctly.
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "sideEffects": false,
3
+ "private": false,
3
4
  "type": "module",
4
- "name": "fable-library",
5
- "version": "1.1.1",
5
+ "name": "@fable-org/fable-library-js",
6
+ "version": "1.4.0",
6
7
  "description": "Core library used by F# projects compiled with fable.io",
7
8
  "author": "Fable Contributors",
8
9
  "license": "MIT",
@@ -20,4 +21,4 @@
20
21
  "fsharp",
21
22
  "F#"
22
23
  ]
23
- }
24
+ }