@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,13 +1,16 @@
|
|
|
1
1
|
import { parse } from '../../../node_modules/@fable-org/fable-library-js/Int32.js';
|
|
2
|
-
import {
|
|
2
|
+
import { toText, printf, toFail } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
3
3
|
import { StringBuilder_$ctor, StringBuilder__Append_244C7CD6 } from '../../../node_modules/@fable-org/fable-library-js/System.Text.js';
|
|
4
4
|
import { iterate } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
5
5
|
import { isLetter, isDigit } from '../../../node_modules/@fable-org/fable-library-js/Char.js';
|
|
6
6
|
import { toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
7
|
+
import { toInt64, op_Addition, fromUInt32, fromInt32, toUInt32 } from '../../../node_modules/@fable-org/fable-library-js/BigInt.js';
|
|
7
8
|
import { value, unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
8
9
|
import { stringHash, identityHash } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
9
10
|
import { mergeHashes } from './HashCodes.fs.js';
|
|
11
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
10
12
|
|
|
13
|
+
const CellReference_indexRegex = /([A-Z]*)(\d*)/gu;
|
|
11
14
|
function CellReference_colAdressToIndex(columnAdress) {
|
|
12
15
|
const length = columnAdress.length | 0;
|
|
13
16
|
let sum = 0;
|
|
@@ -35,6 +38,7 @@ function CellReference_indexToColAdress(i) {
|
|
|
35
38
|
acc_mut = String.fromCharCode(("A".charCodeAt(0) >>> 0) + mod26) + acc;
|
|
36
39
|
continue loop;
|
|
37
40
|
}
|
|
41
|
+
break;
|
|
38
42
|
}
|
|
39
43
|
};
|
|
40
44
|
return loop(i, "");
|
|
@@ -57,6 +61,32 @@ function CellReference_toIndices(reference) {
|
|
|
57
61
|
}, reference.split(""));
|
|
58
62
|
return [CellReference_colAdressToIndex(toString(charPart)), parse(toString(numPart), 511, true, 32)];
|
|
59
63
|
}
|
|
64
|
+
function CellReference_toColIndex(reference) {
|
|
65
|
+
return CellReference_toIndices(reference)[0];
|
|
66
|
+
}
|
|
67
|
+
function CellReference_toRowIndex(reference) {
|
|
68
|
+
return CellReference_toIndices(reference)[1];
|
|
69
|
+
}
|
|
70
|
+
function CellReference_setColIndex(colI, reference) {
|
|
71
|
+
return CellReference_ofIndices(colI, CellReference_toIndices(reference)[1]);
|
|
72
|
+
}
|
|
73
|
+
function CellReference_setRowIndex(rowI, reference) {
|
|
74
|
+
return CellReference_ofIndices(CellReference_toIndices(reference)[0], rowI);
|
|
75
|
+
}
|
|
76
|
+
function CellReference_moveHorizontal(amount, reference) {
|
|
77
|
+
let value;
|
|
78
|
+
let tupledArg_1;
|
|
79
|
+
const tupledArg = CellReference_toIndices(reference);
|
|
80
|
+
tupledArg_1 = [(value = toInt64(op_Addition(toInt64(fromUInt32(tupledArg[0])), toInt64(fromInt32(amount)))), toUInt32(value) >>> 0), tupledArg[1]];
|
|
81
|
+
return CellReference_ofIndices(tupledArg_1[0], tupledArg_1[1]);
|
|
82
|
+
}
|
|
83
|
+
function CellReference_moveVertical(amount, reference) {
|
|
84
|
+
let value;
|
|
85
|
+
let tupledArg_1;
|
|
86
|
+
const tupledArg = CellReference_toIndices(reference);
|
|
87
|
+
tupledArg_1 = [tupledArg[0], (value = toInt64(op_Addition(toInt64(fromUInt32(tupledArg[1])), toInt64(fromInt32(amount)))), toUInt32(value) >>> 0)];
|
|
88
|
+
return CellReference_ofIndices(tupledArg_1[0], tupledArg_1[1]);
|
|
89
|
+
}
|
|
60
90
|
class FsAddress {
|
|
61
91
|
constructor(rowNumber, columnNumber, fixedRow, fixedColumn) {
|
|
62
92
|
this._fixedRow = fixedRow != null && value(fixedRow);
|
|
@@ -150,5 +180,11 @@ class FsAddress {
|
|
|
150
180
|
return other instanceof FsAddress && (other_1 = other, this$.Compare(other_1));
|
|
151
181
|
}
|
|
152
182
|
}
|
|
183
|
+
function FsAddress_$reflection() {
|
|
184
|
+
return class_type("FsSpreadsheet.FsAddress", void 0, FsAddress);
|
|
185
|
+
}
|
|
186
|
+
function FsAddress_$ctor_42410CA0(rowNumber, columnNumber, fixedRow, fixedColumn) {
|
|
187
|
+
return new FsAddress(rowNumber, columnNumber, fixedRow, fixedColumn);
|
|
188
|
+
}
|
|
153
189
|
|
|
154
|
-
export { CellReference_colAdressToIndex, CellReference_indexToColAdress, CellReference_ofIndices, CellReference_toIndices, FsAddress };
|
|
190
|
+
export { CellReference_colAdressToIndex, CellReference_indexRegex, CellReference_indexToColAdress, CellReference_moveHorizontal, CellReference_moveVertical, CellReference_ofIndices, CellReference_setColIndex, CellReference_setRowIndex, CellReference_toColIndex, CellReference_toIndices, CellReference_toRowIndex, FsAddress, FsAddress_$ctor_42410CA0, FsAddress_$reflection };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { FsRangeAddress } from './Ranges/FsRangeAddress.fs.js';
|
|
2
2
|
import { FsAddress } from './FsAddress.fs.js';
|
|
3
3
|
import { FsCellsCollection } from './Cells/FsCellsCollection.fs.js';
|
|
4
|
-
import {
|
|
5
|
-
import { getEnumerator, toIterator
|
|
6
|
-
import { FsRangeBase } from './Ranges/FsRangeBase.fs.js';
|
|
4
|
+
import { length, minBy, maxBy, map, exists } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
5
|
+
import { comparePrimitives, getEnumerator, toIterator } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
6
|
+
import { FsRangeBase, FsRangeBase_$reflection } from './Ranges/FsRangeBase.fs.js';
|
|
7
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
7
8
|
|
|
8
9
|
class FsColumn extends FsRangeBase {
|
|
9
10
|
constructor(rangeAddress, cells) {
|
|
@@ -112,5 +113,11 @@ class FsColumn extends FsRangeBase {
|
|
|
112
113
|
return getEnumerator(this$);
|
|
113
114
|
}
|
|
114
115
|
}
|
|
116
|
+
function FsColumn_$reflection() {
|
|
117
|
+
return class_type("FsSpreadsheet.FsColumn", void 0, FsColumn, FsRangeBase_$reflection());
|
|
118
|
+
}
|
|
119
|
+
function FsColumn_$ctor_7678C70A(rangeAddress, cells) {
|
|
120
|
+
return new FsColumn(rangeAddress, cells);
|
|
121
|
+
}
|
|
115
122
|
|
|
116
|
-
export { FsColumn };
|
|
123
|
+
export { FsColumn, FsColumn_$ctor_7678C70A, FsColumn_$reflection };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { FsRangeAddress } from './Ranges/FsRangeAddress.fs.js';
|
|
2
2
|
import { FsAddress } from './FsAddress.fs.js';
|
|
3
3
|
import { FsCellsCollection } from './Cells/FsCellsCollection.fs.js';
|
|
4
|
-
import {
|
|
4
|
+
import { length, minBy, maxBy, map, exists } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
5
5
|
import { FsCell } from './Cells/FsCell.fs.js';
|
|
6
|
-
import { getEnumerator, toIterator
|
|
7
|
-
import { FsRangeBase } from './Ranges/FsRangeBase.fs.js';
|
|
6
|
+
import { comparePrimitives, getEnumerator, toIterator } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
7
|
+
import { FsRangeBase, FsRangeBase_$reflection } from './Ranges/FsRangeBase.fs.js';
|
|
8
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
8
9
|
|
|
9
10
|
class FsRow extends FsRangeBase {
|
|
10
11
|
constructor(rangeAddress, cells) {
|
|
@@ -92,7 +93,7 @@ class FsRow extends FsRangeBase {
|
|
|
92
93
|
this$["cells@21"].Add(cell, this$.Index, colIndex);
|
|
93
94
|
}
|
|
94
95
|
static insertValueAt(colIndex, value, row) {
|
|
95
|
-
row.InsertValueAt(colIndex, value);
|
|
96
|
+
const value_1 = row.InsertValueAt(colIndex, value);
|
|
96
97
|
return row;
|
|
97
98
|
}
|
|
98
99
|
ToDenseRow() {
|
|
@@ -122,5 +123,11 @@ class FsRow extends FsRangeBase {
|
|
|
122
123
|
return getEnumerator(this$);
|
|
123
124
|
}
|
|
124
125
|
}
|
|
126
|
+
function FsRow_$reflection() {
|
|
127
|
+
return class_type("FsSpreadsheet.FsRow", void 0, FsRow, FsRangeBase_$reflection());
|
|
128
|
+
}
|
|
129
|
+
function FsRow_$ctor_7678C70A(rangeAddress, cells) {
|
|
130
|
+
return new FsRow(rangeAddress, cells);
|
|
131
|
+
}
|
|
125
132
|
|
|
126
|
-
export { FsRow };
|
|
133
|
+
export { FsRow, FsRow_$ctor_7678C70A, FsRow_$reflection };
|
|
@@ -3,7 +3,8 @@ import { FsWorksheet } from './FsWorksheet.fs.js';
|
|
|
3
3
|
import { exists, iterate, tryItem, tryFind } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
4
4
|
import { toFail, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
5
5
|
import { value, defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
6
|
-
import { safeHash, equals
|
|
6
|
+
import { defaultOf, safeHash, equals } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
7
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
7
8
|
|
|
8
9
|
class FsWorkbook {
|
|
9
10
|
constructor() {
|
|
@@ -131,5 +132,11 @@ class FsWorkbook {
|
|
|
131
132
|
Dispose() {
|
|
132
133
|
}
|
|
133
134
|
}
|
|
135
|
+
function FsWorkbook_$reflection() {
|
|
136
|
+
return class_type("FsSpreadsheet.FsWorkbook", void 0, FsWorkbook);
|
|
137
|
+
}
|
|
138
|
+
function FsWorkbook_$ctor() {
|
|
139
|
+
return new FsWorkbook();
|
|
140
|
+
}
|
|
134
141
|
|
|
135
|
-
export { FsWorkbook };
|
|
142
|
+
export { FsWorkbook, FsWorkbook_$ctor, FsWorkbook_$reflection };
|
|
@@ -4,15 +4,16 @@ import { FsRow } from './FsRow.fs.js';
|
|
|
4
4
|
import { map, sortBy, head, last, iterate, tryFind, find, exists, filter, maxBy, empty } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
5
5
|
import { FsColumn } from './FsColumn.fs.js';
|
|
6
6
|
import { FsCell } from './Cells/FsCell.fs.js';
|
|
7
|
-
import { getEnumerator, disposeSafe, safeHash, equals, clear
|
|
7
|
+
import { comparePrimitives, numberHash, getEnumerator, disposeSafe, safeHash, equals, clear } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
8
8
|
import { FsAddress } from './FsAddress.fs.js';
|
|
9
9
|
import { FsRangeAddress } from './Ranges/FsRangeAddress.fs.js';
|
|
10
10
|
import { groupBy } from '../../../node_modules/@fable-org/fable-library-js/Seq2.js';
|
|
11
11
|
import { defaultArg, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
12
|
-
import { toFail,
|
|
12
|
+
import { toFail, printf, toConsole } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
13
13
|
import { removeInPlace, addRangeInPlace } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
14
14
|
import { ofSeq, tryFind as tryFind$1 } from '../../../node_modules/@fable-org/fable-library-js/Map.js';
|
|
15
15
|
import { iterate as iterate$1 } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
16
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
16
17
|
|
|
17
18
|
class FsWorksheet {
|
|
18
19
|
constructor(name, fsRows, fsTables, fsCellsCollection) {
|
|
@@ -346,12 +347,12 @@ class FsWorksheet {
|
|
|
346
347
|
}
|
|
347
348
|
AddCell(cell) {
|
|
348
349
|
const self = this;
|
|
349
|
-
self.CellCollection.Add(cell);
|
|
350
|
+
const value = self.CellCollection.Add(cell);
|
|
350
351
|
return self;
|
|
351
352
|
}
|
|
352
353
|
AddCells(cells) {
|
|
353
354
|
const self = this;
|
|
354
|
-
self.CellCollection.AddMany(cells);
|
|
355
|
+
const value = self.CellCollection.AddMany(cells);
|
|
355
356
|
return self;
|
|
356
357
|
}
|
|
357
358
|
InsertValueAt(value, rowIndex, colIndex) {
|
|
@@ -366,11 +367,11 @@ class FsWorksheet {
|
|
|
366
367
|
const self = this;
|
|
367
368
|
const matchValue = self.CellCollection.TryGetCell(rowIndex, colIndex);
|
|
368
369
|
if (matchValue == null) {
|
|
369
|
-
self.CellCollection.Add(value$1, rowIndex, colIndex);
|
|
370
|
+
const value_2 = self.CellCollection.Add(value$1, rowIndex, colIndex);
|
|
370
371
|
return self;
|
|
371
372
|
} else {
|
|
372
373
|
const c = value(matchValue);
|
|
373
|
-
c.SetValueAs(value$1);
|
|
374
|
+
const value_1 = c.SetValueAs(value$1);
|
|
374
375
|
return self;
|
|
375
376
|
}
|
|
376
377
|
}
|
|
@@ -418,5 +419,11 @@ class FsWorksheet {
|
|
|
418
419
|
}
|
|
419
420
|
}
|
|
420
421
|
}
|
|
422
|
+
function FsWorksheet_$reflection() {
|
|
423
|
+
return class_type("FsSpreadsheet.FsWorksheet", void 0, FsWorksheet);
|
|
424
|
+
}
|
|
425
|
+
function FsWorksheet_$ctor_7FDA5F7A(name, fsRows, fsTables, fsCellsCollection) {
|
|
426
|
+
return new FsWorksheet(name, fsRows, fsTables, fsCellsCollection);
|
|
427
|
+
}
|
|
421
428
|
|
|
422
|
-
export { FsWorksheet };
|
|
429
|
+
export { FsWorksheet, FsWorksheet_$ctor_7FDA5F7A, FsWorksheet_$reflection };
|
|
@@ -1,5 +1,35 @@
|
|
|
1
|
+
import { year, month, day, hour, minute, second } from '../../../node_modules/@fable-org/fable-library-js/Date.js';
|
|
2
|
+
import { identityHash, numberHash } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
3
|
+
import { value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
4
|
+
import { fold } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
5
|
+
import { fold as fold$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
6
|
+
|
|
1
7
|
function mergeHashes(hash1, hash2) {
|
|
2
8
|
return -1640531527 + hash2 + (hash1 << 6) + (hash1 >> 2);
|
|
3
9
|
}
|
|
10
|
+
function hashDateTime(dt) {
|
|
11
|
+
let acc = 0;
|
|
12
|
+
acc = mergeHashes(acc, year(dt)) | 0;
|
|
13
|
+
acc = mergeHashes(acc, month(dt)) | 0;
|
|
14
|
+
acc = mergeHashes(acc, day(dt)) | 0;
|
|
15
|
+
acc = mergeHashes(acc, hour(dt)) | 0;
|
|
16
|
+
acc = mergeHashes(acc, minute(dt)) | 0;
|
|
17
|
+
acc = mergeHashes(acc, second(dt)) | 0;
|
|
18
|
+
return acc | 0;
|
|
19
|
+
}
|
|
20
|
+
function hash(obj) {
|
|
21
|
+
let copyOfStruct = obj;
|
|
22
|
+
return identityHash(copyOfStruct) | 0;
|
|
23
|
+
}
|
|
24
|
+
function boxHashOption(a) {
|
|
25
|
+
let copyOfStruct, copyOfStruct_1;
|
|
26
|
+
return a != null ? (copyOfStruct = value(a), identityHash(copyOfStruct)) : (copyOfStruct_1 = 0, numberHash(copyOfStruct_1));
|
|
27
|
+
}
|
|
28
|
+
function boxHashArray(a) {
|
|
29
|
+
return fold((acc, o) => mergeHashes(acc, hash(o)), 0, a);
|
|
30
|
+
}
|
|
31
|
+
function boxHashSeq(a) {
|
|
32
|
+
return fold$1((acc, o) => mergeHashes(acc, hash(o)), 0, a);
|
|
33
|
+
}
|
|
4
34
|
|
|
5
|
-
export { mergeHashes };
|
|
35
|
+
export { boxHashArray, boxHashOption, boxHashSeq, hash, hashDateTime, mergeHashes };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { encode, decode } from './Value.fs.js';
|
|
2
|
+
import { map } from '../../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
3
|
+
import { DataType_Empty, FsCell } from '../Cells/FsCell.fs.js';
|
|
4
|
+
import { object, int } from '../../Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
5
|
+
import { defaultArg } from '../../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
6
|
+
import { FsAddress } from '../FsAddress.fs.js';
|
|
7
|
+
|
|
8
|
+
function encodeNoNumber(cell) {
|
|
9
|
+
const values = [["value", encode(cell.Value)]];
|
|
10
|
+
return {
|
|
11
|
+
Encode(helpers) {
|
|
12
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers)], values);
|
|
13
|
+
return helpers.encodeObject(arg);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function encodeRows(cell) {
|
|
18
|
+
let value_1;
|
|
19
|
+
const values = [["column", (value_1 = cell.ColumnNumber | 0, {
|
|
20
|
+
Encode(helpers) {
|
|
21
|
+
return helpers.encodeSignedIntegralNumber(value_1);
|
|
22
|
+
}
|
|
23
|
+
})], ["value", encode(cell.Value)]];
|
|
24
|
+
return {
|
|
25
|
+
Encode(helpers_1) {
|
|
26
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_1)], values);
|
|
27
|
+
return helpers_1.encodeObject(arg);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function decodeRows(rowNumber) {
|
|
32
|
+
return object((builder) => {
|
|
33
|
+
let objectArg, objectArg_1;
|
|
34
|
+
let patternInput;
|
|
35
|
+
const value_1 = ["", DataType_Empty()];
|
|
36
|
+
patternInput = defaultArg((objectArg = builder.Optional, objectArg.Field("value", decode)), value_1);
|
|
37
|
+
const c = defaultArg((objectArg_1 = builder.Optional, objectArg_1.Field("column", int)), 0) | 0;
|
|
38
|
+
return new FsCell(patternInput[0], patternInput[1], new FsAddress(defaultArg(rowNumber, 0), c));
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function encodeCols(cell) {
|
|
42
|
+
let value_1;
|
|
43
|
+
const values = [["row", (value_1 = cell.RowNumber | 0, {
|
|
44
|
+
Encode(helpers) {
|
|
45
|
+
return helpers.encodeSignedIntegralNumber(value_1);
|
|
46
|
+
}
|
|
47
|
+
})], ["value", encode(cell.Value)]];
|
|
48
|
+
return {
|
|
49
|
+
Encode(helpers_1) {
|
|
50
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_1)], values);
|
|
51
|
+
return helpers_1.encodeObject(arg);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function decodeCols(colNumber) {
|
|
56
|
+
return object((builder) => {
|
|
57
|
+
let objectArg, objectArg_1;
|
|
58
|
+
let patternInput;
|
|
59
|
+
const value_1 = ["", DataType_Empty()];
|
|
60
|
+
patternInput = defaultArg((objectArg = builder.Optional, objectArg.Field("value", decode)), value_1);
|
|
61
|
+
return new FsCell(patternInput[0], patternInput[1], new FsAddress(defaultArg((objectArg_1 = builder.Optional, objectArg_1.Field("row", int)), 0), defaultArg(colNumber, 0)));
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { decodeCols, decodeRows, encodeCols, encodeNoNumber, encodeRows };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { seq } from '../../Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
2
|
+
import { map, empty } from '../../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
3
|
+
import { encodeCols, encodeNoNumber, decodeCols } from './Cell.fs.js';
|
|
4
|
+
import { object, int, seq as seq$1 } from '../../Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
5
|
+
import { defaultArg } from '../../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
6
|
+
|
|
7
|
+
function encode(col) {
|
|
8
|
+
let value;
|
|
9
|
+
const values = [["number", (value = col.Index | 0, {
|
|
10
|
+
Encode(helpers) {
|
|
11
|
+
return helpers.encodeSignedIntegralNumber(value);
|
|
12
|
+
}
|
|
13
|
+
})], ["cells", seq(map(encodeCols, col.Cells))]];
|
|
14
|
+
return {
|
|
15
|
+
Encode(helpers_1) {
|
|
16
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_1)], values);
|
|
17
|
+
return helpers_1.encodeObject(arg);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function encodeNoNumbers(col) {
|
|
22
|
+
const values = [["cells", seq(map(encodeNoNumber, col))]];
|
|
23
|
+
return {
|
|
24
|
+
Encode(helpers) {
|
|
25
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers)], values);
|
|
26
|
+
return helpers.encodeObject(arg);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
const decode = object((builder) => {
|
|
31
|
+
let arg_3, objectArg_1;
|
|
32
|
+
let n;
|
|
33
|
+
const objectArg = builder.Optional;
|
|
34
|
+
n = objectArg.Field("number", int);
|
|
35
|
+
return [n, defaultArg((arg_3 = seq$1(decodeCols(n)), objectArg_1 = builder.Optional, objectArg_1.Field("cells", arg_3)), empty())];
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export { decode, encode, encodeNoNumbers };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { seq } from '../../Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
2
|
+
import { map, empty } from '../../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
3
|
+
import { encodeRows, encodeNoNumber, decodeRows } from './Cell.fs.js';
|
|
4
|
+
import { object, int, seq as seq$1 } from '../../Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
5
|
+
import { defaultArg } from '../../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
6
|
+
|
|
7
|
+
function encode(row) {
|
|
8
|
+
let value;
|
|
9
|
+
const values = [["number", (value = row.Index | 0, {
|
|
10
|
+
Encode(helpers) {
|
|
11
|
+
return helpers.encodeSignedIntegralNumber(value);
|
|
12
|
+
}
|
|
13
|
+
})], ["cells", seq(map(encodeRows, row.Cells))]];
|
|
14
|
+
return {
|
|
15
|
+
Encode(helpers_1) {
|
|
16
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_1)], values);
|
|
17
|
+
return helpers_1.encodeObject(arg);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function encodeNoNumbers(row) {
|
|
22
|
+
const values = [["cells", seq(map(encodeNoNumber, row))]];
|
|
23
|
+
return {
|
|
24
|
+
Encode(helpers) {
|
|
25
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers)], values);
|
|
26
|
+
return helpers.encodeObject(arg);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
const decode = object((builder) => {
|
|
31
|
+
let arg_3, objectArg_1;
|
|
32
|
+
let n;
|
|
33
|
+
const objectArg = builder.Optional;
|
|
34
|
+
n = objectArg.Field("number", int);
|
|
35
|
+
return [n, defaultArg((arg_3 = seq$1(decodeRows(n)), objectArg_1 = builder.Optional, objectArg_1.Field("cells", arg_3)), empty())];
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export { decode, encode, encodeNoNumbers };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { map } from '../../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
2
|
+
import { FsTable } from '../Tables/FsTable.fs.js';
|
|
3
|
+
import { object, string } from '../../Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
4
|
+
import { FsRangeAddress } from '../Ranges/FsRangeAddress.fs.js';
|
|
5
|
+
|
|
6
|
+
function encode(sheet) {
|
|
7
|
+
let value, value_1;
|
|
8
|
+
const values = [["name", (value = sheet.Name, {
|
|
9
|
+
Encode(helpers) {
|
|
10
|
+
return helpers.encodeString(value);
|
|
11
|
+
}
|
|
12
|
+
})], ["range", (value_1 = sheet.RangeAddress.Range, {
|
|
13
|
+
Encode(helpers_1) {
|
|
14
|
+
return helpers_1.encodeString(value_1);
|
|
15
|
+
}
|
|
16
|
+
})]];
|
|
17
|
+
return {
|
|
18
|
+
Encode(helpers_2) {
|
|
19
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_2)], values);
|
|
20
|
+
return helpers_2.encodeObject(arg);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const decode = object((builder) => {
|
|
25
|
+
let n;
|
|
26
|
+
const objectArg = builder.Required;
|
|
27
|
+
n = objectArg.Field("name", string);
|
|
28
|
+
let r;
|
|
29
|
+
const objectArg_1 = builder.Required;
|
|
30
|
+
r = objectArg_1.Field("range", string);
|
|
31
|
+
return new FsTable(n, FsRangeAddress.fromString(r));
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export { decode, encode };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { minValue, tryParse } from '../../../../node_modules/@fable-org/fable-library-js/Date.js';
|
|
1
|
+
import { minValue, tryParse, toString } from '../../../../node_modules/@fable-org/fable-library-js/Date.js';
|
|
2
2
|
import { FSharpRef } from '../../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
3
3
|
import { FSharpResult$2_Ok, FSharpResult$2_Error } from '../../../../node_modules/@fable-org/fable-library-js/Result.js';
|
|
4
4
|
import { ErrorReason$1_BadPrimitive } from '../../Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
5
|
+
import { item } from '../../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
5
6
|
import { oneOf, map, bool, int, float, string } from '../../Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
6
7
|
import { DataType_Boolean, DataType_Number, DataType_Date, DataType_String } from '../Cells/FsCell.fs.js';
|
|
7
8
|
import { ofArray } from '../../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
@@ -20,6 +21,51 @@ const Decode_datetime = {
|
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
};
|
|
23
|
-
|
|
24
|
+
function encode(value) {
|
|
25
|
+
if (typeof value === "string") {
|
|
26
|
+
const s = value;
|
|
27
|
+
return {
|
|
28
|
+
Encode(helpers) {
|
|
29
|
+
return helpers.encodeString(s);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
} else if (typeof value === "number") {
|
|
33
|
+
const f = value;
|
|
34
|
+
return {
|
|
35
|
+
Encode(helpers_1) {
|
|
36
|
+
return helpers_1.encodeDecimalNumber(f);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
} else if (typeof value === "number") {
|
|
40
|
+
const i = value | 0;
|
|
41
|
+
return {
|
|
42
|
+
Encode(helpers_2) {
|
|
43
|
+
return helpers_2.encodeSignedIntegralNumber(i);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
} else if (typeof value === "boolean") {
|
|
47
|
+
const b = value;
|
|
48
|
+
return {
|
|
49
|
+
Encode(helpers_3) {
|
|
50
|
+
return helpers_3.encodeBool(b);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
} else if (value instanceof Date) {
|
|
54
|
+
const d = value;
|
|
55
|
+
const value_5 = item(0, toString(d, "O", {}).split("+"));
|
|
56
|
+
return {
|
|
57
|
+
Encode(helpers_4) {
|
|
58
|
+
return helpers_4.encodeString(value_5);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
} else {
|
|
62
|
+
return {
|
|
63
|
+
Encode(helpers_5) {
|
|
64
|
+
return helpers_5.encodeNull();
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
const decode = oneOf(ofArray([map((b) => [b, DataType_Boolean()], bool), map((i) => [i, DataType_Number()], int), map((f) => [f, DataType_Number()], float), map((d_3) => [d_3, DataType_Date()], Decode_datetime), map((s) => [s, DataType_String()], string)]));
|
|
24
70
|
|
|
25
|
-
export { Decode_datetime };
|
|
71
|
+
export { Decode_datetime, decode, encode };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { seq } from '../../Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
2
|
+
import { map } from '../../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
3
|
+
import { encodeRows as encodeRows$1, decodeRows as decodeRows$1, encodeColumns as encodeColumns$1, decodeColumns as decodeColumns$1 } from './Worksheet.fs.js';
|
|
4
|
+
import { FsWorkbook } from '../FsWorkbook.fs.js';
|
|
5
|
+
import { object, seq as seq$1 } from '../../Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
6
|
+
|
|
7
|
+
function encodeRows(noNumbering, wb) {
|
|
8
|
+
const values = [["sheets", seq(map((sheet) => encodeRows$1(noNumbering, sheet), wb.GetWorksheets()))]];
|
|
9
|
+
return {
|
|
10
|
+
Encode(helpers) {
|
|
11
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers)], values);
|
|
12
|
+
return helpers.encodeObject(arg);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
const decodeRows = object((builder) => {
|
|
17
|
+
const wb = new FsWorkbook();
|
|
18
|
+
let ws;
|
|
19
|
+
const arg_1 = seq$1(decodeRows$1);
|
|
20
|
+
const objectArg = builder.Required;
|
|
21
|
+
ws = objectArg.Field("sheets", arg_1);
|
|
22
|
+
wb.AddWorksheets(ws);
|
|
23
|
+
return wb;
|
|
24
|
+
});
|
|
25
|
+
function encodeColumns(noNumbering, wb) {
|
|
26
|
+
const values = [["sheets", seq(map((sheet) => encodeColumns$1(noNumbering, sheet), wb.GetWorksheets()))]];
|
|
27
|
+
return {
|
|
28
|
+
Encode(helpers) {
|
|
29
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers)], values);
|
|
30
|
+
return helpers.encodeObject(arg);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const decodeColumns = object((builder) => {
|
|
35
|
+
const wb = new FsWorkbook();
|
|
36
|
+
let ws;
|
|
37
|
+
const arg_1 = seq$1(decodeColumns$1);
|
|
38
|
+
const objectArg = builder.Required;
|
|
39
|
+
ws = objectArg.Field("sheets", arg_1);
|
|
40
|
+
wb.AddWorksheets(ws);
|
|
41
|
+
return wb;
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export { decodeColumns, decodeRows, encodeColumns, encodeRows };
|