@nfdi4plants/arctrl 3.0.0-beta.5 → 3.0.0-beta.7
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.
- package/dist/ts/index.d.ts +1 -0
- package/dist/ts/index.d.ts.map +1 -1
- package/dist/ts/index.js +1 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +894 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +121 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +279 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +101 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Choice.js +187 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +156 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +183 -7
- package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +217 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +154 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +20 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Collections.js +30 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +68 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +6 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +98 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +18 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +601 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +10 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +760 -16
- package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +18 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +36 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +35 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +355 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +21 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +133 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +543 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +53 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +673 -41
- package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +197 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +128 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/SystemException.js +8 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/TimeSpan.js +180 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +20 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +406 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +2 -2
- package/dist/ts/ts/ARC.d.ts +12 -5
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +172 -93
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +8 -1
- package/dist/ts/ts/Contract/ArcAssay.js +14 -5
- package/dist/ts/ts/Contract/ArcInvestigation.js +10 -1
- package/dist/ts/ts/Contract/ArcRun.js +19 -6
- package/dist/ts/ts/Contract/ArcStudy.js +19 -6
- package/dist/ts/ts/Contract/ArcWorkflow.js +19 -6
- package/dist/ts/ts/Contract/Contract.js +42 -1
- package/dist/ts/ts/Contract/Datamap.js +61 -17
- package/dist/ts/ts/Contract/Git.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Git.js +22 -6
- package/dist/ts/ts/Contract/License.d.ts +5 -0
- package/dist/ts/ts/Contract/License.d.ts.map +1 -0
- package/dist/ts/ts/Contract/License.js +34 -0
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +31 -6
- package/dist/ts/ts/ContractIO/ContractIO.js +5 -5
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +16 -4
- package/dist/ts/ts/Conversion.js +321 -48
- package/dist/ts/ts/Core/ArcTypes.js +216 -15
- package/dist/ts/ts/Core/Comment.js +11 -1
- package/dist/ts/ts/Core/CommentList.js +77 -2
- package/dist/ts/ts/Core/Conversion.js +123 -43
- package/dist/ts/ts/Core/Data.js +9 -2
- package/dist/ts/ts/Core/DataContext.js +19 -4
- package/dist/ts/ts/Core/DataFile.js +38 -1
- package/dist/ts/ts/Core/DataMap.js +111 -5
- package/dist/ts/ts/Core/Helper/Collections.js +106 -5
- package/dist/ts/ts/Core/Helper/HashCodes.js +4 -4
- package/dist/ts/ts/Core/Helper/Identifier.js +100 -2
- package/dist/ts/ts/Core/Helper/Regex.js +134 -2
- package/dist/ts/ts/Core/Helper/SemVer.js +23 -2
- package/dist/ts/ts/Core/IdentifierSetters.js +27 -3
- package/dist/ts/ts/Core/OntologyAnnotation.js +4 -1
- package/dist/ts/ts/Core/OntologySourceReference.js +8 -1
- package/dist/ts/ts/Core/Person.js +8 -1
- package/dist/ts/ts/Core/Process/ColumnIndex.js +121 -4
- package/dist/ts/ts/Core/Process/Component.js +37 -4
- package/dist/ts/ts/Core/Process/Factor.js +9 -4
- package/dist/ts/ts/Core/Process/FactorValue.js +61 -4
- package/dist/ts/ts/Core/Process/Material.js +14 -4
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +41 -3
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +67 -4
- package/dist/ts/ts/Core/Process/MaterialType.js +15 -1
- package/dist/ts/ts/Core/Process/Process.js +150 -7
- package/dist/ts/ts/Core/Process/ProcessInput.js +48 -8
- package/dist/ts/ts/Core/Process/ProcessOutput.js +44 -7
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +10 -5
- package/dist/ts/ts/Core/Process/ProcessSequence.js +127 -6
- package/dist/ts/ts/Core/Process/Protocol.js +78 -4
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -2
- package/dist/ts/ts/Core/Process/Sample.js +21 -3
- package/dist/ts/ts/Core/Process/Source.js +13 -3
- package/dist/ts/ts/Core/Publication.js +8 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +34 -25
- package/dist/ts/ts/Core/Table/ArcTableAux.js +150 -23
- package/dist/ts/ts/Core/Table/ArcTables.js +24 -15
- package/dist/ts/ts/Core/Table/CompositeCell.js +7 -3
- package/dist/ts/ts/Core/Table/CompositeColumn.js +8 -4
- package/dist/ts/ts/Core/Table/CompositeHeader.js +18 -15
- package/dist/ts/ts/Core/Template.js +12 -2
- package/dist/ts/ts/Core/Templates.js +8 -4
- package/dist/ts/ts/Core/Value.js +7 -3
- package/dist/ts/ts/CrossAsync.js +11 -1
- package/dist/ts/ts/FileSystem/Commit.js +18 -0
- package/dist/ts/ts/FileSystem/FileSystem.js +8 -3
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +1 -0
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -13
- package/dist/ts/ts/FileSystem/Path.d.ts +2 -0
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +17 -3
- package/dist/ts/ts/Json/Assay.js +26 -26
- package/dist/ts/ts/Json/Comment.js +10 -10
- package/dist/ts/ts/Json/Data.js +6 -6
- package/dist/ts/ts/Json/DataMap/DataContext.js +4 -4
- package/dist/ts/ts/Json/DataMap/DataMap.js +2 -2
- package/dist/ts/ts/Json/Decode.js +14 -9
- package/dist/ts/ts/Json/Encode.js +43 -11
- package/dist/ts/ts/Json/Investigation.js +40 -22
- package/dist/ts/ts/Json/OntologyAnnotation.js +5 -5
- package/dist/ts/ts/Json/OntologySourceReference.js +2 -2
- package/dist/ts/ts/Json/Person.js +26 -26
- package/dist/ts/ts/Json/Process/Component.js +9 -6
- package/dist/ts/ts/Json/Process/Factor.js +3 -3
- package/dist/ts/ts/Json/Process/FactorValue.js +8 -8
- package/dist/ts/ts/Json/Process/Material.js +9 -9
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +8 -8
- package/dist/ts/ts/Json/Process/Process.js +12 -12
- package/dist/ts/ts/Json/Process/ProcessInput.js +4 -4
- package/dist/ts/ts/Json/Process/ProcessOutput.js +3 -3
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +10 -7
- package/dist/ts/ts/Json/Process/Protocol.js +12 -12
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +3 -3
- package/dist/ts/ts/Json/Process/Sample.js +14 -14
- package/dist/ts/ts/Json/Process/Source.js +9 -9
- package/dist/ts/ts/Json/Process/Value.js +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +1 -1
- package/dist/ts/ts/Json/Publication.js +6 -6
- package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -0
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +3 -3
- package/dist/ts/ts/Json/ROCrate/LDNode.js +19 -19
- package/dist/ts/ts/Json/Run.js +7 -7
- package/dist/ts/ts/Json/StringTable.js +1 -1
- package/dist/ts/ts/Json/Study.js +32 -32
- package/dist/ts/ts/Json/Table/ArcTable.js +29 -29
- package/dist/ts/ts/Json/Table/CellTable.js +6 -6
- package/dist/ts/ts/Json/Table/CompositeCell.js +4 -4
- package/dist/ts/ts/Json/Table/CompositeHeader.js +2 -2
- package/dist/ts/ts/Json/Table/IOType.js +1 -1
- package/dist/ts/ts/Json/Table/OATable.js +7 -7
- package/dist/ts/ts/Json/Table/Templates.js +92 -6
- package/dist/ts/ts/Json/Workflow.js +11 -11
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +17 -1
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +18 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +16 -1
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +25 -1
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +24 -1
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +23 -1
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +35 -1
- package/dist/ts/ts/Json/context/rocrate/rocrate_context.js +61 -0
- package/dist/ts/ts/Json.d.ts +23 -1
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +112 -2
- package/dist/ts/ts/JsonIO/Assay.js +15 -3
- package/dist/ts/ts/JsonIO/Datamap.d.ts +7 -0
- package/dist/ts/ts/JsonIO/Datamap.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Datamap.js +28 -0
- package/dist/ts/ts/JsonIO/Investigation.js +15 -3
- package/dist/ts/ts/JsonIO/LDObject.js +17 -3
- package/dist/ts/ts/JsonIO/OntologyAnnotation.js +12 -2
- package/dist/ts/ts/JsonIO/Person.d.ts +16 -0
- package/dist/ts/ts/JsonIO/Person.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Person.js +67 -0
- package/dist/ts/ts/JsonIO/Run.js +9 -3
- package/dist/ts/ts/JsonIO/Study.js +15 -3
- package/dist/ts/ts/JsonIO/Table/Compression.js +3 -3
- package/dist/ts/ts/JsonIO/Table/Templates.js +60 -5
- package/dist/ts/ts/JsonIO/Workflow.js +9 -3
- package/dist/ts/ts/License.d.ts +39 -0
- package/dist/ts/ts/License.d.ts.map +1 -0
- package/dist/ts/ts/License.js +123 -0
- package/dist/ts/ts/ROCrate/Generic/Comment.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts +69 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.js +450 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts +1 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/Generic/Dataset.js +27 -1
- package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/File.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProcess.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Organization.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Person.js +7 -2
- package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +19 -15
- package/dist/ts/ts/ROCrate/Generic/Sample.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +5 -1
- package/dist/ts/ts/ROCrate/LDContext.js +15 -6
- package/dist/ts/ts/ROCrate/LDObject.js +53 -17
- package/dist/ts/ts/ROCrateIO.d.ts +9 -3
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +67 -14
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +18 -15
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +5 -4
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +40 -17
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +30 -15
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +32 -18
- package/dist/ts/ts/Spreadsheet/ArcRun.js +23 -8
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +22 -7
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +23 -8
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +75 -5
- package/dist/ts/ts/Spreadsheet/DataMap.js +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +4 -4
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +8 -8
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
- package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +6 -3
- package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +9 -3
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -4
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +7 -5
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +10 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +246 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +19 -13
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
- package/dist/ts/ts/Template.Web.js +5 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackage.js +8 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +10 -3
- package/dist/ts/ts/WebRequest/WebRequest.Node.js +1 -0
- package/dist/ts/ts/Xlsx.js +41 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +18 -2
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -2
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +27 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +14 -3
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +30 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +5 -1
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +65 -2
- package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +257 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +71 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +11 -1
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +188 -11
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +80 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +63 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +17 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/CellBuilder.fs.js +198 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Expression.fs.js +46 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/RowBuilder.fs.js +131 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Types.fs.js +307 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +38 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +11 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +14 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +31 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Cell.fs.js +65 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Column.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Row.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Table.fs.js +34 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +49 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Workbook.fs.js +44 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Worksheet.fs.js +129 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +17 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +42 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Json.fs.js +53 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +9 -9
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +1 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +5 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +730 -23
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +192 -7
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +45 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +15 -2
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +1383 -15
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +45 -4
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +10 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +5 -5
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +16 -6
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +26 -23
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +1 -1
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +8 -8
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +18 -2
- package/package.json +1 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.js +0 -3
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitignore.js +0 -3
|
@@ -1,12 +1,104 @@
|
|
|
1
1
|
import { toString } from './Date.js';
|
|
2
|
-
import { isNumeric, multiply,
|
|
2
|
+
import { compare as compare$1, isNumeric, multiply, toHex, toExponential, toPrecision, toFixed } from './Numeric.js';
|
|
3
3
|
import { escape } from './RegExp.js';
|
|
4
4
|
import { toString as toString$1 } from './Types.js';
|
|
5
5
|
|
|
6
6
|
const fsFormatRegExp = /(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g;
|
|
7
|
+
const interpolateRegExp = /(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g;
|
|
7
8
|
const formatRegExp = /\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;
|
|
8
9
|
function isLessThan(x, y) {
|
|
9
|
-
return compare(x, y) < 0;
|
|
10
|
+
return compare$1(x, y) < 0;
|
|
11
|
+
}
|
|
12
|
+
function cmp(x, y, ic) {
|
|
13
|
+
function isIgnoreCase(i) {
|
|
14
|
+
return i === true ||
|
|
15
|
+
i === 1 /* StringComparison.CurrentCultureIgnoreCase */ ||
|
|
16
|
+
i === 3 /* StringComparison.InvariantCultureIgnoreCase */ ||
|
|
17
|
+
i === 5 /* StringComparison.OrdinalIgnoreCase */;
|
|
18
|
+
}
|
|
19
|
+
function isOrdinal(i) {
|
|
20
|
+
return i === 4 /* StringComparison.Ordinal */ ||
|
|
21
|
+
i === 5 /* StringComparison.OrdinalIgnoreCase */;
|
|
22
|
+
}
|
|
23
|
+
if (x == null) {
|
|
24
|
+
return y == null ? 0 : -1;
|
|
25
|
+
}
|
|
26
|
+
if (y == null) {
|
|
27
|
+
return 1;
|
|
28
|
+
} // everything is bigger than null
|
|
29
|
+
if (isOrdinal(ic)) {
|
|
30
|
+
if (isIgnoreCase(ic)) {
|
|
31
|
+
x = x.toLowerCase();
|
|
32
|
+
y = y.toLowerCase();
|
|
33
|
+
}
|
|
34
|
+
return (x === y) ? 0 : (x < y ? -1 : 1);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
if (isIgnoreCase(ic)) {
|
|
38
|
+
x = x.toLocaleLowerCase();
|
|
39
|
+
y = y.toLocaleLowerCase();
|
|
40
|
+
}
|
|
41
|
+
return x.localeCompare(y);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function compare(...args) {
|
|
45
|
+
switch (args.length) {
|
|
46
|
+
case 2: return cmp(args[0], args[1], false);
|
|
47
|
+
case 3: return cmp(args[0], args[1], args[2]);
|
|
48
|
+
case 4: return cmp(args[0], args[1], args[2] === true);
|
|
49
|
+
case 5: return cmp(args[0].substr(args[1], args[4]), args[2].substr(args[3], args[4]), false);
|
|
50
|
+
case 6: return cmp(args[0].substr(args[1], args[4]), args[2].substr(args[3], args[4]), args[5]);
|
|
51
|
+
case 7: return cmp(args[0].substr(args[1], args[4]), args[2].substr(args[3], args[4]), args[5] === true);
|
|
52
|
+
default: throw new Error("String.compare: Unsupported number of parameters");
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function compareOrdinal(x, y) {
|
|
56
|
+
return cmp(x, y, 4 /* StringComparison.Ordinal */);
|
|
57
|
+
}
|
|
58
|
+
function compareTo(x, y) {
|
|
59
|
+
return cmp(x, y, 0 /* StringComparison.CurrentCulture */);
|
|
60
|
+
}
|
|
61
|
+
function startsWith(str, pattern, ic) {
|
|
62
|
+
if (ic === 4 /* StringComparison.Ordinal */) { // to avoid substring allocation
|
|
63
|
+
return str.startsWith(pattern);
|
|
64
|
+
}
|
|
65
|
+
if (str.length >= pattern.length) {
|
|
66
|
+
return cmp(str.substr(0, pattern.length), pattern, ic) === 0;
|
|
67
|
+
}
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
function endsWith(str, pattern, ic) {
|
|
71
|
+
if (ic === 4 /* StringComparison.Ordinal */) { // to avoid substring allocation
|
|
72
|
+
return str.endsWith(pattern);
|
|
73
|
+
}
|
|
74
|
+
if (str.length >= pattern.length) {
|
|
75
|
+
return cmp(str.substr(str.length - pattern.length, pattern.length), pattern, ic) === 0;
|
|
76
|
+
}
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
function indexOfAny(str, anyOf, ...args) {
|
|
80
|
+
if (str == null || str === "") {
|
|
81
|
+
return -1;
|
|
82
|
+
}
|
|
83
|
+
const startIndex = (args.length > 0) ? args[0] : 0;
|
|
84
|
+
if (startIndex < 0) {
|
|
85
|
+
throw new Error("Start index cannot be negative");
|
|
86
|
+
}
|
|
87
|
+
const length = (args.length > 1) ? args[1] : str.length - startIndex;
|
|
88
|
+
if (length < 0) {
|
|
89
|
+
throw new Error("Length cannot be negative");
|
|
90
|
+
}
|
|
91
|
+
if (startIndex + length > str.length) {
|
|
92
|
+
throw new Error("Invalid startIndex and length");
|
|
93
|
+
}
|
|
94
|
+
const endIndex = startIndex + length;
|
|
95
|
+
const anyOfAsStr = "".concat.apply("", anyOf);
|
|
96
|
+
for (let i = startIndex; i < endIndex; i++) {
|
|
97
|
+
if (anyOfAsStr.indexOf(str[i]) > -1) {
|
|
98
|
+
return i;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return -1;
|
|
10
102
|
}
|
|
11
103
|
function printf(input) {
|
|
12
104
|
return {
|
|
@@ -14,6 +106,29 @@ function printf(input) {
|
|
|
14
106
|
cont: fsFormat(input),
|
|
15
107
|
};
|
|
16
108
|
}
|
|
109
|
+
function interpolate(str, values) {
|
|
110
|
+
let valIdx = 0;
|
|
111
|
+
let strIdx = 0;
|
|
112
|
+
let result = "";
|
|
113
|
+
interpolateRegExp.lastIndex = 0;
|
|
114
|
+
let match = interpolateRegExp.exec(str);
|
|
115
|
+
while (match) {
|
|
116
|
+
// The first group corresponds to the no-escape char (^|[^%]), the actual pattern starts in the next char
|
|
117
|
+
// Note: we don't use negative lookbehind because some browsers don't support it yet
|
|
118
|
+
const matchIndex = match.index + (match[1] || "").length;
|
|
119
|
+
result += str.substring(strIdx, matchIndex).replace(/%%/g, "%");
|
|
120
|
+
const [, , flags, padLength, precision, format] = match;
|
|
121
|
+
// Save interpolateRegExp.lastIndex before running formatReplacement because the values
|
|
122
|
+
// may also involve interpolation and make use of interpolateRegExp (see #3078)
|
|
123
|
+
strIdx = interpolateRegExp.lastIndex;
|
|
124
|
+
result += formatReplacement(values[valIdx++], flags, padLength, precision, format);
|
|
125
|
+
// Move interpolateRegExp.lastIndex one char behind to make sure we match the no-escape char next time
|
|
126
|
+
interpolateRegExp.lastIndex = strIdx - 1;
|
|
127
|
+
match = interpolateRegExp.exec(str);
|
|
128
|
+
}
|
|
129
|
+
result += str.substring(strIdx).replace(/%%/g, "%");
|
|
130
|
+
return result;
|
|
131
|
+
}
|
|
17
132
|
function continuePrint(cont, arg) {
|
|
18
133
|
return typeof arg === "string" ? cont(arg) : arg.cont(cont);
|
|
19
134
|
}
|
|
@@ -21,6 +136,9 @@ function toConsole(arg) {
|
|
|
21
136
|
// Don't remove the lambda here, see #1357
|
|
22
137
|
return continuePrint((x) => console.log(x), arg);
|
|
23
138
|
}
|
|
139
|
+
function toConsoleError(arg) {
|
|
140
|
+
return continuePrint((x) => console.error(x), arg);
|
|
141
|
+
}
|
|
24
142
|
function toText(arg) {
|
|
25
143
|
return continuePrint((x) => x, arg);
|
|
26
144
|
}
|
|
@@ -266,9 +384,21 @@ function initialize(n, f) {
|
|
|
266
384
|
}
|
|
267
385
|
return xs.join("");
|
|
268
386
|
}
|
|
387
|
+
function insert(str, startIndex, value) {
|
|
388
|
+
if (startIndex < 0 || startIndex > str.length) {
|
|
389
|
+
throw new Error("startIndex is negative or greater than the length of this instance.");
|
|
390
|
+
}
|
|
391
|
+
return str.substring(0, startIndex) + value + str.substring(startIndex);
|
|
392
|
+
}
|
|
269
393
|
function isNullOrEmpty(str) {
|
|
270
394
|
return typeof str !== "string" || str.length === 0;
|
|
271
395
|
}
|
|
396
|
+
function isNullOrWhiteSpace(str) {
|
|
397
|
+
return typeof str !== "string" || /^\s*$/.test(str);
|
|
398
|
+
}
|
|
399
|
+
function concat(...xs) {
|
|
400
|
+
return xs.map((x) => String(x)).join("");
|
|
401
|
+
}
|
|
272
402
|
function join(delimiter, xs) {
|
|
273
403
|
if (Array.isArray(xs)) {
|
|
274
404
|
return xs.join(delimiter);
|
|
@@ -277,6 +407,31 @@ function join(delimiter, xs) {
|
|
|
277
407
|
return Array.from(xs).join(delimiter);
|
|
278
408
|
}
|
|
279
409
|
}
|
|
410
|
+
function joinWithIndices(delimiter, xs, startIndex, count) {
|
|
411
|
+
const endIndexPlusOne = startIndex + count;
|
|
412
|
+
if (endIndexPlusOne > xs.length) {
|
|
413
|
+
throw new Error("Index and count must refer to a location within the buffer.");
|
|
414
|
+
}
|
|
415
|
+
return xs.slice(startIndex, endIndexPlusOne).join(delimiter);
|
|
416
|
+
}
|
|
417
|
+
function notSupported(name) {
|
|
418
|
+
throw new Error("The environment doesn't support '" + name + "', please use a polyfill.");
|
|
419
|
+
}
|
|
420
|
+
function toBase64String(inArray) {
|
|
421
|
+
let str = "";
|
|
422
|
+
for (let i = 0; i < inArray.length; i++) {
|
|
423
|
+
str += String.fromCharCode(inArray[i]);
|
|
424
|
+
}
|
|
425
|
+
return typeof btoa === "function" ? btoa(str) : notSupported("btoa");
|
|
426
|
+
}
|
|
427
|
+
function fromBase64String(b64Encoded) {
|
|
428
|
+
const binary = typeof atob === "function" ? atob(b64Encoded) : notSupported("atob");
|
|
429
|
+
const bytes = new Uint8Array(binary.length);
|
|
430
|
+
for (let i = 0; i < binary.length; i++) {
|
|
431
|
+
bytes[i] = binary.charCodeAt(i);
|
|
432
|
+
}
|
|
433
|
+
return bytes;
|
|
434
|
+
}
|
|
280
435
|
function pad(str, len, ch, isRight) {
|
|
281
436
|
ch = ch || " ";
|
|
282
437
|
len = len - str.length;
|
|
@@ -291,9 +446,27 @@ function padLeft(str, len, ch) {
|
|
|
291
446
|
function padRight(str, len, ch) {
|
|
292
447
|
return pad(str, len, ch, true);
|
|
293
448
|
}
|
|
449
|
+
function remove(str, startIndex, count) {
|
|
450
|
+
if (startIndex >= str.length) {
|
|
451
|
+
throw new Error("startIndex must be less than length of string");
|
|
452
|
+
}
|
|
453
|
+
if (typeof count === "number" && (startIndex + count) > str.length) {
|
|
454
|
+
throw new Error("Index and count must refer to a location within the string.");
|
|
455
|
+
}
|
|
456
|
+
return str.slice(0, startIndex) + (typeof count === "number" ? str.substr(startIndex + count) : "");
|
|
457
|
+
}
|
|
294
458
|
function replace(str, search, replace) {
|
|
295
459
|
return str.replace(new RegExp(escape(search), "g"), replace);
|
|
296
460
|
}
|
|
461
|
+
function replicate(n, x) {
|
|
462
|
+
return initialize(n, () => x);
|
|
463
|
+
}
|
|
464
|
+
function getCharAtIndex(input, index) {
|
|
465
|
+
if (index < 0 || index >= input.length) {
|
|
466
|
+
throw new Error("Index was outside the bounds of the array.");
|
|
467
|
+
}
|
|
468
|
+
return input[index];
|
|
469
|
+
}
|
|
297
470
|
function split(str, splitters, count, options) {
|
|
298
471
|
count = typeof count === "number" ? count : undefined;
|
|
299
472
|
options = typeof options === "number" ? options : 0;
|
|
@@ -354,11 +527,31 @@ function trimEnd(str, ...chars) {
|
|
|
354
527
|
? str.trimEnd()
|
|
355
528
|
: str.replace(new RegExp("[" + escape(chars.join("")) + "]+$"), "");
|
|
356
529
|
}
|
|
530
|
+
function filter(pred, x) {
|
|
531
|
+
return x.split("").filter((c) => pred(c)).join("");
|
|
532
|
+
}
|
|
357
533
|
function substring(str, startIndex, length) {
|
|
358
|
-
if ((startIndex + (0) > str.length)) {
|
|
534
|
+
if ((startIndex + (length || 0) > str.length)) {
|
|
359
535
|
throw new Error("Invalid startIndex and/or length");
|
|
360
536
|
}
|
|
361
537
|
return length != null ? str.substr(startIndex, length) : str.substr(startIndex);
|
|
362
538
|
}
|
|
539
|
+
function toCharArray2(str, startIndex, length) {
|
|
540
|
+
return substring(str, startIndex, length).split("");
|
|
541
|
+
}
|
|
542
|
+
function fmt(strs, ...args) {
|
|
543
|
+
return ({ strs, args });
|
|
544
|
+
}
|
|
545
|
+
function fmtWith(fmts) {
|
|
546
|
+
return (strs, ...args) => ({ strs, args, fmts });
|
|
547
|
+
}
|
|
548
|
+
function getFormat(s) {
|
|
549
|
+
const strs = s.strs.map((value) => value.replace(/{/g, '{{').replace(/}/g, '}}'));
|
|
550
|
+
return s.fmts
|
|
551
|
+
? strs
|
|
552
|
+
.reduce((acc, newPart, index) => acc + `{${String(index - 1) + s.fmts[index - 1]}}` + newPart)
|
|
553
|
+
: strs
|
|
554
|
+
.reduce((acc, newPart, index) => acc + `{${index - 1}}` + newPart);
|
|
555
|
+
}
|
|
363
556
|
|
|
364
|
-
export { format, fsFormat, initialize, isNullOrEmpty, join, padLeft, padRight, printf, replace, split, substring, toConsole, toFail, toText, trim, trimEnd, trimStart };
|
|
557
|
+
export { compare, compareOrdinal, compareTo, concat, endsWith, filter, fmt, fmtWith, format, fromBase64String, fsFormat, getCharAtIndex, getFormat, indexOfAny, initialize, insert, interpolate, isNullOrEmpty, isNullOrWhiteSpace, join, joinWithIndices, padLeft, padRight, printf, remove, replace, replicate, split, startsWith, substring, toBase64String, toCharArray2, toConsole, toConsoleError, toFail, toText, trim, trimEnd, trimStart };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { isNullOrEmpty, join } from './String.js';
|
|
2
|
-
import {
|
|
1
|
+
import { isNullOrEmpty, join, substring, format, replace } from './String.js';
|
|
2
|
+
import { class_type } from './Reflection.js';
|
|
3
|
+
import { int32ToString, clear } from './Util.js';
|
|
4
|
+
import { toString } from './Types.js';
|
|
3
5
|
|
|
4
6
|
class StringBuilder {
|
|
5
7
|
constructor(value, capacity) {
|
|
@@ -13,9 +15,18 @@ class StringBuilder {
|
|
|
13
15
|
return join("", _.buf);
|
|
14
16
|
}
|
|
15
17
|
}
|
|
18
|
+
function StringBuilder_$reflection() {
|
|
19
|
+
return class_type("System.Text.StringBuilder", undefined, StringBuilder);
|
|
20
|
+
}
|
|
16
21
|
function StringBuilder_$ctor_Z18115A39(value, capacity) {
|
|
17
22
|
return new StringBuilder(value, capacity);
|
|
18
23
|
}
|
|
24
|
+
function StringBuilder_$ctor_Z524259A4(capacity) {
|
|
25
|
+
return StringBuilder_$ctor_Z18115A39("", capacity);
|
|
26
|
+
}
|
|
27
|
+
function StringBuilder_$ctor_Z721C83C5(value) {
|
|
28
|
+
return StringBuilder_$ctor_Z18115A39(value, 16);
|
|
29
|
+
}
|
|
19
30
|
function StringBuilder_$ctor() {
|
|
20
31
|
return StringBuilder_$ctor_Z18115A39("", 16);
|
|
21
32
|
}
|
|
@@ -23,10 +34,74 @@ function StringBuilder__Append_Z721C83C5(x, s) {
|
|
|
23
34
|
void (x.buf.push(s));
|
|
24
35
|
return x;
|
|
25
36
|
}
|
|
37
|
+
function StringBuilder__Append_487EF8FB(x, s, startIndex, count) {
|
|
38
|
+
void (x.buf.push(substring(s, startIndex, count)));
|
|
39
|
+
return x;
|
|
40
|
+
}
|
|
26
41
|
function StringBuilder__Append_244C7CD6(x, c) {
|
|
27
42
|
void (x.buf.push(c));
|
|
28
43
|
return x;
|
|
29
44
|
}
|
|
45
|
+
function StringBuilder__Append_Z524259A4(x, o) {
|
|
46
|
+
void (x.buf.push(int32ToString(o)));
|
|
47
|
+
return x;
|
|
48
|
+
}
|
|
49
|
+
function StringBuilder__Append_5E38073B(x, o) {
|
|
50
|
+
void (x.buf.push(o.toString()));
|
|
51
|
+
return x;
|
|
52
|
+
}
|
|
53
|
+
function StringBuilder__Append_Z1FBCCD16(x, o) {
|
|
54
|
+
void (x.buf.push(toString(o)));
|
|
55
|
+
return x;
|
|
56
|
+
}
|
|
57
|
+
function StringBuilder__Append_4E60E31B(x, o) {
|
|
58
|
+
void (x.buf.push(toString(o)));
|
|
59
|
+
return x;
|
|
60
|
+
}
|
|
61
|
+
function StringBuilder__Append_Z372E4D23(x, cs) {
|
|
62
|
+
void (x.buf.push(cs.join('')));
|
|
63
|
+
return x;
|
|
64
|
+
}
|
|
65
|
+
function StringBuilder__Append_43A65C09(x, s) {
|
|
66
|
+
void (x.buf.push(toString(s)));
|
|
67
|
+
return x;
|
|
68
|
+
}
|
|
69
|
+
function StringBuilder__AppendFormat_433E080(x, fmt, o) {
|
|
70
|
+
void (x.buf.push(format(fmt, o)));
|
|
71
|
+
return x;
|
|
72
|
+
}
|
|
73
|
+
function StringBuilder__AppendFormat_Z3B30EC65(x, fmt, o1, o2) {
|
|
74
|
+
void (x.buf.push(format(fmt, o1, o2)));
|
|
75
|
+
return x;
|
|
76
|
+
}
|
|
77
|
+
function StringBuilder__AppendFormat_10D165E0(x, fmt, o1, o2, o3) {
|
|
78
|
+
void (x.buf.push(format(fmt, o1, o2, o3)));
|
|
79
|
+
return x;
|
|
80
|
+
}
|
|
81
|
+
function StringBuilder__AppendFormat_Z17053F5(x, fmt, arr) {
|
|
82
|
+
void (x.buf.push(format(fmt, ...arr)));
|
|
83
|
+
return x;
|
|
84
|
+
}
|
|
85
|
+
function StringBuilder__AppendFormat_Z696D8D1B(x, provider, fmt, o) {
|
|
86
|
+
void (x.buf.push(format(provider, fmt, o)));
|
|
87
|
+
return x;
|
|
88
|
+
}
|
|
89
|
+
function StringBuilder__AppendFormat_26802C9E(x, provider, fmt, o1, o2) {
|
|
90
|
+
void (x.buf.push(format(provider, fmt, o1, o2)));
|
|
91
|
+
return x;
|
|
92
|
+
}
|
|
93
|
+
function StringBuilder__AppendFormat_Z471ADCBB(x, provider, fmt, o1, o2, o3) {
|
|
94
|
+
void (x.buf.push(format(provider, fmt, o1, o2, o3)));
|
|
95
|
+
return x;
|
|
96
|
+
}
|
|
97
|
+
function StringBuilder__AppendFormat_6C2E3E6E(x, provider, fmt, arr) {
|
|
98
|
+
void (x.buf.push(format(provider, fmt, ...arr)));
|
|
99
|
+
return x;
|
|
100
|
+
}
|
|
101
|
+
function StringBuilder__AppendLine(x) {
|
|
102
|
+
void (x.buf.push("\n"));
|
|
103
|
+
return x;
|
|
104
|
+
}
|
|
30
105
|
function StringBuilder__AppendLine_Z721C83C5(x, s) {
|
|
31
106
|
void (x.buf.push(s));
|
|
32
107
|
void (x.buf.push("\n"));
|
|
@@ -36,5 +111,55 @@ function StringBuilder__Clear(x) {
|
|
|
36
111
|
clear(x.buf);
|
|
37
112
|
return x;
|
|
38
113
|
}
|
|
114
|
+
function StringBuilder__get_Chars_Z524259A4(x, index) {
|
|
115
|
+
let len = 0;
|
|
116
|
+
let i = -1;
|
|
117
|
+
while (((i + 1) < x.buf.length) && (len < index)) {
|
|
118
|
+
i = ((i + 1) | 0);
|
|
119
|
+
len = ((len + x.buf[i].length) | 0);
|
|
120
|
+
}
|
|
121
|
+
if (((index < 0) ? true : (i < 0)) ? true : (i >= x.buf.length)) {
|
|
122
|
+
throw new Error("Index was outside the bounds of the array");
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
const pos = ((len - index) - 1) | 0;
|
|
126
|
+
return x.buf[i][pos];
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
function StringBuilder__set_Chars_413E0D0A(x, index, value) {
|
|
130
|
+
let len = 0;
|
|
131
|
+
let i = -1;
|
|
132
|
+
while (((i + 1) < x.buf.length) && (len < index)) {
|
|
133
|
+
i = ((i + 1) | 0);
|
|
134
|
+
len = ((len + x.buf[i].length) | 0);
|
|
135
|
+
}
|
|
136
|
+
if (((index < 0) ? true : (i < 0)) ? true : (i >= x.buf.length)) {
|
|
137
|
+
throw new Error("Index was outside the bounds of the array");
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
const pos = ((len - index) - 1) | 0;
|
|
141
|
+
x.buf[i] = ((x.buf[i].slice(0, (pos - 1) + 1) + value) + x.buf[i].slice(pos + 1, x.buf[i].length));
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
function StringBuilder__Replace_Z766F94C0(x, oldValue, newValue) {
|
|
145
|
+
for (let i = x.buf.length - 1; i >= 0; i--) {
|
|
146
|
+
x.buf[i] = replace(x.buf[i], oldValue, newValue);
|
|
147
|
+
}
|
|
148
|
+
return x;
|
|
149
|
+
}
|
|
150
|
+
function StringBuilder__Replace_Z384F8060(x, oldValue, newValue) {
|
|
151
|
+
const str = replace(toString(x), oldValue, newValue);
|
|
152
|
+
return StringBuilder__Append_Z721C83C5(StringBuilder__Clear(x), str);
|
|
153
|
+
}
|
|
154
|
+
function StringBuilder__get_Length(x) {
|
|
155
|
+
let len = 0;
|
|
156
|
+
for (let i = x.buf.length - 1; i >= 0; i--) {
|
|
157
|
+
len = ((len + x.buf[i].length) | 0);
|
|
158
|
+
}
|
|
159
|
+
return len | 0;
|
|
160
|
+
}
|
|
161
|
+
function StringBuilder__ToString_Z37302880(x, firstIndex, length) {
|
|
162
|
+
return substring(toString(x), firstIndex, length);
|
|
163
|
+
}
|
|
39
164
|
|
|
40
|
-
export { StringBuilder, StringBuilder_$ctor, StringBuilder_$ctor_Z18115A39, StringBuilder__AppendLine_Z721C83C5, StringBuilder__Append_244C7CD6, StringBuilder__Append_Z721C83C5, StringBuilder__Clear };
|
|
165
|
+
export { StringBuilder, StringBuilder_$ctor, StringBuilder_$ctor_Z18115A39, StringBuilder_$ctor_Z524259A4, StringBuilder_$ctor_Z721C83C5, StringBuilder_$reflection, StringBuilder__AppendFormat_10D165E0, StringBuilder__AppendFormat_26802C9E, StringBuilder__AppendFormat_433E080, StringBuilder__AppendFormat_6C2E3E6E, StringBuilder__AppendFormat_Z17053F5, StringBuilder__AppendFormat_Z3B30EC65, StringBuilder__AppendFormat_Z471ADCBB, StringBuilder__AppendFormat_Z696D8D1B, StringBuilder__AppendLine, StringBuilder__AppendLine_Z721C83C5, StringBuilder__Append_244C7CD6, StringBuilder__Append_43A65C09, StringBuilder__Append_487EF8FB, StringBuilder__Append_4E60E31B, StringBuilder__Append_5E38073B, StringBuilder__Append_Z1FBCCD16, StringBuilder__Append_Z372E4D23, StringBuilder__Append_Z524259A4, StringBuilder__Append_Z721C83C5, StringBuilder__Clear, StringBuilder__Replace_Z384F8060, StringBuilder__Replace_Z766F94C0, StringBuilder__ToString_Z37302880, StringBuilder__get_Chars_Z524259A4, StringBuilder__get_Length, StringBuilder__set_Chars_413E0D0A };
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { comparePrimitives, padWithZeros, padLeftAndRightWithZeros } from './Util.js';
|
|
2
|
+
import { toInt64, fromFloat64 } from './BigInt.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Calls:
|
|
6
|
+
* - `Math.ceil` if the `value` is **negative**
|
|
7
|
+
* - `Math.floor` if the `value` is **positive**
|
|
8
|
+
* @param value Value to round
|
|
9
|
+
*/
|
|
10
|
+
function signedRound(value) {
|
|
11
|
+
return value < 0 ? Math.ceil(value) : Math.floor(value);
|
|
12
|
+
}
|
|
13
|
+
function create(d = 0, h = 0, m = 0, s = 0, ms = 0) {
|
|
14
|
+
switch (arguments.length) {
|
|
15
|
+
case 1:
|
|
16
|
+
// ticks
|
|
17
|
+
return fromTicks(arguments[0]);
|
|
18
|
+
case 3:
|
|
19
|
+
// h,m,s
|
|
20
|
+
d = 0, h = arguments[0], m = arguments[1], s = arguments[2], ms = 0;
|
|
21
|
+
break;
|
|
22
|
+
default:
|
|
23
|
+
// d,h,m,s,ms
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
return d * 86400000 + h * 3600000 + m * 60000 + s * 1000 + ms;
|
|
27
|
+
}
|
|
28
|
+
function fromTicks(ticks) {
|
|
29
|
+
return Number(BigInt(ticks) / 10000n);
|
|
30
|
+
}
|
|
31
|
+
function fromDays(d) {
|
|
32
|
+
return create(d, 0, 0, 0);
|
|
33
|
+
}
|
|
34
|
+
function fromHours(h) {
|
|
35
|
+
return create(h, 0, 0);
|
|
36
|
+
}
|
|
37
|
+
function fromMinutes(m) {
|
|
38
|
+
return create(0, m, 0);
|
|
39
|
+
}
|
|
40
|
+
function fromSeconds(s) {
|
|
41
|
+
return create(0, 0, s);
|
|
42
|
+
}
|
|
43
|
+
function days(ts) {
|
|
44
|
+
return signedRound(ts / 86400000);
|
|
45
|
+
}
|
|
46
|
+
function hours(ts) {
|
|
47
|
+
return signedRound(ts % 86400000 / 3600000);
|
|
48
|
+
}
|
|
49
|
+
function minutes(ts) {
|
|
50
|
+
return signedRound(ts % 3600000 / 60000);
|
|
51
|
+
}
|
|
52
|
+
function seconds(ts) {
|
|
53
|
+
return signedRound(ts % 60000 / 1000);
|
|
54
|
+
}
|
|
55
|
+
function milliseconds(ts) {
|
|
56
|
+
return signedRound(ts % 1000);
|
|
57
|
+
}
|
|
58
|
+
function ticks(ts) {
|
|
59
|
+
return toInt64(fromFloat64(ts * 10000));
|
|
60
|
+
}
|
|
61
|
+
function totalDays(ts) {
|
|
62
|
+
return ts / 86400000;
|
|
63
|
+
}
|
|
64
|
+
function totalHours(ts) {
|
|
65
|
+
return ts / 3600000;
|
|
66
|
+
}
|
|
67
|
+
function totalMinutes(ts) {
|
|
68
|
+
return ts / 60000;
|
|
69
|
+
}
|
|
70
|
+
function totalSeconds(ts) {
|
|
71
|
+
return ts / 1000;
|
|
72
|
+
}
|
|
73
|
+
function negate(ts) {
|
|
74
|
+
return ts * -1;
|
|
75
|
+
}
|
|
76
|
+
function add(ts1, ts2) {
|
|
77
|
+
return ts1 + ts2;
|
|
78
|
+
}
|
|
79
|
+
function subtract(ts1, ts2) {
|
|
80
|
+
return ts1 - ts2;
|
|
81
|
+
}
|
|
82
|
+
function multiply(ts, factor) {
|
|
83
|
+
return ts * factor;
|
|
84
|
+
}
|
|
85
|
+
function divide(ts, b) {
|
|
86
|
+
return ts / b;
|
|
87
|
+
}
|
|
88
|
+
const op_Addition = add;
|
|
89
|
+
const op_Subtraction = subtract;
|
|
90
|
+
const op_Multiply = multiply;
|
|
91
|
+
const op_Division = divide;
|
|
92
|
+
const compare = comparePrimitives;
|
|
93
|
+
const compareTo = comparePrimitives;
|
|
94
|
+
function duration(x) {
|
|
95
|
+
return Math.abs(x);
|
|
96
|
+
}
|
|
97
|
+
function toString(ts, format = "c", _provider) {
|
|
98
|
+
if (["c", "g", "G"].indexOf(format) === -1) {
|
|
99
|
+
throw new Error("Custom formats are not supported");
|
|
100
|
+
}
|
|
101
|
+
const d = Math.abs(days(ts));
|
|
102
|
+
const h = Math.abs(hours(ts));
|
|
103
|
+
const m = Math.abs(minutes(ts));
|
|
104
|
+
const s = Math.abs(seconds(ts));
|
|
105
|
+
const ms = Math.abs(milliseconds(ts));
|
|
106
|
+
const sign = ts < 0 ? "-" : "";
|
|
107
|
+
return `${sign}${d === 0 && (format === "c" || format === "g") ? "" : format === "c" ? d + "." : d + ":"}${format === "g" ? h : padWithZeros(h, 2)}:${padWithZeros(m, 2)}:${padWithZeros(s, 2)}${ms === 0 && (format === "c" || format === "g") ? "" : format === "g" ? "." + padWithZeros(ms, 3) : "." + padLeftAndRightWithZeros(ms, 3, 7)}`;
|
|
108
|
+
}
|
|
109
|
+
function parse(str) {
|
|
110
|
+
const firstDot = str.search("\\.");
|
|
111
|
+
const firstColon = str.search("\\:");
|
|
112
|
+
if (firstDot === -1 && firstColon === -1) { // There is only a day ex: 4
|
|
113
|
+
const d = parseInt(str, 0);
|
|
114
|
+
if (isNaN(d)) {
|
|
115
|
+
throw new Error(`String '${str}' was not recognized as a valid TimeSpan.`);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
return create(d, 0, 0, 0, 0);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (firstColon > 0) { // process time part
|
|
122
|
+
// WIP: (-?)(((\d+)\.)?([0-9]|0[0-9]|1[0-9]|2[0-3]):(\d+)(:\d+(\.\d{1,7})?)?|\d+(?:(?!\.)))
|
|
123
|
+
const r = /^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(str);
|
|
124
|
+
if (r != null && r[4] != null && r[5] != null) {
|
|
125
|
+
let d = 0;
|
|
126
|
+
let ms = 0;
|
|
127
|
+
let s = 0;
|
|
128
|
+
const sign = r[1] != null && r[1] === "-" ? -1 : 1;
|
|
129
|
+
const h = +r[4];
|
|
130
|
+
const m = +r[5];
|
|
131
|
+
if (r[3] != null) {
|
|
132
|
+
d = +r[3];
|
|
133
|
+
}
|
|
134
|
+
if (r[7] != null) {
|
|
135
|
+
s = +r[7];
|
|
136
|
+
}
|
|
137
|
+
if (r[8] != null) {
|
|
138
|
+
// Depending on the number of decimals passed, we need to adapt the numbers
|
|
139
|
+
switch (r[8].length) {
|
|
140
|
+
case 1:
|
|
141
|
+
ms = +r[8] * 100;
|
|
142
|
+
break;
|
|
143
|
+
case 2:
|
|
144
|
+
ms = +r[8] * 10;
|
|
145
|
+
break;
|
|
146
|
+
case 3:
|
|
147
|
+
ms = +r[8];
|
|
148
|
+
break;
|
|
149
|
+
case 4:
|
|
150
|
+
ms = +r[8] / 10;
|
|
151
|
+
break;
|
|
152
|
+
case 5:
|
|
153
|
+
ms = +r[8] / 100;
|
|
154
|
+
break;
|
|
155
|
+
case 6:
|
|
156
|
+
ms = +r[8] / 1000;
|
|
157
|
+
break;
|
|
158
|
+
case 7:
|
|
159
|
+
ms = +r[8] / 10000;
|
|
160
|
+
break;
|
|
161
|
+
default:
|
|
162
|
+
throw new Error(`String '${str}' was not recognized as a valid TimeSpan.`);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return sign * create(d, h, m, s, ms);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
throw new Error(`String '${str}' was not recognized as a valid TimeSpan.`);
|
|
169
|
+
}
|
|
170
|
+
function tryParse(v, defValue) {
|
|
171
|
+
try {
|
|
172
|
+
defValue.contents = parse(v);
|
|
173
|
+
return true;
|
|
174
|
+
}
|
|
175
|
+
catch {
|
|
176
|
+
return false;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export { add, compare, compareTo, create, days, divide, duration, fromDays, fromHours, fromMinutes, fromSeconds, fromTicks, hours, milliseconds, minutes, multiply, negate, op_Addition, op_Division, op_Multiply, op_Subtraction, parse, seconds, subtract, ticks, toString, totalDays, totalHours, totalMinutes, totalSeconds, tryParse };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { structuralHash, combineHashCodes, sameConstructor,
|
|
1
|
+
import { structuralHash, numberHash, combineHashCodes, sameConstructor, equalArrays, compareArrays, equals, compare } from './Util.js';
|
|
2
2
|
|
|
3
3
|
function seqToString(self) {
|
|
4
4
|
let count = 0;
|
|
@@ -189,5 +189,23 @@ function ensureErrorOrException(e) {
|
|
|
189
189
|
// Exceptionally admitting promises as errors for compatibility with React.suspense (see #3298)
|
|
190
190
|
return (isException(e) || isPromise(e)) ? e : new Error(String(e));
|
|
191
191
|
}
|
|
192
|
+
class FSharpException extends Exception {
|
|
193
|
+
toJSON() { return recordToJSON(this); }
|
|
194
|
+
toString() { return recordToString(this); }
|
|
195
|
+
GetHashCode() { return recordGetHashCode(this); }
|
|
196
|
+
Equals(other) { return recordEquals(this, other); }
|
|
197
|
+
CompareTo(other) { return recordCompareTo(this, other); }
|
|
198
|
+
}
|
|
199
|
+
class MatchFailureException extends FSharpException {
|
|
200
|
+
constructor(arg1, arg2, arg3) {
|
|
201
|
+
super();
|
|
202
|
+
this.arg1 = arg1;
|
|
203
|
+
this.arg2 = arg2 | 0;
|
|
204
|
+
this.arg3 = arg3 | 0;
|
|
205
|
+
this.message = "The match cases were incomplete";
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
class Attribute {
|
|
209
|
+
}
|
|
192
210
|
|
|
193
|
-
export { Exception, FSharpRef, Record, Union, ensureErrorOrException, isException, isPromise, seqToString, toString, unionToString };
|
|
211
|
+
export { Attribute, Exception, FSharpException, FSharpRef, MatchFailureException, Record, Union, ensureErrorOrException, isException, isPromise, seqToString, toString, unionToString };
|