@nfdi4plants/arctrl 3.0.0-beta.4 → 3.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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.d.ts +3 -1
- package/dist/ts/ts/Core/IdentifierSetters.d.ts.map +1 -1
- package/dist/ts/ts/Core/IdentifierSetters.js +27 -1
- 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.d.ts +1 -1
- package/dist/ts/ts/Json/Assay.js +28 -28
- 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.d.ts +6 -4
- package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Component.js +27 -7
- 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 +11 -8
- package/dist/ts/ts/Json/Process/Protocol.js +13 -13
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +4 -2
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +21 -12
- 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.d.ts +11 -0
- package/dist/ts/ts/Json/Run.d.ts.map +1 -0
- package/dist/ts/ts/Json/Run.js +76 -0
- package/dist/ts/ts/Json/StringTable.js +1 -1
- package/dist/ts/ts/Json/Study.js +34 -34
- 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.d.ts +11 -0
- package/dist/ts/ts/Json/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/Json/Workflow.js +93 -0
- 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 +34 -2
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +129 -2
- package/dist/ts/ts/JsonIO/Assay.js +15 -3
- 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.d.ts +10 -0
- package/dist/ts/ts/JsonIO/Run.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Run.js +50 -0
- 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.d.ts +10 -0
- package/dist/ts/ts/JsonIO/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Workflow.js +50 -0
- 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.d.ts +21 -1
- package/dist/ts/ts/Xlsx.d.ts.map +1 -1
- package/dist/ts/ts/Xlsx.js +81 -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,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 };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { seq } from '../../Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
2
|
+
import { toList, delay, map, collect, singleton, append, isEmpty, empty, iterate } from '../../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
3
|
+
import { encodeNoNumbers, encode, decode as decode$1 } from './Row.fs.js';
|
|
4
|
+
import { value, defaultArg } from '../../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
5
|
+
import { FsCell } from '../Cells/FsCell.fs.js';
|
|
6
|
+
import { rangeDouble } from '../../../../node_modules/@fable-org/fable-library-js/Range.js';
|
|
7
|
+
import { encode as encode$1, decode } from './Table.fs.js';
|
|
8
|
+
import { FsWorksheet } from '../FsWorksheet.fs.js';
|
|
9
|
+
import { object, string, seq as seq$1 } from '../../Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
10
|
+
import { encodeNoNumbers as encodeNoNumbers$1, encode as encode$2, decode as decode$2 } from './Column.fs.js';
|
|
11
|
+
|
|
12
|
+
function encodeRows(noNumbering, sheet) {
|
|
13
|
+
sheet.RescanRows();
|
|
14
|
+
const jRows = noNumbering ? seq(toList(delay(() => map((r) => encodeNoNumbers(toList(delay(() => collect((c) => {
|
|
15
|
+
const matchValue = sheet.CellCollection.TryGetCell(r, c);
|
|
16
|
+
return matchValue == null ? singleton(new FsCell("")) : singleton(value(matchValue));
|
|
17
|
+
}, rangeDouble(1, 1, sheet.MaxColumnIndex))))), rangeDouble(1, 1, sheet.MaxRowIndex))))) : seq(map(encode, sheet.Rows));
|
|
18
|
+
const values_1 = toList(delay(() => {
|
|
19
|
+
let value;
|
|
20
|
+
return append(singleton(["name", (value = sheet.Name, {
|
|
21
|
+
Encode(helpers) {
|
|
22
|
+
return helpers.encodeString(value);
|
|
23
|
+
}
|
|
24
|
+
})]), delay(() => append(!isEmpty(sheet.Tables) ? singleton(["tables", seq(map(encode$1, sheet.Tables))]) : empty(), delay(() => singleton(["rows", jRows])))));
|
|
25
|
+
}));
|
|
26
|
+
return {
|
|
27
|
+
Encode(helpers_1) {
|
|
28
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_1)], values_1);
|
|
29
|
+
return helpers_1.encodeObject(arg);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
const decodeRows = object((builder) => {
|
|
34
|
+
let arg_5, objectArg_2;
|
|
35
|
+
let rowIndex = 0;
|
|
36
|
+
let n;
|
|
37
|
+
const objectArg = builder.Required;
|
|
38
|
+
n = objectArg.Field("name", string);
|
|
39
|
+
let ts;
|
|
40
|
+
const arg_3 = seq$1(decode);
|
|
41
|
+
const objectArg_1 = builder.Optional;
|
|
42
|
+
ts = objectArg_1.Field("tables", arg_3);
|
|
43
|
+
const rs = defaultArg((arg_5 = seq$1(decode$1), objectArg_2 = builder.Optional, objectArg_2.Field("rows", arg_5)), empty());
|
|
44
|
+
const sheet = new FsWorksheet(n);
|
|
45
|
+
iterate((tupledArg) => {
|
|
46
|
+
const rowI = tupledArg[0];
|
|
47
|
+
let colIndex = 0;
|
|
48
|
+
const rowI_1 = (rowI == null ? rowIndex + 1 : value(rowI)) | 0;
|
|
49
|
+
rowIndex = rowI_1 | 0;
|
|
50
|
+
const r = sheet.Row(rowI_1);
|
|
51
|
+
iterate((cell) => {
|
|
52
|
+
let colI;
|
|
53
|
+
const matchValue = cell.ColumnNumber | 0;
|
|
54
|
+
colI = matchValue === 0 ? colIndex + 1 : matchValue;
|
|
55
|
+
colIndex = colI | 0;
|
|
56
|
+
const c = r.Item(colI);
|
|
57
|
+
c.Value = cell.Value;
|
|
58
|
+
c.DataType = cell.DataType;
|
|
59
|
+
}, tupledArg[1]);
|
|
60
|
+
}, rs);
|
|
61
|
+
if (ts == null) {
|
|
62
|
+
} else {
|
|
63
|
+
iterate((t) => {
|
|
64
|
+
sheet.AddTable(t);
|
|
65
|
+
}, value(ts));
|
|
66
|
+
}
|
|
67
|
+
return sheet;
|
|
68
|
+
});
|
|
69
|
+
function encodeColumns(noNumbering, sheet) {
|
|
70
|
+
sheet.RescanRows();
|
|
71
|
+
const jColumns = noNumbering ? seq(toList(delay(() => map((c) => encodeNoNumbers$1(toList(delay(() => collect((r) => {
|
|
72
|
+
const matchValue = sheet.CellCollection.TryGetCell(r, c);
|
|
73
|
+
return matchValue == null ? singleton(new FsCell("")) : singleton(value(matchValue));
|
|
74
|
+
}, rangeDouble(1, 1, sheet.MaxRowIndex))))), rangeDouble(1, 1, sheet.MaxColumnIndex))))) : seq(map(encode$2, sheet.Columns));
|
|
75
|
+
const values_1 = toList(delay(() => {
|
|
76
|
+
let value;
|
|
77
|
+
return append(singleton(["name", (value = sheet.Name, {
|
|
78
|
+
Encode(helpers) {
|
|
79
|
+
return helpers.encodeString(value);
|
|
80
|
+
}
|
|
81
|
+
})]), delay(() => append(!isEmpty(sheet.Tables) ? singleton(["tables", seq(map(encode$1, sheet.Tables))]) : empty(), delay(() => singleton(["columns", jColumns])))));
|
|
82
|
+
}));
|
|
83
|
+
return {
|
|
84
|
+
Encode(helpers_1) {
|
|
85
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_1)], values_1);
|
|
86
|
+
return helpers_1.encodeObject(arg);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
const decodeColumns = object((builder) => {
|
|
91
|
+
let colIndex = 0;
|
|
92
|
+
let n;
|
|
93
|
+
const objectArg = builder.Required;
|
|
94
|
+
n = objectArg.Field("name", string);
|
|
95
|
+
let ts;
|
|
96
|
+
const arg_3 = seq$1(decode);
|
|
97
|
+
const objectArg_1 = builder.Optional;
|
|
98
|
+
ts = objectArg_1.Field("tables", arg_3);
|
|
99
|
+
let cs;
|
|
100
|
+
const arg_5 = seq$1(decode$2);
|
|
101
|
+
const objectArg_2 = builder.Required;
|
|
102
|
+
cs = objectArg_2.Field("columns", arg_5);
|
|
103
|
+
const sheet = new FsWorksheet(n);
|
|
104
|
+
iterate((tupledArg) => {
|
|
105
|
+
const colI = tupledArg[0];
|
|
106
|
+
let rowIndex = 0;
|
|
107
|
+
const colI_1 = (colI == null ? colIndex + 1 : value(colI)) | 0;
|
|
108
|
+
colIndex = colI_1 | 0;
|
|
109
|
+
const col = sheet.Column(colI_1);
|
|
110
|
+
iterate((cell) => {
|
|
111
|
+
let rowI;
|
|
112
|
+
const matchValue = cell.RowNumber | 0;
|
|
113
|
+
rowI = matchValue === 0 ? rowIndex + 1 : matchValue;
|
|
114
|
+
rowIndex = rowI | 0;
|
|
115
|
+
const c = col.Item(rowIndex);
|
|
116
|
+
c.Value = cell.Value;
|
|
117
|
+
c.DataType = cell.DataType;
|
|
118
|
+
}, tupledArg[1]);
|
|
119
|
+
}, cs);
|
|
120
|
+
if (ts == null) {
|
|
121
|
+
} else {
|
|
122
|
+
iterate((t) => {
|
|
123
|
+
sheet.AddTable(t);
|
|
124
|
+
}, value(ts));
|
|
125
|
+
}
|
|
126
|
+
return sheet;
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
export { decodeColumns, decodeRows, encodeColumns, encodeRows };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { defaultOf, int32ToString } from '../../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
2
2
|
import { some } from '../../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
-
import { FsRangeBase } from './FsRangeBase.fs.js';
|
|
3
|
+
import { FsRangeBase, FsRangeBase_$reflection } from './FsRangeBase.fs.js';
|
|
4
4
|
import { toText, printf } from '../../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
5
5
|
import { FsRangeRow } from './FsRangeRow.fs.js';
|
|
6
6
|
import { FsRangeAddress } from './FsRangeAddress.fs.js';
|
|
7
7
|
import { FsAddress } from '../FsAddress.fs.js';
|
|
8
|
+
import { class_type } from '../../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
8
9
|
|
|
9
10
|
class FsRange extends FsRangeBase {
|
|
10
11
|
constructor(rangeAddress, styleValue) {
|
|
@@ -24,5 +25,11 @@ class FsRange extends FsRangeBase {
|
|
|
24
25
|
return self.Row(1);
|
|
25
26
|
}
|
|
26
27
|
}
|
|
28
|
+
function FsRange_$reflection() {
|
|
29
|
+
return class_type("FsSpreadsheet.FsRange", void 0, FsRange, FsRangeBase_$reflection());
|
|
30
|
+
}
|
|
31
|
+
function FsRange_$ctor_Z15E90CDC(rangeAddress, styleValue) {
|
|
32
|
+
return new FsRange(rangeAddress, styleValue);
|
|
33
|
+
}
|
|
27
34
|
|
|
28
|
-
export { FsRange };
|
|
35
|
+
export { FsRange, FsRange_$ctor_Z15E90CDC, FsRange_$reflection };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { FsAddress } from '../FsAddress.fs.js';
|
|
2
|
-
import {
|
|
1
|
+
import { FsAddress, CellReference_toIndices, CellReference_moveHorizontal } from '../FsAddress.fs.js';
|
|
2
|
+
import { class_type } from '../../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
3
|
+
import { toText, printf, toConsole } from '../../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
3
4
|
import { item } from '../../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
4
5
|
|
|
5
6
|
class FsRangeAddress {
|
|
@@ -71,6 +72,12 @@ class FsRangeAddress {
|
|
|
71
72
|
return self;
|
|
72
73
|
}
|
|
73
74
|
}
|
|
75
|
+
function FsRangeAddress_$reflection() {
|
|
76
|
+
return class_type("FsSpreadsheet.FsRangeAddress", void 0, FsRangeAddress);
|
|
77
|
+
}
|
|
78
|
+
function FsRangeAddress_$ctor_7E77A4A0(firstAddress, lastAddress) {
|
|
79
|
+
return new FsRangeAddress(firstAddress, lastAddress);
|
|
80
|
+
}
|
|
74
81
|
function Range_ofBoundaries(fromCellReference, toCellReference) {
|
|
75
82
|
return toText(printf("%s:%s"))(fromCellReference)(toCellReference);
|
|
76
83
|
}
|
|
@@ -78,5 +85,77 @@ function Range_toBoundaries(area) {
|
|
|
78
85
|
const a = area.split(":");
|
|
79
86
|
return [item(0, a), item(1, a)];
|
|
80
87
|
}
|
|
88
|
+
function Range_rightBoundary(area) {
|
|
89
|
+
return CellReference_toIndices(Range_toBoundaries(area)[1])[0];
|
|
90
|
+
}
|
|
91
|
+
function Range_leftBoundary(area) {
|
|
92
|
+
return CellReference_toIndices(Range_toBoundaries(area)[0])[0];
|
|
93
|
+
}
|
|
94
|
+
function Range_upperBoundary(area) {
|
|
95
|
+
return CellReference_toIndices(Range_toBoundaries(area)[0])[1];
|
|
96
|
+
}
|
|
97
|
+
function Range_lowerBoundary(area) {
|
|
98
|
+
return CellReference_toIndices(Range_toBoundaries(area)[1])[1];
|
|
99
|
+
}
|
|
100
|
+
function Range_moveHorizontal(amount, area) {
|
|
101
|
+
let tupledArg_1;
|
|
102
|
+
const tupledArg = Range_toBoundaries(area);
|
|
103
|
+
tupledArg_1 = [CellReference_moveHorizontal(amount, tupledArg[0]), CellReference_moveHorizontal(amount, tupledArg[1])];
|
|
104
|
+
return Range_ofBoundaries(tupledArg_1[0], tupledArg_1[1]);
|
|
105
|
+
}
|
|
106
|
+
function Range_moveVertical(amount, area) {
|
|
107
|
+
let tupledArg_1;
|
|
108
|
+
const tupledArg = Range_toBoundaries(area);
|
|
109
|
+
tupledArg_1 = [CellReference_moveHorizontal(amount, tupledArg[0]), CellReference_moveHorizontal(amount, tupledArg[1])];
|
|
110
|
+
return Range_ofBoundaries(tupledArg_1[0], tupledArg_1[1]);
|
|
111
|
+
}
|
|
112
|
+
function Range_extendRight(amount, area) {
|
|
113
|
+
let tupledArg_1;
|
|
114
|
+
const tupledArg = Range_toBoundaries(area);
|
|
115
|
+
tupledArg_1 = [tupledArg[0], CellReference_moveHorizontal(amount, tupledArg[1])];
|
|
116
|
+
return Range_ofBoundaries(tupledArg_1[0], tupledArg_1[1]);
|
|
117
|
+
}
|
|
118
|
+
function Range_extendLeft(amount, area) {
|
|
119
|
+
let tupledArg_1;
|
|
120
|
+
const tupledArg = Range_toBoundaries(area);
|
|
121
|
+
tupledArg_1 = [CellReference_moveHorizontal(amount, tupledArg[0]), tupledArg[1]];
|
|
122
|
+
return Range_ofBoundaries(tupledArg_1[0], tupledArg_1[1]);
|
|
123
|
+
}
|
|
124
|
+
function Range_referenceExceedsAreaRight(reference, area) {
|
|
125
|
+
return CellReference_toIndices(reference)[0] > Range_rightBoundary(area);
|
|
126
|
+
}
|
|
127
|
+
function Range_referenceExceedsAreaLeft(reference, area) {
|
|
128
|
+
return CellReference_toIndices(reference)[0] < Range_leftBoundary(area);
|
|
129
|
+
}
|
|
130
|
+
function Range_referenceExceedsAreaAbove(reference, area) {
|
|
131
|
+
return CellReference_toIndices(reference)[1] > Range_upperBoundary(area);
|
|
132
|
+
}
|
|
133
|
+
function Range_referenceExceedsAreaBelow(reference, area) {
|
|
134
|
+
return CellReference_toIndices(reference)[1] < Range_lowerBoundary(area);
|
|
135
|
+
}
|
|
136
|
+
function Range_referenceExceedsArea(reference, area) {
|
|
137
|
+
if ((Range_referenceExceedsAreaRight(reference, area) ? true : Range_referenceExceedsAreaLeft(reference, area)) ? true : Range_referenceExceedsAreaAbove(reference, area)) {
|
|
138
|
+
return true;
|
|
139
|
+
} else {
|
|
140
|
+
return Range_referenceExceedsAreaBelow(reference, area);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
function Range_isCorrect(area) {
|
|
144
|
+
try {
|
|
145
|
+
const hor = Range_leftBoundary(area) <= Range_rightBoundary(area);
|
|
146
|
+
const ver = Range_upperBoundary(area) <= Range_lowerBoundary(area);
|
|
147
|
+
if (!hor) {
|
|
148
|
+
toConsole(printf("Right area boundary must be higher or equal to left area boundary."));
|
|
149
|
+
}
|
|
150
|
+
if (!ver) {
|
|
151
|
+
toConsole(printf("Lower area boundary must be higher or equal to upper area boundary."));
|
|
152
|
+
}
|
|
153
|
+
return hor && ver;
|
|
154
|
+
} catch (err) {
|
|
155
|
+
const arg_1 = err.message;
|
|
156
|
+
toConsole(printf('Area "%s" could not be parsed: %s'))(area)(arg_1);
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
81
160
|
|
|
82
|
-
export { FsRangeAddress, Range_ofBoundaries, Range_toBoundaries };
|
|
161
|
+
export { FsRangeAddress, FsRangeAddress_$ctor_7E77A4A0, FsRangeAddress_$reflection, Range_extendLeft, Range_extendRight, Range_isCorrect, Range_leftBoundary, Range_lowerBoundary, Range_moveHorizontal, Range_moveVertical, Range_ofBoundaries, Range_referenceExceedsArea, Range_referenceExceedsAreaAbove, Range_referenceExceedsAreaBelow, Range_referenceExceedsAreaLeft, Range_referenceExceedsAreaRight, Range_rightBoundary, Range_toBoundaries, Range_upperBoundary };
|
|
@@ -3,13 +3,16 @@ import { defaultOf, equals } from '../../../../node_modules/@fable-org/fable-lib
|
|
|
3
3
|
import { toFail, printf } from '../../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
4
4
|
import { value } from '../../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
5
5
|
import { FsCell } from '../Cells/FsCell.fs.js';
|
|
6
|
+
import { class_type } from '../../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
6
7
|
|
|
7
8
|
class FsRangeBase {
|
|
8
9
|
constructor(rangeAddress) {
|
|
9
10
|
this._sortRows = defaultOf();
|
|
10
11
|
this._sortColumns = defaultOf();
|
|
11
12
|
this._rangeAddress = rangeAddress;
|
|
13
|
+
let _id;
|
|
12
14
|
FsRangeBase.IdCounter = FsRangeBase.IdCounter + 1 | 0;
|
|
15
|
+
_id = FsRangeBase.IdCounter;
|
|
13
16
|
}
|
|
14
17
|
Extend(address) {
|
|
15
18
|
const this$ = this;
|
|
@@ -22,7 +25,7 @@ class FsRangeBase {
|
|
|
22
25
|
set RangeAddress(rangeAdress) {
|
|
23
26
|
const this$ = this;
|
|
24
27
|
if (!equals(rangeAdress, this$._rangeAddress)) {
|
|
25
|
-
this$._rangeAddress;
|
|
28
|
+
const oldAddress = this$._rangeAddress;
|
|
26
29
|
this$._rangeAddress = rangeAdress;
|
|
27
30
|
}
|
|
28
31
|
}
|
|
@@ -43,7 +46,7 @@ class FsRangeBase {
|
|
|
43
46
|
const absoluteAddress = new FsAddress(absRow, absColumn, cellAddressInRange.FixedRow, cellAddressInRange.FixedColumn);
|
|
44
47
|
const newCell = FsCell.createEmptyWithAdress(absoluteAddress);
|
|
45
48
|
this$.Extend(absoluteAddress);
|
|
46
|
-
cells.Add(newCell, absRow, absColumn);
|
|
49
|
+
const value = cells.Add(newCell, absRow, absColumn);
|
|
47
50
|
return newCell;
|
|
48
51
|
} else {
|
|
49
52
|
return value(cell);
|
|
@@ -62,8 +65,14 @@ class FsRangeBase {
|
|
|
62
65
|
return this$._rangeAddress.LastAddress.RowNumber - this$._rangeAddress.FirstAddress.RowNumber + 1 | 0;
|
|
63
66
|
}
|
|
64
67
|
}
|
|
68
|
+
function FsRangeBase_$reflection() {
|
|
69
|
+
return class_type("FsSpreadsheet.FsRangeBase", void 0, FsRangeBase);
|
|
70
|
+
}
|
|
71
|
+
function FsRangeBase_$ctor_6A2513BC(rangeAddress) {
|
|
72
|
+
return new FsRangeBase(rangeAddress);
|
|
73
|
+
}
|
|
65
74
|
(() => {
|
|
66
75
|
FsRangeBase.IdCounter = 0;
|
|
67
76
|
})();
|
|
68
77
|
|
|
69
|
-
export { FsRangeBase };
|
|
78
|
+
export { FsRangeBase, FsRangeBase_$ctor_6A2513BC, FsRangeBase_$reflection };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { FsRangeAddress } from './FsRangeAddress.fs.js';
|
|
2
2
|
import { FsAddress } from '../FsAddress.fs.js';
|
|
3
|
-
import { FsRangeBase } from './FsRangeBase.fs.js';
|
|
3
|
+
import { FsRangeBase, FsRangeBase_$reflection } from './FsRangeBase.fs.js';
|
|
4
|
+
import { class_type } from '../../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
5
|
+
import { toList, map } from '../../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
6
|
+
import { rangeDouble } from '../../../../node_modules/@fable-org/fable-library-js/Range.js';
|
|
4
7
|
|
|
5
8
|
class FsRangeColumn extends FsRangeBase {
|
|
6
9
|
constructor(rangeAddress) {
|
|
@@ -38,5 +41,17 @@ class FsRangeColumn extends FsRangeBase {
|
|
|
38
41
|
return rangeColumn.Copy();
|
|
39
42
|
}
|
|
40
43
|
}
|
|
44
|
+
function FsRangeColumn_$reflection() {
|
|
45
|
+
return class_type("FsSpreadsheet.FsRangeColumn", void 0, FsRangeColumn, FsRangeBase_$reflection());
|
|
46
|
+
}
|
|
47
|
+
function FsRangeColumn_$ctor_6A2513BC(rangeAddress) {
|
|
48
|
+
return new FsRangeColumn(rangeAddress);
|
|
49
|
+
}
|
|
50
|
+
function FsSpreadsheet_FsRangeAddress__FsRangeAddress_toRangeColumns_Static_6A2513BC(rangeAddress) {
|
|
51
|
+
const columns = toList(rangeDouble(rangeAddress.FirstAddress.ColumnNumber, 1, rangeAddress.LastAddress.ColumnNumber));
|
|
52
|
+
const fstRow = rangeAddress.FirstAddress.RowNumber | 0;
|
|
53
|
+
const lstRow = rangeAddress.LastAddress.RowNumber | 0;
|
|
54
|
+
return map((c) => new FsRangeColumn(new FsRangeAddress(new FsAddress(fstRow, c), new FsAddress(lstRow, c))), columns);
|
|
55
|
+
}
|
|
41
56
|
|
|
42
|
-
export { FsRangeColumn };
|
|
57
|
+
export { FsRangeColumn, FsRangeColumn_$ctor_6A2513BC, FsRangeColumn_$reflection, FsSpreadsheet_FsRangeAddress__FsRangeAddress_toRangeColumns_Static_6A2513BC };
|