@nfdi4plants/arctrl 2.2.3 → 2.3.0
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 +63 -23
- package/CWL/CWLTypes.js +3 -3
- package/CWL/Decode.js +7 -7
- package/CWL/Inputs.js +4 -4
- package/CWL/Outputs.js +4 -4
- package/CWL/Requirements.js +3 -3
- package/CWL/ToolDescription.js +2 -2
- package/CWL/WorkflowDescription.js +2 -2
- package/CWL/WorkflowSteps.js +3 -3
- package/Contract/ArcAssay.js +4 -4
- package/Contract/ArcInvestigation.js +2 -2
- package/Contract/ArcStudy.js +4 -4
- package/Contract/Contract.js +3 -3
- package/Contract/Datamap.js +2 -2
- package/Contract/Git.js +4 -4
- package/Contract/ValidationPackagesConfig.js +2 -2
- package/ContractIO/ContractIO.js +204 -0
- package/ContractIO/FileSystemHelper.js +130 -0
- package/Core/ArcTypes.js +9 -9
- package/Core/Comment.js +8 -8
- package/Core/CommentList.js +4 -4
- package/Core/Conversion.js +11 -11
- package/Core/Data.js +5 -5
- package/Core/DataContext.js +2 -2
- package/Core/DataFile.js +2 -2
- package/Core/DataMap.js +3 -3
- package/Core/Helper/Collections.js +8 -8
- package/Core/Helper/HashCodes.js +5 -5
- package/Core/Helper/Identifier.js +1 -1
- package/Core/Helper/Regex.js +3 -3
- package/Core/Helper/SemVer.js +6 -6
- package/Core/OntologyAnnotation.js +7 -7
- package/Core/OntologySourceReference.js +3 -3
- package/Core/Person.js +9 -9
- package/Core/Process/ColumnIndex.js +5 -5
- package/Core/Process/Component.js +4 -4
- package/Core/Process/Factor.js +5 -5
- package/Core/Process/FactorValue.js +5 -5
- package/Core/Process/Material.js +5 -5
- package/Core/Process/MaterialAttribute.js +3 -3
- package/Core/Process/MaterialAttributeValue.js +5 -5
- package/Core/Process/MaterialType.js +2 -2
- package/Core/Process/Process.js +8 -8
- package/Core/Process/ProcessInput.js +5 -5
- package/Core/Process/ProcessOutput.js +5 -5
- package/Core/Process/ProcessParameterValue.js +5 -5
- package/Core/Process/ProcessSequence.js +6 -6
- package/Core/Process/Protocol.js +5 -5
- package/Core/Process/ProtocolParameter.js +3 -3
- package/Core/Process/Sample.js +5 -5
- package/Core/Process/Source.js +5 -5
- package/Core/Publication.js +8 -8
- package/Core/Table/ArcTable.js +13 -13
- package/Core/Table/ArcTableAux.js +15 -15
- package/Core/Table/ArcTables.js +9 -9
- package/Core/Table/CompositeCell.js +3 -3
- package/Core/Table/CompositeColumn.js +4 -4
- package/Core/Table/CompositeHeader.js +4 -4
- package/Core/Template.js +6 -6
- package/Core/Templates.js +6 -6
- package/Core/Value.js +7 -7
- package/CrossAsync.js +34 -0
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +8 -8
- package/FileSystem/Path.js +2 -2
- package/FileSystem.js +102 -0
- package/Json/ARC.js +3 -3
- package/Json/Assay.js +4 -4
- package/Json/Comment.js +5 -5
- package/Json/ConverterOptions.js +2 -2
- package/Json/Data.js +4 -4
- package/Json/DataFile.js +1 -1
- package/Json/DataMap/DataContext.js +3 -3
- package/Json/DataMap/DataMap.js +1 -1
- package/Json/Decode.js +9 -9
- package/Json/Encode.js +5 -5
- package/Json/IDTable.js +3 -3
- package/Json/Investigation.js +5 -5
- package/Json/LDObject.js +6 -6
- package/Json/OntologyAnnotation.js +5 -5
- package/Json/OntologySourceReference.js +4 -4
- package/Json/Person.js +5 -5
- package/Json/Process/AssayMaterials.js +3 -3
- package/Json/Process/Component.js +3 -3
- package/Json/Process/Factor.js +3 -3
- package/Json/Process/FactorValue.js +3 -3
- package/Json/Process/Material.js +4 -4
- package/Json/Process/MaterialAttribute.js +3 -3
- package/Json/Process/MaterialAttributeValue.js +3 -3
- package/Json/Process/MaterialType.js +1 -1
- package/Json/Process/Process.js +4 -4
- package/Json/Process/ProcessInput.js +1 -1
- package/Json/Process/ProcessOutput.js +1 -1
- package/Json/Process/ProcessParameterValue.js +3 -3
- package/Json/Process/Protocol.js +4 -4
- package/Json/Process/ProtocolParameter.js +3 -3
- package/Json/Process/Sample.js +5 -5
- package/Json/Process/Source.js +4 -4
- package/Json/Process/StudyMaterials.js +3 -3
- package/Json/Process/Value.js +1 -1
- package/Json/PropertyValue.js +3 -3
- package/Json/Publication.js +4 -4
- package/Json/StringTable.js +4 -4
- package/Json/Study.js +5 -5
- package/Json/Table/ArcTable.js +10 -10
- package/Json/Table/CellTable.js +4 -4
- package/Json/Table/CompositeCell.js +3 -3
- package/Json/Table/CompositeHeader.js +2 -2
- package/Json/Table/IOType.js +1 -1
- package/Json/Table/OATable.js +4 -4
- package/Json/Table/Templates.js +5 -5
- package/Json/context/rocrate/isa_assay_context.js +3 -3
- package/Json/context/rocrate/isa_comment_context.js +3 -3
- package/Json/context/rocrate/isa_component_context.js +3 -3
- package/Json/context/rocrate/isa_data_context.js +3 -3
- package/Json/context/rocrate/isa_factor_context.js +3 -3
- package/Json/context/rocrate/isa_factor_value_context.js +3 -3
- package/Json/context/rocrate/isa_investigation_context.js +3 -3
- package/Json/context/rocrate/isa_material_attribute_context.js +3 -3
- package/Json/context/rocrate/isa_material_attribute_value_context.js +3 -3
- package/Json/context/rocrate/isa_material_context.js +3 -3
- package/Json/context/rocrate/isa_ontology_annotation_context.js +3 -3
- package/Json/context/rocrate/isa_ontology_source_reference_context.js +3 -3
- package/Json/context/rocrate/isa_organization_context.js +3 -3
- package/Json/context/rocrate/isa_person_context.js +3 -3
- package/Json/context/rocrate/isa_process_context.js +3 -3
- package/Json/context/rocrate/isa_process_parameter_value_context.js +3 -3
- package/Json/context/rocrate/isa_protocol_context.js +3 -3
- package/Json/context/rocrate/isa_protocol_parameter_context.js +3 -3
- package/Json/context/rocrate/isa_publication_context.js +3 -3
- package/Json/context/rocrate/isa_sample_context.js +3 -3
- package/Json/context/rocrate/isa_source_context.js +3 -3
- package/Json/context/rocrate/isa_study_context.js +3 -3
- package/Json/context/rocrate/property_value_context.js +1 -1
- package/Json/context/rocrate/rocrate_context.js +3 -3
- package/Json.js +2 -2
- package/JsonIO/ARC.js +3 -3
- package/JsonIO/Assay.js +2 -2
- package/JsonIO/Comment.js +2 -2
- package/JsonIO/Data.js +2 -2
- package/JsonIO/DataFile.js +2 -2
- package/JsonIO/DataMap/DataMap.js +1 -1
- package/JsonIO/Investigation.js +2 -2
- package/JsonIO/LDObject.js +2 -2
- package/JsonIO/OntologyAnnotation.js +2 -2
- package/JsonIO/OntologySourceReference.js +2 -2
- package/JsonIO/Person.js +2 -2
- package/JsonIO/Process/Component.js +2 -2
- package/JsonIO/Process/Factor.js +2 -2
- package/JsonIO/Process/FactorValue.js +2 -2
- package/JsonIO/Process/Material.js +2 -2
- package/JsonIO/Process/MaterialAttribute.js +2 -2
- package/JsonIO/Process/MaterialAttributeValue.js +2 -2
- package/JsonIO/Process/MaterialType.js +2 -2
- package/JsonIO/Process/Process.js +2 -2
- package/JsonIO/Process/ProcessInput.js +2 -2
- package/JsonIO/Process/ProcessOutput.js +2 -2
- package/JsonIO/Process/ProcessParameterValue.js +2 -2
- package/JsonIO/Process/ProcessSequence.js +4 -4
- package/JsonIO/Process/Protocol.js +2 -2
- package/JsonIO/Process/ProtocolParameter.js +2 -2
- package/JsonIO/Process/Sample.js +2 -2
- package/JsonIO/Process/Source.js +2 -2
- package/JsonIO/Process/StudyMaterials.js +3 -3
- package/JsonIO/Process/Value.js +1 -1
- package/JsonIO/Publication.js +2 -2
- package/JsonIO/Study.js +2 -2
- package/JsonIO/Table/ArcTable.js +5 -5
- package/JsonIO/Table/CompositeCell.js +2 -2
- package/JsonIO/Table/CompositeHeader.js +2 -2
- package/JsonIO/Table/Compression.js +3 -3
- package/JsonIO/Table/IOType.js +2 -2
- package/JsonIO/Table/Templates.js +3 -3
- package/ROCrate/ArcROCrateMetadata.js +3 -3
- package/ROCrate/ISAProfile/Assay.js +4 -4
- package/ROCrate/ISAProfile/Data.js +4 -4
- package/ROCrate/ISAProfile/Dataset.js +2 -2
- package/ROCrate/ISAProfile/Investigation.js +4 -4
- package/ROCrate/ISAProfile/LabProcess.js +4 -4
- package/ROCrate/ISAProfile/LabProtocol.js +4 -4
- package/ROCrate/ISAProfile/Person.js +4 -4
- package/ROCrate/ISAProfile/PropertyValue.js +4 -4
- package/ROCrate/ISAProfile/Sample.js +4 -4
- package/ROCrate/ISAProfile/ScholarlyArticle.js +4 -4
- package/ROCrate/ISAProfile/Study.js +4 -4
- package/ROCrate/LDObject.js +2 -2
- package/Spreadsheet/AnnotationTable/ArcTable.js +13 -13
- package/Spreadsheet/AnnotationTable/CompositeCell.js +2 -2
- package/Spreadsheet/AnnotationTable/CompositeColumn.js +7 -7
- package/Spreadsheet/AnnotationTable/CompositeHeader.js +6 -6
- package/Spreadsheet/ArcAssay.js +7 -7
- package/Spreadsheet/ArcInvestigation.js +12 -12
- package/Spreadsheet/ArcStudy.js +7 -7
- package/Spreadsheet/CollectionAux.js +7 -7
- package/Spreadsheet/DataMap.js +3 -3
- package/Spreadsheet/DataMapTable/DataMapColumn.js +6 -6
- package/Spreadsheet/DataMapTable/DataMapHeader.js +5 -5
- package/Spreadsheet/DataMapTable/DataMapTable.js +10 -10
- package/Spreadsheet/Metadata/Assays.js +5 -5
- package/Spreadsheet/Metadata/Comment.js +2 -2
- package/Spreadsheet/Metadata/Contacts.js +5 -5
- package/Spreadsheet/Metadata/Conversions.js +5 -5
- package/Spreadsheet/Metadata/DesignDescriptors.js +1 -1
- package/Spreadsheet/Metadata/Factors.js +5 -5
- package/Spreadsheet/Metadata/OntologyAnnotation.js +5 -5
- package/Spreadsheet/Metadata/OntologySourceReference.js +5 -5
- package/Spreadsheet/Metadata/Protocols.js +5 -5
- package/Spreadsheet/Metadata/Publication.js +5 -5
- package/Spreadsheet/Metadata/SparseTable.js +17 -17
- package/Spreadsheet/Metadata/Study.js +8 -8
- package/Spreadsheet/Template.js +13 -13
- package/Template.Web.js +4 -4
- package/ValidationPackages/ValidationPackage.js +5 -5
- package/ValidationPackages/ValidationPackagesConfig.js +8 -8
- package/WebRequest/WebRequest.Node.js +2 -2
- package/WebRequest/WebRequest.js +2 -2
- package/Xlsx.js +16 -3
- package/Yaml/Encode.js +1 -1
- package/Yaml/ValidationPackage.js +4 -4
- package/Yaml/ValidationPackagesConfig.js +4 -4
- package/fable_modules/DynamicObj.4.0.3/DynObj.fs.js +6 -6
- package/fable_modules/DynamicObj.4.0.3/DynamicObj.fs.js +4 -4
- package/fable_modules/DynamicObj.4.0.3/FableJS.fs.js +4 -4
- package/fable_modules/DynamicObj.4.0.3/HashCodes.fs.js +5 -5
- package/fable_modules/DynamicObj.4.0.3/PropertyHelper.fs.js +2 -2
- package/fable_modules/DynamicObj.4.0.3/ReflectionUtils.fs.js +1 -1
- package/fable_modules/Fable.Exceljs.1.6.0/Cell.fs +32 -0
- package/fable_modules/Fable.Exceljs.1.6.0/Column.fs +24 -0
- package/fable_modules/Fable.Exceljs.1.6.0/Csv.fs +12 -0
- package/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs +61 -0
- package/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js +4 -0
- package/fable_modules/Fable.Exceljs.1.6.0/Extensions.fs +36 -0
- package/fable_modules/Fable.Exceljs.1.6.0/Extensions.fs.js +20 -0
- package/fable_modules/Fable.Exceljs.1.6.0/Fable.Exceljs.fableproj +53 -0
- package/fable_modules/Fable.Exceljs.1.6.0/Row.fs +34 -0
- package/fable_modules/Fable.Exceljs.1.6.0/Table.fs +85 -0
- package/fable_modules/Fable.Exceljs.1.6.0/Table.fs.js +22 -0
- package/fable_modules/Fable.Exceljs.1.6.0/Unions.fs +87 -0
- package/fable_modules/Fable.Exceljs.1.6.0/Unions.fs.js +73 -0
- package/fable_modules/Fable.Exceljs.1.6.0/Workbook.fs +37 -0
- package/fable_modules/Fable.Exceljs.1.6.0/Worksheet.fs +120 -0
- package/fable_modules/Fable.Exceljs.1.6.0/Xlsx.fs +18 -0
- package/fable_modules/Fable.Exceljs.1.6.0/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Fable.Exceljs.1.6.0/obj/Debug/net6.0/Fable.Exceljs.AssemblyInfo.fs +19 -0
- package/fable_modules/Fable.Exceljs.1.6.0/obj/Debug/netstandard2.0/Fable.Exceljs.AssemblyInfo.fs +19 -0
- package/fable_modules/Fable.Exceljs.1.6.0/obj/Release/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Fable.Exceljs.1.6.0/obj/Release/net6.0/Fable.Exceljs.AssemblyInfo.fs +19 -0
- package/fable_modules/Fable.Exceljs.1.6.0/obj/Release/netstandard2.0/Fable.Exceljs.AssemblyInfo.fs +19 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +8 -8
- package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +57 -0
- package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +104 -0
- package/fable_modules/{Fable.Promise.2.2.2 → Fable.Promise.3.2.0}/Fable.Promise.fableproj +4 -3
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs +766 -0
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +217 -0
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +31 -0
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +19 -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.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Cells/FsCell.fs.js +14 -14
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/DSL.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Expression.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Transform.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Types.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsAddress.fs.js +8 -8
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsRow.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsSpreadsheet.fableproj +5 -5
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsWorkbook.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsWorksheet.fs.js +9 -9
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Cell.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Column.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Row.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Table.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Value.fs.js +5 -5
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Workbook.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Worksheet.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeAddress.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/SheetBuilder.fs.js +8 -8
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Tables/FsTable.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.6.3.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +1 -1
- package/fable_modules/FsSpreadsheet.6.3.1/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +1 -1
- package/fable_modules/FsSpreadsheet.Js.6.3.1/Cell.fs +88 -0
- package/fable_modules/FsSpreadsheet.Js.6.3.1/Cell.fs.js +79 -0
- package/fable_modules/FsSpreadsheet.Js.6.3.1/FsExtensions.fs +69 -0
- package/fable_modules/FsSpreadsheet.Js.6.3.1/FsExtensions.fs.js +64 -0
- package/fable_modules/FsSpreadsheet.Js.6.3.1/FsSpreadsheet.Js.fableproj +57 -0
- package/fable_modules/FsSpreadsheet.Js.6.3.1/Json.fs +59 -0
- package/fable_modules/FsSpreadsheet.Js.6.3.1/Json.fs.js +39 -0
- package/fable_modules/FsSpreadsheet.Js.6.3.1/Table.fs +50 -0
- package/fable_modules/FsSpreadsheet.Js.6.3.1/Table.fs.js +54 -0
- package/fable_modules/FsSpreadsheet.Js.6.3.1/Workbook.fs +27 -0
- package/fable_modules/FsSpreadsheet.Js.6.3.1/Workbook.fs.js +34 -0
- package/fable_modules/FsSpreadsheet.Js.6.3.1/Worksheet.fs +41 -0
- package/fable_modules/FsSpreadsheet.Js.6.3.1/Worksheet.fs.js +63 -0
- package/fable_modules/FsSpreadsheet.Js.6.3.1/Xlsx.fs +74 -0
- package/fable_modules/FsSpreadsheet.Js.6.3.1/Xlsx.fs.js +70 -0
- package/fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js +19 -19
- package/fable_modules/Thoth.Json.Core.0.4.0/Encode.fs.js +6 -6
- package/fable_modules/Thoth.Json.Core.0.4.0/Types.fs.js +2 -2
- package/fable_modules/Thoth.Json.JavaScript.0.3.0/Decode.fs.js +1 -1
- package/fable_modules/Thoth.Json.JavaScript.0.3.0/Encode.fs.js +2 -2
- package/fable_modules/YAMLicious.0.0.3/Decode.fs.js +15 -15
- package/fable_modules/YAMLicious.0.0.3/Encode.fs.js +6 -6
- package/fable_modules/YAMLicious.0.0.3/Library.fs.js +1 -1
- package/fable_modules/YAMLicious.0.0.3/Persil.fs.js +3 -3
- package/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +6 -6
- package/fable_modules/YAMLicious.0.0.3/Reader.fs.js +7 -7
- package/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +3 -3
- package/fable_modules/YAMLicious.0.0.3/Writer.fs.js +4 -4
- package/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +6 -6
- package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/CHANGELOG.md +6 -0
- package/fable_modules/fable-library-js.4.24.0/CollectionUtil.d.ts +7 -0
- package/fable_modules/fable-library-js.4.24.0/CollectionUtil.js +182 -0
- package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/String.d.ts +10 -2
- package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/package.json +1 -1
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs +0 -176
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +0 -143
- package/fable_modules/Fable.Promise.2.2.2/PromiseImpl.fs +0 -4
- package/fable_modules/Fable.Promise.2.2.2/PromiseImpl.fs.js +0 -4
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → Fable.Exceljs.1.6.0}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → Fable.Exceljs.1.6.0}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Cells/FsCell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Cells/FsCellsCollection.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/CellBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/ColumnBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/DSL.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Expression.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Operators.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Operators.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/RowBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/TableBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Transform.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/Types.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/DSL/WorkbookBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsWorkbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/FsWorksheet.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Cell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Column.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Row.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Table.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Value.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Workbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Json/Worksheet.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRange.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeBase.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Ranges/FsRangeRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Tables/FsTable.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Tables/FsTableField.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.3.0-alpha.4 → FsSpreadsheet.6.3.1}/Tables/FsTableRow.fs +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Array.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Array.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Async.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Boolean.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Char.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Choice.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Choice.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/ConditionalWeakTable.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/ConditionalWeakTable.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Date.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Double.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Event.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/FSharp.Core.CompilerServices.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/FSharp.Core.CompilerServices.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Global.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/List.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Long.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Map.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MapUtil.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MapUtil.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MutableMap.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/MutableSet.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Native.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Option.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/README.md +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Random.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Range.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Result.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Result.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Set.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/String.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/System.Collections.Generic.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/System.Collections.Generic.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/System.Text.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/System.Text.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Types.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Util.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/Util.js +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/big.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.22.0 → fable-library-js.4.24.0}/lib/big.js +0 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
[<AutoOpen>]
|
|
2
|
+
module Fable.ExcelJs.Table
|
|
3
|
+
|
|
4
|
+
open Fable.Core
|
|
5
|
+
open Fable.Core.JsInterop
|
|
6
|
+
open Fable.ExcelJs
|
|
7
|
+
open Cell
|
|
8
|
+
|
|
9
|
+
[<RequireQualifiedAccess>]
|
|
10
|
+
type TotalsFunctions =
|
|
11
|
+
/// Default
|
|
12
|
+
| [<CompiledName("Total")>] Total
|
|
13
|
+
/// No totals function for this column
|
|
14
|
+
| [<CompiledName("none")>] None
|
|
15
|
+
/// Compute average for the column
|
|
16
|
+
| [<CompiledName("average")>] Average
|
|
17
|
+
/// Count the entries that are numbers
|
|
18
|
+
| [<CompiledName("countNums")>] CountNums
|
|
19
|
+
/// Count of entries
|
|
20
|
+
| [<CompiledName("count")>] Count
|
|
21
|
+
/// The maximum value in this column
|
|
22
|
+
| [<CompiledName("max")>] Max
|
|
23
|
+
/// The minimum value in this column
|
|
24
|
+
| [<CompiledName("min")>] Min
|
|
25
|
+
/// The standard deviation for this column
|
|
26
|
+
| [<CompiledName("stdDev")>] StdDev
|
|
27
|
+
/// The variance for this column
|
|
28
|
+
| [<CompiledName("var")>] Var
|
|
29
|
+
/// The sum of entries for this column
|
|
30
|
+
| [<CompiledName("sum")>] Sum
|
|
31
|
+
/// A custom formula. Requires an associated totalsRowFormula value.
|
|
32
|
+
| [<CompiledName("custom")>] Custom
|
|
33
|
+
|
|
34
|
+
with
|
|
35
|
+
static member defaultValue = Total
|
|
36
|
+
|
|
37
|
+
// https://fable.io/docs/javascript/features.html#paramobject
|
|
38
|
+
[<AllowNullLiteral>]
|
|
39
|
+
[<Global>]
|
|
40
|
+
type TableColumn
|
|
41
|
+
[<ParamObject; Emit("$0")>]
|
|
42
|
+
(
|
|
43
|
+
name: string,
|
|
44
|
+
?filterButton: bool,
|
|
45
|
+
?totalsRowLabel: TotalsFunctions,
|
|
46
|
+
?totalsRowFunction: string,
|
|
47
|
+
?totalsRowFormula: obj
|
|
48
|
+
) =
|
|
49
|
+
member val name: string = jsNative with get, set
|
|
50
|
+
member val filterButton: bool = jsNative with get, set
|
|
51
|
+
member val totalsRowLabel: TotalsFunctions = jsNative with get, set
|
|
52
|
+
member val totalsRowFunction: string = jsNative with get, set
|
|
53
|
+
member val totalsRowFormula: obj = jsNative with get, set
|
|
54
|
+
|
|
55
|
+
[<AllowNullLiteral>]
|
|
56
|
+
[<Global>]
|
|
57
|
+
type Table
|
|
58
|
+
[<ParamObject; Emit("$0")>]
|
|
59
|
+
( name: string,
|
|
60
|
+
ref: CellAdress,
|
|
61
|
+
columns: TableColumn [],
|
|
62
|
+
rows: RowValues [] [],
|
|
63
|
+
?displayName: string,
|
|
64
|
+
?headerRow: bool,
|
|
65
|
+
?totalsRow: bool,
|
|
66
|
+
?style: obj
|
|
67
|
+
) =
|
|
68
|
+
/// The name of the table
|
|
69
|
+
member val name: string = jsNative with get, set
|
|
70
|
+
/// The display name of the table.
|
|
71
|
+
member val displayName: string = jsNative with get, set
|
|
72
|
+
/// Top left cell of the table
|
|
73
|
+
member val ref: CellAdress = jsNative with get, set
|
|
74
|
+
/// Show headers at top of table
|
|
75
|
+
member val headerRow: bool = jsNative with get, set
|
|
76
|
+
/// Show totals at bottom of table
|
|
77
|
+
member val totalsRow: bool = jsNative with get, set
|
|
78
|
+
/// More style properties
|
|
79
|
+
member val style: obj = jsNative with get, set
|
|
80
|
+
/// columns
|
|
81
|
+
member val columns: TableColumn [] = jsNative with get, set
|
|
82
|
+
/// rows
|
|
83
|
+
member val rows: RowValues [] [] = jsNative with get, set
|
|
84
|
+
/// full range of table. Exmp "A1:D4"
|
|
85
|
+
member val tableRef: CellRange = jsNative with get
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Union } from "../fable-library-js.4.24.0/Types.js";
|
|
2
|
+
import { union_type } from "../fable-library-js.4.24.0/Reflection.js";
|
|
3
|
+
|
|
4
|
+
export class TotalsFunctions extends Union {
|
|
5
|
+
constructor(tag, fields) {
|
|
6
|
+
super();
|
|
7
|
+
this.tag = tag;
|
|
8
|
+
this.fields = fields;
|
|
9
|
+
}
|
|
10
|
+
cases() {
|
|
11
|
+
return ["Total", "none", "average", "countNums", "count", "max", "min", "stdDev", "var", "sum", "custom"];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function TotalsFunctions_$reflection() {
|
|
16
|
+
return union_type("Fable.ExcelJs.Table.TotalsFunctions", [], TotalsFunctions, () => [[], [], [], [], [], [], [], [], [], [], []]);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function TotalsFunctions_get_defaultValue() {
|
|
20
|
+
return new TotalsFunctions(0, []);
|
|
21
|
+
}
|
|
22
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
[<AutoOpen>]
|
|
2
|
+
module Fable.ExcelJs.Unions
|
|
3
|
+
|
|
4
|
+
open Fable.Core
|
|
5
|
+
open Fable.Core.JsInterop
|
|
6
|
+
|
|
7
|
+
type ErrorValue =
|
|
8
|
+
| NotApplicable
|
|
9
|
+
| Ref
|
|
10
|
+
| Name
|
|
11
|
+
| DivZero
|
|
12
|
+
| Null
|
|
13
|
+
| Value
|
|
14
|
+
| Num
|
|
15
|
+
with
|
|
16
|
+
member this.toString =
|
|
17
|
+
match this with
|
|
18
|
+
| NotApplicable -> "#N/A"
|
|
19
|
+
| Ref -> "#REF!"
|
|
20
|
+
| Name -> "#NAME?"
|
|
21
|
+
| DivZero -> "#DIV/0!"
|
|
22
|
+
| Null -> "#NULL!"
|
|
23
|
+
| Value -> "#VALUE!"
|
|
24
|
+
| Num -> "#NUM!"
|
|
25
|
+
static member ofString (str:string) =
|
|
26
|
+
match str with
|
|
27
|
+
| "#N/A" -> NotApplicable
|
|
28
|
+
| "#REF!" -> Ref
|
|
29
|
+
| "#NAME?" -> Name
|
|
30
|
+
| "#DIV/0!" -> DivZero
|
|
31
|
+
| "#NULL!" -> Null
|
|
32
|
+
| "#VALUE!" -> Value
|
|
33
|
+
| "#NUM!" -> Num
|
|
34
|
+
| anyElse -> failwith "Cannot match input string to ErrorValue"
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
type ValueType =
|
|
38
|
+
| Null = 0
|
|
39
|
+
| Merge = 1
|
|
40
|
+
| Number = 2
|
|
41
|
+
| String = 3
|
|
42
|
+
| Date = 4
|
|
43
|
+
| Hyperlink = 5
|
|
44
|
+
| Formula = 6
|
|
45
|
+
| RichText = 8
|
|
46
|
+
| Boolean = 9
|
|
47
|
+
| Error = 10
|
|
48
|
+
|
|
49
|
+
// TODO: implement this with create function to easily use
|
|
50
|
+
//[<Erase>]
|
|
51
|
+
//type ValueType =
|
|
52
|
+
//| Null
|
|
53
|
+
//| Merge
|
|
54
|
+
//| Number of float
|
|
55
|
+
//| String of string
|
|
56
|
+
//| Date of System.DateOnly
|
|
57
|
+
//| Hyperlink of string
|
|
58
|
+
//| Formula of obj
|
|
59
|
+
//| RichText of obj []
|
|
60
|
+
//| Boolean of bool
|
|
61
|
+
//| Error of obj
|
|
62
|
+
|
|
63
|
+
[<RequireQualifiedAccess>]
|
|
64
|
+
type StyleOption =
|
|
65
|
+
/// inherit from row above
|
|
66
|
+
| [<CompiledName("'i'")>] Inherit
|
|
67
|
+
/// inherit from row above and include empty cells
|
|
68
|
+
| [<CompiledName("'i+'")>] InheritWithNulls
|
|
69
|
+
/// original style
|
|
70
|
+
| [<CompiledName("'o'")>] Original
|
|
71
|
+
/// original style and include empty cells
|
|
72
|
+
| [<CompiledName("'o+'")>] OriginalWithNulls
|
|
73
|
+
/// Default; no style options
|
|
74
|
+
| [<CompiledName("'n'")>] None
|
|
75
|
+
|
|
76
|
+
type CellValue = obj option
|
|
77
|
+
/// e.g. "B5", "A1", "AZ3",..
|
|
78
|
+
type CellAdress = string
|
|
79
|
+
/// e.g. ""A1:C5""
|
|
80
|
+
type CellRange = string
|
|
81
|
+
|
|
82
|
+
/// Example1: {|key1 = "Test"; key2 = 2; key3 = 4; key4 = None; key5 = None; key7 = "Test me too"|}.
|
|
83
|
+
/// Example2: createObj ["key1" ==> "Test"; "key2" ==> 2; "key3" ==> 4; "key4" ==> None; "key5" ==> None; "key7" ==> "Test me too" ]
|
|
84
|
+
/// Example3: Row.createValues (["key1","Test"; "key2",2])
|
|
85
|
+
/// Example4: [Some "Test"; Some 2; Some 4; None; None; None; Some "Test me too"]
|
|
86
|
+
type RowValues = obj
|
|
87
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Union } from "../fable-library-js.4.24.0/Types.js";
|
|
2
|
+
import { union_type } from "../fable-library-js.4.24.0/Reflection.js";
|
|
3
|
+
|
|
4
|
+
export class ErrorValue extends Union {
|
|
5
|
+
constructor(tag, fields) {
|
|
6
|
+
super();
|
|
7
|
+
this.tag = tag;
|
|
8
|
+
this.fields = fields;
|
|
9
|
+
}
|
|
10
|
+
cases() {
|
|
11
|
+
return ["NotApplicable", "Ref", "Name", "DivZero", "Null", "Value", "Num"];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function ErrorValue_$reflection() {
|
|
16
|
+
return union_type("Fable.ExcelJs.Unions.ErrorValue", [], ErrorValue, () => [[], [], [], [], [], [], []]);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function ErrorValue__get_toString(this$) {
|
|
20
|
+
switch (this$.tag) {
|
|
21
|
+
case 1:
|
|
22
|
+
return "#REF!";
|
|
23
|
+
case 2:
|
|
24
|
+
return "#NAME?";
|
|
25
|
+
case 3:
|
|
26
|
+
return "#DIV/0!";
|
|
27
|
+
case 4:
|
|
28
|
+
return "#NULL!";
|
|
29
|
+
case 5:
|
|
30
|
+
return "#VALUE!";
|
|
31
|
+
case 6:
|
|
32
|
+
return "#NUM!";
|
|
33
|
+
default:
|
|
34
|
+
return "#N/A";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ErrorValue_ofString_Z721C83C5(str) {
|
|
39
|
+
switch (str) {
|
|
40
|
+
case "#N/A":
|
|
41
|
+
return new ErrorValue(0, []);
|
|
42
|
+
case "#REF!":
|
|
43
|
+
return new ErrorValue(1, []);
|
|
44
|
+
case "#NAME?":
|
|
45
|
+
return new ErrorValue(2, []);
|
|
46
|
+
case "#DIV/0!":
|
|
47
|
+
return new ErrorValue(3, []);
|
|
48
|
+
case "#NULL!":
|
|
49
|
+
return new ErrorValue(4, []);
|
|
50
|
+
case "#VALUE!":
|
|
51
|
+
return new ErrorValue(5, []);
|
|
52
|
+
case "#NUM!":
|
|
53
|
+
return new ErrorValue(6, []);
|
|
54
|
+
default:
|
|
55
|
+
throw new Error("Cannot match input string to ErrorValue");
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export class StyleOption extends Union {
|
|
60
|
+
constructor(tag, fields) {
|
|
61
|
+
super();
|
|
62
|
+
this.tag = tag;
|
|
63
|
+
this.fields = fields;
|
|
64
|
+
}
|
|
65
|
+
cases() {
|
|
66
|
+
return ["\'i\'", "\'i+\'", "\'o\'", "\'o+\'", "\'n\'"];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function StyleOption_$reflection() {
|
|
71
|
+
return union_type("Fable.ExcelJs.Unions.StyleOption", [], StyleOption, () => [[], [], [], [], []]);
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[<AutoOpen>]
|
|
2
|
+
module Fable.ExcelJs.Workbook
|
|
3
|
+
|
|
4
|
+
open Fable.Core
|
|
5
|
+
open Fable.Core.JsInterop
|
|
6
|
+
open Fable.ExcelJs
|
|
7
|
+
open Worksheet
|
|
8
|
+
open Xlsx
|
|
9
|
+
|
|
10
|
+
type Workbook =
|
|
11
|
+
abstract member creator : string with get, set
|
|
12
|
+
abstract member lastModifiedBy : string with get, set
|
|
13
|
+
abstract member created : System.DateTime with get, set
|
|
14
|
+
abstract member modified : System.DateTime with get, set
|
|
15
|
+
abstract member lastPrinted : System.DateTime with get, set
|
|
16
|
+
abstract member description : string with get, set
|
|
17
|
+
abstract member keywords : string with get, set
|
|
18
|
+
abstract member manager : string with get, set
|
|
19
|
+
abstract member category : string with get, set
|
|
20
|
+
abstract member company: string with get, set
|
|
21
|
+
abstract member xlsx: Xlsx with get
|
|
22
|
+
abstract member addWorksheet: string -> Worksheet
|
|
23
|
+
[<Emit("$0.addWorksheet($1,{properties: $2})")>]
|
|
24
|
+
abstract member addWorksheet: string * WorksheetProperties -> Worksheet
|
|
25
|
+
/// Remove the worksheet using worksheet id
|
|
26
|
+
abstract member removeWorksheet: int -> unit
|
|
27
|
+
/// fetch sheet by name
|
|
28
|
+
abstract member getWorksheet: string -> Worksheet
|
|
29
|
+
/// fetch sheet by id.
|
|
30
|
+
/// INFO: Be careful when using it!
|
|
31
|
+
/// It tries to access to `worksheet.id` field. Sometimes (really very often) workbook has worksheets with id not starting from 1.
|
|
32
|
+
/// For instance It happens when any worksheet has been deleted.
|
|
33
|
+
/// It's much more safety when you assume that ids are random. And stop to use this function.
|
|
34
|
+
abstract member getWorksheet: int -> Worksheet
|
|
35
|
+
abstract member worksheets: Worksheet [] with get
|
|
36
|
+
[<Emit("$0.eachSheet(function(worksheet, sheetId){$1([worksheet, sheetId])})")>] //oh boy
|
|
37
|
+
abstract member eachSheet: func:(Worksheet*int -> unit) -> unit
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
[<AutoOpen>]
|
|
2
|
+
module Fable.ExcelJs.Worksheet
|
|
3
|
+
|
|
4
|
+
open Fable.Core
|
|
5
|
+
open Fable.Core.JsInterop
|
|
6
|
+
open Fable.ExcelJs
|
|
7
|
+
open Cell
|
|
8
|
+
open Row
|
|
9
|
+
open Column
|
|
10
|
+
open Table
|
|
11
|
+
|
|
12
|
+
type WorksheetProperties =
|
|
13
|
+
abstract member tabColor : obj with get, set
|
|
14
|
+
abstract member outlineLevelCol : int with get, set
|
|
15
|
+
abstract member outlineLevelRow : int with get, set
|
|
16
|
+
abstract member defaultRowHeight: int with get, set
|
|
17
|
+
abstract member defaultColWidth : int with get, set
|
|
18
|
+
abstract member dyDescent : int with get, set
|
|
19
|
+
|
|
20
|
+
[<Erase>]
|
|
21
|
+
type WorksheetState =
|
|
22
|
+
/// make worksheet visible
|
|
23
|
+
| [<CompiledName("visible")>] Visible
|
|
24
|
+
/// make worksheet hidden
|
|
25
|
+
| [<CompiledName("hidden")>] Hidden
|
|
26
|
+
/// make worksheet hidden
|
|
27
|
+
| [<CompiledName("veryHidden")>] VeryHidden
|
|
28
|
+
|
|
29
|
+
type ITableRef =
|
|
30
|
+
abstract member worksheet: Worksheet with get
|
|
31
|
+
abstract member table: Table option with get
|
|
32
|
+
abstract member ref: CellAdress with get, set
|
|
33
|
+
abstract member name: string with get, set
|
|
34
|
+
abstract member headerRow: bool with get, set
|
|
35
|
+
abstract member displayName: string with get, set
|
|
36
|
+
abstract member showFirstColumn: bool with get, set
|
|
37
|
+
abstract member showLastColumn: bool with get, set
|
|
38
|
+
|
|
39
|
+
and Worksheet =
|
|
40
|
+
abstract member id: int with get, set
|
|
41
|
+
abstract member name: string with get, set
|
|
42
|
+
abstract member state: WorksheetState with get, set
|
|
43
|
+
abstract member properties: WorksheetProperties with get, set
|
|
44
|
+
/// Get the last editable row in a worksheet (or undefined if there are none)
|
|
45
|
+
abstract member lastRow: Row option with get
|
|
46
|
+
abstract member lastColumn: Column option with get
|
|
47
|
+
[<Emit("$0._lastRowNumber")>]
|
|
48
|
+
abstract member lastRowNumber: int with get
|
|
49
|
+
// Add column headers and define column keys and widths
|
|
50
|
+
// Note: these column structures are a workbook-building convenience only,
|
|
51
|
+
// apart from the column width, they will not be fully persisted.
|
|
52
|
+
abstract member columns: Column [] with get, set
|
|
53
|
+
[<Emit("$0._rows")>]
|
|
54
|
+
abstract member rows: Row [] with get
|
|
55
|
+
/// Not sure how this should be used
|
|
56
|
+
abstract member tables: obj with get, set
|
|
57
|
+
/// A count of the number of columns that have values.
|
|
58
|
+
abstract member actualColumnCount: int with get
|
|
59
|
+
/// The total column size of the document. Equal to the maximum cell count from all of the rows
|
|
60
|
+
abstract member columnCount: int with get
|
|
61
|
+
/// A count of the number of rows that have values. If a mid-document row is empty, it will not be included in the count.
|
|
62
|
+
abstract member actualRowCount: int with get
|
|
63
|
+
/// The total row size of the document. Equal to the row number of the last row that has values.
|
|
64
|
+
abstract member rowCount: int with get
|
|
65
|
+
/// add a table to a sheet
|
|
66
|
+
abstract member addTable: Table -> ITableRef
|
|
67
|
+
/// get a table from worksheet by name
|
|
68
|
+
abstract member getTable: string -> ITableRef
|
|
69
|
+
/// get all tables from worksheet
|
|
70
|
+
abstract member getTables: unit -> ITableRef []
|
|
71
|
+
/// remove table from worksheet by name
|
|
72
|
+
abstract member removeTable: string -> unit
|
|
73
|
+
/// Access an individual columns by key, letter and 1-based column number
|
|
74
|
+
abstract member getColumn: string -> Column
|
|
75
|
+
/// Access an individual columns by key, letter and 1-based column number
|
|
76
|
+
abstract member getColumn: int -> Column
|
|
77
|
+
abstract member addRow: CellValue [] -> Row
|
|
78
|
+
/// Add a Row as `obj` with `column.key` as key and row value as value, after the last current row.
|
|
79
|
+
/// `obj` can be anonymous record type or fable createObj.
|
|
80
|
+
/// Use None to not set value for row for a given column or just skip.
|
|
81
|
+
abstract member addRow: rowValues:RowValues -> Row
|
|
82
|
+
/// obj can be any of the allowed inputs of `addRow`
|
|
83
|
+
abstract member addRows: rowValuesArray:RowValues [] -> Row []
|
|
84
|
+
/// insert new row at rowIndex and return as row object
|
|
85
|
+
abstract member insertRow: rowIndex:int*RowValues -> Row
|
|
86
|
+
/// insert new row with specified style at rowIndex and return as row object
|
|
87
|
+
abstract member insertRow: rowIndex:int*RowValues*StyleOption -> Row
|
|
88
|
+
/// insert an array of rows at rowIndex and return as row object array. Shifts all rows beginning from position by number of inserted rows
|
|
89
|
+
abstract member insertRows: rowIndex:int*RowValues [] -> Row []
|
|
90
|
+
/// insert an array of rows with specified style at rowIndex and return as row object array. Shifts all rows beginning from position by number of inserted rows
|
|
91
|
+
abstract member insertRows: rowIndex:int*RowValues []*StyleOption -> Row []
|
|
92
|
+
abstract member getRow: int -> Row
|
|
93
|
+
abstract member getRows: int*int -> Row []
|
|
94
|
+
/// Cut one or more rows (rows below are shifted up).
|
|
95
|
+
/// Removed rows are replaced by nulls in worksheet.rows
|
|
96
|
+
/// Known Issue: If a splice causes any merged cells to move, the results may be unpredictable.
|
|
97
|
+
abstract member spliceRows: rowIndexStart:int*nRows:int -> unit
|
|
98
|
+
/// Cut one or more rows and insert newRows instead.
|
|
99
|
+
/// Known Issue: If a splice causes any merged cells to move, the results may be unpredictable.
|
|
100
|
+
[<Emit("$0.spliceRows($1,$2,$3...)")>]
|
|
101
|
+
abstract member spliceRows: rowIndexStart:int*nRows:int* [<ParamSeqAttribute>] newRows: CellValue [] [] -> unit
|
|
102
|
+
/// Duplicate row at rowIndex
|
|
103
|
+
[<Emit("$0.duplicateRow($1, 1, true)")>]
|
|
104
|
+
abstract member duplicateRow: rowIndex:int -> unit
|
|
105
|
+
/// Duplicate row `amount` times at rowIndex
|
|
106
|
+
[<Emit("$0.duplicateRow($1, $2, true)")>]
|
|
107
|
+
abstract member duplicateRow: rowIndex:int*amount:int -> unit
|
|
108
|
+
/// Duplicate row at rowIndex, if
|
|
109
|
+
/// `insert`: true if you want to insert new rows for the duplicates, or false if you want to replace them
|
|
110
|
+
[<Emit("$0.duplicateRow($1, 1, $2)")>]
|
|
111
|
+
abstract member duplicateRow: rowIndex:int*insert:bool -> unit
|
|
112
|
+
/// Duplicate row `amount` times at rowIndex
|
|
113
|
+
/// `insert`: true if you want to insert new rows for the duplicates, or false if you want to replace them
|
|
114
|
+
abstract member duplicateRow: rowIndex:int*amount:int*insert:bool -> unit
|
|
115
|
+
[<Emit("$0.eachRow(function(row, rowNumber){$1([row, rowNumber])})")>] //oh boy
|
|
116
|
+
abstract member eachRow: func:(Row*int -> unit) -> unit
|
|
117
|
+
[<Emit("$0.eachRow({ includeEmpty: $1 }, function(row, rowNumber){$2([row, rowNumber])})")>]
|
|
118
|
+
abstract member eachRow: includeEmpty:bool*func:(Row*int -> unit) -> unit
|
|
119
|
+
abstract member getCell: CellAdress -> Cell
|
|
120
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[<AutoOpen>]
|
|
2
|
+
module Fable.ExcelJs.Xlsx
|
|
3
|
+
|
|
4
|
+
open Fable.Core.JS
|
|
5
|
+
|
|
6
|
+
type Xlsx =
|
|
7
|
+
/// read from a file
|
|
8
|
+
abstract member readFile: filename:string -> Promise<unit>
|
|
9
|
+
/// read from a stream
|
|
10
|
+
abstract member read: filename:System.IO.Stream -> Promise<unit>
|
|
11
|
+
/// load from a buffer
|
|
12
|
+
abstract member load: filename:obj -> Promise<unit>
|
|
13
|
+
/// write to a file
|
|
14
|
+
abstract member writeFile: filename:string -> Promise<unit>
|
|
15
|
+
/// write to a stream
|
|
16
|
+
abstract member write: filename:System.IO.Stream -> Promise<unit>
|
|
17
|
+
/// write to a new buffer
|
|
18
|
+
abstract member writeBuffer: unit -> Promise<obj>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// <auto-generated>
|
|
2
|
+
// Generated by the FSharp WriteCodeFragment class.
|
|
3
|
+
// </auto-generated>
|
|
4
|
+
namespace FSharp
|
|
5
|
+
|
|
6
|
+
open System
|
|
7
|
+
open System.Reflection
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
[<assembly: System.Reflection.AssemblyCompanyAttribute("Kevin Frey")>]
|
|
11
|
+
[<assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")>]
|
|
12
|
+
[<assembly: System.Reflection.AssemblyDescriptionAttribute("Fable bindings for exceljs")>]
|
|
13
|
+
[<assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")>]
|
|
14
|
+
[<assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")>]
|
|
15
|
+
[<assembly: System.Reflection.AssemblyProductAttribute("Fable.Exceljs")>]
|
|
16
|
+
[<assembly: System.Reflection.AssemblyTitleAttribute("Fable.Exceljs")>]
|
|
17
|
+
[<assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")>]
|
|
18
|
+
[<assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Freymaurer/Fable.exceljs")>]
|
|
19
|
+
do()
|
package/fable_modules/Fable.Exceljs.1.6.0/obj/Debug/netstandard2.0/Fable.Exceljs.AssemblyInfo.fs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// <auto-generated>
|
|
2
|
+
// Generated by the FSharp WriteCodeFragment class.
|
|
3
|
+
// </auto-generated>
|
|
4
|
+
namespace FSharp
|
|
5
|
+
|
|
6
|
+
open System
|
|
7
|
+
open System.Reflection
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
[<assembly: System.Reflection.AssemblyCompanyAttribute("Kevin Frey")>]
|
|
11
|
+
[<assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")>]
|
|
12
|
+
[<assembly: System.Reflection.AssemblyDescriptionAttribute("Fable bindings for exceljs")>]
|
|
13
|
+
[<assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")>]
|
|
14
|
+
[<assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")>]
|
|
15
|
+
[<assembly: System.Reflection.AssemblyProductAttribute("Fable.Exceljs")>]
|
|
16
|
+
[<assembly: System.Reflection.AssemblyTitleAttribute("Fable.Exceljs")>]
|
|
17
|
+
[<assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")>]
|
|
18
|
+
[<assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Freymaurer/Fable.exceljs")>]
|
|
19
|
+
do()
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// <auto-generated>
|
|
2
|
+
// Generated by the FSharp WriteCodeFragment class.
|
|
3
|
+
// </auto-generated>
|
|
4
|
+
namespace FSharp
|
|
5
|
+
|
|
6
|
+
open System
|
|
7
|
+
open System.Reflection
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
[<assembly: System.Reflection.AssemblyCompanyAttribute("Kevin Frey")>]
|
|
11
|
+
[<assembly: System.Reflection.AssemblyConfigurationAttribute("Release")>]
|
|
12
|
+
[<assembly: System.Reflection.AssemblyDescriptionAttribute("Fable bindings for exceljs")>]
|
|
13
|
+
[<assembly: System.Reflection.AssemblyFileVersionAttribute("1.6.0.0")>]
|
|
14
|
+
[<assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.6.0")>]
|
|
15
|
+
[<assembly: System.Reflection.AssemblyProductAttribute("Fable.Exceljs")>]
|
|
16
|
+
[<assembly: System.Reflection.AssemblyTitleAttribute("Fable.Exceljs")>]
|
|
17
|
+
[<assembly: System.Reflection.AssemblyVersionAttribute("1.6.0.0")>]
|
|
18
|
+
[<assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Freymaurer/Fable.exceljs")>]
|
|
19
|
+
do()
|
package/fable_modules/Fable.Exceljs.1.6.0/obj/Release/netstandard2.0/Fable.Exceljs.AssemblyInfo.fs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// <auto-generated>
|
|
2
|
+
// Generated by the FSharp WriteCodeFragment class.
|
|
3
|
+
// </auto-generated>
|
|
4
|
+
namespace FSharp
|
|
5
|
+
|
|
6
|
+
open System
|
|
7
|
+
open System.Reflection
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
[<assembly: System.Reflection.AssemblyCompanyAttribute("Kevin Frey")>]
|
|
11
|
+
[<assembly: System.Reflection.AssemblyConfigurationAttribute("Release")>]
|
|
12
|
+
[<assembly: System.Reflection.AssemblyDescriptionAttribute("Fable bindings for exceljs")>]
|
|
13
|
+
[<assembly: System.Reflection.AssemblyFileVersionAttribute("1.6.0.0")>]
|
|
14
|
+
[<assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.6.0")>]
|
|
15
|
+
[<assembly: System.Reflection.AssemblyProductAttribute("Fable.Exceljs")>]
|
|
16
|
+
[<assembly: System.Reflection.AssemblyTitleAttribute("Fable.Exceljs")>]
|
|
17
|
+
[<assembly: System.Reflection.AssemblyVersionAttribute("1.6.0.0")>]
|
|
18
|
+
[<assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Freymaurer/Fable.exceljs")>]
|
|
19
|
+
do()
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Union } from "../fable-library-js.4.
|
|
2
|
-
import { array_type, tuple_type, bool_type, class_type, union_type, obj_type, int32_type, string_type } from "../fable-library-js.4.
|
|
3
|
-
import { defaultArg } from "../fable-library-js.4.
|
|
4
|
-
import { empty } from "../fable-library-js.4.
|
|
5
|
-
import { keyValueList } from "../fable-library-js.4.
|
|
6
|
-
import { int32ToString } from "../fable-library-js.4.
|
|
7
|
-
import { result } from "../Fable.Promise.
|
|
8
|
-
import { singleton } from "../fable-library-js.4.
|
|
1
|
+
import { Union } from "../fable-library-js.4.24.0/Types.js";
|
|
2
|
+
import { array_type, tuple_type, bool_type, class_type, union_type, obj_type, int32_type, string_type } from "../fable-library-js.4.24.0/Reflection.js";
|
|
3
|
+
import { defaultArg } from "../fable-library-js.4.24.0/Option.js";
|
|
4
|
+
import { empty } from "../fable-library-js.4.24.0/Seq.js";
|
|
5
|
+
import { keyValueList } from "../fable-library-js.4.24.0/MapUtil.js";
|
|
6
|
+
import { int32ToString } from "../fable-library-js.4.24.0/Util.js";
|
|
7
|
+
import { result } from "../Fable.Promise.3.2.0/Promise.fs.js";
|
|
8
|
+
import { singleton } from "../fable-library-js.4.24.0/List.js";
|
|
9
9
|
|
|
10
10
|
export class Types_HttpRequestHeaders extends Union {
|
|
11
11
|
constructor(tag, fields) {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
[<RequireQualifiedAccess>]
|
|
2
|
+
module AsyncIterable
|
|
3
|
+
|
|
4
|
+
open Fable.Core
|
|
5
|
+
open Fable.Core.JsInterop
|
|
6
|
+
|
|
7
|
+
[<Emit("""{
|
|
8
|
+
[Symbol.asyncIterator]() {
|
|
9
|
+
return {
|
|
10
|
+
next: $0,
|
|
11
|
+
return: $1
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}""")>]
|
|
15
|
+
let private createAsyncIterator (onNext: unit -> JS.Promise<obj>) (onCancel: unit -> obj): JS.AsyncIterable<'T> = jsNative
|
|
16
|
+
|
|
17
|
+
/// Creates AsyncIterable. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of#specifications
|
|
18
|
+
let create (onNext: unit -> JS.Promise<'T option>): JS.AsyncIterable<'T> =
|
|
19
|
+
createAsyncIterator
|
|
20
|
+
(fun () ->
|
|
21
|
+
onNext() |> Promise.map (function
|
|
22
|
+
| Some value -> createObj ["value" ==> value; "done" ==> false]
|
|
23
|
+
| None -> createObj ["done" ==> true]
|
|
24
|
+
))
|
|
25
|
+
(fun () -> createObj [ "done" ==> true ])
|
|
26
|
+
|
|
27
|
+
/// Creates AsyncIterable with a cleaning function for cancellation (JS caller invokes `break` or `return` during iteration)
|
|
28
|
+
let createCancellable (onCancel: unit -> unit) (onNext: unit -> JS.Promise<'T option>): JS.AsyncIterable<'T> =
|
|
29
|
+
createAsyncIterator
|
|
30
|
+
(fun () ->
|
|
31
|
+
onNext() |> Promise.map (function
|
|
32
|
+
| Some value -> createObj ["value" ==> value; "done" ==> false]
|
|
33
|
+
| None -> createObj ["done" ==> true]
|
|
34
|
+
))
|
|
35
|
+
(fun () ->
|
|
36
|
+
onCancel()
|
|
37
|
+
createObj [ "done" ==> true ])
|
|
38
|
+
|
|
39
|
+
type CancellationToken() =
|
|
40
|
+
member this.Cancel(): unit =
|
|
41
|
+
raise !!this
|
|
42
|
+
|
|
43
|
+
/// Iterates AsyncIterable. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of
|
|
44
|
+
let iter (action: CancellationToken -> 'T -> unit) (iterable: JS.AsyncIterable<'T>): JS.Promise<unit> =
|
|
45
|
+
let token = CancellationToken()
|
|
46
|
+
emitJsExpr () """(async () => {
|
|
47
|
+
for await (const value of iterable) {
|
|
48
|
+
try {
|
|
49
|
+
action(token, value)
|
|
50
|
+
} catch (err) {
|
|
51
|
+
if (err instanceof token.constructor) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
throw(err);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
})()"""
|