@nfdi4plants/arctrl 2.0.1 → 2.1.0-alpha.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 +43 -108
- package/Contract/ARC.js +1 -1
- package/Contract/ArcAssay.js +37 -14
- package/Contract/ArcInvestigation.js +4 -4
- package/Contract/ArcStudy.js +37 -14
- package/Contract/Contract.js +6 -6
- package/Contract/Datamap.js +5 -5
- package/Contract/Git.js +6 -6
- package/Contract/ValidationPackagesConfig.js +5 -5
- package/Core/ArcTypes.js +17 -17
- package/Core/Comment.js +16 -9
- package/Core/CommentList.js +6 -6
- package/Core/Conversion.js +64 -64
- package/Core/Data.js +11 -11
- package/Core/DataContext.js +4 -4
- package/Core/DataFile.js +2 -2
- package/Core/DataMap.js +4 -4
- package/Core/Helper/Collections.js +11 -11
- package/Core/Helper/HashCodes.js +5 -5
- package/Core/Helper/Identifier.js +9 -9
- package/Core/Helper/Regex.js +38 -38
- package/Core/Helper/SemVer.js +8 -8
- package/Core/OntologyAnnotation.js +11 -11
- package/Core/OntologySourceReference.js +4 -4
- package/Core/Person.js +11 -11
- package/Core/Process/ColumnIndex.js +7 -7
- package/Core/Process/Component.js +10 -10
- package/Core/Process/Factor.js +6 -6
- package/Core/Process/FactorValue.js +10 -10
- package/Core/Process/Material.js +5 -5
- package/Core/Process/MaterialAttribute.js +4 -4
- package/Core/Process/MaterialAttributeValue.js +10 -10
- package/Core/Process/MaterialType.js +2 -2
- package/Core/Process/Process.js +19 -19
- package/Core/Process/ProcessInput.js +16 -16
- package/Core/Process/ProcessOutput.js +16 -16
- package/Core/Process/ProcessParameterValue.js +10 -10
- package/Core/Process/ProcessSequence.js +6 -6
- package/Core/Process/Protocol.js +5 -5
- package/Core/Process/ProtocolParameter.js +4 -4
- package/Core/Process/Sample.js +5 -5
- package/Core/Process/Source.js +5 -5
- package/Core/Publication.js +10 -10
- package/Core/Table/ArcTable.js +35 -28
- package/Core/Table/ArcTableAux.js +22 -22
- package/Core/Table/ArcTables.js +14 -14
- package/Core/Table/CompositeCell.js +6 -6
- package/Core/Table/CompositeColumn.js +5 -5
- package/Core/Table/CompositeHeader.js +9 -9
- package/Core/Template.js +7 -7
- package/Core/Templates.js +8 -8
- package/Core/Value.js +11 -11
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +14 -14
- package/FileSystem/Path.js +3 -3
- package/Json/ARC.js +21 -15
- package/Json/Assay.js +108 -169
- package/Json/Comment.js +84 -122
- package/Json/ConverterOptions.js +2 -2
- package/Json/Data.js +100 -107
- package/Json/DataFile.js +22 -57
- package/Json/DataMap/DataContext.js +25 -16
- package/Json/DataMap/DataMap.js +11 -7
- package/Json/Decode.js +11 -14
- package/Json/Encode.js +24 -13
- package/Json/IDTable.js +14 -3
- package/Json/Investigation.js +194 -176
- package/Json/OntologyAnnotation.js +113 -127
- package/Json/OntologySourceReference.js +93 -111
- package/Json/Person.js +204 -135
- package/Json/Process/AssayMaterials.js +12 -14
- package/Json/Process/Component.js +23 -68
- package/Json/Process/Factor.js +28 -46
- package/Json/Process/FactorValue.js +28 -50
- package/Json/Process/Material.js +56 -83
- package/Json/Process/MaterialAttribute.js +23 -45
- package/Json/Process/MaterialAttributeValue.js +28 -71
- package/Json/Process/MaterialType.js +17 -35
- package/Json/Process/Process.js +70 -85
- package/Json/Process/ProcessInput.js +18 -45
- package/Json/Process/ProcessOutput.js +15 -63
- package/Json/Process/ProcessParameterValue.js +21 -70
- package/Json/Process/Protocol.js +80 -83
- package/Json/Process/ProtocolParameter.js +23 -44
- package/Json/Process/Sample.js +66 -93
- package/Json/Process/Source.js +54 -81
- package/Json/Process/StudyMaterials.js +13 -15
- package/Json/Process/Value.js +19 -29
- package/Json/PropertyValue.js +86 -28
- package/Json/Publication.js +92 -115
- package/Json/ROCrateObject.js +146 -0
- package/Json/StringTable.js +27 -10
- package/Json/Study.js +193 -182
- package/Json/Table/ArcTable.js +119 -115
- package/Json/Table/CellTable.js +24 -11
- package/Json/Table/CompositeCell.js +40 -41
- package/Json/Table/CompositeHeader.js +24 -36
- package/Json/Table/IOType.js +9 -31
- package/Json/Table/OATable.js +23 -10
- package/Json/Table/Templates.js +82 -90
- package/Json/context/rocrate/isa_assay_context.js +60 -4
- package/Json/context/rocrate/isa_comment_context.js +28 -4
- package/Json/context/rocrate/isa_component_context.js +44 -4
- package/Json/context/rocrate/isa_data_context.js +40 -4
- package/Json/context/rocrate/isa_factor_context.js +40 -4
- package/Json/context/rocrate/isa_factor_value_context.js +52 -4
- package/Json/context/rocrate/isa_investigation_context.js +68 -4
- package/Json/context/rocrate/isa_material_attribute_context.js +32 -4
- package/Json/context/rocrate/isa_material_attribute_value_context.js +48 -4
- package/Json/context/rocrate/isa_material_context.js +36 -4
- package/Json/context/rocrate/isa_ontology_annotation_context.js +36 -4
- package/Json/context/rocrate/isa_ontology_source_reference_context.js +40 -4
- package/Json/context/rocrate/isa_organization_context.js +24 -4
- package/Json/context/rocrate/isa_person_context.js +85 -5
- package/Json/context/rocrate/isa_process_context.js +56 -4
- package/Json/context/rocrate/isa_process_parameter_value_context.js +48 -4
- package/Json/context/rocrate/isa_protocol_context.js +60 -4
- package/Json/context/rocrate/isa_protocol_parameter_context.js +32 -4
- package/Json/context/rocrate/isa_publication_context.js +44 -4
- package/Json/context/rocrate/isa_sample_context.js +32 -4
- package/Json/context/rocrate/isa_source_context.js +32 -4
- package/Json/context/rocrate/isa_study_context.js +72 -4
- package/Json/context/rocrate/property_value_context.js +58 -2
- package/Json/context/rocrate/rocrate_context.js +45 -5
- package/Json.js +12 -12
- package/JsonIO/ARC.js +31 -0
- package/JsonIO/Assay.js +99 -0
- package/JsonIO/Comment.js +73 -0
- package/JsonIO/Data.js +50 -0
- package/JsonIO/DataFile.js +49 -0
- package/JsonIO/DataMap/DataMap.js +29 -0
- package/JsonIO/Decode.js +4 -0
- package/JsonIO/Investigation.js +99 -0
- package/JsonIO/OntologyAnnotation.js +73 -0
- package/JsonIO/OntologySourceReference.js +73 -0
- package/JsonIO/Person.js +74 -0
- package/JsonIO/Process/Component.js +50 -0
- package/JsonIO/Process/Factor.js +28 -0
- package/JsonIO/Process/FactorValue.js +29 -0
- package/JsonIO/Process/Material.js +50 -0
- package/JsonIO/Process/MaterialAttribute.js +29 -0
- package/JsonIO/Process/MaterialAttributeValue.js +50 -0
- package/JsonIO/Process/MaterialType.js +28 -0
- package/JsonIO/Process/Process.js +50 -0
- package/JsonIO/Process/ProcessInput.js +29 -0
- package/JsonIO/Process/ProcessOutput.js +50 -0
- package/JsonIO/Process/ProcessParameterValue.js +50 -0
- package/{Json → JsonIO}/Process/ProcessSequence.js +16 -16
- package/JsonIO/Process/Protocol.js +50 -0
- package/JsonIO/Process/ProtocolParameter.js +28 -0
- package/JsonIO/Process/Sample.js +50 -0
- package/JsonIO/Process/Source.js +50 -0
- package/JsonIO/Process/StudyMaterials.js +22 -0
- package/JsonIO/Process/Value.js +23 -0
- package/JsonIO/Publication.js +74 -0
- package/JsonIO/ROCrateObject.js +146 -0
- package/JsonIO/Study.js +99 -0
- package/JsonIO/Table/ArcTable.js +82 -0
- package/JsonIO/Table/CompositeCell.js +28 -0
- package/JsonIO/Table/CompositeHeader.js +28 -0
- package/{Json → JsonIO}/Table/Compression.js +20 -10
- package/JsonIO/Table/IOType.js +28 -0
- package/JsonIO/Table/Templates.js +88 -0
- package/ROCrate/ISAProfile/Assay.js +32 -0
- package/ROCrate/ISAProfile/Data.js +28 -0
- package/ROCrate/ISAProfile/Dataset.js +18 -0
- package/ROCrate/ISAProfile/Investigation.js +35 -0
- package/ROCrate/ISAProfile/LabProcess.js +32 -0
- package/ROCrate/ISAProfile/LabProtocol.js +33 -0
- package/ROCrate/ISAProfile/Person.js +35 -0
- package/ROCrate/ISAProfile/PropertyValue.js +30 -0
- package/ROCrate/ISAProfile/Sample.js +27 -0
- package/ROCrate/ISAProfile/ScholarlyArticle.js +30 -0
- package/ROCrate/ISAProfile/Study.js +35 -0
- package/ROCrate/ROCrateObject.js +61 -0
- package/Spreadsheet/AnnotationTable/ArcTable.js +16 -16
- package/Spreadsheet/AnnotationTable/CompositeCell.js +2 -2
- package/Spreadsheet/AnnotationTable/CompositeColumn.js +7 -7
- package/Spreadsheet/AnnotationTable/CompositeHeader.js +25 -25
- package/Spreadsheet/ArcAssay.js +9 -9
- package/Spreadsheet/ArcInvestigation.js +14 -14
- package/Spreadsheet/ArcStudy.js +7 -7
- package/Spreadsheet/CollectionAux.js +11 -11
- package/Spreadsheet/DataMap.js +3 -3
- package/Spreadsheet/DataMapTable/DataMapColumn.js +6 -6
- package/Spreadsheet/DataMapTable/DataMapHeader.js +23 -23
- package/Spreadsheet/DataMapTable/DataMapTable.js +13 -13
- package/Spreadsheet/Metadata/Assays.js +11 -11
- package/Spreadsheet/Metadata/Comment.js +5 -5
- package/Spreadsheet/Metadata/Contacts.js +7 -7
- package/Spreadsheet/Metadata/Conversions.js +7 -7
- package/Spreadsheet/Metadata/DesignDescriptors.js +1 -1
- package/Spreadsheet/Metadata/Factors.js +8 -8
- package/Spreadsheet/Metadata/OntologyAnnotation.js +6 -6
- package/Spreadsheet/Metadata/OntologySourceReference.js +6 -6
- package/Spreadsheet/Metadata/Protocols.js +9 -9
- package/Spreadsheet/Metadata/Publication.js +7 -7
- package/Spreadsheet/Metadata/SparseTable.js +21 -21
- package/Spreadsheet/Metadata/Study.js +12 -12
- package/Spreadsheet/Template.js +21 -21
- package/Template.Web.js +6 -6
- package/ValidationPackages/ValidationPackage.js +6 -6
- package/ValidationPackages/ValidationPackagesConfig.js +9 -9
- package/WebRequest/WebRequest.Node.js +2 -2
- package/WebRequest/WebRequest.js +2 -2
- package/Xlsx.js +9 -9
- package/Yaml/Encode.js +1 -1
- package/Yaml/ValidationPackage.js +5 -5
- package/Yaml/ValidationPackagesConfig.js +5 -5
- package/fable_modules/DynamicObj.4.0.0/DynObj.fs +219 -0
- package/fable_modules/DynamicObj.4.0.0/DynObj.fs.js +209 -0
- package/fable_modules/DynamicObj.4.0.0/DynamicObj.fableproj +47 -0
- package/fable_modules/DynamicObj.4.0.0/DynamicObj.fs +310 -0
- package/fable_modules/DynamicObj.4.0.0/DynamicObj.fs.js +166 -0
- package/fable_modules/DynamicObj.4.0.0/FableJS.fs +162 -0
- package/fable_modules/DynamicObj.4.0.0/FableJS.fs.js +141 -0
- package/fable_modules/DynamicObj.4.0.0/FablePy.fs +215 -0
- package/fable_modules/DynamicObj.4.0.0/HashCodes.fs +46 -0
- package/fable_modules/DynamicObj.4.0.0/HashCodes.fs.js +43 -0
- package/fable_modules/DynamicObj.4.0.0/PropertyHelper.fs +33 -0
- package/fable_modules/DynamicObj.4.0.0/PropertyHelper.fs.js +21 -0
- package/fable_modules/DynamicObj.4.0.0/ReflectionUtils.fs +72 -0
- package/fable_modules/DynamicObj.4.0.0/ReflectionUtils.fs.js +86 -0
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0/obj/Release → DynamicObj.4.0.0/obj/Debug}/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +1 -1
- package/fable_modules/DynamicObj.4.0.0/obj/Debug/netstandard2.0/DynamicObj.AssemblyInfo.fs +19 -0
- package/fable_modules/{Thoth.Json.Core.0.2.1/obj/Debug → DynamicObj.4.0.0/obj/Release}/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +1 -1
- package/fable_modules/DynamicObj.4.0.0/obj/Release/netstandard2.0/DynamicObj.AssemblyInfo.fs +19 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +8 -8
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +6 -6
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +11 -11
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCell.fs.js +15 -15
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCellsCollection.fs.js +11 -11
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/CellBuilder.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/ColumnBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/DSL.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Expression.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/DSL/Operators.fs.js +6 -0
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/RowBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/SheetBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/TableBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Transform.fs.js +10 -10
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Types.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/WorkbookBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsAddress.fs.js +11 -11
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsColumn.fs.js +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsRow.fs.js +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsSpreadsheet.fableproj +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorkbook.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorksheet.fs.js +11 -11
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Cell.fs.js +64 -0
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Column.fs.js +39 -0
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Row.fs.js +39 -0
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Table.fs.js +30 -0
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Value.fs.js +38 -13
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Workbook.fs.js +46 -0
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Worksheet.fs.js +33 -8
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRange.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeAddress.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeBase.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeColumn.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeRow.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/SheetBuilder.fs.js +10 -10
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTable.fs.js +11 -11
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableField.fs.js +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableRow.fs.js +2 -2
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Decode.fs +67 -28
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Decode.fs.js +79 -50
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Encode.fs +139 -54
- package/fable_modules/Thoth.Json.Core.0.4.0/Encode.fs.js +192 -0
- package/fable_modules/Thoth.Json.Core.0.4.0/Thoth.Json.Core.fableproj +33 -0
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Types.fs +12 -5
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Types.fs.js +2 -2
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0 → Thoth.Json.JavaScript.0.3.0}/Decode.fs +9 -0
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0 → Thoth.Json.JavaScript.0.3.0}/Decode.fs.js +16 -2
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0 → Thoth.Json.JavaScript.0.3.0}/Encode.fs +13 -5
- package/fable_modules/Thoth.Json.JavaScript.0.3.0/Encode.fs.js +58 -0
- package/fable_modules/Thoth.Json.JavaScript.0.3.0/Thoth.Json.JavaScript.fableproj +28 -0
- package/fable_modules/YAMLicious.0.0.1/Decode.fs.js +17 -17
- package/fable_modules/YAMLicious.0.0.1/Encode.fs.js +6 -6
- package/fable_modules/YAMLicious.0.0.1/Library.fs.js +1 -1
- package/fable_modules/YAMLicious.0.0.1/Persil.fs.js +4 -4
- package/fable_modules/YAMLicious.0.0.1/Preprocessing.fs.js +6 -6
- package/fable_modules/YAMLicious.0.0.1/Reader.fs.js +9 -9
- package/fable_modules/YAMLicious.0.0.1/RegexActivePatterns.fs.js +36 -36
- package/fable_modules/YAMLicious.0.0.1/Writer.fs.js +4 -4
- package/fable_modules/YAMLicious.0.0.1/YAMLiciousTypes.fs.js +6 -6
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Array.js +10 -10
- package/fable_modules/fable-library-js.4.22.0/Async.d.ts +27 -0
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Async.js +1 -7
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/AsyncBuilder.d.ts +13 -13
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BigInt.js +4 -3
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/CHANGELOG.md +40 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Choice.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Date.js +4 -5
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Decimal.js +6 -6
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/List.js +31 -31
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MailboxProcessor.d.ts +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Map.js +10 -10
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableMap.js +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableSet.js +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Random.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Range.js +4 -4
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Reflection.d.ts +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/RegExp.js +0 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Result.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq.js +47 -48
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Set.js +3 -3
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/String.d.ts +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/String.js +17 -6
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Text.js +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeSpan.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Types.d.ts +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Uri.d.ts +2 -0
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Uri.js +19 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Util.d.ts +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Util.js +0 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/lib/big.js +0 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/package.json +1 -1
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/fable_modules/FsSpreadsheet.6.2.0/DSL/Operators.fs.js +0 -6
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Cell.fs.js +0 -38
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Column.fs.js +0 -24
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Row.fs.js +0 -24
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Table.fs.js +0 -15
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Workbook.fs.js +0 -35
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +0 -113
- package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +0 -28
- package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/Thoth.Json.Core.AssemblyInfo.fs +0 -20
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +0 -45
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +0 -21
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -3
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +0 -18
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +0 -19
- package/fable_modules/fable-library-js.4.16.0/Async.d.ts +0 -32
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCellsCollection.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/CellBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/ColumnBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/DSL.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Expression.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Operators.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/RowBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/TableBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Transform.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Types.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/WorkbookBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorkbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorksheet.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Cell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Column.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Row.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Table.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Value.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Workbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Worksheet.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRange.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeBase.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTable.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableField.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Array.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Boolean.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Char.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Choice.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/ConditionalWeakTable.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/ConditionalWeakTable.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Double.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Event.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.CompilerServices.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.CompilerServices.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Global.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Long.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MapUtil.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MapUtil.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Native.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Option.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/README.md +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Result.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Collections.Generic.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Collections.Generic.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Text.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Types.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/big.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/lib/big.d.ts +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
module DynamicObj.HashCodes
|
|
2
|
+
|
|
3
|
+
let mergeHashes (hash1 : int) (hash2 : int) : int =
|
|
4
|
+
0x9e3779b9 + hash2 + (hash1 <<< 6) + (hash1 >>> 2)
|
|
5
|
+
|
|
6
|
+
let hashDateTime (dt : System.DateTime) : int =
|
|
7
|
+
let mutable acc = 0
|
|
8
|
+
acc <- mergeHashes acc dt.Year
|
|
9
|
+
acc <- mergeHashes acc dt.Month
|
|
10
|
+
acc <- mergeHashes acc dt.Day
|
|
11
|
+
acc <- mergeHashes acc dt.Hour
|
|
12
|
+
acc <- mergeHashes acc dt.Minute
|
|
13
|
+
acc <- mergeHashes acc dt.Second
|
|
14
|
+
acc
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
let hash obj =
|
|
18
|
+
obj.GetHashCode()
|
|
19
|
+
|
|
20
|
+
let boxHashOption (a: 'a option) : obj =
|
|
21
|
+
if a.IsSome then a.Value.GetHashCode() else (0).GetHashCode()
|
|
22
|
+
|> box
|
|
23
|
+
|
|
24
|
+
let boxHashArray (a: 'a []) : obj =
|
|
25
|
+
a
|
|
26
|
+
// from https://stackoverflow.com/a/53507559
|
|
27
|
+
|> Array.fold (fun acc o ->
|
|
28
|
+
hash o
|
|
29
|
+
|> mergeHashes acc) 0
|
|
30
|
+
|> box
|
|
31
|
+
|
|
32
|
+
let boxHashSeq (a: seq<'a>) : obj =
|
|
33
|
+
a
|
|
34
|
+
// from https://stackoverflow.com/a/53507559
|
|
35
|
+
|> Seq.fold (fun acc o ->
|
|
36
|
+
hash o
|
|
37
|
+
|> mergeHashes acc) 0
|
|
38
|
+
|> box
|
|
39
|
+
|
|
40
|
+
let boxHashKeyValSeq (a: seq<System.Collections.Generic.KeyValuePair<'a,'b>>) : obj =
|
|
41
|
+
a
|
|
42
|
+
// from https://stackoverflow.com/a/53507559
|
|
43
|
+
|> Seq.fold (fun acc o ->
|
|
44
|
+
mergeHashes (hash o.Key) (hash o.Value)
|
|
45
|
+
|> mergeHashes acc) 0
|
|
46
|
+
|> box
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { second, minute, hour, day, month, year } from "../fable-library-js.4.22.0/Date.js";
|
|
2
|
+
import { numberHash, identityHash } from "../fable-library-js.4.22.0/Util.js";
|
|
3
|
+
import { value as value_1 } from "../fable-library-js.4.22.0/Option.js";
|
|
4
|
+
import { fold } from "../fable-library-js.4.22.0/Array.js";
|
|
5
|
+
import { fold as fold_1 } from "../fable-library-js.4.22.0/Seq.js";
|
|
6
|
+
|
|
7
|
+
export function mergeHashes(hash1, hash2) {
|
|
8
|
+
return ((-1640531527 + hash2) + (hash1 << 6)) + (hash1 >> 2);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function hashDateTime(dt) {
|
|
12
|
+
let acc = 0;
|
|
13
|
+
acc = (mergeHashes(acc, year(dt)) | 0);
|
|
14
|
+
acc = (mergeHashes(acc, month(dt)) | 0);
|
|
15
|
+
acc = (mergeHashes(acc, day(dt)) | 0);
|
|
16
|
+
acc = (mergeHashes(acc, hour(dt)) | 0);
|
|
17
|
+
acc = (mergeHashes(acc, minute(dt)) | 0);
|
|
18
|
+
acc = (mergeHashes(acc, second(dt)) | 0);
|
|
19
|
+
return acc | 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function hash(obj) {
|
|
23
|
+
let copyOfStruct = obj;
|
|
24
|
+
return identityHash(copyOfStruct) | 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function boxHashOption(a) {
|
|
28
|
+
let copyOfStruct, copyOfStruct_1;
|
|
29
|
+
return (a != null) ? ((copyOfStruct = value_1(a), identityHash(copyOfStruct))) : ((copyOfStruct_1 = 0, numberHash(copyOfStruct_1)));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function boxHashArray(a) {
|
|
33
|
+
return fold((acc, o) => mergeHashes(acc, hash(o)), 0, a);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function boxHashSeq(a) {
|
|
37
|
+
return fold_1((acc, o) => mergeHashes(acc, hash(o)), 0, a);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function boxHashKeyValSeq(a) {
|
|
41
|
+
return fold_1((acc, o) => mergeHashes(acc, mergeHashes(hash(o[0]), hash(o[1]))), 0, a);
|
|
42
|
+
}
|
|
43
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
namespace DynamicObj
|
|
2
|
+
|
|
3
|
+
open System.Reflection
|
|
4
|
+
|
|
5
|
+
type PropertyHelper =
|
|
6
|
+
|
|
7
|
+
{
|
|
8
|
+
Name : string
|
|
9
|
+
IsStatic : bool
|
|
10
|
+
IsDynamic : bool
|
|
11
|
+
IsMutable : bool
|
|
12
|
+
IsImmutable : bool
|
|
13
|
+
GetValue : obj -> obj
|
|
14
|
+
SetValue : obj -> obj -> unit
|
|
15
|
+
RemoveValue : obj -> unit
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#if !FABLE_COMPILER
|
|
19
|
+
|
|
20
|
+
static member fromPropertyInfo (pI : PropertyInfo) =
|
|
21
|
+
{
|
|
22
|
+
Name = pI.Name
|
|
23
|
+
IsStatic = true
|
|
24
|
+
IsDynamic = false
|
|
25
|
+
IsMutable = pI.CanWrite
|
|
26
|
+
IsImmutable = not pI.CanWrite
|
|
27
|
+
GetValue = fun(o) -> pI.GetValue(o)
|
|
28
|
+
SetValue = fun o v -> pI.SetValue(o, v)
|
|
29
|
+
RemoveValue = fun o -> pI.SetValue(o, null)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#endif
|
|
33
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Record } from "../fable-library-js.4.22.0/Types.js";
|
|
2
|
+
import { record_type, unit_type, lambda_type, obj_type, bool_type, string_type } from "../fable-library-js.4.22.0/Reflection.js";
|
|
3
|
+
|
|
4
|
+
export class PropertyHelper extends Record {
|
|
5
|
+
constructor(Name, IsStatic, IsDynamic, IsMutable, IsImmutable, GetValue, SetValue, RemoveValue) {
|
|
6
|
+
super();
|
|
7
|
+
this.Name = Name;
|
|
8
|
+
this.IsStatic = IsStatic;
|
|
9
|
+
this.IsDynamic = IsDynamic;
|
|
10
|
+
this.IsMutable = IsMutable;
|
|
11
|
+
this.IsImmutable = IsImmutable;
|
|
12
|
+
this.GetValue = GetValue;
|
|
13
|
+
this.SetValue = SetValue;
|
|
14
|
+
this.RemoveValue = RemoveValue;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function PropertyHelper_$reflection() {
|
|
19
|
+
return record_type("DynamicObj.PropertyHelper", [], PropertyHelper, () => [["Name", string_type], ["IsStatic", bool_type], ["IsDynamic", bool_type], ["IsMutable", bool_type], ["IsImmutable", bool_type], ["GetValue", lambda_type(obj_type, obj_type)], ["SetValue", lambda_type(obj_type, lambda_type(obj_type, unit_type))], ["RemoveValue", lambda_type(obj_type, unit_type)]]);
|
|
20
|
+
}
|
|
21
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
namespace DynamicObj
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
module ReflectionUtils =
|
|
5
|
+
|
|
6
|
+
open System
|
|
7
|
+
open System.Reflection
|
|
8
|
+
|
|
9
|
+
// Gets public, static properties including interface propterties
|
|
10
|
+
let getStaticProperties (o : obj) =
|
|
11
|
+
#if FABLE_COMPILER_JAVASCRIPT || FABLE_COMPILER_TYPESCRIPT
|
|
12
|
+
FableJS.getStaticPropertyHelpers o
|
|
13
|
+
#endif
|
|
14
|
+
#if FABLE_COMPILER_PYTHON
|
|
15
|
+
FablePy.getStaticPropertyHelpers o
|
|
16
|
+
#endif
|
|
17
|
+
#if !FABLE_COMPILER
|
|
18
|
+
let t = o.GetType()
|
|
19
|
+
[|
|
|
20
|
+
for propInfo in t.GetProperties() -> propInfo
|
|
21
|
+
for i in t.GetInterfaces() do yield! i.GetProperties()
|
|
22
|
+
|]
|
|
23
|
+
|> Array.map PropertyHelper.fromPropertyInfo
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
/// Try to get the PropertyInfo by name using reflection
|
|
27
|
+
let tryGetStaticPropertyInfo (o:obj) (propName:string) =
|
|
28
|
+
#if FABLE_COMPILER_JAVASCRIPT || FABLE_COMPILER_TYPESCRIPT
|
|
29
|
+
FableJS.tryGetStaticPropertyHelper o propName
|
|
30
|
+
#endif
|
|
31
|
+
#if FABLE_COMPILER_PYTHON
|
|
32
|
+
FablePy.tryGetStaticPropertyHelper o propName
|
|
33
|
+
#endif
|
|
34
|
+
#if !FABLE_COMPILER
|
|
35
|
+
getStaticProperties (o)
|
|
36
|
+
|> Array.tryFind (fun n -> n.Name = propName)
|
|
37
|
+
#endif
|
|
38
|
+
|
|
39
|
+
let trySetPropertyValue (o:obj) (propName:string) (value:obj) =
|
|
40
|
+
match tryGetStaticPropertyInfo o propName with
|
|
41
|
+
| Some property when property.IsMutable ->
|
|
42
|
+
property.SetValue o value
|
|
43
|
+
true
|
|
44
|
+
| _ -> false
|
|
45
|
+
|
|
46
|
+
let tryGetPropertyValue (o:obj) (propName:string) =
|
|
47
|
+
try
|
|
48
|
+
match tryGetStaticPropertyInfo o propName with
|
|
49
|
+
| Some v -> Some (v.GetValue(o))
|
|
50
|
+
| None -> None
|
|
51
|
+
with
|
|
52
|
+
| :? System.Reflection.TargetInvocationException -> None
|
|
53
|
+
| :? System.NullReferenceException -> None
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/// Gets property value as 'a option using reflection. Cast to 'a
|
|
57
|
+
let tryGetPropertyValueAs<'a> (o:obj) (propName:string) =
|
|
58
|
+
try
|
|
59
|
+
tryGetPropertyValue o propName
|
|
60
|
+
|> Option.map (fun v -> v :?> 'a)
|
|
61
|
+
|
|
62
|
+
with
|
|
63
|
+
| :? System.Reflection.TargetInvocationException -> None
|
|
64
|
+
| :? System.NullReferenceException -> None
|
|
65
|
+
|
|
66
|
+
let removeProperty (o:obj) (propName:string) =
|
|
67
|
+
|
|
68
|
+
match tryGetStaticPropertyInfo o propName with
|
|
69
|
+
| Some property when property.IsMutable ->
|
|
70
|
+
property.RemoveValue(o)
|
|
71
|
+
true
|
|
72
|
+
| _ -> false
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { tryGetStaticPropertyHelper, getStaticPropertyHelpers } from "./FableJS.fs.js";
|
|
2
|
+
import { map, some } from "../fable-library-js.4.22.0/Option.js";
|
|
3
|
+
|
|
4
|
+
export function getStaticProperties(o) {
|
|
5
|
+
return getStaticPropertyHelpers(o);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Try to get the PropertyInfo by name using reflection
|
|
10
|
+
*/
|
|
11
|
+
export function tryGetStaticPropertyInfo(o, propName) {
|
|
12
|
+
return tryGetStaticPropertyHelper(o, propName);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function trySetPropertyValue(o, propName, value) {
|
|
16
|
+
const matchValue = tryGetStaticPropertyInfo(o, propName);
|
|
17
|
+
let matchResult, property_1;
|
|
18
|
+
if (matchValue != null) {
|
|
19
|
+
if (matchValue.IsMutable) {
|
|
20
|
+
matchResult = 0;
|
|
21
|
+
property_1 = matchValue;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
matchResult = 1;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
matchResult = 1;
|
|
29
|
+
}
|
|
30
|
+
switch (matchResult) {
|
|
31
|
+
case 0: {
|
|
32
|
+
property_1.SetValue(o, value);
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
default:
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function tryGetPropertyValue(o, propName) {
|
|
41
|
+
try {
|
|
42
|
+
const matchValue = tryGetStaticPropertyInfo(o, propName);
|
|
43
|
+
return (matchValue == null) ? undefined : some(matchValue.GetValue(o));
|
|
44
|
+
}
|
|
45
|
+
catch (matchValue_1) {
|
|
46
|
+
throw matchValue_1;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Gets property value as 'a option using reflection. Cast to 'a
|
|
52
|
+
*/
|
|
53
|
+
export function tryGetPropertyValueAs(o, propName) {
|
|
54
|
+
try {
|
|
55
|
+
return map((v) => v, tryGetPropertyValue(o, propName));
|
|
56
|
+
}
|
|
57
|
+
catch (matchValue) {
|
|
58
|
+
throw matchValue;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function removeProperty(o, propName) {
|
|
63
|
+
const matchValue = tryGetStaticPropertyInfo(o, propName);
|
|
64
|
+
let matchResult, property_1;
|
|
65
|
+
if (matchValue != null) {
|
|
66
|
+
if (matchValue.IsMutable) {
|
|
67
|
+
matchResult = 0;
|
|
68
|
+
property_1 = matchValue;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
matchResult = 1;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
matchResult = 1;
|
|
76
|
+
}
|
|
77
|
+
switch (matchResult) {
|
|
78
|
+
case 0: {
|
|
79
|
+
property_1.RemoveValue(o);
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
default:
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -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("Timo Mühlhaus, Kevin Schneider, Heinrich Lukas Weil, F# open source contributors")>]
|
|
11
|
+
[<assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")>]
|
|
12
|
+
[<assembly: System.Reflection.AssemblyDescriptionAttribute("F# library supporting Dynamic Objects including inheritance in functional style. Compatible with Fable javascript and python transpilation.")>]
|
|
13
|
+
[<assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")>]
|
|
14
|
+
[<assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1d5799f222ea3f1f0885bc3e0efcee4fd0473a4c")>]
|
|
15
|
+
[<assembly: System.Reflection.AssemblyProductAttribute("DynamicObj")>]
|
|
16
|
+
[<assembly: System.Reflection.AssemblyTitleAttribute("DynamicObj")>]
|
|
17
|
+
[<assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")>]
|
|
18
|
+
[<assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/CSBiology/DynamicObj")>]
|
|
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("Timo Mühlhaus, Kevin Schneider, Heinrich Lukas Weil, F# open source contributors")>]
|
|
11
|
+
[<assembly: System.Reflection.AssemblyConfigurationAttribute("Release")>]
|
|
12
|
+
[<assembly: System.Reflection.AssemblyDescriptionAttribute("F# library supporting Dynamic Objects including inheritance in functional style. Compatible with Fable javascript and python transpilation.")>]
|
|
13
|
+
[<assembly: System.Reflection.AssemblyFileVersionAttribute("4.0.0.0")>]
|
|
14
|
+
[<assembly: System.Reflection.AssemblyInformationalVersionAttribute("4.0.0+1d5799f222ea3f1f0885bc3e0efcee4fd0473a4c")>]
|
|
15
|
+
[<assembly: System.Reflection.AssemblyProductAttribute("DynamicObj")>]
|
|
16
|
+
[<assembly: System.Reflection.AssemblyTitleAttribute("DynamicObj")>]
|
|
17
|
+
[<assembly: System.Reflection.AssemblyVersionAttribute("4.0.0.0")>]
|
|
18
|
+
[<assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/CSBiology/DynamicObj")>]
|
|
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.
|
|
1
|
+
import { Union } from "../fable-library-js.4.22.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.22.0/Reflection.js";
|
|
3
|
+
import { defaultArg } from "../fable-library-js.4.22.0/Option.js";
|
|
4
|
+
import { empty } from "../fable-library-js.4.22.0/Seq.js";
|
|
5
|
+
import { keyValueList } from "../fable-library-js.4.22.0/MapUtil.js";
|
|
6
|
+
import { int32ToString } from "../fable-library-js.4.22.0/Util.js";
|
|
7
7
|
import { result } from "../Fable.Promise.2.2.2/Promise.fs.js";
|
|
8
|
-
import { singleton } from "../fable-library-js.4.
|
|
8
|
+
import { singleton } from "../fable-library-js.4.22.0/List.js";
|
|
9
9
|
|
|
10
10
|
export class Types_HttpRequestHeaders extends Union {
|
|
11
11
|
constructor(tag, fields) {
|
|
@@ -34,7 +34,7 @@ export class Types_RequestProperties extends Union {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export function Types_RequestProperties_$reflection() {
|
|
37
|
-
return union_type("Fetch.Types.RequestProperties", [], Types_RequestProperties, () => [[["Item", string_type]], [["Item", class_type("Fetch.Types.IHttpRequestHeaders")]], [["Item", class_type("Fable.Core.U3`3", [class_type("Browser.Types.Blob",
|
|
37
|
+
return union_type("Fetch.Types.RequestProperties", [], Types_RequestProperties, () => [[["Item", string_type]], [["Item", class_type("Fetch.Types.IHttpRequestHeaders")]], [["Item", class_type("Fable.Core.U3`3", [class_type("Browser.Types.Blob", undefined), class_type("Browser.Types.FormData", undefined), string_type])]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", bool_type]], [["Item", class_type("Fetch.Types.AbortSignal")]]]);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export class Types_ResponseInitProperties extends Union {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Result_MapError, Result_Map, FSharpResult$2 } from "../fable-library-js.4.
|
|
2
|
-
import { class_type } from "../fable-library-js.4.
|
|
3
|
-
import { defaultOf, equals, disposeSafe, getEnumerator } from "../fable-library-js.4.
|
|
1
|
+
import { Result_MapError, Result_Map, FSharpResult$2 } from "../fable-library-js.4.22.0/Result.js";
|
|
2
|
+
import { class_type } from "../fable-library-js.4.22.0/Reflection.js";
|
|
3
|
+
import { defaultOf, equals, disposeSafe, getEnumerator } from "../fable-library-js.4.22.0/Util.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Creates promise (in rejected state) with supplied reason.
|
|
@@ -45,7 +45,7 @@ export class PromiseBuilder {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export function PromiseBuilder_$reflection() {
|
|
48
|
-
return class_type("Promise.PromiseBuilder",
|
|
48
|
+
return class_type("Promise.PromiseBuilder", undefined, PromiseBuilder);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export function PromiseBuilder_$ctor() {
|
|
@@ -53,7 +53,7 @@ export function PromiseBuilder_$ctor() {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export function PromiseBuilder__For_1565554B(x, seq, body) {
|
|
56
|
-
let p = Promise.resolve(
|
|
56
|
+
let p = Promise.resolve(undefined);
|
|
57
57
|
const enumerator = getEnumerator(seq);
|
|
58
58
|
try {
|
|
59
59
|
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
@@ -72,7 +72,7 @@ export function PromiseBuilder__While_2044D34(x, guard, p) {
|
|
|
72
72
|
return p.then(() => PromiseBuilder__While_2044D34(x, guard, p));
|
|
73
73
|
}
|
|
74
74
|
else {
|
|
75
|
-
return Promise.resolve(
|
|
75
|
+
return Promise.resolve(undefined);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { fromContinuations } from "../fable-library-js.4.
|
|
1
|
+
import { fromContinuations } from "../fable-library-js.4.22.0/Async.js";
|
|
2
2
|
import { HttpResponse, ResponseContent, HttpRequest, BodyContent, HttpMethod, Header } from "./Types.fs.js";
|
|
3
|
-
import { tail, head, isEmpty, ofArray as ofArray_1, singleton, append, empty } from "../fable-library-js.4.
|
|
4
|
-
import { ofArray, empty as empty_1 } from "../fable-library-js.4.
|
|
5
|
-
import { disposeSafe, getEnumerator, comparePrimitives } from "../fable-library-js.4.
|
|
6
|
-
import { join, split, isNullOrEmpty } from "../fable-library-js.4.
|
|
7
|
-
import { choose } from "../fable-library-js.4.
|
|
8
|
-
import { some } from "../fable-library-js.4.
|
|
9
|
-
import { singleton as singleton_1 } from "../fable-library-js.4.
|
|
3
|
+
import { tail, head, isEmpty, ofArray as ofArray_1, singleton, append, empty } from "../fable-library-js.4.22.0/List.js";
|
|
4
|
+
import { ofArray, empty as empty_1 } from "../fable-library-js.4.22.0/Map.js";
|
|
5
|
+
import { disposeSafe, getEnumerator, comparePrimitives } from "../fable-library-js.4.22.0/Util.js";
|
|
6
|
+
import { join, split, isNullOrEmpty } from "../fable-library-js.4.22.0/String.js";
|
|
7
|
+
import { choose } from "../fable-library-js.4.22.0/Array.js";
|
|
8
|
+
import { some } from "../fable-library-js.4.22.0/Option.js";
|
|
9
|
+
import { singleton as singleton_1 } from "../fable-library-js.4.22.0/AsyncBuilder.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Download a Blob
|
|
@@ -195,7 +195,7 @@ export function Headers_create(key, value) {
|
|
|
195
195
|
return new Header(key, value);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
const Http_defaultRequest = new HttpRequest("", new HttpMethod(0, []), empty(), false,
|
|
198
|
+
const Http_defaultRequest = new HttpRequest("", new HttpMethod(0, []), empty(), false, undefined, undefined, undefined, new BodyContent(0, []));
|
|
199
199
|
|
|
200
200
|
const Http_emptyResponse = new HttpResponse(0, "", "", "", empty_1({
|
|
201
201
|
Compare: comparePrimitives,
|
|
@@ -206,7 +206,7 @@ function Http_splitAt(delimiter, input) {
|
|
|
206
206
|
return [input];
|
|
207
207
|
}
|
|
208
208
|
else {
|
|
209
|
-
return split(input, [delimiter],
|
|
209
|
+
return split(input, [delimiter], undefined, 0);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
|
|
@@ -308,7 +308,7 @@ export function Http_send(req) {
|
|
|
308
308
|
return [head(matchValue_2).toLocaleLowerCase(), join(":", tail(matchValue_2)).trim()];
|
|
309
309
|
}
|
|
310
310
|
else {
|
|
311
|
-
return
|
|
311
|
+
return undefined;
|
|
312
312
|
}
|
|
313
313
|
}, Http_splitAt("\r\n", xhr.getAllResponseHeaders())), {
|
|
314
314
|
Compare: comparePrimitives,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Record, Union } from "../fable-library-js.4.
|
|
2
|
-
import { obj_type, record_type, int32_type, option_type, bool_type, list_type, class_type, string_type, union_type } from "../fable-library-js.4.
|
|
1
|
+
import { Record, Union } from "../fable-library-js.4.22.0/Types.js";
|
|
2
|
+
import { obj_type, record_type, int32_type, option_type, bool_type, list_type, class_type, string_type, union_type } from "../fable-library-js.4.22.0/Reflection.js";
|
|
3
3
|
|
|
4
4
|
export class HttpMethod extends Union {
|
|
5
5
|
constructor(tag, fields) {
|
|
@@ -43,7 +43,7 @@ export class BodyContent extends Union {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
export function BodyContent_$reflection() {
|
|
46
|
-
return union_type("Fable.SimpleHttp.BodyContent", [], BodyContent, () => [[], [["Item", string_type]], [["Item", class_type("Browser.Types.Blob",
|
|
46
|
+
return union_type("Fable.SimpleHttp.BodyContent", [], BodyContent, () => [[], [["Item", string_type]], [["Item", class_type("Browser.Types.Blob", undefined)]], [["Item", class_type("Browser.Types.FormData", undefined)]]]);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export class ResponseTypes extends Union {
|
|
@@ -91,7 +91,7 @@ export class ResponseContent extends Union {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
export function ResponseContent_$reflection() {
|
|
94
|
-
return union_type("Fable.SimpleHttp.ResponseContent", [], ResponseContent, () => [[["Item", string_type]], [["Item", class_type("Browser.Types.Blob",
|
|
94
|
+
return union_type("Fable.SimpleHttp.ResponseContent", [], ResponseContent, () => [[["Item", string_type]], [["Item", class_type("Browser.Types.Blob", undefined)]], [["Item", class_type("Fable.Core.JS.ArrayBuffer")]], [["Item", obj_type]]]);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
export class HttpResponse extends Record {
|
package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCell.fs.js
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { toString, Union } from "../../fable-library-js.4.
|
|
2
|
-
import { class_type, union_type } from "../../fable-library-js.4.
|
|
3
|
-
import { map, defaultArg, unwrap } from "../../fable-library-js.4.
|
|
1
|
+
import { toString, Union } from "../../fable-library-js.4.22.0/Types.js";
|
|
2
|
+
import { class_type, union_type } from "../../fable-library-js.4.22.0/Reflection.js";
|
|
3
|
+
import { map, defaultArg, unwrap } from "../../fable-library-js.4.22.0/Option.js";
|
|
4
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-js.4.
|
|
6
|
-
import Decimal from "../../fable-library-js.4.
|
|
7
|
-
import { parse } from "../../fable-library-js.4.
|
|
8
|
-
import { parse as parse_1 } from "../../fable-library-js.4.
|
|
9
|
-
import { toUInt64, toInt64 } from "../../fable-library-js.4.
|
|
10
|
-
import { parse as parse_2 } from "../../fable-library-js.4.
|
|
11
|
-
import { parse as parse_4 } from "../../fable-library-js.4.
|
|
12
|
-
import { parse as parse_5 } from "../../fable-library-js.4.
|
|
13
|
-
import { parse as parse_6 } from "../../fable-library-js.4.
|
|
14
|
-
import { forAll } from "../../fable-library-js.4.
|
|
15
|
-
import { equals } from "../../fable-library-js.4.
|
|
5
|
+
import { parse as parse_3 } from "../../fable-library-js.4.22.0/Decimal.js";
|
|
6
|
+
import Decimal from "../../fable-library-js.4.22.0/Decimal.js";
|
|
7
|
+
import { parse } from "../../fable-library-js.4.22.0/Double.js";
|
|
8
|
+
import { parse as parse_1 } from "../../fable-library-js.4.22.0/Int32.js";
|
|
9
|
+
import { toUInt64, toInt64 } from "../../fable-library-js.4.22.0/BigInt.js";
|
|
10
|
+
import { parse as parse_2 } from "../../fable-library-js.4.22.0/Long.js";
|
|
11
|
+
import { parse as parse_4 } from "../../fable-library-js.4.22.0/Date.js";
|
|
12
|
+
import { parse as parse_5 } from "../../fable-library-js.4.22.0/Guid.js";
|
|
13
|
+
import { parse as parse_6 } from "../../fable-library-js.4.22.0/Char.js";
|
|
14
|
+
import { forAll } from "../../fable-library-js.4.22.0/Seq.js";
|
|
15
|
+
import { equals } from "../../fable-library-js.4.22.0/Util.js";
|
|
16
16
|
|
|
17
17
|
export class DataType extends Union {
|
|
18
18
|
constructor(tag, fields) {
|
|
@@ -263,7 +263,7 @@ export class FsCell {
|
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
export function FsCell_$reflection() {
|
|
266
|
-
return class_type("FsSpreadsheet.FsCell",
|
|
266
|
+
return class_type("FsSpreadsheet.FsCell", undefined, FsCell);
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
export function FsCell_$ctor_2BEF9BB0(value, dataType, address) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { addToSet, addToDict, getItemFromDict } from "../../fable-library-js.4.
|
|
2
|
-
import { some } from "../../fable-library-js.4.
|
|
3
|
-
import { class_type } from "../../fable-library-js.4.
|
|
4
|
-
import { minBy, min, singleton, empty, delay, collect, max, isEmpty, iterate, map } from "../../fable-library-js.4.
|
|
1
|
+
import { addToSet, addToDict, getItemFromDict } from "../../fable-library-js.4.22.0/MapUtil.js";
|
|
2
|
+
import { some } from "../../fable-library-js.4.22.0/Option.js";
|
|
3
|
+
import { class_type } from "../../fable-library-js.4.22.0/Reflection.js";
|
|
4
|
+
import { minBy, min, singleton, empty, delay, collect, max, isEmpty, iterate, map } from "../../fable-library-js.4.22.0/Seq.js";
|
|
5
5
|
import { FsAddress_$ctor_Z37302880, FsAddress__get_ColumnNumber, FsAddress__get_RowNumber } from "../FsAddress.fs.js";
|
|
6
|
-
import { comparePrimitives } from "../../fable-library-js.4.
|
|
7
|
-
import { rangeDouble } from "../../fable-library-js.4.
|
|
6
|
+
import { comparePrimitives } from "../../fable-library-js.4.22.0/Util.js";
|
|
7
|
+
import { rangeDouble } from "../../fable-library-js.4.22.0/Range.js";
|
|
8
8
|
|
|
9
9
|
export function Dictionary_tryGet(k, dict) {
|
|
10
10
|
if (dict.has(k)) {
|
|
11
11
|
return some(getItemFromDict(dict, k));
|
|
12
12
|
}
|
|
13
13
|
else {
|
|
14
|
-
return
|
|
14
|
+
return undefined;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -28,7 +28,7 @@ export class FsCellsCollection {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export function FsCellsCollection_$reflection() {
|
|
31
|
-
return class_type("FsSpreadsheet.FsCellsCollection",
|
|
31
|
+
return class_type("FsSpreadsheet.FsCellsCollection", undefined, FsCellsCollection);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export function FsCellsCollection_$ctor() {
|
|
@@ -424,17 +424,17 @@ export function FsCellsCollection_getCellsFromToAddress(startAddress, lastAddres
|
|
|
424
424
|
*/
|
|
425
425
|
export function FsCellsCollection__TryGetCell_Z37302880(this$, row, column) {
|
|
426
426
|
if ((row > this$._maxRowUsed) ? true : (column > this$._maxColumnUsed)) {
|
|
427
|
-
return
|
|
427
|
+
return undefined;
|
|
428
428
|
}
|
|
429
429
|
else {
|
|
430
430
|
const matchValue = Dictionary_tryGet(row, this$._rowsCollection);
|
|
431
431
|
if (matchValue == null) {
|
|
432
|
-
return
|
|
432
|
+
return undefined;
|
|
433
433
|
}
|
|
434
434
|
else {
|
|
435
435
|
const matchValue_1 = Dictionary_tryGet(column, matchValue);
|
|
436
436
|
if (matchValue_1 == null) {
|
|
437
|
-
return
|
|
437
|
+
return undefined;
|
|
438
438
|
}
|
|
439
439
|
else {
|
|
440
440
|
return matchValue_1;
|
package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/CellBuilder.fs.js
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { toString, Union } from "../../fable-library-js.4.
|
|
2
|
-
import { class_type, union_type, char_type } from "../../fable-library-js.4.
|
|
1
|
+
import { toString, Union } from "../../fable-library-js.4.22.0/Types.js";
|
|
2
|
+
import { class_type, union_type, char_type } from "../../fable-library-js.4.22.0/Reflection.js";
|
|
3
3
|
import { DataType } from "../Cells/FsCell.fs.js";
|
|
4
|
-
import { head, tail, isEmpty, append, empty, map, reduce } from "../../fable-library-js.4.
|
|
4
|
+
import { head, tail, isEmpty, append, empty, map, reduce } from "../../fable-library-js.4.22.0/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-js.4.
|
|
6
|
+
import { printf, toText } from "../../fable-library-js.4.22.0/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 {
|
|
@@ -32,7 +32,7 @@ export class CellBuilder {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export function CellBuilder_$reflection() {
|
|
35
|
-
return class_type("FsSpreadsheet.DSL.CellBuilder",
|
|
35
|
+
return class_type("FsSpreadsheet.DSL.CellBuilder", undefined, CellBuilder);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export function CellBuilder_$ctor() {
|
|
@@ -196,9 +196,9 @@ export function CellBuilder__AsCellElement_6F87C2ED(this$, children) {
|
|
|
196
196
|
}
|
|
197
197
|
switch (matchResult) {
|
|
198
198
|
case 0:
|
|
199
|
-
return new SheetEntity$1(0, [[v,
|
|
199
|
+
return new SheetEntity$1(0, [[v, undefined], messages]);
|
|
200
200
|
case 1:
|
|
201
|
-
return new SheetEntity$1(0, [[ReduceOperation__Reduce_70D1A69E(this$.reducer, vals),
|
|
201
|
+
return new SheetEntity$1(0, [[ReduceOperation__Reduce_70D1A69E(this$.reducer, vals), undefined], messages_1]);
|
|
202
202
|
case 2:
|
|
203
203
|
return new SheetEntity$1(2, [messages_2]);
|
|
204
204
|
default:
|