@nfdi4plants/arctrl 1.0.0-alpha9 → 1.0.0-beta.2
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/ARC.js +28 -29
- package/Contract/Contract.js +3 -3
- package/Contracts/Contracts.ArcAssay.js +3 -3
- package/Contracts/Contracts.ArcInvestigation.js +3 -3
- package/Contracts/Contracts.ArcStudy.js +3 -3
- package/Contracts/Contracts.Git.js +4 -4
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +15 -15
- package/FileSystem/Path.js +2 -2
- package/FileSystemTree.js +1 -1
- package/ISA/ISA/ArcTypes/ArcTable.js +20 -20
- package/ISA/ISA/ArcTypes/ArcTableAux.js +17 -17
- package/ISA/ISA/ArcTypes/ArcTables.js +283 -279
- package/ISA/ISA/ArcTypes/ArcTypes.js +89 -373
- package/ISA/ISA/ArcTypes/CompositeCell.js +4 -4
- package/ISA/ISA/ArcTypes/CompositeColumn.js +4 -4
- package/ISA/ISA/ArcTypes/CompositeHeader.js +5 -5
- package/ISA/ISA/ArcTypes/CompositeRow.js +1 -1
- package/ISA/ISA/Builder/Types.js +5 -5
- package/ISA/ISA/Fable.js +5 -5
- package/ISA/ISA/Helper.js +9 -9
- package/ISA/ISA/Identifier.js +2 -2
- package/ISA/ISA/JsonTypes/AnnotationValue.js +5 -5
- package/ISA/ISA/JsonTypes/Assay.js +26 -26
- package/ISA/ISA/JsonTypes/AssayMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/ColumnIndex.js +23 -23
- package/ISA/ISA/JsonTypes/Comment.js +3 -3
- package/ISA/ISA/JsonTypes/CommentList.js +4 -4
- package/ISA/ISA/JsonTypes/Component.js +12 -12
- package/ISA/ISA/JsonTypes/Data.js +4 -4
- package/ISA/ISA/JsonTypes/DataFile.js +2 -2
- package/ISA/ISA/JsonTypes/Factor.js +12 -12
- package/ISA/ISA/JsonTypes/FactorValue.js +5 -5
- package/ISA/ISA/JsonTypes/Investigation.js +6 -6
- package/ISA/ISA/JsonTypes/Material.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialAttribute.js +4 -4
- package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialType.js +2 -2
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +10 -10
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +8 -8
- package/ISA/ISA/JsonTypes/Person.js +9 -9
- package/ISA/ISA/JsonTypes/Process.js +11 -11
- package/ISA/ISA/JsonTypes/ProcessInput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessOutput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessParameterValue.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessSequence.js +14 -14
- package/ISA/ISA/JsonTypes/Protocol.js +6 -6
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +4 -4
- package/ISA/ISA/JsonTypes/Publication.js +8 -8
- package/ISA/ISA/JsonTypes/Sample.js +5 -5
- package/ISA/ISA/JsonTypes/Source.js +5 -5
- package/ISA/ISA/JsonTypes/Study.js +58 -58
- package/ISA/ISA/JsonTypes/StudyMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/Value.js +7 -7
- package/ISA/ISA/Regex.js +3 -3
- package/ISA/ISA.Json/Assay.js +5 -5
- package/ISA/ISA.Json/Comment.js +5 -5
- package/ISA/ISA.Json/ConverterOptions.js +1 -1
- package/ISA/ISA.Json/Data.js +5 -5
- package/ISA/ISA.Json/Decode.js +4 -4
- package/ISA/ISA.Json/Factor.js +5 -5
- package/ISA/ISA.Json/GEncode.js +3 -3
- package/ISA/ISA.Json/Investigation.js +6 -6
- package/ISA/ISA.Json/Material.js +5 -5
- package/ISA/ISA.Json/Ontology.js +6 -6
- package/ISA/ISA.Json/Person.js +10 -10
- package/ISA/ISA.Json/Process.js +5 -5
- package/ISA/ISA.Json/Protocol.js +6 -6
- package/ISA/ISA.Json/Publication.js +4 -4
- package/ISA/ISA.Json/Study.js +6 -6
- package/ISA/ISA.Json/Validation/Fable.js +6 -6
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +1 -1
- package/ISA/ISA.Json/Validation/ValidationResult.js +2 -2
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +19 -17
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +4 -4
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +9 -9
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +14 -14
- package/ISA/ISA.Spreadsheet/ArcAssay.js +17 -20
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +37 -37
- package/ISA/ISA.Spreadsheet/ArcStudy.js +13 -13
- package/ISA/ISA.Spreadsheet/CollectionAux.js +7 -7
- package/ISA/ISA.Spreadsheet/Metadata/Assays.js +10 -10
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +6 -6
- package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +11 -11
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +7 -7
- package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +1 -1
- package/ISA/ISA.Spreadsheet/Metadata/Factors.js +8 -8
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +7 -7
- package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Publication.js +9 -9
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +23 -23
- package/ISA/ISA.Spreadsheet/Metadata/Study.js +22 -22
- package/README.md +29 -253
- package/SemVer.js +7 -7
- package/Templates/Template.Json.js +12 -9
- package/Templates/Template.Spreadsheet.js +39 -23
- package/Templates/Template.Web.js +4 -4
- package/Templates/Template.js +7 -7
- package/Templates/Templates.js +5 -5
- package/WebRequest/WebRequest.js +4 -4
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +8 -8
- package/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.2.2.2}/Fable.Promise.fableproj +3 -4
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs +176 -0
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +143 -0
- package/fable_modules/Fable.Promise.2.2.2/PromiseImpl.fs +4 -0
- package/fable_modules/Fable.Promise.2.2.2/PromiseImpl.fs.js +4 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Cells/FsCell.fs +85 -36
- package/fable_modules/FsSpreadsheet.5.0.1/Cells/FsCell.fs.js +272 -0
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Cells/FsCellsCollection.fs.js +8 -8
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/CellBuilder.fs +1 -0
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/CellBuilder.fs.js +21 -21
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/DSL.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Expression.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Transform.fs +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Transform.fs.js +9 -8
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Types.fs +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Types.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsAddress.fs.js +9 -9
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsColumn.fs +3 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsRow.fs +2 -0
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsRow.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsWorkbook.fs.js +8 -8
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsWorksheet.fs +10 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsWorksheet.fs.js +24 -19
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeAddress.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/SheetBuilder.fs +4 -4
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/SheetBuilder.fs.js +10 -10
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTable.fs +20 -4
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTable.fs.js +33 -13
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +3 -3
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +26 -26
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +13 -13
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +2 -2
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +6 -6
- package/fable_modules/fable-library.4.4.1/CHANGELOG.md +11 -0
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Decimal.js +1 -1
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Double.js +1 -1
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Int32.js +1 -1
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Long.js +1 -1
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/README.md +2 -2
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Set.js +64 -64
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Util.d.ts +20 -0
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Util.js +120 -0
- package/fable_modules/fable-library.4.4.1/lib/big.d.ts +5 -0
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
- package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +0 -104
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs +0 -766
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +0 -217
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +0 -31
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +0 -19
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs.js +0 -240
- package/fable_modules/fable-library.4.1.4/lib/big.d.ts +0 -338
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Cells/FsCellsCollection.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/ColumnBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/DSL.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Expression.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Operators.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Operators.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/RowBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/TableBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/WorkbookBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsSpreadsheet.fableproj +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsWorkbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRange.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeBase.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTableField.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTableRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Array.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Array.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Async.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BigInt.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Boolean.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Char.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Choice.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Choice.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Date.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Encoding.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Event.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Global.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Guid.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/List.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/List.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Map.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MapUtil.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MapUtil.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableMap.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableSet.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Native.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Numeric.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Observable.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Option.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Random.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Range.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Reflection.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/RegExp.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq2.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/String.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/String.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Collections.Generic.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Collections.Generic.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Text.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Text.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/SystemException.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Timer.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Types.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Uri.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/lib/big.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/package.json +0 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { toString, Union } from "../../fable-library.4.4.1/Types.js";
|
|
2
|
+
import { class_type, union_type } from "../../fable-library.4.4.1/Reflection.js";
|
|
3
|
+
import { map, defaultArg, unwrap } from "../../fable-library.4.4.1/Option.js";
|
|
4
|
+
import { FsAddress__get_FixedRow, FsAddress__get_FixedColumn, FsAddress__get_Address, FsAddress__Copy, CellReference_indexToColAdress, FsAddress__get_ColumnNumber, FsAddress__get_RowNumber, FsAddress_$ctor_Z37302880 } from "../FsAddress.fs.js";
|
|
5
|
+
import { parse as parse_3 } from "../../fable-library.4.4.1/Decimal.js";
|
|
6
|
+
import Decimal from "../../fable-library.4.4.1/Decimal.js";
|
|
7
|
+
import { parse } from "../../fable-library.4.4.1/Double.js";
|
|
8
|
+
import { parse as parse_1 } from "../../fable-library.4.4.1/Int32.js";
|
|
9
|
+
import { toUInt64, toInt64 } from "../../fable-library.4.4.1/BigInt.js";
|
|
10
|
+
import { parse as parse_2 } from "../../fable-library.4.4.1/Long.js";
|
|
11
|
+
import { parse as parse_4 } from "../../fable-library.4.4.1/Date.js";
|
|
12
|
+
import { parse as parse_5 } from "../../fable-library.4.4.1/Guid.js";
|
|
13
|
+
import { parse as parse_6 } from "../../fable-library.4.4.1/Char.js";
|
|
14
|
+
import { forAll } from "../../fable-library.4.4.1/Seq.js";
|
|
15
|
+
import { equals } from "../../fable-library.4.4.1/Util.js";
|
|
16
|
+
|
|
17
|
+
export class DataType extends Union {
|
|
18
|
+
constructor(tag, fields) {
|
|
19
|
+
super();
|
|
20
|
+
this.tag = tag;
|
|
21
|
+
this.fields = fields;
|
|
22
|
+
}
|
|
23
|
+
cases() {
|
|
24
|
+
return ["String", "Boolean", "Number", "Date", "Empty"];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function DataType_$reflection() {
|
|
29
|
+
return union_type("FsSpreadsheet.DataType", [], DataType, () => [[], [], [], [], []]);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function FsCellAux_boolConverter(bool) {
|
|
33
|
+
if (bool) {
|
|
34
|
+
return "1";
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
return "0";
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export class FsCell {
|
|
42
|
+
constructor(value, dataType, address) {
|
|
43
|
+
this._cellValue = value;
|
|
44
|
+
this._dataType = defaultArg(dataType, new DataType(0, []));
|
|
45
|
+
this._comment = "";
|
|
46
|
+
this._hyperlink = "";
|
|
47
|
+
this._richText = "";
|
|
48
|
+
this._formulaA1 = "";
|
|
49
|
+
this._formulaR1C1 = "";
|
|
50
|
+
this._rowIndex = (defaultArg(map(FsAddress__get_RowNumber, address), 0) | 0);
|
|
51
|
+
this._columnIndex = (defaultArg(map(FsAddress__get_ColumnNumber, address), 0) | 0);
|
|
52
|
+
}
|
|
53
|
+
static ".ctor"(value, dataType, address) {
|
|
54
|
+
return new FsCell(value, unwrap(dataType), unwrap(address));
|
|
55
|
+
}
|
|
56
|
+
get Value() {
|
|
57
|
+
const self = this;
|
|
58
|
+
return self._cellValue;
|
|
59
|
+
}
|
|
60
|
+
set Value(value) {
|
|
61
|
+
const self = this;
|
|
62
|
+
self._cellValue = value;
|
|
63
|
+
}
|
|
64
|
+
get DataType() {
|
|
65
|
+
const self = this;
|
|
66
|
+
return self._dataType;
|
|
67
|
+
}
|
|
68
|
+
set DataType(dataType) {
|
|
69
|
+
const self = this;
|
|
70
|
+
self._dataType = dataType;
|
|
71
|
+
}
|
|
72
|
+
get ColumnNumber() {
|
|
73
|
+
const self = this;
|
|
74
|
+
return self._columnIndex | 0;
|
|
75
|
+
}
|
|
76
|
+
set ColumnNumber(colI) {
|
|
77
|
+
const self = this;
|
|
78
|
+
self._columnIndex = (colI | 0);
|
|
79
|
+
}
|
|
80
|
+
get RowNumber() {
|
|
81
|
+
const self = this;
|
|
82
|
+
return self._rowIndex | 0;
|
|
83
|
+
}
|
|
84
|
+
set RowNumber(rowI) {
|
|
85
|
+
const self = this;
|
|
86
|
+
self._rowIndex = (rowI | 0);
|
|
87
|
+
}
|
|
88
|
+
get Address() {
|
|
89
|
+
const self = this;
|
|
90
|
+
return FsAddress_$ctor_Z37302880(self._rowIndex, self._columnIndex);
|
|
91
|
+
}
|
|
92
|
+
set Address(address) {
|
|
93
|
+
const self = this;
|
|
94
|
+
self._rowIndex = (FsAddress__get_RowNumber(address) | 0);
|
|
95
|
+
self._columnIndex = (FsAddress__get_ColumnNumber(address) | 0);
|
|
96
|
+
}
|
|
97
|
+
static create(rowNumber, colNumber, value) {
|
|
98
|
+
let patternInput;
|
|
99
|
+
const value_1_1 = value;
|
|
100
|
+
patternInput = ((typeof value_1_1 === "string") ? [new DataType(0, []), value_1_1] : ((typeof value_1_1 === "boolean") ? (value_1_1 ? [new DataType(1, []), true] : [new DataType(1, []), false]) : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "bigint") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "bigint") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((value_1_1 instanceof Decimal) ? [new DataType(2, []), value_1_1] : ((value_1_1 instanceof Date) ? [new DataType(3, []), value_1_1] : ((typeof value_1_1 === "string") ? [new DataType(0, []), value_1_1] : [new DataType(0, []), value_1_1])))))))))))))));
|
|
101
|
+
return new FsCell(patternInput[1], patternInput[0], FsAddress_$ctor_Z37302880(rowNumber, colNumber));
|
|
102
|
+
}
|
|
103
|
+
static createEmpty() {
|
|
104
|
+
return new FsCell("", new DataType(4, []), FsAddress_$ctor_Z37302880(0, 0));
|
|
105
|
+
}
|
|
106
|
+
static createWithAdress(adress, value) {
|
|
107
|
+
let patternInput;
|
|
108
|
+
const value_1_1 = value;
|
|
109
|
+
patternInput = ((typeof value_1_1 === "string") ? [new DataType(0, []), value_1_1] : ((typeof value_1_1 === "boolean") ? (value_1_1 ? [new DataType(1, []), true] : [new DataType(1, []), false]) : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "bigint") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "bigint") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((value_1_1 instanceof Decimal) ? [new DataType(2, []), value_1_1] : ((value_1_1 instanceof Date) ? [new DataType(3, []), value_1_1] : ((typeof value_1_1 === "string") ? [new DataType(0, []), value_1_1] : [new DataType(0, []), value_1_1])))))))))))))));
|
|
110
|
+
return new FsCell(patternInput[1], patternInput[0], adress);
|
|
111
|
+
}
|
|
112
|
+
static createEmptyWithAdress(adress) {
|
|
113
|
+
return new FsCell("", new DataType(4, []), adress);
|
|
114
|
+
}
|
|
115
|
+
static createWithDataType(dataType, rowNumber, colNumber, value) {
|
|
116
|
+
return new FsCell(value, dataType, FsAddress_$ctor_Z37302880(rowNumber, colNumber));
|
|
117
|
+
}
|
|
118
|
+
toString() {
|
|
119
|
+
const self = this;
|
|
120
|
+
return `${CellReference_indexToColAdress(self.ColumnNumber >>> 0)}${self.RowNumber} : ${self.Value} | ${self.DataType}`;
|
|
121
|
+
}
|
|
122
|
+
CopyFrom(otherCell) {
|
|
123
|
+
const self = this;
|
|
124
|
+
self.DataType = otherCell.DataType;
|
|
125
|
+
self.Value = otherCell.Value;
|
|
126
|
+
}
|
|
127
|
+
CopyTo(target) {
|
|
128
|
+
const self = this;
|
|
129
|
+
target.DataType = self.DataType;
|
|
130
|
+
target.Value = self.Value;
|
|
131
|
+
}
|
|
132
|
+
static copyFromTo(sourceCell, targetCell) {
|
|
133
|
+
targetCell.DataType = sourceCell.DataType;
|
|
134
|
+
targetCell.Value = sourceCell.Value;
|
|
135
|
+
return targetCell;
|
|
136
|
+
}
|
|
137
|
+
Copy() {
|
|
138
|
+
const self = this;
|
|
139
|
+
return new FsCell(self.Value, self.DataType, FsAddress__Copy(self.Address));
|
|
140
|
+
}
|
|
141
|
+
static copy(cell) {
|
|
142
|
+
return cell.Copy();
|
|
143
|
+
}
|
|
144
|
+
ValueAsString() {
|
|
145
|
+
const self = this;
|
|
146
|
+
const v = self.Value;
|
|
147
|
+
const matchValue = self.DataType;
|
|
148
|
+
switch (matchValue.tag) {
|
|
149
|
+
case 2:
|
|
150
|
+
return toString(v);
|
|
151
|
+
default:
|
|
152
|
+
return toString(v);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
static getValueAsString(cell) {
|
|
156
|
+
return cell.ValueAsString();
|
|
157
|
+
}
|
|
158
|
+
ValueAsBool() {
|
|
159
|
+
const self = this;
|
|
160
|
+
const matchValue = toString(self.Value).toLocaleLowerCase();
|
|
161
|
+
switch (matchValue) {
|
|
162
|
+
case "1":
|
|
163
|
+
case "true":
|
|
164
|
+
case "true()":
|
|
165
|
+
return true;
|
|
166
|
+
case "0":
|
|
167
|
+
case "false":
|
|
168
|
+
case "false()":
|
|
169
|
+
return false;
|
|
170
|
+
default:
|
|
171
|
+
throw new Error(`String '${matchValue}' was not recognized as a valid Boolean`);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
static getValueAsBool(cell) {
|
|
175
|
+
return cell.ValueAsBool();
|
|
176
|
+
}
|
|
177
|
+
ValueAsFloat() {
|
|
178
|
+
const self = this;
|
|
179
|
+
return parse(toString(self.Value));
|
|
180
|
+
}
|
|
181
|
+
static getValueAsFloat(cell) {
|
|
182
|
+
return cell.ValueAsFloat();
|
|
183
|
+
}
|
|
184
|
+
ValueAsInt() {
|
|
185
|
+
const self = this;
|
|
186
|
+
return parse_1(toString(self.Value), 511, false, 32) | 0;
|
|
187
|
+
}
|
|
188
|
+
static getValueAsInt(cell) {
|
|
189
|
+
return cell.ValueAsInt();
|
|
190
|
+
}
|
|
191
|
+
ValueAsUInt() {
|
|
192
|
+
const self = this;
|
|
193
|
+
return parse_1(toString(self.Value), 511, true, 32);
|
|
194
|
+
}
|
|
195
|
+
static getValueAsUInt(cell) {
|
|
196
|
+
return cell.ValueAsUInt();
|
|
197
|
+
}
|
|
198
|
+
ValueAsLong() {
|
|
199
|
+
const self = this;
|
|
200
|
+
return toInt64(parse_2(toString(self.Value), 511, false, 64));
|
|
201
|
+
}
|
|
202
|
+
static getValueAsLong(cell) {
|
|
203
|
+
return cell.ValueAsLong();
|
|
204
|
+
}
|
|
205
|
+
ValueAsULong() {
|
|
206
|
+
const self = this;
|
|
207
|
+
return toUInt64(parse_2(toString(self.Value), 511, true, 64));
|
|
208
|
+
}
|
|
209
|
+
static getValueAsULong(cell) {
|
|
210
|
+
return cell.ValueAsULong();
|
|
211
|
+
}
|
|
212
|
+
ValueAsDouble() {
|
|
213
|
+
const self = this;
|
|
214
|
+
return parse(toString(self.Value));
|
|
215
|
+
}
|
|
216
|
+
static getValueAsDouble(cell) {
|
|
217
|
+
return cell.ValueAsDouble();
|
|
218
|
+
}
|
|
219
|
+
ValueAsDecimal() {
|
|
220
|
+
const self = this;
|
|
221
|
+
return parse_3(toString(self.Value));
|
|
222
|
+
}
|
|
223
|
+
static getValueAsDecimal(cell) {
|
|
224
|
+
return cell.ValueAsDecimal();
|
|
225
|
+
}
|
|
226
|
+
ValueAsDateTime() {
|
|
227
|
+
const self = this;
|
|
228
|
+
return parse_4(toString(self.Value));
|
|
229
|
+
}
|
|
230
|
+
static getValueAsDateTime(cell) {
|
|
231
|
+
return cell.ValueAsDateTime();
|
|
232
|
+
}
|
|
233
|
+
ValueAsGuid() {
|
|
234
|
+
const self = this;
|
|
235
|
+
return parse_5(toString(self.Value));
|
|
236
|
+
}
|
|
237
|
+
static getValueAsGuid(cell) {
|
|
238
|
+
return cell.ValueAsGuid();
|
|
239
|
+
}
|
|
240
|
+
ValueAsChar() {
|
|
241
|
+
const self = this;
|
|
242
|
+
return parse_6(toString(self.Value));
|
|
243
|
+
}
|
|
244
|
+
static getValueAsChar(cell) {
|
|
245
|
+
return cell.ValueAsChar();
|
|
246
|
+
}
|
|
247
|
+
SetValueAs(value) {
|
|
248
|
+
const self = this;
|
|
249
|
+
let patternInput;
|
|
250
|
+
const value_1_1 = value;
|
|
251
|
+
patternInput = ((typeof value_1_1 === "string") ? [new DataType(0, []), value_1_1] : ((typeof value_1_1 === "boolean") ? (value_1_1 ? [new DataType(1, []), true] : [new DataType(1, []), false]) : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "bigint") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "bigint") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((typeof value_1_1 === "number") ? [new DataType(2, []), value_1_1] : ((value_1_1 instanceof Decimal) ? [new DataType(2, []), value_1_1] : ((value_1_1 instanceof Date) ? [new DataType(3, []), value_1_1] : ((typeof value_1_1 === "string") ? [new DataType(0, []), value_1_1] : [new DataType(0, []), value_1_1])))))))))))))));
|
|
252
|
+
self._dataType = patternInput[0];
|
|
253
|
+
self._cellValue = patternInput[1];
|
|
254
|
+
}
|
|
255
|
+
static setValueAs(value, cell) {
|
|
256
|
+
cell.SetValueAs(value);
|
|
257
|
+
return cell;
|
|
258
|
+
}
|
|
259
|
+
StructurallyEquals(other) {
|
|
260
|
+
const this$ = this;
|
|
261
|
+
return forAll((x_1) => (x_1 === true), [equals(this$.Value, other.Value), equals(this$.DataType, other.DataType), forAll((x) => (x === true), [FsAddress__get_Address(this$.Address) === FsAddress__get_Address(other.Address), FsAddress__get_ColumnNumber(this$.Address) === FsAddress__get_ColumnNumber(other.Address), FsAddress__get_RowNumber(this$.Address) === FsAddress__get_RowNumber(other.Address), FsAddress__get_FixedColumn(this$.Address) === FsAddress__get_FixedColumn(other.Address), FsAddress__get_FixedRow(this$.Address) === FsAddress__get_FixedRow(other.Address)]), this$.ColumnNumber === other.ColumnNumber, this$.RowNumber === other.RowNumber]);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export function FsCell_$reflection() {
|
|
266
|
+
return class_type("FsSpreadsheet.FsCell", void 0, FsCell);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export function FsCell_$ctor_2BEF9BB0(value, dataType, address) {
|
|
270
|
+
return new FsCell(value, dataType, address);
|
|
271
|
+
}
|
|
272
|
+
|
package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Cells/FsCellsCollection.fs.js
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { addToSet, addToDict, getItemFromDict } from "../../fable-library.4.1
|
|
2
|
-
import { some } from "../../fable-library.4.1
|
|
3
|
-
import { class_type } from "../../fable-library.4.1
|
|
4
|
-
import { minBy, min, singleton, empty, delay, collect, max, isEmpty, iterate, map } from "../../fable-library.4.1
|
|
1
|
+
import { addToSet, addToDict, getItemFromDict } from "../../fable-library.4.4.1/MapUtil.js";
|
|
2
|
+
import { some } from "../../fable-library.4.4.1/Option.js";
|
|
3
|
+
import { class_type } from "../../fable-library.4.4.1/Reflection.js";
|
|
4
|
+
import { minBy, min, singleton, empty, delay, collect, max, isEmpty, iterate, map } from "../../fable-library.4.4.1/Seq.js";
|
|
5
5
|
import { FsAddress_$ctor_Z37302880, FsAddress__get_ColumnNumber, FsAddress__get_RowNumber } from "../FsAddress.fs.js";
|
|
6
|
-
import { comparePrimitives } from "../../fable-library.4.1
|
|
7
|
-
import { rangeDouble } from "../../fable-library.4.1
|
|
6
|
+
import { comparePrimitives } from "../../fable-library.4.4.1/Util.js";
|
|
7
|
+
import { rangeDouble } from "../../fable-library.4.4.1/Range.js";
|
|
8
8
|
|
|
9
9
|
export function Dictionary_tryGet(k, dict) {
|
|
10
10
|
if (dict.has(k)) {
|
|
@@ -172,8 +172,8 @@ export function FsCellsCollection_addCell(cell, cellsCollection) {
|
|
|
172
172
|
* Adds FsCells to the FsCellsCollection.
|
|
173
173
|
*/
|
|
174
174
|
export function FsCellsCollection__Add_Z21F271A4(this$, cells) {
|
|
175
|
-
iterate((
|
|
176
|
-
const value = FsCellsCollection__Add_Z334DF64D(this$,
|
|
175
|
+
iterate((arg) => {
|
|
176
|
+
const value = FsCellsCollection__Add_Z334DF64D(this$, arg);
|
|
177
177
|
}, cells);
|
|
178
178
|
}
|
|
179
179
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Union } from "../../fable-library.4.1
|
|
2
|
-
import { class_type, union_type, char_type } from "../../fable-library.4.1
|
|
1
|
+
import { toString, Union } from "../../fable-library.4.4.1/Types.js";
|
|
2
|
+
import { class_type, union_type, char_type } from "../../fable-library.4.4.1/Reflection.js";
|
|
3
3
|
import { DataType } from "../Cells/FsCell.fs.js";
|
|
4
|
-
import { head, tail, isEmpty, append, empty, map, reduce } from "../../fable-library.4.1
|
|
4
|
+
import { head, tail, isEmpty, append, empty, map, reduce } from "../../fable-library.4.4.1/List.js";
|
|
5
5
|
import { SheetEntity$1__get_Messages, Message__MapText_11D407F6, SheetEntity$1 } from "./Types.fs.js";
|
|
6
|
-
import { printf, toText } from "../../fable-library.4.1
|
|
6
|
+
import { printf, toText } from "../../fable-library.4.4.1/String.js";
|
|
7
7
|
import { OptionalSource$1__get_Source, RequiredSource$1__get_Source, OptionalSource$1_$ctor_2B595, RequiredSource$1_$ctor_2B595 } from "./Expression.fs.js";
|
|
8
8
|
|
|
9
9
|
export class ReduceOperation extends Union {
|
|
@@ -21,8 +21,8 @@ export function ReduceOperation_$reflection() {
|
|
|
21
21
|
return union_type("FsSpreadsheet.DSL.ReduceOperation", [], ReduceOperation, () => [[["Item", char_type]]]);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export function
|
|
25
|
-
return [new DataType(0, []), reduce((a, b) => (`${a}${this$.fields[0]}${b}`), map((arg) => arg[1], values))];
|
|
24
|
+
export function ReduceOperation__Reduce_70D1A69E(this$, values) {
|
|
25
|
+
return [new DataType(0, []), reduce((a, b) => (`${a}${this$.fields[0]}${b}`), map((arg) => toString(arg[1]), values))];
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export class CellBuilder {
|
|
@@ -55,7 +55,7 @@ export function CellBuilder__Yield_36B9E420(this$, ro) {
|
|
|
55
55
|
return new SheetEntity$1(1, [empty()]);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
export function
|
|
58
|
+
export function CellBuilder__Combine_F07E260(this$, wx1, wx2) {
|
|
59
59
|
let matchResult, l1, l2, messages1, messages2, messages2_1, messages1_1, f1, messages1_2, messages2_2, f2, messages1_3, messages2_3, messages1_4, messages2_4;
|
|
60
60
|
switch (wx1.tag) {
|
|
61
61
|
case 2: {
|
|
@@ -130,39 +130,39 @@ export function CellBuilder__Combine_4F8B6A0(this$, wx1, wx2) {
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
export function
|
|
133
|
+
export function CellBuilder__Combine_4BCE267E(this$, wx1, wx2) {
|
|
134
134
|
return RequiredSource$1_$ctor_2B595(wx2);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
export function
|
|
137
|
+
export function CellBuilder__Combine_Z2CF9C142(this$, wx1, wx2) {
|
|
138
138
|
return RequiredSource$1_$ctor_2B595(wx1);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
export function
|
|
141
|
+
export function CellBuilder__Combine_583F6A19(this$, wx1, wx2) {
|
|
142
142
|
return OptionalSource$1_$ctor_2B595(wx2);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
export function
|
|
145
|
+
export function CellBuilder__Combine_168D7AF9(this$, wx1, wx2) {
|
|
146
146
|
return OptionalSource$1_$ctor_2B595(wx1);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
export function
|
|
150
|
-
return RequiredSource$1_$ctor_2B595(
|
|
149
|
+
export function CellBuilder__Combine_32507AAF(this$, wx1, wx2) {
|
|
150
|
+
return RequiredSource$1_$ctor_2B595(CellBuilder__Combine_F07E260(this$, RequiredSource$1__get_Source(wx1), wx2));
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
export function
|
|
154
|
-
return RequiredSource$1_$ctor_2B595(
|
|
153
|
+
export function CellBuilder__Combine_Z3ABF6771(this$, wx1, wx2) {
|
|
154
|
+
return RequiredSource$1_$ctor_2B595(CellBuilder__Combine_F07E260(this$, wx1, RequiredSource$1__get_Source(wx2)));
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
export function
|
|
158
|
-
return OptionalSource$1_$ctor_2B595(
|
|
157
|
+
export function CellBuilder__Combine_Z2BFC83F8(this$, wx1, wx2) {
|
|
158
|
+
return OptionalSource$1_$ctor_2B595(CellBuilder__Combine_F07E260(this$, OptionalSource$1__get_Source(wx1), wx2));
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
export function
|
|
162
|
-
return OptionalSource$1_$ctor_2B595(
|
|
161
|
+
export function CellBuilder__Combine_245D6C8(this$, wx1, wx2) {
|
|
162
|
+
return OptionalSource$1_$ctor_2B595(CellBuilder__Combine_F07E260(this$, wx1, OptionalSource$1__get_Source(wx2)));
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
export function
|
|
165
|
+
export function CellBuilder__AsCellElement_6F87C2ED(this$, children) {
|
|
166
166
|
let matchResult, messages, v, messages_1, vals, messages_2, messages_3;
|
|
167
167
|
switch (children.tag) {
|
|
168
168
|
case 2: {
|
|
@@ -198,7 +198,7 @@ export function CellBuilder__AsCellElement_825BA8D(this$, children) {
|
|
|
198
198
|
case 0:
|
|
199
199
|
return new SheetEntity$1(0, [[v, void 0], messages]);
|
|
200
200
|
case 1:
|
|
201
|
-
return new SheetEntity$1(0, [[
|
|
201
|
+
return new SheetEntity$1(0, [[ReduceOperation__Reduce_70D1A69E(this$.reducer, vals), void 0], messages_1]);
|
|
202
202
|
case 2:
|
|
203
203
|
return new SheetEntity$1(2, [messages_2]);
|
|
204
204
|
default:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { class_type } from "../../fable-library.4.1
|
|
1
|
+
import { class_type } from "../../fable-library.4.4.1/Reflection.js";
|
|
2
2
|
import { SheetEntity$1__get_Messages, SheetEntity$1, Message__MapText_11D407F6, SheetEntity$1_some_2B595 } from "./Types.fs.js";
|
|
3
|
-
import { append, map, empty } from "../../fable-library.4.1
|
|
4
|
-
import { printf, toText } from "../../fable-library.4.1
|
|
3
|
+
import { append, map, empty } from "../../fable-library.4.4.1/List.js";
|
|
4
|
+
import { printf, toText } from "../../fable-library.4.4.1/String.js";
|
|
5
5
|
import { OptionalSource$1__get_Source, RequiredSource$1__get_Source, OptionalSource$1_$ctor_2B595, RequiredSource$1_$ctor_2B595 } from "./Expression.fs.js";
|
|
6
6
|
|
|
7
7
|
export class ColumnBuilder {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { class_type } from "../../fable-library.4.1
|
|
1
|
+
import { class_type } from "../../fable-library.4.4.1/Reflection.js";
|
|
2
2
|
import { SheetEntity$1 } from "./Types.fs.js";
|
|
3
|
-
import { singleton } from "../../fable-library.4.1
|
|
3
|
+
import { singleton } from "../../fable-library.4.4.1/List.js";
|
|
4
4
|
|
|
5
5
|
export class DSL {
|
|
6
6
|
constructor() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { class_type } from "../../fable-library.4.1
|
|
1
|
+
import { class_type } from "../../fable-library.4.4.1/Reflection.js";
|
|
2
2
|
import { SheetEntity$1__get_Messages, SheetEntity$1, Message__MapText_11D407F6, SheetEntity$1_some_2B595 } from "./Types.fs.js";
|
|
3
|
-
import { append, map, empty } from "../../fable-library.4.1
|
|
4
|
-
import { printf, toText } from "../../fable-library.4.1
|
|
3
|
+
import { append, map, empty } from "../../fable-library.4.4.1/List.js";
|
|
4
|
+
import { printf, toText } from "../../fable-library.4.4.1/String.js";
|
|
5
5
|
import { OptionalSource$1__get_Source, RequiredSource$1__get_Source, OptionalSource$1_$ctor_2B595, RequiredSource$1_$ctor_2B595 } from "./Expression.fs.js";
|
|
6
6
|
|
|
7
7
|
export class RowBuilder {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { class_type } from "../../fable-library.4.1
|
|
1
|
+
import { class_type } from "../../fable-library.4.4.1/Reflection.js";
|
|
2
2
|
import { SheetEntity$1__get_Messages, SheetEntity$1, Message__MapText_11D407F6, SheetEntity$1_some_2B595 } from "./Types.fs.js";
|
|
3
|
-
import { append, map, empty } from "../../fable-library.4.1
|
|
4
|
-
import { printf, toText } from "../../fable-library.4.1
|
|
3
|
+
import { append, map, empty } from "../../fable-library.4.4.1/List.js";
|
|
4
|
+
import { printf, toText } from "../../fable-library.4.4.1/String.js";
|
|
5
5
|
|
|
6
6
|
export class SheetBuilder {
|
|
7
7
|
constructor(name) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { class_type } from "../../fable-library.4.1
|
|
1
|
+
import { class_type } from "../../fable-library.4.4.1/Reflection.js";
|
|
2
2
|
import { SheetEntity$1__get_Messages, SheetEntity$1, Message__MapText_11D407F6, SheetEntity$1_some_2B595 } from "./Types.fs.js";
|
|
3
|
-
import { append, map, empty } from "../../fable-library.4.1
|
|
4
|
-
import { printf, toText } from "../../fable-library.4.1
|
|
3
|
+
import { append, map, empty } from "../../fable-library.4.4.1/List.js";
|
|
4
|
+
import { printf, toText } from "../../fable-library.4.4.1/String.js";
|
|
5
5
|
|
|
6
6
|
export class TableBuilder {
|
|
7
7
|
constructor(name) {
|
|
@@ -72,7 +72,7 @@ module Transform =
|
|
|
72
72
|
match col with
|
|
73
73
|
| [] -> failwith "Empty column"
|
|
74
74
|
| header :: fields ->
|
|
75
|
-
let field = table.Field(snd header, cellCollection)
|
|
75
|
+
let field = table.Field(snd >> string <| header, cellCollection)
|
|
76
76
|
fields
|
|
77
77
|
|> List.iteri (fun i (dataType,value) ->
|
|
78
78
|
let cell = field.Column.Cell(i + 2,cellCollection)
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { choose, transpose, map, iterateIndexed, iterate, ofArrayWithTail, empty, reverse, singleton, tail as tail_25, cons, head, isEmpty } from "../../fable-library.4.1
|
|
1
|
+
import { choose, transpose, map, iterateIndexed, iterate, ofArrayWithTail, empty, reverse, singleton, tail as tail_25, cons, head, isEmpty } from "../../fable-library.4.4.1/List.js";
|
|
2
2
|
import { RowIndex__get_Index, ColumnIndex__get_Index, TableElement__get_IsColumn, SheetElement } from "./Types.fs.js";
|
|
3
|
+
import { toString } from "../../fable-library.4.4.1/Types.js";
|
|
3
4
|
import { FsRangeColumn__Cell_Z4232C216 } from "../Ranges/FsRangeColumn.fs.js";
|
|
4
5
|
import { FsTableField__get_Column } from "../Tables/FsTableField.fs.js";
|
|
5
|
-
import { add, FSharpSet__Contains, ofSeq } from "../../fable-library.4.1
|
|
6
|
-
import { comparePrimitives } from "../../fable-library.4.1
|
|
7
|
-
import { max } from "../../fable-library.4.1
|
|
6
|
+
import { add, FSharpSet__Contains, ofSeq } from "../../fable-library.4.4.1/Set.js";
|
|
7
|
+
import { comparePrimitives } from "../../fable-library.4.4.1/Util.js";
|
|
8
|
+
import { max } from "../../fable-library.4.4.1/Seq.js";
|
|
8
9
|
import { FsCellsCollection__get_MaxRowNumber } from "../Cells/FsCellsCollection.fs.js";
|
|
9
10
|
import { FsRangeAddress_$ctor_7E77A4A0 } from "../Ranges/FsRangeAddress.fs.js";
|
|
10
11
|
import { FsAddress_$ctor_Z37302880 } from "../FsAddress.fs.js";
|
|
11
|
-
import { toText, printf, toFail } from "../../fable-library.4.1
|
|
12
|
+
import { toText, printf, toFail } from "../../fable-library.4.4.1/String.js";
|
|
12
13
|
import { FsWorkbook } from "../FsWorkbook.fs.js";
|
|
13
14
|
import { FsWorksheet } from "../FsWorksheet.fs.js";
|
|
14
15
|
|
|
@@ -166,7 +167,7 @@ export function splitRowsAndColumns(els) {
|
|
|
166
167
|
export function FsSpreadsheet_DSL_Workbook__Workbook_parseTable_Static(cellCollection, table, els) {
|
|
167
168
|
iterate((col_2) => {
|
|
168
169
|
if (!isEmpty(col_2)) {
|
|
169
|
-
const field = table.Field(head(col_2)[1], cellCollection);
|
|
170
|
+
const field = table.Field(toString(head(col_2)[1]), cellCollection);
|
|
170
171
|
iterateIndexed((i, tupledArg) => {
|
|
171
172
|
const cell_4 = FsRangeColumn__Cell_Z4232C216(FsTableField__get_Column(field), i + 2, cellCollection);
|
|
172
173
|
cell_4.DataType = tupledArg[0];
|
|
@@ -379,12 +380,12 @@ export function FsSpreadsheet_DSL_Workbook__Workbook_parseSheet_Static(sheet, el
|
|
|
379
380
|
break;
|
|
380
381
|
}
|
|
381
382
|
case 2: {
|
|
382
|
-
const
|
|
383
|
+
const row_4 = sheet.Row((i_1 = 1, ((() => {
|
|
383
384
|
while (FSharpSet__Contains(rowIndexSet, i_1)) {
|
|
384
385
|
i_1 = ((i_1 + 1) | 0);
|
|
385
386
|
}
|
|
386
387
|
})(), (rowIndexSet = add(i_1, rowIndexSet), i_1))));
|
|
387
|
-
FsSpreadsheet_DSL_Workbook__Workbook_parseRow_Static(sheet.CellCollection,
|
|
388
|
+
FsSpreadsheet_DSL_Workbook__Workbook_parseRow_Static(sheet.CellCollection, row_4, _arg_1.fields[0]);
|
|
388
389
|
break;
|
|
389
390
|
}
|
|
390
391
|
default:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Union } from "../../fable-library.4.1
|
|
2
|
-
import { tuple_type, int32_type, list_type, union_type, class_type, string_type } from "../../fable-library.4.1
|
|
3
|
-
import { empty, pick, exists, map, reduce } from "../../fable-library.4.1
|
|
4
|
-
import { printf, toConsole } from "../../fable-library.4.1
|
|
1
|
+
import { Union } from "../../fable-library.4.4.1/Types.js";
|
|
2
|
+
import { tuple_type, obj_type, int32_type, list_type, union_type, class_type, string_type } from "../../fable-library.4.4.1/Reflection.js";
|
|
3
|
+
import { empty, pick, exists, map, reduce } from "../../fable-library.4.4.1/List.js";
|
|
4
|
+
import { printf, toConsole } from "../../fable-library.4.4.1/String.js";
|
|
5
5
|
import { DataType_$reflection } from "../Cells/FsCell.fs.js";
|
|
6
6
|
|
|
7
7
|
export class Message extends Union {
|
|
@@ -179,7 +179,7 @@ export class ColumnElement extends Union {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
export function ColumnElement_$reflection() {
|
|
182
|
-
return union_type("FsSpreadsheet.DSL.ColumnElement", [], ColumnElement, () => [[["Item1", RowIndex_$reflection()], ["Item2", tuple_type(DataType_$reflection(),
|
|
182
|
+
return union_type("FsSpreadsheet.DSL.ColumnElement", [], ColumnElement, () => [[["Item1", RowIndex_$reflection()], ["Item2", tuple_type(DataType_$reflection(), obj_type)]], [["Item", tuple_type(DataType_$reflection(), obj_type)]]]);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
export class RowElement extends Union {
|
|
@@ -194,7 +194,7 @@ export class RowElement extends Union {
|
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
export function RowElement_$reflection() {
|
|
197
|
-
return union_type("FsSpreadsheet.DSL.RowElement", [], RowElement, () => [[["Item1", ColumnIndex_$reflection()], ["Item2", tuple_type(DataType_$reflection(),
|
|
197
|
+
return union_type("FsSpreadsheet.DSL.RowElement", [], RowElement, () => [[["Item1", ColumnIndex_$reflection()], ["Item2", tuple_type(DataType_$reflection(), obj_type)]], [["Item", tuple_type(DataType_$reflection(), obj_type)]]]);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
export class TableElement extends Union {
|
|
@@ -242,7 +242,7 @@ export class SheetElement extends Union {
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
export function SheetElement_$reflection() {
|
|
245
|
-
return union_type("FsSpreadsheet.DSL.SheetElement", [], SheetElement, () => [[["Item1", string_type], ["Item2", list_type(TableElement_$reflection())]], [["Item1", RowIndex_$reflection()], ["Item2", list_type(RowElement_$reflection())]], [["Item", list_type(RowElement_$reflection())]], [["Item1", ColumnIndex_$reflection()], ["Item2", list_type(ColumnElement_$reflection())]], [["Item", list_type(ColumnElement_$reflection())]], [["Item1", RowIndex_$reflection()], ["Item2", ColumnIndex_$reflection()], ["Item3", tuple_type(DataType_$reflection(),
|
|
245
|
+
return union_type("FsSpreadsheet.DSL.SheetElement", [], SheetElement, () => [[["Item1", string_type], ["Item2", list_type(TableElement_$reflection())]], [["Item1", RowIndex_$reflection()], ["Item2", list_type(RowElement_$reflection())]], [["Item", list_type(RowElement_$reflection())]], [["Item1", ColumnIndex_$reflection()], ["Item2", list_type(ColumnElement_$reflection())]], [["Item", list_type(ColumnElement_$reflection())]], [["Item1", RowIndex_$reflection()], ["Item2", ColumnIndex_$reflection()], ["Item3", tuple_type(DataType_$reflection(), obj_type)]], [["Item", tuple_type(DataType_$reflection(), obj_type)]]]);
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
export class WorkbookElement extends Union {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { class_type } from "../../fable-library.4.1
|
|
1
|
+
import { class_type } from "../../fable-library.4.4.1/Reflection.js";
|
|
2
2
|
import { SheetEntity$1__get_Messages, SheetEntity$1, Message__MapText_11D407F6, SheetEntity$1_some_2B595 } from "./Types.fs.js";
|
|
3
|
-
import { append, map, empty } from "../../fable-library.4.1
|
|
4
|
-
import { printf, toText } from "../../fable-library.4.1
|
|
3
|
+
import { append, map, empty } from "../../fable-library.4.4.1/List.js";
|
|
4
|
+
import { printf, toText } from "../../fable-library.4.4.1/String.js";
|
|
5
5
|
|
|
6
6
|
export class WorkbookBuilder {
|
|
7
7
|
constructor() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { toFail, printf, toText } from "../fable-library.4.1
|
|
2
|
-
import { create, match } from "../fable-library.4.1
|
|
3
|
-
import { parse } from "../fable-library.4.1
|
|
4
|
-
import { toUInt32, fromInt32, fromUInt32, op_Addition, toInt64 } from "../fable-library.4.1
|
|
5
|
-
import { class_type } from "../fable-library.4.1
|
|
1
|
+
import { toFail, printf, toText } from "../fable-library.4.4.1/String.js";
|
|
2
|
+
import { create, match } from "../fable-library.4.4.1/RegExp.js";
|
|
3
|
+
import { parse } from "../fable-library.4.4.1/Int32.js";
|
|
4
|
+
import { toUInt32, fromInt32, fromUInt32, op_Addition, toInt64 } from "../fable-library.4.4.1/BigInt.js";
|
|
5
|
+
import { class_type } from "../fable-library.4.4.1/Reflection.js";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Transforms excel column string indices (e.g. A, B, Z, AA, CD) to index number (starting with A = 1).
|
|
@@ -11,13 +11,13 @@ export function CellReference_colAdressToIndex(columnAdress) {
|
|
|
11
11
|
const length = columnAdress.length | 0;
|
|
12
12
|
let sum = 0;
|
|
13
13
|
for (let i = 0; i <= (length - 1); i++) {
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
|
|
14
|
+
let c_1;
|
|
15
|
+
const c = columnAdress[(length - 1) - i];
|
|
16
|
+
c_1 = c.toLocaleUpperCase();
|
|
17
17
|
let factor;
|
|
18
18
|
const value = Math.pow(26, i);
|
|
19
19
|
factor = (value >>> 0);
|
|
20
|
-
sum = (sum + ((
|
|
20
|
+
sum = (sum + ((c_1.charCodeAt(0) - 64) * factor));
|
|
21
21
|
}
|
|
22
22
|
return sum;
|
|
23
23
|
}
|
|
@@ -114,7 +114,8 @@ type FsColumn (rangeAddress : FsRangeAddress, cells : FsCellsCollection)=
|
|
|
114
114
|
/// <summary>
|
|
115
115
|
/// Checks if there is an FsCell at given row index of a given FsColumn.
|
|
116
116
|
/// </summary>
|
|
117
|
-
/// <param name="
|
|
117
|
+
/// <param name="rowIndex">The number of the row where the presence of an FsCell shall be checked.</param>
|
|
118
|
+
/// <param name="column"></param>
|
|
118
119
|
static member hasCellAt rowIndex (column : FsColumn) =
|
|
119
120
|
column.HasCellAt rowIndex
|
|
120
121
|
|
|
@@ -143,6 +144,7 @@ type FsColumn (rangeAddress : FsRangeAddress, cells : FsCellsCollection)=
|
|
|
143
144
|
/// Returns the FsCell at the given rowIndex if it exists in the given FsColumn. Else returns None.
|
|
144
145
|
/// </summary>
|
|
145
146
|
/// <param name="rowIndex">The number of the column where the FsCell shall be retrieved.</param>
|
|
147
|
+
/// <param name="column"></param>
|
|
146
148
|
static member tryItem rowIndex (column : FsColumn) =
|
|
147
149
|
column.TryItem rowIndex
|
|
148
150
|
|