@nfdi4plants/arctrl 1.0.0-alpha10
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 +262 -0
- package/Contract/Contract.js +95 -0
- package/Contracts/Contracts.ARCtrl.js +35 -0
- package/Contracts/Contracts.ArcAssay.js +65 -0
- package/Contracts/Contracts.ArcInvestigation.js +58 -0
- package/Contracts/Contracts.ArcStudy.js +65 -0
- package/Contracts/Contracts.Git.js +91 -0
- package/FileSystem/Commit.js +18 -0
- package/FileSystem/DefaultGitignore.js +3 -0
- package/FileSystem/FileSystem.js +53 -0
- package/FileSystem/FileSystemTree.js +223 -0
- package/FileSystem/Path.js +38 -0
- package/FileSystemTree.js +51 -0
- package/ISA/ISA/ArcTypes/ArcTable.js +848 -0
- package/ISA/ISA/ArcTypes/ArcTableAux.js +1105 -0
- package/ISA/ISA/ArcTypes/ArcTables.js +479 -0
- package/ISA/ISA/ArcTypes/ArcTypes.js +2281 -0
- package/ISA/ISA/ArcTypes/CompositeCell.js +180 -0
- package/ISA/ISA/ArcTypes/CompositeColumn.js +48 -0
- package/ISA/ISA/ArcTypes/CompositeHeader.js +668 -0
- package/ISA/ISA/ArcTypes/CompositeRow.js +111 -0
- package/ISA/ISA/ArcTypes/IdentifierSetters.js +26 -0
- package/ISA/ISA/Builder/Types.js +243 -0
- package/ISA/ISA/Fable.js +50 -0
- package/ISA/ISA/Helper.js +338 -0
- package/ISA/ISA/Identifier.js +76 -0
- package/ISA/ISA/JsonTypes/AnnotationValue.js +56 -0
- package/ISA/ISA/JsonTypes/Assay.js +620 -0
- package/ISA/ISA/JsonTypes/AssayMaterials.js +39 -0
- package/ISA/ISA/JsonTypes/ColumnIndex.js +246 -0
- package/ISA/ISA/JsonTypes/Comment.js +58 -0
- package/ISA/ISA/JsonTypes/CommentList.js +139 -0
- package/ISA/ISA/JsonTypes/Component.js +158 -0
- package/ISA/ISA/JsonTypes/Data.js +55 -0
- package/ISA/ISA/JsonTypes/DataFile.js +68 -0
- package/ISA/ISA/JsonTypes/Factor.js +128 -0
- package/ISA/ISA/JsonTypes/FactorValue.js +109 -0
- package/ISA/ISA/JsonTypes/Investigation.js +204 -0
- package/ISA/ISA/JsonTypes/Material.js +66 -0
- package/ISA/ISA/JsonTypes/MaterialAttribute.js +101 -0
- package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +126 -0
- package/ISA/ISA/JsonTypes/MaterialType.js +41 -0
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +219 -0
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +85 -0
- package/ISA/ISA/JsonTypes/Person.js +137 -0
- package/ISA/ISA/JsonTypes/Process.js +401 -0
- package/ISA/ISA/JsonTypes/ProcessInput.js +297 -0
- package/ISA/ISA/JsonTypes/ProcessOutput.js +263 -0
- package/ISA/ISA/JsonTypes/ProcessParameterValue.js +129 -0
- package/ISA/ISA/JsonTypes/ProcessSequence.js +255 -0
- package/ISA/ISA/JsonTypes/Protocol.js +277 -0
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +101 -0
- package/ISA/ISA/JsonTypes/Publication.js +105 -0
- package/ISA/ISA/JsonTypes/Sample.js +71 -0
- package/ISA/ISA/JsonTypes/Source.js +54 -0
- package/ISA/ISA/JsonTypes/Study.js +942 -0
- package/ISA/ISA/JsonTypes/StudyMaterials.js +45 -0
- package/ISA/ISA/JsonTypes/URI.js +19 -0
- package/ISA/ISA/JsonTypes/Value.js +210 -0
- package/ISA/ISA/Regex.js +588 -0
- package/ISA/ISA.Json/Assay.js +123 -0
- package/ISA/ISA.Json/Comment.js +84 -0
- package/ISA/ISA.Json/ConverterOptions.js +33 -0
- package/ISA/ISA.Json/Data.js +271 -0
- package/ISA/ISA.Json/Decode.js +46 -0
- package/ISA/ISA.Json/Factor.js +194 -0
- package/ISA/ISA.Json/GEncode.js +15 -0
- package/ISA/ISA.Json/Investigation.js +132 -0
- package/ISA/ISA.Json/Material.js +233 -0
- package/ISA/ISA.Json/Ontology.js +204 -0
- package/ISA/ISA.Json/Person.js +204 -0
- package/ISA/ISA.Json/Process.js +291 -0
- package/ISA/ISA.Json/Protocol.js +242 -0
- package/ISA/ISA.Json/Publication.js +92 -0
- package/ISA/ISA.Json/Study.js +230 -0
- package/ISA/ISA.Json/Validation/Fable.js +69 -0
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +88 -0
- package/ISA/ISA.Json/Validation/ValidationResult.js +45 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +137 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +78 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +59 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +478 -0
- package/ISA/ISA.Spreadsheet/ArcAssay.js +150 -0
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +314 -0
- package/ISA/ISA.Spreadsheet/ArcStudy.js +67 -0
- package/ISA/ISA.Spreadsheet/CollectionAux.js +128 -0
- package/ISA/ISA.Spreadsheet/Metadata/Assays.js +81 -0
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +60 -0
- package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +104 -0
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +180 -0
- package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +27 -0
- package/ISA/ISA.Spreadsheet/Metadata/Factors.js +85 -0
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +65 -0
- package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +73 -0
- package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +116 -0
- package/ISA/ISA.Spreadsheet/Metadata/Publication.js +96 -0
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +451 -0
- package/ISA/ISA.Spreadsheet/Metadata/Study.js +260 -0
- package/README.md +277 -0
- package/SemVer.js +60 -0
- package/Templates/Template.Json.js +85 -0
- package/Templates/Template.Spreadsheet.js +315 -0
- package/Templates/Template.Web.js +27 -0
- package/Templates/Template.js +179 -0
- package/Templates/Templates.js +82 -0
- package/WebRequest/WebRequest.js +38 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fable.Fetch.fableproj +21 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs +469 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +111 -0
- 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.3.2.0/Fable.Promise.fableproj +20 -0
- 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/Fable.SimpleHttp.fableproj +23 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs +357 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +429 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs +52 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +112 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs +387 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs.js +240 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs +725 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs.js +522 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs +195 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs.js +208 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs +209 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs.js +137 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs +61 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs.js +62 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs +24 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs.js +56 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs +102 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs.js +6 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs +200 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs.js +137 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs +139 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs.js +116 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs +120 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs.js +120 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs +229 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs.js +421 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs +151 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs.js +277 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs +114 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs.js +104 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs +177 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs.js +249 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs +200 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs.js +125 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs +202 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs.js +135 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsSpreadsheet.fableproj +58 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs +183 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs.js +138 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs +628 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs.js +398 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs +19 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs.js +41 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs +222 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs.js +235 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs +93 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs.js +91 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs +65 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs.js +74 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs +22 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs.js +40 -0
- package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs +249 -0
- package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs.js +325 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs +455 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs.js +310 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs +140 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs.js +173 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs +6 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs.js +17 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs +1366 -0
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +1798 -0
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs +621 -0
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +472 -0
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs +31 -0
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +8 -0
- package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +30 -0
- package/fable_modules/Thoth.Json.10.1.0/Types.fs +59 -0
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +98 -0
- package/fable_modules/Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs +19 -0
- package/fable_modules/Thoth.Json.10.1.0/package.json +5 -0
- package/fable_modules/fable-library.4.1.4/Array.d.ts +120 -0
- package/fable_modules/fable-library.4.1.4/Array.js +1204 -0
- package/fable_modules/fable-library.4.1.4/Async.d.ts +32 -0
- package/fable_modules/fable-library.4.1.4/Async.js +158 -0
- package/fable_modules/fable-library.4.1.4/AsyncBuilder.d.ts +59 -0
- package/fable_modules/fable-library.4.1.4/AsyncBuilder.js +183 -0
- package/fable_modules/fable-library.4.1.4/BigInt.d.ts +115 -0
- package/fable_modules/fable-library.4.1.4/BigInt.js +282 -0
- package/fable_modules/fable-library.4.1.4/BitConverter.d.ts +27 -0
- package/fable_modules/fable-library.4.1.4/BitConverter.js +138 -0
- package/fable_modules/fable-library.4.1.4/Boolean.d.ts +3 -0
- package/fable_modules/fable-library.4.1.4/Boolean.js +21 -0
- package/fable_modules/fable-library.4.1.4/Char.d.ts +65 -0
- package/fable_modules/fable-library.4.1.4/Char.js +169 -0
- package/fable_modules/fable-library.4.1.4/Choice.d.ts +138 -0
- package/fable_modules/fable-library.4.1.4/Choice.js +227 -0
- package/fable_modules/fable-library.4.1.4/Date.d.ts +70 -0
- package/fable_modules/fable-library.4.1.4/Date.js +451 -0
- package/fable_modules/fable-library.4.1.4/DateOffset.d.ts +63 -0
- package/fable_modules/fable-library.4.1.4/DateOffset.js +268 -0
- package/fable_modules/fable-library.4.1.4/DateOnly.d.ts +18 -0
- package/fable_modules/fable-library.4.1.4/DateOnly.js +124 -0
- package/fable_modules/fable-library.4.1.4/Decimal.d.ts +45 -0
- package/fable_modules/fable-library.4.1.4/Decimal.js +212 -0
- package/fable_modules/fable-library.4.1.4/Double.d.ts +11 -0
- package/fable_modules/fable-library.4.1.4/Double.js +46 -0
- package/fable_modules/fable-library.4.1.4/Encoding.d.ts +12 -0
- package/fable_modules/fable-library.4.1.4/Encoding.js +173 -0
- package/fable_modules/fable-library.4.1.4/Event.d.ts +31 -0
- package/fable_modules/fable-library.4.1.4/Event.js +93 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Collections.d.ts +7 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Collections.js +27 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Core.d.ts +17 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Core.js +69 -0
- package/fable_modules/fable-library.4.1.4/Global.d.ts +24 -0
- package/fable_modules/fable-library.4.1.4/Global.js +8 -0
- package/fable_modules/fable-library.4.1.4/Guid.d.ts +10 -0
- package/fable_modules/fable-library.4.1.4/Guid.js +142 -0
- package/fable_modules/fable-library.4.1.4/Int32.d.ts +28 -0
- package/fable_modules/fable-library.4.1.4/Int32.js +135 -0
- package/fable_modules/fable-library.4.1.4/List.d.ts +143 -0
- package/fable_modules/fable-library.4.1.4/List.js +1273 -0
- package/fable_modules/fable-library.4.1.4/Long.d.ts +3 -0
- package/fable_modules/fable-library.4.1.4/Long.js +46 -0
- package/fable_modules/fable-library.4.1.4/MailboxProcessor.d.ts +25 -0
- package/fable_modules/fable-library.4.1.4/MailboxProcessor.js +93 -0
- package/fable_modules/fable-library.4.1.4/Map.d.ts +178 -0
- package/fable_modules/fable-library.4.1.4/Map.js +1396 -0
- package/fable_modules/fable-library.4.1.4/MapUtil.d.ts +10 -0
- package/fable_modules/fable-library.4.1.4/MapUtil.js +112 -0
- package/fable_modules/fable-library.4.1.4/MutableMap.d.ts +52 -0
- package/fable_modules/fable-library.4.1.4/MutableMap.js +326 -0
- package/fable_modules/fable-library.4.1.4/MutableSet.d.ts +39 -0
- package/fable_modules/fable-library.4.1.4/MutableSet.js +232 -0
- package/fable_modules/fable-library.4.1.4/Native.d.ts +2 -0
- package/fable_modules/fable-library.4.1.4/Native.js +8 -0
- package/fable_modules/fable-library.4.1.4/Numeric.d.ts +19 -0
- package/fable_modules/fable-library.4.1.4/Numeric.js +71 -0
- package/fable_modules/fable-library.4.1.4/Observable.d.ts +32 -0
- package/fable_modules/fable-library.4.1.4/Observable.js +113 -0
- package/fable_modules/fable-library.4.1.4/Option.d.ts +28 -0
- package/fable_modules/fable-library.4.1.4/Option.js +96 -0
- package/fable_modules/fable-library.4.1.4/README.md +3 -0
- package/fable_modules/fable-library.4.1.4/Random.d.ts +37 -0
- package/fable_modules/fable-library.4.1.4/Random.js +170 -0
- package/fable_modules/fable-library.4.1.4/Range.d.ts +12 -0
- package/fable_modules/fable-library.4.1.4/Range.js +45 -0
- package/fable_modules/fable-library.4.1.4/Reflection.d.ts +119 -0
- package/fable_modules/fable-library.4.1.4/Reflection.js +461 -0
- package/fable_modules/fable-library.4.1.4/RegExp.d.ts +10 -0
- package/fable_modules/fable-library.4.1.4/RegExp.js +132 -0
- package/fable_modules/fable-library.4.1.4/Seq.d.ts +165 -0
- package/fable_modules/fable-library.4.1.4/Seq.js +1379 -0
- package/fable_modules/fable-library.4.1.4/Seq2.d.ts +18 -0
- package/fable_modules/fable-library.4.1.4/Seq2.js +111 -0
- package/fable_modules/fable-library.4.1.4/Set.d.ts +190 -0
- package/fable_modules/fable-library.4.1.4/Set.js +1789 -0
- package/fable_modules/fable-library.4.1.4/String.d.ts +49 -0
- package/fable_modules/fable-library.4.1.4/String.js +540 -0
- package/fable_modules/fable-library.4.1.4/System.Collections.Generic.d.ts +71 -0
- package/fable_modules/fable-library.4.1.4/System.Collections.Generic.js +307 -0
- package/fable_modules/fable-library.4.1.4/System.Text.d.ts +30 -0
- package/fable_modules/fable-library.4.1.4/System.Text.js +110 -0
- package/fable_modules/fable-library.4.1.4/SystemException.d.ts +5 -0
- package/fable_modules/fable-library.4.1.4/SystemException.js +5 -0
- package/fable_modules/fable-library.4.1.4/TimeOnly.d.ts +15 -0
- package/fable_modules/fable-library.4.1.4/TimeOnly.js +122 -0
- package/fable_modules/fable-library.4.1.4/TimeSpan.d.ts +34 -0
- package/fable_modules/fable-library.4.1.4/TimeSpan.js +177 -0
- package/fable_modules/fable-library.4.1.4/Timer.d.ts +19 -0
- package/fable_modules/fable-library.4.1.4/Timer.js +67 -0
- package/fable_modules/fable-library.4.1.4/Types.d.ts +58 -0
- package/fable_modules/fable-library.4.1.4/Types.js +208 -0
- package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.d.ts +2 -0
- package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.js +4 -0
- package/fable_modules/fable-library.4.1.4/Uri.d.ts +29 -0
- package/fable_modules/fable-library.4.1.4/Uri.js +142 -0
- package/fable_modules/fable-library.4.1.4/Util.d.ts +187 -0
- package/fable_modules/fable-library.4.1.4/Util.js +662 -0
- package/fable_modules/fable-library.4.1.4/lib/big.d.ts +338 -0
- package/fable_modules/fable-library.4.1.4/lib/big.js +826 -0
- package/fable_modules/fable-library.4.1.4/package.json +23 -0
- package/fable_modules/project_cracked.json +1 -0
- package/index.js +13 -0
- package/package.json +24 -0
|
@@ -0,0 +1,848 @@
|
|
|
1
|
+
import { Dictionary } from "../../../fable_modules/fable-library.4.1.4/MutableMap.js";
|
|
2
|
+
import { compareArrays, safeHash, disposeSafe, getEnumerator, equals, comparePrimitives, arrayHash, equalArrays } from "../../../fable_modules/fable-library.4.1.4/Util.js";
|
|
3
|
+
import { value as value_9, map as map_2, defaultArg, unwrap } from "../../../fable_modules/fable-library.4.1.4/Option.js";
|
|
4
|
+
import { Unchecked_extendToRowCount, ProcessParsing_processToRows, ProcessParsing_alignByHeaders, ProcessParsing_mergeIdenticalProcesses, ProcessParsing_getProcessGetter, Unchecked_removeRowCells_withIndexChange, Unchecked_addRow, Unchecked_getEmptyCellForHeader, Unchecked_removeColumnCells_withIndexChange, tryFindDuplicateUniqueInArray, Unchecked_removeColumnCells, Unchecked_removeHeader, Unchecked_fillMissingCells, Unchecked_addColumn, tryFindDuplicateUnique, Unchecked_setCellAt, SanityChecks_validateColumn, SanityChecks_validateRowIndex, SanityChecks_validateColumnIndex, Unchecked_tryGetCellAt, getRowCount, getColumnCount } from "./ArcTableAux.js";
|
|
5
|
+
import { item, append as append_1, indexed as indexed_1, choose, toList, zip, fold, filter, length, tryFindIndex, empty, singleton, collect, removeAt, map, delay, toArray } from "../../../fable_modules/fable-library.4.1.4/Seq.js";
|
|
6
|
+
import { rangeDouble } from "../../../fable_modules/fable-library.4.1.4/Range.js";
|
|
7
|
+
import { CompositeColumn } from "./CompositeColumn.js";
|
|
8
|
+
import { sortBy, indexed, mapIndexed, singleton as singleton_1, initialize, sortDescending, iterateIndexed, map as map_1 } from "../../../fable_modules/fable-library.4.1.4/Array.js";
|
|
9
|
+
import { append, collect as collect_1, initialize as initialize_1, singleton as singleton_2, empty as empty_1, iterate, isEmpty } from "../../../fable_modules/fable-library.4.1.4/List.js";
|
|
10
|
+
import { StringBuilder__AppendLine_Z721C83C5, StringBuilder_$ctor } from "../../../fable_modules/fable-library.4.1.4/System.Text.js";
|
|
11
|
+
import { toString } from "../../../fable_modules/fable-library.4.1.4/Types.js";
|
|
12
|
+
import { join, printf, toFail } from "../../../fable_modules/fable-library.4.1.4/String.js";
|
|
13
|
+
import { CompositeCell } from "./CompositeCell.js";
|
|
14
|
+
import { CompositeHeader } from "./CompositeHeader.js";
|
|
15
|
+
import { createMissingIdentifier } from "../Identifier.js";
|
|
16
|
+
import { ARCtrl_ISA_Component__Component_TryGetColumnIndex, ARCtrl_ISA_ProtocolParameter__ProtocolParameter_TryGetColumnIndex } from "../JsonTypes/ColumnIndex.js";
|
|
17
|
+
import { Protocol_create_Z7DFD6E67, Protocol_addComponent, Protocol_addParameter, Protocol_setName, Protocol_setDescription, Protocol_setUri, Protocol_setVersion, Protocol_setProtocolType } from "../JsonTypes/Protocol.js";
|
|
18
|
+
import { OntologyAnnotation } from "../JsonTypes/OntologyAnnotation.js";
|
|
19
|
+
import { ProtocolParameter_create_Z6C54B221 } from "../JsonTypes/ProtocolParameter.js";
|
|
20
|
+
import { Component_create_61502994 } from "../JsonTypes/Component.js";
|
|
21
|
+
import { Array_groupBy, List_distinct } from "../../../fable_modules/fable-library.4.1.4/Seq2.js";
|
|
22
|
+
import { toProtocol } from "./CompositeRow.js";
|
|
23
|
+
import { Process_create_Z42860F3E } from "../JsonTypes/Process.js";
|
|
24
|
+
import { getItemFromDict } from "../../../fable_modules/fable-library.4.1.4/MapUtil.js";
|
|
25
|
+
import { HashCodes_boxHashArray } from "../Helper.js";
|
|
26
|
+
import { class_type } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
27
|
+
|
|
28
|
+
export class ArcTable {
|
|
29
|
+
constructor(name, headers, values) {
|
|
30
|
+
this._name = name;
|
|
31
|
+
this["Headers@"] = headers;
|
|
32
|
+
this["Values@"] = values;
|
|
33
|
+
}
|
|
34
|
+
get Headers() {
|
|
35
|
+
const __ = this;
|
|
36
|
+
return __["Headers@"];
|
|
37
|
+
}
|
|
38
|
+
set Headers(v) {
|
|
39
|
+
const __ = this;
|
|
40
|
+
__["Headers@"] = v;
|
|
41
|
+
}
|
|
42
|
+
get Values() {
|
|
43
|
+
const __ = this;
|
|
44
|
+
return __["Values@"];
|
|
45
|
+
}
|
|
46
|
+
set Values(v) {
|
|
47
|
+
const __ = this;
|
|
48
|
+
__["Values@"] = v;
|
|
49
|
+
}
|
|
50
|
+
get Name() {
|
|
51
|
+
const this$ = this;
|
|
52
|
+
return this$._name;
|
|
53
|
+
}
|
|
54
|
+
set Name(newName) {
|
|
55
|
+
const this$ = this;
|
|
56
|
+
this$._name = newName;
|
|
57
|
+
}
|
|
58
|
+
static create(name, headers, values) {
|
|
59
|
+
return new ArcTable(name, headers, values);
|
|
60
|
+
}
|
|
61
|
+
static init(name) {
|
|
62
|
+
return new ArcTable(name, [], new Dictionary([], {
|
|
63
|
+
Equals: equalArrays,
|
|
64
|
+
GetHashCode: arrayHash,
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
static createFromHeaders(name, headers) {
|
|
68
|
+
return ArcTable.create(name, headers, new Dictionary([], {
|
|
69
|
+
Equals: equalArrays,
|
|
70
|
+
GetHashCode: arrayHash,
|
|
71
|
+
}));
|
|
72
|
+
}
|
|
73
|
+
static createFromRows(name, headers, rows) {
|
|
74
|
+
const t = ArcTable.createFromHeaders(name, headers);
|
|
75
|
+
t.AddRows(rows);
|
|
76
|
+
return t;
|
|
77
|
+
}
|
|
78
|
+
Validate(raiseException) {
|
|
79
|
+
const this$ = this;
|
|
80
|
+
let isValid = true;
|
|
81
|
+
for (let columnIndex = 0; columnIndex <= (this$.ColumnCount - 1); columnIndex++) {
|
|
82
|
+
const column = this$.GetColumn(columnIndex);
|
|
83
|
+
isValid = column.Validate(unwrap(raiseException));
|
|
84
|
+
}
|
|
85
|
+
return isValid;
|
|
86
|
+
}
|
|
87
|
+
static validate(raiseException) {
|
|
88
|
+
return (table) => table.Validate(unwrap(raiseException));
|
|
89
|
+
}
|
|
90
|
+
get ColumnCount() {
|
|
91
|
+
const this$ = this;
|
|
92
|
+
return getColumnCount(this$.Headers) | 0;
|
|
93
|
+
}
|
|
94
|
+
get RowCount() {
|
|
95
|
+
const this$ = this;
|
|
96
|
+
return getRowCount(this$.Values) | 0;
|
|
97
|
+
}
|
|
98
|
+
get Columns() {
|
|
99
|
+
const this$ = this;
|
|
100
|
+
return toArray(delay(() => map((i) => this$.GetColumn(i), rangeDouble(0, 1, this$.ColumnCount - 1))));
|
|
101
|
+
}
|
|
102
|
+
Copy() {
|
|
103
|
+
const this$ = this;
|
|
104
|
+
return ArcTable.create(this$.Name, Array.from(this$.Headers), new Dictionary(this$.Values, {
|
|
105
|
+
Equals: equalArrays,
|
|
106
|
+
GetHashCode: arrayHash,
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
TryGetCellAt(column, row) {
|
|
110
|
+
const this$ = this;
|
|
111
|
+
return Unchecked_tryGetCellAt(column, row, this$.Values);
|
|
112
|
+
}
|
|
113
|
+
static tryGetCellAt(column, row) {
|
|
114
|
+
return (table) => table.TryGetCellAt(column, row);
|
|
115
|
+
}
|
|
116
|
+
UpdateCellAt(columnIndex, rowIndex, c) {
|
|
117
|
+
const this$ = this;
|
|
118
|
+
SanityChecks_validateColumnIndex(columnIndex, this$.ColumnCount, false);
|
|
119
|
+
SanityChecks_validateRowIndex(rowIndex, this$.RowCount, false);
|
|
120
|
+
SanityChecks_validateColumn(CompositeColumn.create(this$.Headers[columnIndex], [c]));
|
|
121
|
+
Unchecked_setCellAt(columnIndex, rowIndex, c, this$.Values);
|
|
122
|
+
}
|
|
123
|
+
static updateCellAt(columnIndex, rowIndex, cell) {
|
|
124
|
+
return (table) => {
|
|
125
|
+
const newTable = table.Copy();
|
|
126
|
+
newTable.UpdateCellAt(columnIndex, rowIndex, cell);
|
|
127
|
+
return newTable;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
UpdateHeader(index, newHeader, forceConvertCells) {
|
|
131
|
+
const this$ = this;
|
|
132
|
+
const forceConvertCells_1 = defaultArg(forceConvertCells, false);
|
|
133
|
+
SanityChecks_validateColumnIndex(index, this$.ColumnCount, false);
|
|
134
|
+
const header = newHeader;
|
|
135
|
+
const matchValue = tryFindDuplicateUnique(header, removeAt(index, this$.Headers));
|
|
136
|
+
if (matchValue != null) {
|
|
137
|
+
throw new Error(`Invalid input. Tried setting unique header \`${header}\`, but header of same type already exists at index ${matchValue}.`);
|
|
138
|
+
}
|
|
139
|
+
const c = new CompositeColumn(newHeader, this$.GetColumn(index).Cells);
|
|
140
|
+
if (c.Validate()) {
|
|
141
|
+
let setHeader;
|
|
142
|
+
setHeader = (this$.Headers[index] = newHeader);
|
|
143
|
+
}
|
|
144
|
+
else if (forceConvertCells_1) {
|
|
145
|
+
const convertedCells = newHeader.IsTermColumn ? map_1((c_1) => {
|
|
146
|
+
if (c_1.isFreeText) {
|
|
147
|
+
return c_1.ToTermCell();
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
return c_1;
|
|
151
|
+
}
|
|
152
|
+
}, c.Cells) : map_1((c_2) => c_2.ToFreeTextCell(), c.Cells);
|
|
153
|
+
this$.UpdateColumn(index, newHeader, convertedCells);
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
throw new Error("Tried setting header for column with invalid type of cells. Set `forceConvertCells` flag to automatically convert cells into valid CompositeCell type.");
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
static updateHeader(index, header) {
|
|
160
|
+
return (table) => {
|
|
161
|
+
const newTable = table.Copy();
|
|
162
|
+
newTable.UpdateHeader(index, header);
|
|
163
|
+
return newTable;
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
AddColumn(header, cells, index, forceReplace) {
|
|
167
|
+
const this$ = this;
|
|
168
|
+
const index_1 = defaultArg(index, this$.ColumnCount) | 0;
|
|
169
|
+
const cells_1 = defaultArg(cells, []);
|
|
170
|
+
const forceReplace_1 = defaultArg(forceReplace, false);
|
|
171
|
+
SanityChecks_validateColumnIndex(index_1, this$.ColumnCount, true);
|
|
172
|
+
SanityChecks_validateColumn(CompositeColumn.create(header, cells_1));
|
|
173
|
+
Unchecked_addColumn(header, cells_1, index_1, forceReplace_1, false, this$.Headers, this$.Values);
|
|
174
|
+
Unchecked_fillMissingCells(this$.Headers, this$.Values);
|
|
175
|
+
}
|
|
176
|
+
static addColumn(header, cells, index, forceReplace) {
|
|
177
|
+
return (table) => {
|
|
178
|
+
const newTable = table.Copy();
|
|
179
|
+
newTable.AddColumn(header, unwrap(cells), unwrap(index), unwrap(forceReplace));
|
|
180
|
+
return newTable;
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
UpdateColumn(columnIndex, header, cells) {
|
|
184
|
+
const this$ = this;
|
|
185
|
+
SanityChecks_validateColumnIndex(columnIndex, this$.ColumnCount, false);
|
|
186
|
+
const column = CompositeColumn.create(header, unwrap(cells));
|
|
187
|
+
SanityChecks_validateColumn(column);
|
|
188
|
+
const header_1 = column.Header;
|
|
189
|
+
const matchValue = tryFindDuplicateUnique(header_1, removeAt(columnIndex, this$.Headers));
|
|
190
|
+
if (matchValue != null) {
|
|
191
|
+
throw new Error(`Invalid input. Tried setting unique header \`${header_1}\`, but header of same type already exists at index ${matchValue}.`);
|
|
192
|
+
}
|
|
193
|
+
Unchecked_removeHeader(columnIndex, this$.Headers);
|
|
194
|
+
Unchecked_removeColumnCells(columnIndex, this$.Values);
|
|
195
|
+
this$.Headers.splice(columnIndex, 0, column.Header);
|
|
196
|
+
iterateIndexed((rowIndex, v) => {
|
|
197
|
+
Unchecked_setCellAt(columnIndex, rowIndex, v, this$.Values);
|
|
198
|
+
}, column.Cells);
|
|
199
|
+
Unchecked_fillMissingCells(this$.Headers, this$.Values);
|
|
200
|
+
}
|
|
201
|
+
static updateColumn(columnIndex, header, cells) {
|
|
202
|
+
return (table) => {
|
|
203
|
+
const newTable = table.Copy();
|
|
204
|
+
newTable.UpdateColumn(columnIndex, header, unwrap(cells));
|
|
205
|
+
return newTable;
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
InsertColumn(index, header, cells) {
|
|
209
|
+
const this$ = this;
|
|
210
|
+
this$.AddColumn(header, unwrap(cells), index, false);
|
|
211
|
+
}
|
|
212
|
+
static insertColumn(index, header, cells) {
|
|
213
|
+
return (table) => {
|
|
214
|
+
const newTable = table.Copy();
|
|
215
|
+
newTable.InsertColumn(index, header, unwrap(cells));
|
|
216
|
+
return newTable;
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
AppendColumn(header, cells) {
|
|
220
|
+
const this$ = this;
|
|
221
|
+
this$.AddColumn(header, unwrap(cells), this$.ColumnCount, false);
|
|
222
|
+
}
|
|
223
|
+
static appendColumn(header, cells) {
|
|
224
|
+
return (table) => {
|
|
225
|
+
const newTable = table.Copy();
|
|
226
|
+
newTable.AppendColumn(header, unwrap(cells));
|
|
227
|
+
return newTable;
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
AddColumns(columns, index, forceReplace) {
|
|
231
|
+
const this$ = this;
|
|
232
|
+
let index_1 = defaultArg(index, this$.ColumnCount);
|
|
233
|
+
const forceReplace_1 = defaultArg(forceReplace, false);
|
|
234
|
+
SanityChecks_validateColumnIndex(index_1, this$.ColumnCount, true);
|
|
235
|
+
const duplicates = tryFindDuplicateUniqueInArray(map((x) => x.Header, columns));
|
|
236
|
+
if (!isEmpty(duplicates)) {
|
|
237
|
+
const sb = StringBuilder_$ctor();
|
|
238
|
+
StringBuilder__AppendLine_Z721C83C5(sb, "Found duplicate unique columns in `columns`.");
|
|
239
|
+
iterate((x_1) => {
|
|
240
|
+
StringBuilder__AppendLine_Z721C83C5(sb, `Duplicate \`${x_1.HeaderType}\` at index ${x_1.Index1} and ${x_1.Index2}.`);
|
|
241
|
+
}, duplicates);
|
|
242
|
+
throw new Error(toString(sb));
|
|
243
|
+
}
|
|
244
|
+
columns.forEach((x_2) => {
|
|
245
|
+
SanityChecks_validateColumn(x_2);
|
|
246
|
+
});
|
|
247
|
+
columns.forEach((col) => {
|
|
248
|
+
const prevHeadersCount = this$.Headers.length | 0;
|
|
249
|
+
Unchecked_addColumn(col.Header, col.Cells, index_1, forceReplace_1, false, this$.Headers, this$.Values);
|
|
250
|
+
if (this$.Headers.length > prevHeadersCount) {
|
|
251
|
+
index_1 = ((index_1 + 1) | 0);
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
Unchecked_fillMissingCells(this$.Headers, this$.Values);
|
|
255
|
+
}
|
|
256
|
+
static addColumns(columns, index) {
|
|
257
|
+
return (table) => {
|
|
258
|
+
const newTable = table.Copy();
|
|
259
|
+
newTable.AddColumns(columns, index);
|
|
260
|
+
return newTable;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
RemoveColumn(index) {
|
|
264
|
+
const this$ = this;
|
|
265
|
+
SanityChecks_validateColumnIndex(index, this$.ColumnCount, false);
|
|
266
|
+
const columnCount = this$.ColumnCount | 0;
|
|
267
|
+
Unchecked_removeHeader(index, this$.Headers);
|
|
268
|
+
Unchecked_removeColumnCells_withIndexChange(index, columnCount, this$.RowCount, this$.Values);
|
|
269
|
+
}
|
|
270
|
+
static removeColumn(index) {
|
|
271
|
+
return (table) => {
|
|
272
|
+
const newTable = table.Copy();
|
|
273
|
+
newTable.RemoveColumn(index);
|
|
274
|
+
return newTable;
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
RemoveColumns(indexArr) {
|
|
278
|
+
const this$ = this;
|
|
279
|
+
indexArr.forEach((index) => {
|
|
280
|
+
SanityChecks_validateColumnIndex(index, this$.ColumnCount, false);
|
|
281
|
+
});
|
|
282
|
+
const indexArr_1 = sortDescending(indexArr, {
|
|
283
|
+
Compare: comparePrimitives,
|
|
284
|
+
});
|
|
285
|
+
indexArr_1.forEach((index_1) => {
|
|
286
|
+
this$.RemoveColumn(index_1);
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
static removeColumns(indexArr) {
|
|
290
|
+
return (table) => {
|
|
291
|
+
const newTable = table.Copy();
|
|
292
|
+
newTable.RemoveColumns(indexArr);
|
|
293
|
+
return newTable;
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
GetColumn(columnIndex) {
|
|
297
|
+
const this$ = this;
|
|
298
|
+
SanityChecks_validateColumnIndex(columnIndex, this$.ColumnCount, false);
|
|
299
|
+
const h = this$.Headers[columnIndex];
|
|
300
|
+
const cells = toArray(delay(() => collect((i) => {
|
|
301
|
+
const matchValue = this$.TryGetCellAt(columnIndex, i);
|
|
302
|
+
if (matchValue != null) {
|
|
303
|
+
return singleton(matchValue);
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
toFail(printf("Unable to find cell for index: (%i, %i)"))(columnIndex)(i);
|
|
307
|
+
return empty();
|
|
308
|
+
}
|
|
309
|
+
}, rangeDouble(0, 1, this$.RowCount - 1))));
|
|
310
|
+
return CompositeColumn.create(h, cells);
|
|
311
|
+
}
|
|
312
|
+
static getColumn(index) {
|
|
313
|
+
return (table) => table.GetColumn(index);
|
|
314
|
+
}
|
|
315
|
+
TryGetColumnByHeader(header) {
|
|
316
|
+
const this$ = this;
|
|
317
|
+
return map_2((i) => this$.GetColumn(i), tryFindIndex((x) => equals(x, header), this$.Headers));
|
|
318
|
+
}
|
|
319
|
+
static tryGetColumnByHeader(header) {
|
|
320
|
+
return (table) => table.TryGetColumnByHeader(header);
|
|
321
|
+
}
|
|
322
|
+
GetColumnByHeader(header) {
|
|
323
|
+
const this$ = this;
|
|
324
|
+
const matchValue = this$.TryGetColumnByHeader(header);
|
|
325
|
+
if (matchValue == null) {
|
|
326
|
+
const arg = this$.Name;
|
|
327
|
+
return toFail(printf("Unable to find column with header in table %s: %O"))(arg)(header);
|
|
328
|
+
}
|
|
329
|
+
else {
|
|
330
|
+
return matchValue;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
static getColumnByHeader(header) {
|
|
334
|
+
return (table) => table.GetColumnByHeader(header);
|
|
335
|
+
}
|
|
336
|
+
TryGetInputColumn() {
|
|
337
|
+
const this$ = this;
|
|
338
|
+
return map_2((i) => this$.GetColumn(i), tryFindIndex((x) => x.isInput, this$.Headers));
|
|
339
|
+
}
|
|
340
|
+
static tryGetInputColumn() {
|
|
341
|
+
return (table) => table.TryGetInputColumn();
|
|
342
|
+
}
|
|
343
|
+
GetInputColumn() {
|
|
344
|
+
const this$ = this;
|
|
345
|
+
const matchValue = this$.TryGetInputColumn();
|
|
346
|
+
if (matchValue == null) {
|
|
347
|
+
const arg = this$.Name;
|
|
348
|
+
return toFail(printf("Unable to find input column in table %s"))(arg);
|
|
349
|
+
}
|
|
350
|
+
else {
|
|
351
|
+
return matchValue;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
static getInputColumn() {
|
|
355
|
+
return (table) => table.GetInputColumn();
|
|
356
|
+
}
|
|
357
|
+
TryGetOutputColumn() {
|
|
358
|
+
const this$ = this;
|
|
359
|
+
return map_2((i) => this$.GetColumn(i), tryFindIndex((x) => x.isOutput, this$.Headers));
|
|
360
|
+
}
|
|
361
|
+
static tryGetOutputColumn() {
|
|
362
|
+
return (table) => table.TryGetOutputColumn();
|
|
363
|
+
}
|
|
364
|
+
GetOutputColumn() {
|
|
365
|
+
const this$ = this;
|
|
366
|
+
const matchValue = this$.TryGetOutputColumn();
|
|
367
|
+
if (matchValue == null) {
|
|
368
|
+
const arg = this$.Name;
|
|
369
|
+
return toFail(printf("Unable to find output column in table %s"))(arg);
|
|
370
|
+
}
|
|
371
|
+
else {
|
|
372
|
+
return matchValue;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
static getOutputColumn() {
|
|
376
|
+
return (table) => table.GetOutputColumn();
|
|
377
|
+
}
|
|
378
|
+
AddRow(cells, index) {
|
|
379
|
+
const this$ = this;
|
|
380
|
+
const index_1 = defaultArg(index, this$.RowCount) | 0;
|
|
381
|
+
const cells_1 = (cells == null) ? toArray(delay(() => collect((columnIndex) => singleton(Unchecked_getEmptyCellForHeader(this$.Headers[columnIndex], Unchecked_tryGetCellAt(columnIndex, 0, this$.Values))), rangeDouble(0, 1, this$.ColumnCount - 1)))) : value_9(cells);
|
|
382
|
+
SanityChecks_validateRowIndex(index_1, this$.RowCount, true);
|
|
383
|
+
const columnCount = this$.ColumnCount | 0;
|
|
384
|
+
const newCellsCount = length(cells_1) | 0;
|
|
385
|
+
if (columnCount === 0) {
|
|
386
|
+
throw new Error("Table contains no columns! Cannot add row to empty table!");
|
|
387
|
+
}
|
|
388
|
+
else if (newCellsCount !== columnCount) {
|
|
389
|
+
throw new Error(`Cannot add a new row with ${newCellsCount} cells, as the table has ${columnCount} columns.`);
|
|
390
|
+
}
|
|
391
|
+
for (let columnIndex_1 = 0; columnIndex_1 <= (this$.ColumnCount - 1); columnIndex_1++) {
|
|
392
|
+
const h_1 = this$.Headers[columnIndex_1];
|
|
393
|
+
SanityChecks_validateColumn(CompositeColumn.create(h_1, [cells_1[columnIndex_1]]));
|
|
394
|
+
}
|
|
395
|
+
Unchecked_addRow(index_1, cells_1, this$.Headers, this$.Values);
|
|
396
|
+
}
|
|
397
|
+
static addRow(cells, index) {
|
|
398
|
+
return (table) => {
|
|
399
|
+
const newTable = table.Copy();
|
|
400
|
+
newTable.AddRow(unwrap(cells), unwrap(index));
|
|
401
|
+
return newTable;
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
UpdateRow(rowIndex, cells) {
|
|
405
|
+
const this$ = this;
|
|
406
|
+
SanityChecks_validateRowIndex(rowIndex, this$.RowCount, false);
|
|
407
|
+
const columnCount = this$.RowCount | 0;
|
|
408
|
+
const newCellsCount = length(cells) | 0;
|
|
409
|
+
if (columnCount === 0) {
|
|
410
|
+
throw new Error("Table contains no columns! Cannot add row to empty table!");
|
|
411
|
+
}
|
|
412
|
+
else if (newCellsCount !== columnCount) {
|
|
413
|
+
throw new Error(`Cannot add a new row with ${newCellsCount} cells, as the table has ${columnCount} columns.`);
|
|
414
|
+
}
|
|
415
|
+
iterateIndexed((i, cell) => {
|
|
416
|
+
const h = this$.Headers[i];
|
|
417
|
+
SanityChecks_validateColumn(CompositeColumn.create(h, [cell]));
|
|
418
|
+
}, cells);
|
|
419
|
+
iterateIndexed((columnIndex, cell_1) => {
|
|
420
|
+
Unchecked_setCellAt(columnIndex, rowIndex, cell_1, this$.Values);
|
|
421
|
+
}, cells);
|
|
422
|
+
}
|
|
423
|
+
static updateRow(rowIndex, cells) {
|
|
424
|
+
return (table) => {
|
|
425
|
+
const newTable = table.Copy();
|
|
426
|
+
newTable.UpdateRow(rowIndex, cells);
|
|
427
|
+
return newTable;
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
AppendRow(cells) {
|
|
431
|
+
const this$ = this;
|
|
432
|
+
this$.AddRow(unwrap(cells), this$.RowCount);
|
|
433
|
+
}
|
|
434
|
+
static appendRow(cells) {
|
|
435
|
+
return (table) => {
|
|
436
|
+
const newTable = table.Copy();
|
|
437
|
+
newTable.AppendRow(unwrap(cells));
|
|
438
|
+
return newTable;
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
InsertRow(index, cells) {
|
|
442
|
+
const this$ = this;
|
|
443
|
+
this$.AddRow(unwrap(cells), index);
|
|
444
|
+
}
|
|
445
|
+
static insertRow(index, cells) {
|
|
446
|
+
return (table) => {
|
|
447
|
+
const newTable = table.Copy();
|
|
448
|
+
newTable.AddRow(unwrap(cells), index);
|
|
449
|
+
return newTable;
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
AddRows(rows, index) {
|
|
453
|
+
const this$ = this;
|
|
454
|
+
let index_1 = defaultArg(index, this$.RowCount);
|
|
455
|
+
SanityChecks_validateRowIndex(index_1, this$.RowCount, true);
|
|
456
|
+
rows.forEach((row) => {
|
|
457
|
+
const columnCount = this$.ColumnCount | 0;
|
|
458
|
+
const newCellsCount = length(row) | 0;
|
|
459
|
+
if (columnCount === 0) {
|
|
460
|
+
throw new Error("Table contains no columns! Cannot add row to empty table!");
|
|
461
|
+
}
|
|
462
|
+
else if (newCellsCount !== columnCount) {
|
|
463
|
+
throw new Error(`Cannot add a new row with ${newCellsCount} cells, as the table has ${columnCount} columns.`);
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
for (let idx = 0; idx <= (rows.length - 1); idx++) {
|
|
467
|
+
const row_1 = rows[idx];
|
|
468
|
+
for (let columnIndex = 0; columnIndex <= (this$.ColumnCount - 1); columnIndex++) {
|
|
469
|
+
const h = this$.Headers[columnIndex];
|
|
470
|
+
SanityChecks_validateColumn(CompositeColumn.create(h, [row_1[columnIndex]]));
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
rows.forEach((row_2) => {
|
|
474
|
+
Unchecked_addRow(index_1, row_2, this$.Headers, this$.Values);
|
|
475
|
+
index_1 = ((index_1 + 1) | 0);
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
static addRows(rows, index) {
|
|
479
|
+
return (table) => {
|
|
480
|
+
const newTable = table.Copy();
|
|
481
|
+
newTable.AddRows(rows, unwrap(index));
|
|
482
|
+
return newTable;
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
AddRowsEmpty(rowCount, index) {
|
|
486
|
+
const this$ = this;
|
|
487
|
+
const row = toArray(delay(() => collect((columnIndex) => singleton(Unchecked_getEmptyCellForHeader(this$.Headers[columnIndex], Unchecked_tryGetCellAt(columnIndex, 0, this$.Values))), rangeDouble(0, 1, this$.ColumnCount - 1))));
|
|
488
|
+
const rows = initialize(rowCount, (_arg) => row);
|
|
489
|
+
this$.AddRows(rows, unwrap(index));
|
|
490
|
+
}
|
|
491
|
+
static addRowsEmpty(rowCount, index) {
|
|
492
|
+
return (table) => {
|
|
493
|
+
const newTable = table.Copy();
|
|
494
|
+
newTable.AddRowsEmpty(rowCount, unwrap(index));
|
|
495
|
+
return newTable;
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
RemoveRow(index) {
|
|
499
|
+
const this$ = this;
|
|
500
|
+
SanityChecks_validateRowIndex(index, this$.RowCount, false);
|
|
501
|
+
const removeCells = Unchecked_removeRowCells_withIndexChange(index, this$.ColumnCount, this$.RowCount, this$.Values);
|
|
502
|
+
}
|
|
503
|
+
static removeRow(index) {
|
|
504
|
+
return (table) => {
|
|
505
|
+
const newTable = table.Copy();
|
|
506
|
+
newTable.RemoveRow(index);
|
|
507
|
+
return newTable;
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
RemoveRows(indexArr) {
|
|
511
|
+
const this$ = this;
|
|
512
|
+
indexArr.forEach((index) => {
|
|
513
|
+
SanityChecks_validateRowIndex(index, this$.RowCount, false);
|
|
514
|
+
});
|
|
515
|
+
const indexArr_1 = sortDescending(indexArr, {
|
|
516
|
+
Compare: comparePrimitives,
|
|
517
|
+
});
|
|
518
|
+
indexArr_1.forEach((index_1) => {
|
|
519
|
+
this$.RemoveRow(index_1);
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
static removeRows(indexArr) {
|
|
523
|
+
return (table) => {
|
|
524
|
+
const newTable = table.Copy();
|
|
525
|
+
newTable.RemoveColumns(indexArr);
|
|
526
|
+
return newTable;
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
GetRow(rowIndex) {
|
|
530
|
+
const this$ = this;
|
|
531
|
+
SanityChecks_validateRowIndex(rowIndex, this$.RowCount, false);
|
|
532
|
+
return toArray(delay(() => map((columnIndex) => value_9(this$.TryGetCellAt(columnIndex, rowIndex)), rangeDouble(0, 1, this$.ColumnCount - 1))));
|
|
533
|
+
}
|
|
534
|
+
static getRow(index) {
|
|
535
|
+
return (table) => table.GetRow(index);
|
|
536
|
+
}
|
|
537
|
+
Join(table, joinOptions, forceReplace) {
|
|
538
|
+
const this$ = this;
|
|
539
|
+
const joinOptions_1 = defaultArg(joinOptions, "headers");
|
|
540
|
+
const forceReplace_1 = defaultArg(forceReplace, false);
|
|
541
|
+
const onlyHeaders = joinOptions_1 === "headers";
|
|
542
|
+
let columns;
|
|
543
|
+
const pre = table.Columns;
|
|
544
|
+
columns = ((joinOptions_1 === "withUnit") ? map_1((c_1) => {
|
|
545
|
+
const unitsOpt = c_1.TryGetColumnUnits();
|
|
546
|
+
if (unitsOpt == null) {
|
|
547
|
+
return new CompositeColumn(c_1.Header, []);
|
|
548
|
+
}
|
|
549
|
+
else {
|
|
550
|
+
return new CompositeColumn(c_1.Header, map_1((u) => CompositeCell.createUnitized("", u), unitsOpt));
|
|
551
|
+
}
|
|
552
|
+
}, pre) : ((joinOptions_1 === "withValues") ? pre : map_1((c) => (new CompositeColumn(c.Header, [])), pre)));
|
|
553
|
+
const duplicates = tryFindDuplicateUniqueInArray(map((x) => x.Header, columns));
|
|
554
|
+
if (!isEmpty(duplicates)) {
|
|
555
|
+
const sb = StringBuilder_$ctor();
|
|
556
|
+
StringBuilder__AppendLine_Z721C83C5(sb, "Found duplicate unique columns in `columns`.");
|
|
557
|
+
iterate((x_1) => {
|
|
558
|
+
StringBuilder__AppendLine_Z721C83C5(sb, `Duplicate \`${x_1.HeaderType}\` at index ${x_1.Index1} and ${x_1.Index2}.`);
|
|
559
|
+
}, duplicates);
|
|
560
|
+
throw new Error(toString(sb));
|
|
561
|
+
}
|
|
562
|
+
columns.forEach((x_2) => {
|
|
563
|
+
SanityChecks_validateColumn(x_2);
|
|
564
|
+
});
|
|
565
|
+
let index = this$.ColumnCount;
|
|
566
|
+
columns.forEach((col) => {
|
|
567
|
+
const prevHeadersCount = this$.Headers.length | 0;
|
|
568
|
+
Unchecked_addColumn(col.Header, col.Cells, index, forceReplace_1, onlyHeaders, this$.Headers, this$.Values);
|
|
569
|
+
if (this$.Headers.length > prevHeadersCount) {
|
|
570
|
+
index = ((index + 1) | 0);
|
|
571
|
+
}
|
|
572
|
+
});
|
|
573
|
+
Unchecked_fillMissingCells(this$.Headers, this$.Values);
|
|
574
|
+
}
|
|
575
|
+
static join(table, joinOptions, forceReplace) {
|
|
576
|
+
return (this$) => {
|
|
577
|
+
const copy = this$.Copy();
|
|
578
|
+
copy.Join(table, unwrap(joinOptions), unwrap(forceReplace));
|
|
579
|
+
return copy;
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
static insertParameterValue(t, p) {
|
|
583
|
+
throw new Error();
|
|
584
|
+
}
|
|
585
|
+
static getParameterValues(t) {
|
|
586
|
+
throw new Error();
|
|
587
|
+
}
|
|
588
|
+
AddProtocolTypeColumn(types, index) {
|
|
589
|
+
const this$ = this;
|
|
590
|
+
const cells = map_2((array) => map_1((arg) => (new CompositeCell(0, [arg])), array), types);
|
|
591
|
+
this$.AddColumn(new CompositeHeader(4, []), cells, index);
|
|
592
|
+
}
|
|
593
|
+
AddProtocolVersionColumn(versions, index) {
|
|
594
|
+
const this$ = this;
|
|
595
|
+
const cells = map_2((array) => map_1((arg) => (new CompositeCell(1, [arg])), array), versions);
|
|
596
|
+
this$.AddColumn(new CompositeHeader(7, []), cells, index);
|
|
597
|
+
}
|
|
598
|
+
AddProtocolUriColumn(uris, index) {
|
|
599
|
+
const this$ = this;
|
|
600
|
+
const cells = map_2((array) => map_1((arg) => (new CompositeCell(1, [arg])), array), uris);
|
|
601
|
+
this$.AddColumn(new CompositeHeader(6, []), cells, index);
|
|
602
|
+
}
|
|
603
|
+
AddProtocolDescriptionColumn(descriptions, index) {
|
|
604
|
+
const this$ = this;
|
|
605
|
+
const cells = map_2((array) => map_1((arg) => (new CompositeCell(1, [arg])), array), descriptions);
|
|
606
|
+
this$.AddColumn(new CompositeHeader(5, []), cells, index);
|
|
607
|
+
}
|
|
608
|
+
AddProtocolNameColumn(names, index) {
|
|
609
|
+
const this$ = this;
|
|
610
|
+
const cells = map_2((array) => map_1((arg) => (new CompositeCell(1, [arg])), array), names);
|
|
611
|
+
this$.AddColumn(new CompositeHeader(8, []), cells, index);
|
|
612
|
+
}
|
|
613
|
+
GetProtocolTypeColumn() {
|
|
614
|
+
const this$ = this;
|
|
615
|
+
return this$.GetColumnByHeader(new CompositeHeader(4, []));
|
|
616
|
+
}
|
|
617
|
+
GetProtocolVersionColumn() {
|
|
618
|
+
const this$ = this;
|
|
619
|
+
return this$.GetColumnByHeader(new CompositeHeader(7, []));
|
|
620
|
+
}
|
|
621
|
+
GetProtocolUriColumn() {
|
|
622
|
+
const this$ = this;
|
|
623
|
+
return this$.GetColumnByHeader(new CompositeHeader(6, []));
|
|
624
|
+
}
|
|
625
|
+
GetProtocolDescriptionColumn() {
|
|
626
|
+
const this$ = this;
|
|
627
|
+
return this$.GetColumnByHeader(new CompositeHeader(5, []));
|
|
628
|
+
}
|
|
629
|
+
GetProtocolNameColumn() {
|
|
630
|
+
const this$ = this;
|
|
631
|
+
return this$.GetColumnByHeader(new CompositeHeader(8, []));
|
|
632
|
+
}
|
|
633
|
+
TryGetProtocolNameColumn() {
|
|
634
|
+
const this$ = this;
|
|
635
|
+
return this$.TryGetColumnByHeader(new CompositeHeader(8, []));
|
|
636
|
+
}
|
|
637
|
+
GetComponentColumns() {
|
|
638
|
+
const this$ = this;
|
|
639
|
+
return map_1((h_1) => this$.GetColumnByHeader(h_1), toArray(filter((h) => h.isComponent, this$.Headers)));
|
|
640
|
+
}
|
|
641
|
+
static fromProtocol(p) {
|
|
642
|
+
const t = ArcTable.init(defaultArg(p.Name, createMissingIdentifier()));
|
|
643
|
+
const enumerator = getEnumerator(defaultArg(p.Parameters, empty_1()));
|
|
644
|
+
try {
|
|
645
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
646
|
+
const pp = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
647
|
+
t.AddColumn(new CompositeHeader(3, [value_9(pp.ParameterName)]), void 0, ARCtrl_ISA_ProtocolParameter__ProtocolParameter_TryGetColumnIndex(pp));
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
finally {
|
|
651
|
+
disposeSafe(enumerator);
|
|
652
|
+
}
|
|
653
|
+
const enumerator_1 = getEnumerator(defaultArg(p.Components, empty_1()));
|
|
654
|
+
try {
|
|
655
|
+
while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
656
|
+
const c = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
657
|
+
const v_1 = map_2((arg) => singleton_1(CompositeCell.fromValue(arg, unwrap(c.ComponentUnit))), c.ComponentValue);
|
|
658
|
+
t.AddColumn(new CompositeHeader(3, [value_9(c.ComponentType)]), v_1, ARCtrl_ISA_Component__Component_TryGetColumnIndex(c));
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
finally {
|
|
662
|
+
disposeSafe(enumerator_1);
|
|
663
|
+
}
|
|
664
|
+
map_2((d) => {
|
|
665
|
+
t.AddProtocolDescriptionColumn([d]);
|
|
666
|
+
}, p.Description);
|
|
667
|
+
map_2((d_1) => {
|
|
668
|
+
t.AddProtocolVersionColumn([d_1]);
|
|
669
|
+
}, p.Version);
|
|
670
|
+
map_2((d_2) => {
|
|
671
|
+
t.AddProtocolTypeColumn([d_2]);
|
|
672
|
+
}, p.ProtocolType);
|
|
673
|
+
map_2((d_3) => {
|
|
674
|
+
t.AddProtocolUriColumn([d_3]);
|
|
675
|
+
}, p.Uri);
|
|
676
|
+
map_2((d_4) => {
|
|
677
|
+
t.AddProtocolNameColumn([d_4]);
|
|
678
|
+
}, p.Name);
|
|
679
|
+
return t;
|
|
680
|
+
}
|
|
681
|
+
GetProtocols() {
|
|
682
|
+
let source;
|
|
683
|
+
const this$ = this;
|
|
684
|
+
return (this$.RowCount === 0) ? singleton_2((source = this$.Headers, fold((p, h) => {
|
|
685
|
+
switch (h.tag) {
|
|
686
|
+
case 4:
|
|
687
|
+
return Protocol_setProtocolType(p, OntologyAnnotation.empty);
|
|
688
|
+
case 7:
|
|
689
|
+
return Protocol_setVersion(p, "");
|
|
690
|
+
case 6:
|
|
691
|
+
return Protocol_setUri(p, "");
|
|
692
|
+
case 5:
|
|
693
|
+
return Protocol_setDescription(p, "");
|
|
694
|
+
case 8:
|
|
695
|
+
return Protocol_setName(p, "");
|
|
696
|
+
case 3:
|
|
697
|
+
return Protocol_addParameter(ProtocolParameter_create_Z6C54B221(void 0, h.fields[0]), p);
|
|
698
|
+
case 0:
|
|
699
|
+
return Protocol_addComponent(Component_create_61502994(void 0, void 0, void 0, h.fields[0]), p);
|
|
700
|
+
default:
|
|
701
|
+
return p;
|
|
702
|
+
}
|
|
703
|
+
}, Protocol_create_Z7DFD6E67(void 0, this$.Name), source))) : List_distinct(initialize_1(this$.RowCount, (i) => {
|
|
704
|
+
let row;
|
|
705
|
+
const source_2 = this$.GetRow(i);
|
|
706
|
+
row = zip(this$.Headers, source_2);
|
|
707
|
+
return toProtocol(this$.Name, row);
|
|
708
|
+
}), {
|
|
709
|
+
Equals: equals,
|
|
710
|
+
GetHashCode: safeHash,
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
GetProcesses() {
|
|
714
|
+
const this$ = this;
|
|
715
|
+
if (this$.RowCount === 0) {
|
|
716
|
+
return singleton_2(Process_create_Z42860F3E(void 0, this$.Name));
|
|
717
|
+
}
|
|
718
|
+
else {
|
|
719
|
+
let getter;
|
|
720
|
+
const clo = ProcessParsing_getProcessGetter(this$.Name, this$.Headers);
|
|
721
|
+
getter = ((arg) => {
|
|
722
|
+
const clo_1 = clo(arg);
|
|
723
|
+
return clo_1;
|
|
724
|
+
});
|
|
725
|
+
return ProcessParsing_mergeIdenticalProcesses(toList(delay(() => map((i) => getter(this$.Values)(i), rangeDouble(0, 1, this$.RowCount - 1)))));
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
static fromProcesses(name, ps) {
|
|
729
|
+
const tupledArg = ProcessParsing_alignByHeaders(true, collect_1(ProcessParsing_processToRows, ps));
|
|
730
|
+
return ArcTable.create(name, tupledArg[0], tupledArg[1]);
|
|
731
|
+
}
|
|
732
|
+
static SplitByColumnValues(columnIndex) {
|
|
733
|
+
return (table) => mapIndexed((i, indexGroup) => {
|
|
734
|
+
let headers;
|
|
735
|
+
const arg = table.Headers;
|
|
736
|
+
headers = Array.from(arg);
|
|
737
|
+
const rows = map_1((i_1) => table.GetRow(i_1), indexGroup);
|
|
738
|
+
return ArcTable.createFromRows(table.Name, headers, rows);
|
|
739
|
+
}, map_1((tupledArg) => map_1((tuple_1) => tuple_1[0], tupledArg[1], Int32Array), Array_groupBy((tuple) => tuple[1], indexed(table.GetColumn(columnIndex).Cells), {
|
|
740
|
+
Equals: equals,
|
|
741
|
+
GetHashCode: safeHash,
|
|
742
|
+
})));
|
|
743
|
+
}
|
|
744
|
+
static SplitByColumnValuesByHeader(header) {
|
|
745
|
+
return (table) => {
|
|
746
|
+
const index = tryFindIndex((x) => equals(x, header), table.Headers);
|
|
747
|
+
if (index == null) {
|
|
748
|
+
return [table.Copy()];
|
|
749
|
+
}
|
|
750
|
+
else {
|
|
751
|
+
const i = index | 0;
|
|
752
|
+
return ArcTable.SplitByColumnValues(i)(table);
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
static get SplitByProtocolREF() {
|
|
757
|
+
return (table) => ArcTable.SplitByColumnValuesByHeader(new CompositeHeader(8, []))(table);
|
|
758
|
+
}
|
|
759
|
+
static updateReferenceByAnnotationTable(refTable, annotationTable) {
|
|
760
|
+
const refTable_1 = refTable.Copy();
|
|
761
|
+
const annotationTable_1 = annotationTable.Copy();
|
|
762
|
+
const nonProtocolColumns = toArray(choose((tupledArg) => {
|
|
763
|
+
if (tupledArg[1].isProtocolColumn) {
|
|
764
|
+
return void 0;
|
|
765
|
+
}
|
|
766
|
+
else {
|
|
767
|
+
return tupledArg[0];
|
|
768
|
+
}
|
|
769
|
+
}, indexed_1(refTable_1.Headers)));
|
|
770
|
+
refTable_1.RemoveColumns(nonProtocolColumns);
|
|
771
|
+
Unchecked_extendToRowCount(annotationTable_1.RowCount, refTable_1.Headers, refTable_1.Values);
|
|
772
|
+
const arr = annotationTable_1.Columns;
|
|
773
|
+
for (let idx = 0; idx <= (arr.length - 1); idx++) {
|
|
774
|
+
const c = arr[idx];
|
|
775
|
+
refTable_1.AddColumn(c.Header, c.Cells, void 0, true);
|
|
776
|
+
}
|
|
777
|
+
return refTable_1;
|
|
778
|
+
}
|
|
779
|
+
static append(table1, table2) {
|
|
780
|
+
const getList = (t) => toList(delay(() => map((row) => toList(delay(() => map((col) => [t.Headers[col], getItemFromDict(t.Values, [col, row])], rangeDouble(0, 1, t.ColumnCount - 1)))), rangeDouble(0, 1, t.RowCount - 1))));
|
|
781
|
+
const patternInput = ProcessParsing_alignByHeaders(false, append(getList(table1), getList(table2)));
|
|
782
|
+
return ArcTable.create(table1.Name, patternInput[0], patternInput[1]);
|
|
783
|
+
}
|
|
784
|
+
toString() {
|
|
785
|
+
const this$ = this;
|
|
786
|
+
return join("\n", toList(delay(() => append_1(singleton(`Table: ${this$.Name}`), delay(() => append_1(singleton("-------------"), delay(() => append_1(singleton(join("\t|\t", map(toString, this$.Headers))), delay(() => map((rowI) => join("\t|\t", map(toString, this$.GetRow(rowI))), rangeDouble(0, 1, this$.RowCount - 1)))))))))));
|
|
787
|
+
}
|
|
788
|
+
StructurallyEquals(other) {
|
|
789
|
+
let a, b;
|
|
790
|
+
const this$ = this;
|
|
791
|
+
const sort = (arg) => sortBy((_arg) => _arg[0], Array.from(arg), {
|
|
792
|
+
Compare: compareArrays,
|
|
793
|
+
});
|
|
794
|
+
if ((this$.Name === other.Name) && ((a = this$.Headers, (b = other.Headers, (length(a) === length(b)) && fold((acc, e) => {
|
|
795
|
+
if (acc) {
|
|
796
|
+
return e;
|
|
797
|
+
}
|
|
798
|
+
else {
|
|
799
|
+
return false;
|
|
800
|
+
}
|
|
801
|
+
}, true, toList(delay(() => map((i) => equals(item(i, a), item(i, b)), rangeDouble(0, 1, length(a) - 1))))))))) {
|
|
802
|
+
const a_1 = sort(this$.Values);
|
|
803
|
+
const b_1 = sort(other.Values);
|
|
804
|
+
return (length(a_1) === length(b_1)) && fold((acc_1, e_1) => {
|
|
805
|
+
if (acc_1) {
|
|
806
|
+
return e_1;
|
|
807
|
+
}
|
|
808
|
+
else {
|
|
809
|
+
return false;
|
|
810
|
+
}
|
|
811
|
+
}, true, toList(delay(() => map((i_1) => equals(item(i_1, a_1), item(i_1, b_1)), rangeDouble(0, 1, length(a_1) - 1)))));
|
|
812
|
+
}
|
|
813
|
+
else {
|
|
814
|
+
return false;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
ReferenceEquals(other) {
|
|
818
|
+
const this$ = this;
|
|
819
|
+
return this$ === other;
|
|
820
|
+
}
|
|
821
|
+
Equals(other) {
|
|
822
|
+
let table;
|
|
823
|
+
const this$ = this;
|
|
824
|
+
return (other instanceof ArcTable) && ((table = other, this$.StructurallyEquals(table)));
|
|
825
|
+
}
|
|
826
|
+
GetHashCode() {
|
|
827
|
+
const this$ = this;
|
|
828
|
+
const v_2 = map_1((tupledArg) => {
|
|
829
|
+
const _arg = tupledArg[0];
|
|
830
|
+
return HashCodes_boxHashArray([_arg[0], _arg[1], tupledArg[1]]);
|
|
831
|
+
}, sortBy((tuple) => tuple[0], toArray(delay(() => collect((matchValue) => {
|
|
832
|
+
const activePatternResult = matchValue;
|
|
833
|
+
return singleton([activePatternResult[0], activePatternResult[1]]);
|
|
834
|
+
}, this$.Values))), {
|
|
835
|
+
Compare: compareArrays,
|
|
836
|
+
}));
|
|
837
|
+
return HashCodes_boxHashArray([this$.Name, HashCodes_boxHashArray(Array.from(this$.Headers)), HashCodes_boxHashArray(Array.from(v_2))]) | 0;
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
export function ArcTable_$reflection() {
|
|
842
|
+
return class_type("ARCtrl.ISA.ArcTable", void 0, ArcTable);
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
export function ArcTable_$ctor_474CDC4E(name, headers, values) {
|
|
846
|
+
return new ArcTable(name, headers, values);
|
|
847
|
+
}
|
|
848
|
+
|