@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,479 @@
|
|
|
1
|
+
import { append, toArray, reduce, choose, map as map_1, delay, toList, length, findIndex, tryFindIndex } from "../../../fable_modules/fable-library.4.1.4/Seq.js";
|
|
2
|
+
import { Dict_tryFind } from "../Helper.js";
|
|
3
|
+
import { addToSet, addToDict } from "../../../fable_modules/fable-library.4.1.4/MapUtil.js";
|
|
4
|
+
import { equals, comparePrimitives, stringHash, compare, disposeSafe, getEnumerator } from "../../../fable_modules/fable-library.4.1.4/Util.js";
|
|
5
|
+
import { bind, map as map_3, unwrap, defaultArg, value as value_2 } from "../../../fable_modules/fable-library.4.1.4/Option.js";
|
|
6
|
+
import { collect as collect_1, map as map_4, insertRangeInPlace, fold } from "../../../fable_modules/fable-library.4.1.4/Array.js";
|
|
7
|
+
import { CompositeHeader } from "./CompositeHeader.js";
|
|
8
|
+
import { Array_groupBy, distinct } from "../../../fable_modules/fable-library.4.1.4/Seq2.js";
|
|
9
|
+
import { FSharpSet__get_IsEmpty, ofSeq, intersect } from "../../../fable_modules/fable-library.4.1.4/Set.js";
|
|
10
|
+
import { class_type } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
11
|
+
import { ArcTable } from "./ArcTable.js";
|
|
12
|
+
import { map as map_2, collect } from "../../../fable_modules/fable-library.4.1.4/List.js";
|
|
13
|
+
import { Unchecked_fillMissingCells, ProcessParsing_groupProcesses, ProcessParsing_processToRows, ProcessParsing_alignByHeaders } from "./ArcTableAux.js";
|
|
14
|
+
import { tryFind, ofSeq as ofSeq_1 } from "../../../fable_modules/fable-library.4.1.4/Map.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* If a table with the given name exists in the TableList, returns it, else returns None.
|
|
18
|
+
*/
|
|
19
|
+
export function ArcTablesAux_tryFindIndexByTableName(name, tables) {
|
|
20
|
+
return tryFindIndex((t) => (t.Name === name), tables);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* If a table with the given name exists in the TableList, returns it, else fails.
|
|
25
|
+
*/
|
|
26
|
+
export function ArcTablesAux_findIndexByTableName(name, tables) {
|
|
27
|
+
const matchValue = tryFindIndex((t) => (t.Name === name), tables);
|
|
28
|
+
if (matchValue == null) {
|
|
29
|
+
throw new Error(`Unable to find table with name '${name}'!`);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
return matchValue | 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Collects the IOType of each distinct entity in the tables. Then merges the IOType of each entity according to the IOType.Merge function.
|
|
38
|
+
*/
|
|
39
|
+
export function ArcTablesAux_getIOMap(tables) {
|
|
40
|
+
const mappings = new Map([]);
|
|
41
|
+
const includeInMap = (name, ioType) => {
|
|
42
|
+
if (name !== "") {
|
|
43
|
+
const matchValue = Dict_tryFind(name, mappings);
|
|
44
|
+
if (matchValue == null) {
|
|
45
|
+
addToDict(mappings, name, ioType);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
const oldIOType = matchValue;
|
|
49
|
+
const newIOType = oldIOType.Merge(ioType);
|
|
50
|
+
mappings.set(name, newIOType);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
let enumerator = getEnumerator(tables);
|
|
55
|
+
try {
|
|
56
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
57
|
+
const table = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
58
|
+
const matchValue_1 = table.TryGetInputColumn();
|
|
59
|
+
if (matchValue_1 == null) {
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
const ic = matchValue_1;
|
|
63
|
+
const ioType_1 = value_2(ic.Header.tryInput());
|
|
64
|
+
ic.Cells.forEach((c) => {
|
|
65
|
+
includeInMap(c.ToFreeTextCell().AsFreeText, ioType_1);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
const matchValue_2 = table.TryGetOutputColumn();
|
|
69
|
+
if (matchValue_2 == null) {
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
const oc = matchValue_2;
|
|
73
|
+
const ioType_2 = value_2(oc.Header.tryOutput());
|
|
74
|
+
oc.Cells.forEach((c_1) => {
|
|
75
|
+
includeInMap(c_1.ToFreeTextCell().AsFreeText, ioType_2);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
finally {
|
|
81
|
+
disposeSafe(enumerator);
|
|
82
|
+
}
|
|
83
|
+
return mappings;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function ArcTablesAux_applyIOMap(map, tables) {
|
|
87
|
+
let enumerator = getEnumerator(tables);
|
|
88
|
+
try {
|
|
89
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
90
|
+
const table = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
91
|
+
const matchValue = table.TryGetInputColumn();
|
|
92
|
+
if (matchValue == null) {
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
const ic = matchValue;
|
|
96
|
+
const index = findIndex((x) => x.isInput, table.Headers) | 0;
|
|
97
|
+
const newIOType = fold((io, c) => {
|
|
98
|
+
const matchValue_1 = Dict_tryFind(c.ToFreeTextCell().AsFreeText, map);
|
|
99
|
+
if (matchValue_1 == null) {
|
|
100
|
+
return io;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
const newIO = matchValue_1;
|
|
104
|
+
return io.Merge(newIO);
|
|
105
|
+
}
|
|
106
|
+
}, value_2(ic.Header.tryInput()), ic.Cells);
|
|
107
|
+
table.UpdateHeader(index, new CompositeHeader(11, [newIOType]));
|
|
108
|
+
}
|
|
109
|
+
const matchValue_2 = table.TryGetOutputColumn();
|
|
110
|
+
if (matchValue_2 == null) {
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
const oc = matchValue_2;
|
|
114
|
+
const index_1 = findIndex((x_1) => x_1.isOutput, table.Headers) | 0;
|
|
115
|
+
const newIOType_1 = fold((io_1, c_1) => {
|
|
116
|
+
const matchValue_3 = Dict_tryFind(c_1.ToFreeTextCell().AsFreeText, map);
|
|
117
|
+
if (matchValue_3 == null) {
|
|
118
|
+
return io_1;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
const newIO_1 = matchValue_3;
|
|
122
|
+
return io_1.Merge(newIO_1);
|
|
123
|
+
}
|
|
124
|
+
}, value_2(oc.Header.tryOutput()), oc.Cells);
|
|
125
|
+
table.UpdateHeader(index_1, new CompositeHeader(12, [newIOType_1]));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
finally {
|
|
130
|
+
disposeSafe(enumerator);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Fails, if the index is out of range of the Tables collection. When allowAppend is set to true, it may be out of range by at most 1.
|
|
136
|
+
*/
|
|
137
|
+
export function ArcTablesAux_SanityChecks_validateSheetIndex(index, allowAppend, sheets) {
|
|
138
|
+
let x, y;
|
|
139
|
+
if (index < 0) {
|
|
140
|
+
throw new Error("Cannot insert ArcTable at index < 0.");
|
|
141
|
+
}
|
|
142
|
+
if ((x = (index | 0), (y = (sheets.length | 0), allowAppend ? (compare(x, y) > 0) : (compare(x, y) >= 0)))) {
|
|
143
|
+
throw new Error(`Specified index is out of range! Assay contains only ${sheets.length} tables.`);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Fails, if two tables have the same name.
|
|
149
|
+
*/
|
|
150
|
+
export function ArcTablesAux_SanityChecks_validateNamesUnique(names) {
|
|
151
|
+
if (!(length(names) === length(distinct(names, {
|
|
152
|
+
Equals: (x, y) => (x === y),
|
|
153
|
+
GetHashCode: stringHash,
|
|
154
|
+
})))) {
|
|
155
|
+
throw new Error("Cannot add multiple tables with the same name! Table names inside one assay must be unqiue");
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Fails, if the name is already used by another table.
|
|
161
|
+
*/
|
|
162
|
+
export function ArcTablesAux_SanityChecks_validateNewNameUnique(newName, existingNames) {
|
|
163
|
+
const matchValue = tryFindIndex((x) => (x === newName), existingNames);
|
|
164
|
+
if (matchValue == null) {
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
throw new Error(`Cannot create table with name ${newName}, as table names must be unique and table at index ${matchValue} has the same name.`);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Fails, if the name is already used by another table at a different position.
|
|
173
|
+
*
|
|
174
|
+
* Does not fail, if the newName is the same as the one in the given position.
|
|
175
|
+
*/
|
|
176
|
+
export function ArcTablesAux_SanityChecks_validateNewNameAtUnique(index, newName, existingNames) {
|
|
177
|
+
const matchValue = tryFindIndex((x) => (x === newName), existingNames);
|
|
178
|
+
if (matchValue == null) {
|
|
179
|
+
}
|
|
180
|
+
else if (index === matchValue) {
|
|
181
|
+
const i_1 = matchValue | 0;
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
const i_2 = matchValue | 0;
|
|
185
|
+
throw new Error(`Cannot create table with name ${newName}, as table names must be unique and table at index ${i_2} has the same name.`);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export function ArcTablesAux_SanityChecks_validateNewNamesUnique(newNames, existingNames) {
|
|
190
|
+
ArcTablesAux_SanityChecks_validateNamesUnique(newNames);
|
|
191
|
+
const same = intersect(ofSeq(newNames, {
|
|
192
|
+
Compare: comparePrimitives,
|
|
193
|
+
}), ofSeq(existingNames, {
|
|
194
|
+
Compare: comparePrimitives,
|
|
195
|
+
}));
|
|
196
|
+
if (!FSharpSet__get_IsEmpty(same)) {
|
|
197
|
+
throw new Error(`Cannot create tables with the names ${same}, as table names must be unique.`);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export class ArcTables {
|
|
202
|
+
constructor(thisTables) {
|
|
203
|
+
this.thisTables = thisTables;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export function ArcTables_$reflection() {
|
|
208
|
+
return class_type("ARCtrl.ISA.ArcTables", void 0, ArcTables);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export function ArcTables_$ctor_Z18C2F36D(thisTables) {
|
|
212
|
+
return new ArcTables(thisTables);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export function ArcTables__get_Count(this$) {
|
|
216
|
+
return this$.thisTables.length;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export function ArcTables__get_TableNames(this$) {
|
|
220
|
+
return toList(delay(() => map_1((s) => s.Name, this$.thisTables)));
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export function ArcTables__get_Tables(this$) {
|
|
224
|
+
return this$.thisTables;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export function ArcTables__get_Item_Z524259A4(this$, index) {
|
|
228
|
+
return this$.thisTables[index];
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export function ArcTables__AddTable_EC12B15(this$, table, index) {
|
|
232
|
+
const index_1 = defaultArg(index, ArcTables__get_Count(this$)) | 0;
|
|
233
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index_1, true, this$.thisTables);
|
|
234
|
+
ArcTablesAux_SanityChecks_validateNewNameUnique(table.Name, ArcTables__get_TableNames(this$));
|
|
235
|
+
this$.thisTables.splice(index_1, 0, table);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export function ArcTables__AddTables_Z2D453886(this$, tables, index) {
|
|
239
|
+
const index_1 = defaultArg(index, ArcTables__get_Count(this$)) | 0;
|
|
240
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index_1, true, this$.thisTables);
|
|
241
|
+
ArcTablesAux_SanityChecks_validateNewNamesUnique(map_1((x) => x.Name, tables), ArcTables__get_TableNames(this$));
|
|
242
|
+
insertRangeInPlace(index_1, tables, this$.thisTables);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export function ArcTables__InitTable_3B406CA4(this$, tableName, index) {
|
|
246
|
+
const index_1 = defaultArg(index, ArcTables__get_Count(this$)) | 0;
|
|
247
|
+
const table = ArcTable.init(tableName);
|
|
248
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index_1, true, this$.thisTables);
|
|
249
|
+
ArcTablesAux_SanityChecks_validateNewNameUnique(table.Name, ArcTables__get_TableNames(this$));
|
|
250
|
+
this$.thisTables.splice(index_1, 0, table);
|
|
251
|
+
return table;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export function ArcTables__InitTables_7B28792B(this$, tableNames, index) {
|
|
255
|
+
const index_1 = defaultArg(index, ArcTables__get_Count(this$)) | 0;
|
|
256
|
+
const tables = map_1((x) => ArcTable.init(x), tableNames);
|
|
257
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index_1, true, this$.thisTables);
|
|
258
|
+
ArcTablesAux_SanityChecks_validateNewNamesUnique(map_1((x_1) => x_1.Name, tables), ArcTables__get_TableNames(this$));
|
|
259
|
+
insertRangeInPlace(index_1, tables, this$.thisTables);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export function ArcTables__GetTableAt_Z524259A4(this$, index) {
|
|
263
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index, false, this$.thisTables);
|
|
264
|
+
return this$.thisTables[index];
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export function ArcTables__GetTable_Z721C83C5(this$, name) {
|
|
268
|
+
return ArcTables__GetTableAt_Z524259A4(this$, ArcTablesAux_findIndexByTableName(name, this$.thisTables));
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export function ArcTables__UpdateTableAt_7E571736(this$, index, table) {
|
|
272
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index, false, this$.thisTables);
|
|
273
|
+
ArcTablesAux_SanityChecks_validateNewNameAtUnique(index, table.Name, ArcTables__get_TableNames(this$));
|
|
274
|
+
this$.thisTables[index] = table;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export function ArcTables__UpdateTable_51766571(this$, name, table) {
|
|
278
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(name, this$.thisTables), table];
|
|
279
|
+
ArcTables__UpdateTableAt_7E571736(this$, tupledArg[0], tupledArg[1]);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export function ArcTables__SetTableAt_7E571736(this$, index, table) {
|
|
283
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index, true, this$.thisTables);
|
|
284
|
+
ArcTablesAux_SanityChecks_validateNewNameAtUnique(index, table.Name, ArcTables__get_TableNames(this$));
|
|
285
|
+
this$.thisTables[index] = table;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export function ArcTables__SetTable_51766571(this$, name, table) {
|
|
289
|
+
const matchValue = ArcTablesAux_tryFindIndexByTableName(name, this$.thisTables);
|
|
290
|
+
if (matchValue == null) {
|
|
291
|
+
ArcTables__AddTable_EC12B15(this$, table);
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
ArcTables__SetTableAt_7E571736(this$, matchValue, table);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export function ArcTables__RemoveTableAt_Z524259A4(this$, index) {
|
|
299
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index, false, this$.thisTables);
|
|
300
|
+
this$.thisTables.splice(index, 1);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export function ArcTables__RemoveTable_Z721C83C5(this$, name) {
|
|
304
|
+
ArcTables__RemoveTableAt_Z524259A4(this$, ArcTablesAux_findIndexByTableName(name, this$.thisTables));
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export function ArcTables__MapTableAt_8FC095C(this$, index, updateFun) {
|
|
308
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index, false, this$.thisTables);
|
|
309
|
+
updateFun(this$.thisTables[index]);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export function ArcTables__MapTable_27DD7B1B(this$, name, updateFun) {
|
|
313
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(name, this$.thisTables), updateFun];
|
|
314
|
+
ArcTables__MapTableAt_8FC095C(this$, tupledArg[0], tupledArg[1]);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export function ArcTables__RenameTableAt_Z176EF219(this$, index, newName) {
|
|
318
|
+
ArcTablesAux_SanityChecks_validateSheetIndex(index, false, this$.thisTables);
|
|
319
|
+
ArcTablesAux_SanityChecks_validateNewNameUnique(newName, ArcTables__get_TableNames(this$));
|
|
320
|
+
const table = ArcTables__GetTableAt_Z524259A4(this$, index);
|
|
321
|
+
table.Name = newName;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export function ArcTables__RenameTable_Z384F8060(this$, name, newName) {
|
|
325
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(name, this$.thisTables), newName];
|
|
326
|
+
ArcTables__RenameTableAt_Z176EF219(this$, tupledArg[0], tupledArg[1]);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export function ArcTables__AddColumnAt_6A9784DB(this$, tableIndex, header, cells, columnIndex, forceReplace) {
|
|
330
|
+
ArcTables__MapTableAt_8FC095C(this$, tableIndex, (table) => {
|
|
331
|
+
table.AddColumn(header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export function ArcTables__AddColumn_1FF50D3C(this$, tableName, header, cells, columnIndex, forceReplace) {
|
|
336
|
+
ArcTables__AddColumnAt_6A9784DB(this$, ArcTablesAux_findIndexByTableName(tableName, this$.thisTables), header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export function ArcTables__RemoveColumnAt_Z37302880(this$, tableIndex, columnIndex) {
|
|
340
|
+
ArcTables__MapTableAt_8FC095C(this$, tableIndex, (table) => {
|
|
341
|
+
table.RemoveColumn(columnIndex);
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export function ArcTables__RemoveColumn_Z18115A39(this$, tableName, columnIndex) {
|
|
346
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(tableName, this$.thisTables), columnIndex];
|
|
347
|
+
ArcTables__RemoveColumnAt_Z37302880(this$, tupledArg[0], tupledArg[1]);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export function ArcTables__UpdateColumnAt_21300791(this$, tableIndex, columnIndex, header, cells) {
|
|
351
|
+
ArcTables__MapTableAt_8FC095C(this$, tableIndex, (table) => {
|
|
352
|
+
table.UpdateColumn(columnIndex, header, unwrap(cells));
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export function ArcTables__UpdateColumn_Z6083042A(this$, tableName, columnIndex, header, cells) {
|
|
357
|
+
ArcTables__UpdateColumnAt_21300791(this$, ArcTablesAux_findIndexByTableName(tableName, this$.thisTables), columnIndex, header, unwrap(cells));
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export function ArcTables__GetColumnAt_Z37302880(this$, tableIndex, columnIndex) {
|
|
361
|
+
const table = ArcTables__GetTableAt_Z524259A4(this$, tableIndex);
|
|
362
|
+
return table.GetColumn(columnIndex);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export function ArcTables__GetColumn_Z18115A39(this$, tableName, columnIndex) {
|
|
366
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(tableName, this$.thisTables), columnIndex];
|
|
367
|
+
return ArcTables__GetColumnAt_Z37302880(this$, tupledArg[0], tupledArg[1]);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export function ArcTables__AddRowAt_Z12CDB784(this$, tableIndex, cells, rowIndex) {
|
|
371
|
+
ArcTables__MapTableAt_8FC095C(this$, tableIndex, (table) => {
|
|
372
|
+
table.AddRow(unwrap(cells), unwrap(rowIndex));
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export function ArcTables__AddRow_Z16315DE5(this$, tableName, cells, rowIndex) {
|
|
377
|
+
ArcTables__AddRowAt_Z12CDB784(this$, ArcTablesAux_findIndexByTableName(tableName, this$.thisTables), unwrap(cells), unwrap(rowIndex));
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export function ArcTables__RemoveRowAt_Z37302880(this$, tableIndex, rowIndex) {
|
|
381
|
+
ArcTables__MapTableAt_8FC095C(this$, tableIndex, (table) => {
|
|
382
|
+
table.RemoveRow(rowIndex);
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export function ArcTables__RemoveRow_Z18115A39(this$, tableName, rowIndex) {
|
|
387
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(tableName, this$.thisTables), rowIndex];
|
|
388
|
+
ArcTables__RemoveRowAt_Z37302880(this$, tupledArg[0], tupledArg[1]);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export function ArcTables__UpdateRowAt_1CF7B5DC(this$, tableIndex, rowIndex, cells) {
|
|
392
|
+
ArcTables__MapTableAt_8FC095C(this$, tableIndex, (table) => {
|
|
393
|
+
table.UpdateRow(rowIndex, cells);
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export function ArcTables__UpdateRow_1BFE2CFB(this$, tableName, rowIndex, cells) {
|
|
398
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(tableName, this$.thisTables), rowIndex, cells];
|
|
399
|
+
ArcTables__UpdateRowAt_1CF7B5DC(this$, tupledArg[0], tupledArg[1], tupledArg[2]);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export function ArcTables__GetRowAt_Z37302880(this$, tableIndex, rowIndex) {
|
|
403
|
+
const table = ArcTables__GetTableAt_Z524259A4(this$, tableIndex);
|
|
404
|
+
return table.GetRow(rowIndex);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export function ArcTables__GetRow_Z18115A39(this$, tableName, rowIndex) {
|
|
408
|
+
const tupledArg = [ArcTablesAux_findIndexByTableName(tableName, this$.thisTables), rowIndex];
|
|
409
|
+
return ArcTables__GetRowAt_Z37302880(this$, tupledArg[0], tupledArg[1]);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Return a list of all the processes in all the tables.
|
|
414
|
+
*/
|
|
415
|
+
export function ArcTables__GetProcesses(this$) {
|
|
416
|
+
return collect((t) => t.GetProcesses(), toList(ArcTables__get_Tables(this$)));
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export function ArcTables_ofSeq_3B4333A5(tables) {
|
|
420
|
+
return ArcTables_$ctor_Z18C2F36D(Array.from(tables));
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Create a collection of tables from a list of processes.
|
|
425
|
+
*
|
|
426
|
+
* For this, the processes are grouped by nameroot ("nameroot_1", "nameroot_2" ...) or exectued protocol if no name exists
|
|
427
|
+
*
|
|
428
|
+
* Then each group is converted to a table with this nameroot as sheetname
|
|
429
|
+
*/
|
|
430
|
+
export function ArcTables_fromProcesses_134EBDED(ps) {
|
|
431
|
+
let arg;
|
|
432
|
+
return ArcTables_$ctor_Z18C2F36D((arg = map_2((tupledArg) => {
|
|
433
|
+
const tupledArg_1 = ProcessParsing_alignByHeaders(true, collect(ProcessParsing_processToRows, tupledArg[1]));
|
|
434
|
+
return ArcTable.create(tupledArg[0], tupledArg_1[0], tupledArg_1[1]);
|
|
435
|
+
}, ProcessParsing_groupProcesses(ps)), Array.from(arg)));
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export function ArcTables_updateReferenceTablesBySheets_Z2EE88E97(referenceTables, sheetTables, keepUnusedRefTables) {
|
|
439
|
+
let arg_4, s, array;
|
|
440
|
+
const keepUnusedRefTables_1 = defaultArg(keepUnusedRefTables, false);
|
|
441
|
+
const usedTables = new Set([]);
|
|
442
|
+
const referenceTableMap = ofSeq_1(choose((t) => map_3((c) => [c.Cells[0].AsFreeText, t], t.TryGetProtocolNameColumn()), ArcTables__get_Tables(referenceTables)), {
|
|
443
|
+
Compare: comparePrimitives,
|
|
444
|
+
});
|
|
445
|
+
return ArcTables_$ctor_Z18C2F36D((arg_4 = ((s = map_4((t_3) => {
|
|
446
|
+
Unchecked_fillMissingCells(t_3.Headers, t_3.Values);
|
|
447
|
+
return t_3;
|
|
448
|
+
}, map_4((tupledArg) => reduce((arg_2, arg_3) => ArcTable.append(arg_2, arg_3), tupledArg[1]), Array_groupBy((t_2) => t_2.Name, map_4((t_1) => {
|
|
449
|
+
const k = defaultArg(bind((c_1) => {
|
|
450
|
+
if (c_1.AsFreeText === "") {
|
|
451
|
+
return void 0;
|
|
452
|
+
}
|
|
453
|
+
else {
|
|
454
|
+
return c_1.AsFreeText;
|
|
455
|
+
}
|
|
456
|
+
}, bind((i) => t_1.TryGetCellAt(i, 0), tryFindIndex((x_1) => equals(x_1, new CompositeHeader(8, [])), t_1.Headers))), t_1.Name);
|
|
457
|
+
const matchValue = tryFind(k, referenceTableMap);
|
|
458
|
+
if (matchValue == null) {
|
|
459
|
+
return t_1;
|
|
460
|
+
}
|
|
461
|
+
else {
|
|
462
|
+
const rt = matchValue;
|
|
463
|
+
addToSet(k, usedTables);
|
|
464
|
+
const updatedTable = ArcTable.updateReferenceByAnnotationTable(rt, t_1);
|
|
465
|
+
return ArcTable.create(t_1.Name, updatedTable.Headers, updatedTable.Values);
|
|
466
|
+
}
|
|
467
|
+
}, (array = toArray(ArcTables__get_Tables(sheetTables)), collect_1(ArcTable.SplitByProtocolREF, array))), {
|
|
468
|
+
Equals: (x_2, y_1) => (x_2 === y_1),
|
|
469
|
+
GetHashCode: stringHash,
|
|
470
|
+
}))), keepUnusedRefTables_1 ? append(choose((kv) => {
|
|
471
|
+
if (usedTables.has(kv[0])) {
|
|
472
|
+
return void 0;
|
|
473
|
+
}
|
|
474
|
+
else {
|
|
475
|
+
return kv[1];
|
|
476
|
+
}
|
|
477
|
+
}, referenceTableMap), s) : s)), Array.from(arg_4)));
|
|
478
|
+
}
|
|
479
|
+
|