@nfdi4plants/arctrl 2.0.0-beta.2 → 2.0.0-beta.8
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 +11 -7
- package/Contract/ArcAssay.js +4 -4
- package/Contract/ArcStudy.js +3 -3
- package/Contract/Datamap.js +1 -1
- package/Contract/ValidationPackagesConfig.js +95 -0
- package/Core/ArcTypes.js +4 -4
- package/Core/Conversion.js +13 -13
- package/Core/DataContext.js +53 -6
- package/Core/{Table/DataMap.js → DataMap.js} +34 -22
- package/Core/Process/Component.js +15 -5
- package/Core/Process/FactorValue.js +14 -5
- package/Core/Process/MaterialAttributeValue.js +14 -5
- package/Core/Process/ProcessParameterValue.js +11 -2
- package/Core/Table/CompositeCell.js +12 -23
- package/Core/{Process/Value.js → Value.js} +9 -9
- package/Json/Assay.js +10 -9
- package/Json/{Process/Data.js → Data.js} +17 -17
- package/Json/{Process/DataFile.js → DataFile.js} +9 -9
- package/Json/DataMap/DataContext.js +30 -0
- package/Json/DataMap/DataMap.js +25 -0
- package/Json/Encode.js +10 -1
- package/Json/Process/Component.js +1 -1
- package/Json/Process/FactorValue.js +1 -1
- package/Json/Process/MaterialAttributeValue.js +1 -1
- package/Json/Process/ProcessInput.js +1 -1
- package/Json/Process/ProcessOutput.js +1 -1
- package/Json/Process/ProcessParameterValue.js +2 -2
- package/Json/Process/Value.js +3 -3
- package/Json/{Process/PropertyValue.js → PropertyValue.js} +30 -21
- package/Json/Study.js +9 -8
- package/Json/Table/CompositeCell.js +1 -1
- package/Json/context/rocrate/isa_data_context.js +2 -2
- package/Json/context/rocrate/isa_investigation_context.js +1 -1
- package/Json/context/rocrate/property_value_context.js +1 -1
- package/Spreadsheet/AnnotationTable/CompositeColumn.js +9 -7
- package/Spreadsheet/ArcAssay.js +30 -14
- package/Spreadsheet/ArcStudy.js +24 -8
- package/Spreadsheet/DataMap.js +1 -1
- package/Spreadsheet/DataMapTable/DataMapTable.js +3 -3
- package/ValidationPackages/ValidationPackage.js +54 -0
- package/ValidationPackages/ValidationPackagesConfig.js +55 -0
- package/Xlsx.js +9 -9
- package/Yaml/Encode.js +8 -0
- package/Yaml/ValidationPackage.js +47 -0
- package/Yaml/ValidationPackagesConfig.js +48 -0
- package/fable_modules/YAMLicious.0.0.1/Decode.fs +374 -0
- package/fable_modules/YAMLicious.0.0.1/Decode.fs.js +1684 -0
- package/fable_modules/YAMLicious.0.0.1/Encode.fs +148 -0
- package/fable_modules/YAMLicious.0.0.1/Encode.fs.js +74 -0
- package/fable_modules/YAMLicious.0.0.1/Interop/JsInterop.fs +14 -0
- package/fable_modules/YAMLicious.0.0.1/Interop/JsInterop.fs.js +11 -0
- package/fable_modules/YAMLicious.0.0.1/Interop/PyInterop.fs +9 -0
- package/fable_modules/YAMLicious.0.0.1/Library.fs +138 -0
- package/fable_modules/YAMLicious.0.0.1/Library.fs.js +7 -0
- package/fable_modules/YAMLicious.0.0.1/Persil.fs +86 -0
- package/fable_modules/YAMLicious.0.0.1/Persil.fs.js +49 -0
- package/fable_modules/YAMLicious.0.0.1/Preprocessing.fs +59 -0
- package/fable_modules/YAMLicious.0.0.1/Preprocessing.fs.js +102 -0
- package/fable_modules/YAMLicious.0.0.1/Reader.fs +295 -0
- package/fable_modules/YAMLicious.0.0.1/Reader.fs.js +530 -0
- package/fable_modules/YAMLicious.0.0.1/Regex.fs +108 -0
- package/fable_modules/YAMLicious.0.0.1/Regex.fs.js +19 -0
- package/fable_modules/YAMLicious.0.0.1/RegexActivePatterns.fs +166 -0
- package/fable_modules/YAMLicious.0.0.1/RegexActivePatterns.fs.js +225 -0
- package/fable_modules/YAMLicious.0.0.1/Writer.fs +84 -0
- package/fable_modules/YAMLicious.0.0.1/Writer.fs.js +161 -0
- package/fable_modules/YAMLicious.0.0.1/YAMLicious.fableproj +39 -0
- package/fable_modules/YAMLicious.0.0.1/YAMLiciousTypes.fs +82 -0
- package/fable_modules/YAMLicious.0.0.1/YAMLiciousTypes.fs.js +130 -0
- package/fable_modules/YAMLicious.0.0.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/YAMLicious.0.0.1/obj/Debug/netstandard2.0/YAMLicious.AssemblyInfo.fs +19 -0
- package/fable_modules/YAMLicious.0.0.1/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/YAMLicious.0.0.1/obj/Release/netstandard2.0/YAMLicious.AssemblyInfo.fs +19 -0
- package/fable_modules/project_cracked.json +1 -1
- package/index.js +1 -0
- package/package.json +1 -1
package/ARC.js
CHANGED
|
@@ -18,10 +18,10 @@ import { addToDict } from "./fable_modules/fable-library-js.4.16.0/MapUtil.js";
|
|
|
18
18
|
import { toFsWorkbook } from "./Spreadsheet/ArcInvestigation.js";
|
|
19
19
|
import { ArcInvestigation } from "./Core/ArcTypes.js";
|
|
20
20
|
import { Assay_datamapFileNameFromIdentifier, Assay_fileNameFromIdentifier, Study_datamapFileNameFromIdentifier, Study_fileNameFromIdentifier } from "./Core/Helper/Identifier.js";
|
|
21
|
-
import {
|
|
22
|
-
import { DataMap__get_StaticHash, DataMap__set_StaticHash_Z524259A4 } from "./Core/
|
|
21
|
+
import { ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522 } from "./Spreadsheet/ArcStudy.js";
|
|
22
|
+
import { DataMap__get_StaticHash, DataMap__set_StaticHash_Z524259A4 } from "./Core/DataMap.js";
|
|
23
23
|
import { toFsWorkbook as toFsWorkbook_1 } from "./Spreadsheet/DataMap.js";
|
|
24
|
-
import {
|
|
24
|
+
import { ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F } from "./Spreadsheet/ArcAssay.js";
|
|
25
25
|
import { Dictionary_tryGet } from "./fable_modules/FsSpreadsheet.6.2.0/Cells/FsCellsCollection.fs.js";
|
|
26
26
|
import { Clone_createCloneContract_5000466F, Init_createAddRemoteContract_Z721C83C5, gitignoreContract, gitattributesContract, Init_createInitContract_6DFDD678 } from "./Contract/Git.js";
|
|
27
27
|
import { FSharpSet__Contains, ofSeq, unionMany } from "./fable_modules/fable-library-js.4.16.0/Set.js";
|
|
@@ -256,7 +256,9 @@ export class ARC {
|
|
|
256
256
|
registeredStudy.UpdateReferenceByStudyFile(study, true);
|
|
257
257
|
}
|
|
258
258
|
const datamap = ARCAux_getAssayDataMapFromContracts(study.Identifier, contracts);
|
|
259
|
-
study.DataMap
|
|
259
|
+
if (study.DataMap == null) {
|
|
260
|
+
study.DataMap = datamap;
|
|
261
|
+
}
|
|
260
262
|
study.StaticHash = (study.GetLightHashCode() | 0);
|
|
261
263
|
});
|
|
262
264
|
assays.forEach((assay) => {
|
|
@@ -273,7 +275,9 @@ export class ARC {
|
|
|
273
275
|
const array_6 = assay_1.StudiesRegisteredIn;
|
|
274
276
|
updatedTables = fold((tables, study_1) => ArcTables.updateReferenceTablesBySheets(new ArcTables(study_1.Tables), tables, false), new ArcTables(assay_1.Tables), array_6);
|
|
275
277
|
const datamap_1 = ARCAux_getAssayDataMapFromContracts(assay_1.Identifier, contracts);
|
|
276
|
-
assay_1.DataMap
|
|
278
|
+
if (assay_1.DataMap == null) {
|
|
279
|
+
assay_1.DataMap = datamap_1;
|
|
280
|
+
}
|
|
277
281
|
assay_1.Tables = updatedTables.Tables;
|
|
278
282
|
});
|
|
279
283
|
iterate((a_3) => {
|
|
@@ -305,7 +309,7 @@ export class ARC {
|
|
|
305
309
|
inv.StaticHash = (inv.GetLightHashCode() | 0);
|
|
306
310
|
iterate((s) => {
|
|
307
311
|
s.StaticHash = (s.GetLightHashCode() | 0);
|
|
308
|
-
addToDict(workbooks, Study_fileNameFromIdentifier(s.Identifier), ["ISA_Study",
|
|
312
|
+
addToDict(workbooks, Study_fileNameFromIdentifier(s.Identifier), ["ISA_Study", ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(s)]);
|
|
309
313
|
if (s.DataMap != null) {
|
|
310
314
|
const dm = value_2(s.DataMap);
|
|
311
315
|
DataMap__set_StaticHash_Z524259A4(dm, safeHash(dm));
|
|
@@ -314,7 +318,7 @@ export class ARC {
|
|
|
314
318
|
}, inv.Studies);
|
|
315
319
|
iterate((a) => {
|
|
316
320
|
a.StaticHash = (a.GetLightHashCode() | 0);
|
|
317
|
-
addToDict(workbooks, Assay_fileNameFromIdentifier(a.Identifier), ["ISA_Assay",
|
|
321
|
+
addToDict(workbooks, Assay_fileNameFromIdentifier(a.Identifier), ["ISA_Assay", ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F(a)]);
|
|
318
322
|
if (a.DataMap != null) {
|
|
319
323
|
const dm_1 = value_2(a.DataMap);
|
|
320
324
|
DataMap__set_StaticHash_Z524259A4(dm_1, safeHash(dm_1));
|
package/Contract/ArcAssay.js
CHANGED
|
@@ -4,7 +4,7 @@ import { defaultOf } from "../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
|
4
4
|
import { unwrap, defaultArg } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
5
5
|
import { Assay_fileNameFromIdentifier } from "../Core/Helper/Identifier.js";
|
|
6
6
|
import { Contract } from "./Contract.js";
|
|
7
|
-
import {
|
|
7
|
+
import { ARCtrl_ArcAssay__ArcAssay_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F } from "../Spreadsheet/ArcAssay.js";
|
|
8
8
|
import { empty, singleton, collect, append, delay, toArray } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
|
|
9
9
|
import { FileSystemTree } from "../FileSystem/FileSystemTree.js";
|
|
10
10
|
|
|
@@ -39,7 +39,7 @@ export function $007CAssayPath$007C_$007C(input) {
|
|
|
39
39
|
export function ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(this$, WithFolder) {
|
|
40
40
|
const withFolder = defaultArg(WithFolder, false);
|
|
41
41
|
const path = Assay_fileNameFromIdentifier(this$.Identifier);
|
|
42
|
-
const c = Contract.createCreate(path, "ISA_Assay",
|
|
42
|
+
const c = Contract.createCreate(path, "ISA_Assay", ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F(this$));
|
|
43
43
|
return toArray(delay(() => {
|
|
44
44
|
let folderFS;
|
|
45
45
|
return append(withFolder ? ((folderFS = FileSystemTree.createAssaysFolder([FileSystemTree.createAssayFolder(this$.Identifier)]), collect((p) => (((p !== path) && (p !== "assays/.gitkeep")) ? singleton(Contract.createCreate(p, "PlainText")) : empty()), folderFS.ToFilePaths(false)))) : empty(), delay(() => singleton(c)));
|
|
@@ -48,7 +48,7 @@ export function ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(this$, WithF
|
|
|
48
48
|
|
|
49
49
|
export function ARCtrl_ArcAssay__ArcAssay_ToUpdateContract(this$) {
|
|
50
50
|
const path = Assay_fileNameFromIdentifier(this$.Identifier);
|
|
51
|
-
return Contract.createUpdate(path, "ISA_Assay",
|
|
51
|
+
return Contract.createUpdate(path, "ISA_Assay", ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F(this$));
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
export function ARCtrl_ArcAssay__ArcAssay_ToDeleteContract(this$) {
|
|
@@ -94,7 +94,7 @@ export function ARCtrl_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F(c)
|
|
|
94
94
|
}
|
|
95
95
|
switch (matchResult) {
|
|
96
96
|
case 0:
|
|
97
|
-
return
|
|
97
|
+
return ARCtrl_ArcAssay__ArcAssay_fromFsWorkbook_Static_32154C9D(fsworkbook);
|
|
98
98
|
default:
|
|
99
99
|
return void 0;
|
|
100
100
|
}
|
package/Contract/ArcStudy.js
CHANGED
|
@@ -4,7 +4,7 @@ import { defaultOf } from "../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
|
4
4
|
import { unwrap, defaultArg } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
5
5
|
import { Study_fileNameFromIdentifier } from "../Core/Helper/Identifier.js";
|
|
6
6
|
import { Contract } from "./Contract.js";
|
|
7
|
-
import { ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D,
|
|
7
|
+
import { ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522 } from "../Spreadsheet/ArcStudy.js";
|
|
8
8
|
import { empty, singleton, collect, append, delay, toArray } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
|
|
9
9
|
import { FileSystemTree } from "../FileSystem/FileSystemTree.js";
|
|
10
10
|
|
|
@@ -39,7 +39,7 @@ export function $007CStudyPath$007C_$007C(input) {
|
|
|
39
39
|
export function ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(this$, WithFolder) {
|
|
40
40
|
const withFolder = defaultArg(WithFolder, false);
|
|
41
41
|
const path = Study_fileNameFromIdentifier(this$.Identifier);
|
|
42
|
-
const c = Contract.createCreate(path, "ISA_Study",
|
|
42
|
+
const c = Contract.createCreate(path, "ISA_Study", ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(this$));
|
|
43
43
|
return toArray(delay(() => {
|
|
44
44
|
let folderFS;
|
|
45
45
|
return append(withFolder ? ((folderFS = FileSystemTree.createStudiesFolder([FileSystemTree.createStudyFolder(this$.Identifier)]), collect((p) => (((p !== path) && (p !== "studies/.gitkeep")) ? singleton(Contract.createCreate(p, "PlainText")) : empty()), folderFS.ToFilePaths(false)))) : empty(), delay(() => singleton(c)));
|
|
@@ -48,7 +48,7 @@ export function ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(this$, WithF
|
|
|
48
48
|
|
|
49
49
|
export function ARCtrl_ArcStudy__ArcStudy_ToUpdateContract(this$) {
|
|
50
50
|
const path = Study_fileNameFromIdentifier(this$.Identifier);
|
|
51
|
-
return Contract.createUpdate(path, "ISA_Study",
|
|
51
|
+
return Contract.createUpdate(path, "ISA_Study", ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(this$));
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
export function ARCtrl_ArcStudy__ArcStudy_ToDeleteContract(this$) {
|
package/Contract/Datamap.js
CHANGED
|
@@ -4,7 +4,7 @@ import { safeHash, defaultOf } from "../fable_modules/fable-library-js.4.16.0/Ut
|
|
|
4
4
|
import { Study_datamapFileNameFromIdentifier, Assay_datamapFileNameFromIdentifier } from "../Core/Helper/Identifier.js";
|
|
5
5
|
import { Contract } from "./Contract.js";
|
|
6
6
|
import { fromFsWorkbook, toFsWorkbook } from "../Spreadsheet/DataMap.js";
|
|
7
|
-
import { DataMap__set_StaticHash_Z524259A4 } from "../Core/
|
|
7
|
+
import { DataMap__set_StaticHash_Z524259A4 } from "../Core/DataMap.js";
|
|
8
8
|
|
|
9
9
|
export function $007CDatamapPath$007C_$007C(input) {
|
|
10
10
|
let matchResult;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { combineMany } from "../FileSystem/Path.js";
|
|
2
|
+
import { item, equalsWith } from "../fable_modules/fable-library-js.4.16.0/Array.js";
|
|
3
|
+
import { defaultOf } from "../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
4
|
+
import { Contract } from "./Contract.js";
|
|
5
|
+
import { ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_fromYamlString_Static_Z721C83C5, ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toYamlString_Static_71136F3F } from "../Yaml/ValidationPackagesConfig.js";
|
|
6
|
+
|
|
7
|
+
export function $007CValidationPackagesYamlPath$007C_$007C(input) {
|
|
8
|
+
let matchResult;
|
|
9
|
+
if (!equalsWith((x, y) => (x === y), input, defaultOf()) && (input.length === 2)) {
|
|
10
|
+
if (item(0, input) === ".arc") {
|
|
11
|
+
if (item(1, input) === "validation_packages.yml") {
|
|
12
|
+
matchResult = 0;
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
matchResult = 1;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
matchResult = 1;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
matchResult = 1;
|
|
24
|
+
}
|
|
25
|
+
switch (matchResult) {
|
|
26
|
+
case 0:
|
|
27
|
+
return combineMany(input);
|
|
28
|
+
default:
|
|
29
|
+
return void 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export const config_file_path = combineMany([".arc", "validation_packages.yml"]);
|
|
34
|
+
|
|
35
|
+
export function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_ToCreateContract(this$) {
|
|
36
|
+
return Contract.createCreate(config_file_path, "YAML", ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toYamlString_Static_71136F3F()(this$));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_ToUpdateContract(this$) {
|
|
40
|
+
return Contract.createUpdate(config_file_path, "YAML", ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toYamlString_Static_71136F3F()(this$));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_ToDeleteContract(this$) {
|
|
44
|
+
return Contract.createDelete(config_file_path);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toDeleteContract_Static_724DAE55(config) {
|
|
48
|
+
return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_ToDeleteContract(config);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toCreateContract_Static_724DAE55(config) {
|
|
52
|
+
return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_ToCreateContract(config);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toUpdateContract_Static_724DAE55(config) {
|
|
56
|
+
return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_ToUpdateContract(config);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_tryFromReadContract_Static_7570923F(c) {
|
|
60
|
+
let matchResult, yaml;
|
|
61
|
+
if (c.Operation === "READ") {
|
|
62
|
+
if (c.DTOType != null) {
|
|
63
|
+
if (c.DTOType === "YAML") {
|
|
64
|
+
if (c.DTO != null) {
|
|
65
|
+
if (typeof c.DTO === "string") {
|
|
66
|
+
matchResult = 0;
|
|
67
|
+
yaml = c.DTO;
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
matchResult = 1;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
matchResult = 1;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
matchResult = 1;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
matchResult = 1;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
matchResult = 1;
|
|
87
|
+
}
|
|
88
|
+
switch (matchResult) {
|
|
89
|
+
case 0:
|
|
90
|
+
return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_fromYamlString_Static_Z721C83C5(yaml);
|
|
91
|
+
default:
|
|
92
|
+
return void 0;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
package/Core/ArcTypes.js
CHANGED
|
@@ -2,7 +2,7 @@ import { value as value_4, defaultArg, map, unwrap } from "../fable_modules/fabl
|
|
|
2
2
|
import { collect, append as append_3, tryFind, removeAt, iterate, tryFindIndex, exists, choose, item, map as map_1, delay, toList, fold, length, forAll, contains, filter, toArray } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
|
|
3
3
|
import { defaultOf, safeHash, equals, disposeSafe, getEnumerator, stringHash } from "../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
4
4
|
import { ResizeArray_choose, ResizeArray_filter, ResizeArray_map } from "./Helper/Collections.js";
|
|
5
|
-
import { DataMap__Copy } from "./
|
|
5
|
+
import { DataMap__Copy } from "./DataMap.js";
|
|
6
6
|
import { addRangeInPlace, removeInPlace, contains as contains_1 } from "../fable_modules/fable-library-js.4.16.0/Array.js";
|
|
7
7
|
import { printf, toText } from "../fable_modules/fable-library-js.4.16.0/String.js";
|
|
8
8
|
import { rangeDouble } from "../fable_modules/fable-library-js.4.16.0/Range.js";
|
|
@@ -525,7 +525,7 @@ export class ArcAssay extends ArcTables {
|
|
|
525
525
|
const arg_4 = this$.Tables;
|
|
526
526
|
const arg_5 = this$.Performers;
|
|
527
527
|
const arg_6 = this$.Comments;
|
|
528
|
-
return toText(printf("ArcAssay({\
|
|
528
|
+
return toText(printf("ArcAssay({\n Identifier = \"%s\",\n MeasurementType = %A,\n TechnologyType = %A,\n TechnologyPlatform = %A,\n Tables = %A,\n Performers = %A,\n Comments = %A\n})"))(arg)(arg_1)(arg_2)(arg_3)(arg_4)(arg_5)(arg_6);
|
|
529
529
|
}
|
|
530
530
|
AddToInvestigation(investigation) {
|
|
531
531
|
const this$ = this;
|
|
@@ -1263,7 +1263,7 @@ export class ArcStudy extends ArcTables {
|
|
|
1263
1263
|
const arg_8 = this$.Tables;
|
|
1264
1264
|
const arg_9 = this$.RegisteredAssayIdentifiers;
|
|
1265
1265
|
const arg_10 = this$.Comments;
|
|
1266
|
-
return toText(printf("ArcStudy {\
|
|
1266
|
+
return toText(printf("ArcStudy {\n Identifier = %A,\n Title = %A,\n Description = %A,\n SubmissionDate = %A,\n PublicReleaseDate = %A,\n Publications = %A,\n Contacts = %A,\n StudyDesignDescriptors = %A,\n Tables = %A,\n RegisteredAssayIdentifiers = %A,\n Comments = %A,\n}"))(arg)(arg_1)(arg_2)(arg_3)(arg_4)(arg_5)(arg_6)(arg_7)(arg_8)(arg_9)(arg_10);
|
|
1267
1267
|
}
|
|
1268
1268
|
Equals(other) {
|
|
1269
1269
|
let s;
|
|
@@ -2236,7 +2236,7 @@ export class ArcInvestigation {
|
|
|
2236
2236
|
const arg_10 = this$.RegisteredStudyIdentifiers;
|
|
2237
2237
|
const arg_11 = this$.Comments;
|
|
2238
2238
|
const arg_12 = this$.Remarks;
|
|
2239
|
-
return toText(printf("ArcInvestigation {\
|
|
2239
|
+
return toText(printf("ArcInvestigation {\n Identifier = %A,\n Title = %A,\n Description = %A,\n SubmissionDate = %A,\n PublicReleaseDate = %A,\n OntologySourceReferences = %A,\n Publications = %A,\n Contacts = %A,\n Assays = %A,\n Studies = %A,\n RegisteredStudyIdentifiers = %A,\n Comments = %A,\n Remarks = %A,\n}"))(arg)(arg_1)(arg_2)(arg_3)(arg_4)(arg_5)(arg_6)(arg_7)(arg_8)(arg_9)(arg_10)(arg_11)(arg_12);
|
|
2240
2240
|
}
|
|
2241
2241
|
Equals(other) {
|
|
2242
2242
|
let i;
|
package/Core/Conversion.js
CHANGED
|
@@ -3,14 +3,14 @@ import { Comment$ } from "./Comment.js";
|
|
|
3
3
|
import { zip as zip_1, fold, empty as empty_1, singleton as singleton_1, append, delay, map as map_1, filter, toList, indexed, tryPick, choose } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
|
|
4
4
|
import { unwrap, value as value_10, map, defaultArg } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
5
5
|
import { Option_fromValueWithDefault, ResizeArray_filter } from "./Helper/Collections.js";
|
|
6
|
-
import { Value as Value_2 } from "./
|
|
7
|
-
import {
|
|
6
|
+
import { Value as Value_2 } from "./Value.js";
|
|
7
|
+
import { Component_create_Z2F0B38C7 } from "./Process/Component.js";
|
|
8
8
|
import { ProtocolParameter } from "./Process/ProtocolParameter.js";
|
|
9
9
|
import { ProcessParameterValue } from "./Process/ProcessParameterValue.js";
|
|
10
|
-
import {
|
|
10
|
+
import { FactorValue_create_30BDC49 } from "./Process/FactorValue.js";
|
|
11
11
|
import { Factor } from "./Process/Factor.js";
|
|
12
12
|
import { toString } from "../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
13
|
-
import {
|
|
13
|
+
import { MaterialAttributeValue_create_ZE1D108D } from "./Process/MaterialAttributeValue.js";
|
|
14
14
|
import { MaterialAttribute_create_A220A8A } from "./Process/MaterialAttribute.js";
|
|
15
15
|
import { ProcessInput_getCharacteristicValues_5B3D5BA9, ProcessInput__isMaterial, ProcessInput__isData, ProcessInput_setCharacteristicValues, ProcessInput__get_Name, ProcessInput__isSource, ProcessInput__isSample, ProcessInput, ProcessInput_createSource_Z5E00540E, ProcessInput_createRawData_Z721C83C5, ProcessInput_createMaterial_4452CB4C, ProcessInput_createSample_Z598187B7 } from "./Process/ProcessInput.js";
|
|
16
16
|
import { ProcessOutput_getFactorValues_Z42C11600, ProcessOutput__isMaterial, ProcessOutput__isData, ProcessOutput_setFactorValues, ProcessOutput__get_Name, ProcessOutput__isSample, ProcessOutput, ProcessOutput_createRawData_Z721C83C5, ProcessOutput_createMaterial_4452CB4C, ProcessOutput_createSample_Z598187B7 } from "./Process/ProcessOutput.js";
|
|
@@ -143,7 +143,7 @@ export function JsonTypes_valueOfCell(value) {
|
|
|
143
143
|
*/
|
|
144
144
|
export function JsonTypes_composeComponent(header, value) {
|
|
145
145
|
const patternInput = JsonTypes_valueOfCell(value);
|
|
146
|
-
return
|
|
146
|
+
return Component_create_Z2F0B38C7(unwrap(patternInput[0]), unwrap(patternInput[1]), header.ToTerm());
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
/**
|
|
@@ -160,7 +160,7 @@ export function JsonTypes_composeParameterValue(header, value) {
|
|
|
160
160
|
*/
|
|
161
161
|
export function JsonTypes_composeFactorValue(header, value) {
|
|
162
162
|
const patternInput = JsonTypes_valueOfCell(value);
|
|
163
|
-
return
|
|
163
|
+
return FactorValue_create_30BDC49(void 0, Factor.create(toString(header), header.ToTerm()), unwrap(patternInput[0]), unwrap(patternInput[1]));
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
/**
|
|
@@ -168,7 +168,7 @@ export function JsonTypes_composeFactorValue(header, value) {
|
|
|
168
168
|
*/
|
|
169
169
|
export function JsonTypes_composeCharacteristicValue(header, value) {
|
|
170
170
|
const patternInput = JsonTypes_valueOfCell(value);
|
|
171
|
-
return
|
|
171
|
+
return MaterialAttributeValue_create_ZE1D108D(void 0, MaterialAttribute_create_A220A8A(void 0, header.ToTerm()), unwrap(patternInput[0]), unwrap(patternInput[1]));
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
export function JsonTypes_composeFreetextMaterialName(headerFT, name) {
|
|
@@ -854,7 +854,7 @@ export function ARCtrl_CompositeHeader__CompositeHeader_TryCharacteristic(this$)
|
|
|
854
854
|
|
|
855
855
|
export function ARCtrl_CompositeHeader__CompositeHeader_TryComponent(this$) {
|
|
856
856
|
if (this$.tag === 0) {
|
|
857
|
-
return
|
|
857
|
+
return Component_create_Z2F0B38C7(void 0, void 0, this$.fields[0]);
|
|
858
858
|
}
|
|
859
859
|
else {
|
|
860
860
|
return void 0;
|
|
@@ -864,7 +864,7 @@ export function ARCtrl_CompositeHeader__CompositeHeader_TryComponent(this$) {
|
|
|
864
864
|
/**
|
|
865
865
|
* This function is used to improve interoperability with ISA-JSON types. It is not recommended for default ARCtrl usage.
|
|
866
866
|
*/
|
|
867
|
-
export function
|
|
867
|
+
export function ARCtrl_CompositeCell__CompositeCell_fromValue_Static_Z6986DF18(value, unit) {
|
|
868
868
|
return JsonTypes_cellOfValue(value, unit);
|
|
869
869
|
}
|
|
870
870
|
|
|
@@ -964,9 +964,9 @@ export function CompositeRow_toProtocol(tableName, row) {
|
|
|
964
964
|
case 5:
|
|
965
965
|
return Protocol_addParameter(ProtocolParameter.create(void 0, oa_1), p);
|
|
966
966
|
case 6:
|
|
967
|
-
return Protocol_addComponent(
|
|
967
|
+
return Protocol_addComponent(Component_create_Z2F0B38C7(Value_2.fromString(v_4), unit, oa_2), p);
|
|
968
968
|
case 7:
|
|
969
|
-
return Protocol_addComponent(
|
|
969
|
+
return Protocol_addComponent(Component_create_Z2F0B38C7(new Value_2(0, [t]), void 0, oa_3), p);
|
|
970
970
|
default:
|
|
971
971
|
return p;
|
|
972
972
|
}
|
|
@@ -994,7 +994,7 @@ export function ARCtrl_ArcTable__ArcTable_fromProtocol_Static_3BF20962(p) {
|
|
|
994
994
|
try {
|
|
995
995
|
while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
996
996
|
const c = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
997
|
-
const v_1 = map((arg) => singleton_2(
|
|
997
|
+
const v_1 = map((arg) => singleton_2(ARCtrl_CompositeCell__CompositeCell_fromValue_Static_Z6986DF18(arg, unwrap(c.ComponentUnit))), c.ComponentValue);
|
|
998
998
|
t.AddColumn(new CompositeHeader(3, [value_10(c.ComponentType)]), v_1, ARCtrl_Process_Component__Component_TryGetColumnIndex(c));
|
|
999
999
|
}
|
|
1000
1000
|
}
|
|
@@ -1040,7 +1040,7 @@ export function ARCtrl_ArcTable__ArcTable_GetProtocols(this$) {
|
|
|
1040
1040
|
case 3:
|
|
1041
1041
|
return Protocol_addParameter(ProtocolParameter.create(void 0, h.fields[0]), p);
|
|
1042
1042
|
case 0:
|
|
1043
|
-
return Protocol_addComponent(
|
|
1043
|
+
return Protocol_addComponent(Component_create_Z2F0B38C7(void 0, void 0, h.fields[0]), p);
|
|
1044
1044
|
default:
|
|
1045
1045
|
return p;
|
|
1046
1046
|
}
|
package/Core/DataContext.js
CHANGED
|
@@ -1,33 +1,63 @@
|
|
|
1
1
|
import { hash, boxHashSeq, boxHashOption, boxHashArray } from "./Helper/HashCodes.js";
|
|
2
|
+
import { unwrap, map } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
3
|
+
import { Value as Value_1 } from "./Value.js";
|
|
2
4
|
import { Data_$reflection, Data } from "./Data.js";
|
|
3
|
-
import { unwrap } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
4
5
|
import { class_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
6
|
+
import { OntologyAnnotation } from "./OntologyAnnotation.js";
|
|
5
7
|
|
|
6
8
|
export class DataContext extends Data {
|
|
7
|
-
constructor(id, name, dataType, format, selectorFormat, explication, unit, objectType, description, generatedBy, comments) {
|
|
9
|
+
constructor(id, name, dataType, format, selectorFormat, explication, unit, objectType, label, description, generatedBy, comments) {
|
|
8
10
|
super(unwrap(id), unwrap(name), unwrap(dataType), unwrap(format), unwrap(selectorFormat), unwrap(comments));
|
|
9
11
|
this._explication = explication;
|
|
10
12
|
this._unit = unit;
|
|
11
13
|
this._objectType = objectType;
|
|
14
|
+
this._label = label;
|
|
12
15
|
this._description = description;
|
|
13
16
|
this._generatedBy = generatedBy;
|
|
14
17
|
}
|
|
15
18
|
GetHashCode() {
|
|
16
19
|
const this$ = this;
|
|
17
|
-
return boxHashArray([boxHashOption(this$.ID), boxHashOption(this$.Name), boxHashOption(this$.DataType), boxHashOption(this$.Format), boxHashOption(this$.SelectorFormat), boxHashSeq(this$.Comments), boxHashOption(DataContext__get_Explication(this$)), boxHashOption(DataContext__get_Unit(this$)), boxHashOption(DataContext__get_ObjectType(this$)), boxHashOption(DataContext__get_Description(this$)), boxHashOption(DataContext__get_GeneratedBy(this$))]) | 0;
|
|
20
|
+
return boxHashArray([boxHashOption(this$.ID), boxHashOption(this$.Name), boxHashOption(this$.DataType), boxHashOption(this$.Format), boxHashOption(this$.SelectorFormat), boxHashSeq(this$.Comments), boxHashOption(DataContext__get_Explication(this$)), boxHashOption(DataContext__get_Unit(this$)), boxHashOption(DataContext__get_ObjectType(this$)), boxHashOption(DataContext__get_Label(this$)), boxHashOption(DataContext__get_Description(this$)), boxHashOption(DataContext__get_GeneratedBy(this$))]) | 0;
|
|
18
21
|
}
|
|
19
22
|
Equals(obj) {
|
|
20
23
|
const this$ = this;
|
|
21
24
|
return hash(this$) === hash(obj);
|
|
22
25
|
}
|
|
26
|
+
AlternateName() {
|
|
27
|
+
const this$ = this;
|
|
28
|
+
return DataContext__get_Label(this$);
|
|
29
|
+
}
|
|
30
|
+
MeasurementMethod() {
|
|
31
|
+
const this$ = this;
|
|
32
|
+
return DataContext__get_GeneratedBy(this$);
|
|
33
|
+
}
|
|
34
|
+
GetCategory() {
|
|
35
|
+
const this$ = this;
|
|
36
|
+
return DataContext__get_Explication(this$);
|
|
37
|
+
}
|
|
38
|
+
GetValue() {
|
|
39
|
+
const this$ = this;
|
|
40
|
+
return map((Item) => (new Value_1(0, [Item])), DataContext__get_ObjectType(this$));
|
|
41
|
+
}
|
|
42
|
+
GetUnit() {
|
|
43
|
+
const this$ = this;
|
|
44
|
+
return DataContext__get_Unit(this$);
|
|
45
|
+
}
|
|
46
|
+
GetAdditionalType() {
|
|
47
|
+
return "DataContext";
|
|
48
|
+
}
|
|
49
|
+
Description() {
|
|
50
|
+
const this$ = this;
|
|
51
|
+
return DataContext__get_Description(this$);
|
|
52
|
+
}
|
|
23
53
|
}
|
|
24
54
|
|
|
25
55
|
export function DataContext_$reflection() {
|
|
26
56
|
return class_type("ARCtrl.DataContext", void 0, DataContext, Data_$reflection());
|
|
27
57
|
}
|
|
28
58
|
|
|
29
|
-
export function DataContext_$
|
|
30
|
-
return new DataContext(id, name, dataType, format, selectorFormat, explication, unit, objectType, description, generatedBy, comments);
|
|
59
|
+
export function DataContext_$ctor_Z780A8A2A(id, name, dataType, format, selectorFormat, explication, unit, objectType, label, description, generatedBy, comments) {
|
|
60
|
+
return new DataContext(id, name, dataType, format, selectorFormat, explication, unit, objectType, label, description, generatedBy, comments);
|
|
31
61
|
}
|
|
32
62
|
|
|
33
63
|
export function DataContext__get_Explication(this$) {
|
|
@@ -54,6 +84,14 @@ export function DataContext__set_ObjectType_279AAFF2(this$, objectType) {
|
|
|
54
84
|
this$._objectType = objectType;
|
|
55
85
|
}
|
|
56
86
|
|
|
87
|
+
export function DataContext__get_Label(this$) {
|
|
88
|
+
return this$._label;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function DataContext__set_Label_6DFDD678(this$, label) {
|
|
92
|
+
this$._label = label;
|
|
93
|
+
}
|
|
94
|
+
|
|
57
95
|
export function DataContext__get_Description(this$) {
|
|
58
96
|
return this$._description;
|
|
59
97
|
}
|
|
@@ -74,8 +112,17 @@ export function DataContext__AsData(this$) {
|
|
|
74
112
|
return new Data(unwrap(this$.ID), unwrap(this$.Name), unwrap(this$.DataType), unwrap(this$.Format), unwrap(this$.SelectorFormat), this$.Comments);
|
|
75
113
|
}
|
|
76
114
|
|
|
115
|
+
export function DataContext_fromData_Z7B4D7BF5(data, explication, unit, objectType, label, description, generatedBy) {
|
|
116
|
+
return DataContext_$ctor_Z780A8A2A(unwrap(data.ID), unwrap(data.Name), unwrap(data.DataType), unwrap(data.Format), unwrap(data.SelectorFormat), unwrap(explication), unwrap(unit), unwrap(objectType), unwrap(label), unwrap(description), unwrap(generatedBy), data.Comments);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function DataContext_createAsPV(alternateName, measurementMethod, description, category, value, unit) {
|
|
120
|
+
let oa, v;
|
|
121
|
+
return DataContext_$ctor_Z780A8A2A(void 0, void 0, void 0, void 0, void 0, category, unit, (value == null) ? void 0 : ((value.tag === 0) ? ((oa = value.fields[0], oa)) : ((v = value, new OntologyAnnotation(v.Text)))), alternateName, description, measurementMethod);
|
|
122
|
+
}
|
|
123
|
+
|
|
77
124
|
export function DataContext__Copy(this$) {
|
|
78
|
-
const copy = DataContext_$
|
|
125
|
+
const copy = DataContext_$ctor_Z780A8A2A();
|
|
79
126
|
copy.ID = this$.ID;
|
|
80
127
|
copy.Name = this$.Name;
|
|
81
128
|
copy.DataType = this$.DataType;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CompositeHeader, IOType } from "./CompositeHeader.js";
|
|
2
|
-
import { OntologyAnnotation } from "
|
|
3
|
-
import { ofArray } from "
|
|
4
|
-
import { iterateIndexed, map } from "
|
|
5
|
-
import { CompositeCell } from "./CompositeCell.js";
|
|
6
|
-
import { boxHashSeq, hash } from "
|
|
7
|
-
import { class_type } from "
|
|
8
|
-
import { DataContext__Copy, DataContext__set_Description_6DFDD678, DataContext__get_Description, DataContext__set_ObjectType_279AAFF2, DataContext__get_ObjectType, DataContext__set_Unit_279AAFF2, DataContext__get_Unit, DataContext__set_Explication_279AAFF2, DataContext__get_Explication } from "
|
|
1
|
+
import { CompositeHeader, IOType } from "./Table/CompositeHeader.js";
|
|
2
|
+
import { OntologyAnnotation } from "./OntologyAnnotation.js";
|
|
3
|
+
import { ofArray } from "../fable_modules/fable-library-js.4.16.0/List.js";
|
|
4
|
+
import { iterateIndexed, map } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
|
|
5
|
+
import { CompositeCell } from "./Table/CompositeCell.js";
|
|
6
|
+
import { boxHashSeq, hash } from "./Helper/HashCodes.js";
|
|
7
|
+
import { class_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
8
|
+
import { DataContext__Copy, DataContext__set_Description_6DFDD678, DataContext__get_Description, DataContext__set_ObjectType_279AAFF2, DataContext__get_ObjectType, DataContext__set_Unit_279AAFF2, DataContext__get_Unit, DataContext__set_Explication_279AAFF2, DataContext__get_Explication } from "./DataContext.js";
|
|
9
9
|
|
|
10
10
|
export const DataMapAux_dataHeader = new CompositeHeader(11, [new IOType(2, [])]);
|
|
11
11
|
|
|
@@ -21,6 +21,8 @@ export const DataMapAux_objectType = new OntologyAnnotation("Data Type", "NCIT",
|
|
|
21
21
|
|
|
22
22
|
export const DataMapAux_objectTypeHeader = new CompositeHeader(3, [DataMapAux_objectType]);
|
|
23
23
|
|
|
24
|
+
export const DataMapAux_labelHeader = new CompositeHeader(13, ["Label"]);
|
|
25
|
+
|
|
24
26
|
export const DataMapAux_descriptionHeader = new CompositeHeader(13, ["Description"]);
|
|
25
27
|
|
|
26
28
|
export const DataMapAux_generatedByHeader = new CompositeHeader(13, ["Generated By"]);
|
|
@@ -87,7 +89,7 @@ export function DataMapAux_SanityChecks_lengthOfNewColumn(newColumn, dataContext
|
|
|
87
89
|
export class DataMap {
|
|
88
90
|
constructor(dataContexts) {
|
|
89
91
|
this.staticHash = 0;
|
|
90
|
-
this["dataContexts@
|
|
92
|
+
this["dataContexts@108"] = dataContexts;
|
|
91
93
|
}
|
|
92
94
|
Equals(obj) {
|
|
93
95
|
const this$ = this;
|
|
@@ -95,7 +97,7 @@ export class DataMap {
|
|
|
95
97
|
}
|
|
96
98
|
GetHashCode() {
|
|
97
99
|
const this$ = this;
|
|
98
|
-
return boxHashSeq(this$["dataContexts@
|
|
100
|
+
return boxHashSeq(this$["dataContexts@108"]) | 0;
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
103
|
|
|
@@ -116,7 +118,7 @@ export function DataMap__set_StaticHash_Z524259A4(this$, value) {
|
|
|
116
118
|
}
|
|
117
119
|
|
|
118
120
|
export function DataMap__get_DataContexts(this$) {
|
|
119
|
-
return this$["dataContexts@
|
|
121
|
+
return this$["dataContexts@108"];
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
export function DataMap_init() {
|
|
@@ -124,48 +126,58 @@ export function DataMap_init() {
|
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
export function DataMap__GetExplicationColumn(this$) {
|
|
127
|
-
return DataMapAux_getOntologyColumn(DataContext__get_Explication, this$["dataContexts@
|
|
129
|
+
return DataMapAux_getOntologyColumn(DataContext__get_Explication, this$["dataContexts@108"]);
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
export function DataMap__SetExplicationColumn_C98E589(this$, cells) {
|
|
131
133
|
DataMapAux_setOntologyColumn((dc, oa) => {
|
|
132
134
|
DataContext__set_Explication_279AAFF2(dc, oa);
|
|
133
|
-
}, cells, this$["dataContexts@
|
|
135
|
+
}, cells, this$["dataContexts@108"]);
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
export function DataMap__GetUnitColumn(this$) {
|
|
137
|
-
return DataMapAux_getOntologyColumn(DataContext__get_Unit, this$["dataContexts@
|
|
139
|
+
return DataMapAux_getOntologyColumn(DataContext__get_Unit, this$["dataContexts@108"]);
|
|
138
140
|
}
|
|
139
141
|
|
|
140
142
|
export function DataMap__SetUnitColumn_C98E589(this$, cells) {
|
|
141
143
|
DataMapAux_setOntologyColumn((dc, oa) => {
|
|
142
144
|
DataContext__set_Unit_279AAFF2(dc, oa);
|
|
143
|
-
}, cells, this$["dataContexts@
|
|
145
|
+
}, cells, this$["dataContexts@108"]);
|
|
144
146
|
}
|
|
145
147
|
|
|
146
148
|
export function DataMap__GetObjectTypeColumn(this$) {
|
|
147
|
-
return DataMapAux_getOntologyColumn(DataContext__get_ObjectType, this$["dataContexts@
|
|
149
|
+
return DataMapAux_getOntologyColumn(DataContext__get_ObjectType, this$["dataContexts@108"]);
|
|
148
150
|
}
|
|
149
151
|
|
|
150
152
|
export function DataMap__SetDataTypeColumn_C98E589(this$, cells) {
|
|
151
153
|
DataMapAux_setOntologyColumn((dc, oa) => {
|
|
152
154
|
DataContext__set_ObjectType_279AAFF2(dc, oa);
|
|
153
|
-
}, cells, this$["dataContexts@
|
|
155
|
+
}, cells, this$["dataContexts@108"]);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function DataMap__GetLabelColumn(this$) {
|
|
159
|
+
return DataMapAux_getStringColumn((dc) => dc.Name, this$["dataContexts@108"]);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function DataMap__SetLabelColumn_C98E589(this$, cells) {
|
|
163
|
+
DataMapAux_setStringColumn((dc, s) => {
|
|
164
|
+
dc.Name = s;
|
|
165
|
+
}, cells, this$["dataContexts@108"]);
|
|
154
166
|
}
|
|
155
167
|
|
|
156
168
|
export function DataMap__GetDescriptionColumn(this$) {
|
|
157
|
-
return DataMapAux_getStringColumn(DataContext__get_Description, this$["dataContexts@
|
|
169
|
+
return DataMapAux_getStringColumn(DataContext__get_Description, this$["dataContexts@108"]);
|
|
158
170
|
}
|
|
159
171
|
|
|
160
172
|
export function DataMap__SetDescriptionColumn_C98E589(this$, cells) {
|
|
161
173
|
DataMapAux_setStringColumn((dc, s) => {
|
|
162
174
|
DataContext__set_Description_6DFDD678(dc, s);
|
|
163
|
-
}, cells, this$["dataContexts@
|
|
175
|
+
}, cells, this$["dataContexts@108"]);
|
|
164
176
|
}
|
|
165
177
|
|
|
166
178
|
export function DataMap__GetDataContext_Z58338566(this$, row, SkipValidation) {
|
|
167
|
-
DataMapAux_SanityChecks_rowIndexInBoundaries(row, this$["dataContexts@
|
|
168
|
-
return this$["dataContexts@
|
|
179
|
+
DataMapAux_SanityChecks_rowIndexInBoundaries(row, this$["dataContexts@108"]);
|
|
180
|
+
return this$["dataContexts@108"][row];
|
|
169
181
|
}
|
|
170
182
|
|
|
171
183
|
export function DataMap_getDataContext_Z58338566(row, SkipValidation) {
|
|
@@ -174,6 +186,6 @@ export function DataMap_getDataContext_Z58338566(row, SkipValidation) {
|
|
|
174
186
|
|
|
175
187
|
export function DataMap__Copy(this$) {
|
|
176
188
|
let collection;
|
|
177
|
-
return DataMap_$ctor_4E3220A7((collection = map(DataContext__Copy, this$["dataContexts@
|
|
189
|
+
return DataMap_$ctor_4E3220A7((collection = map(DataContext__Copy, this$["dataContexts@108"]), Array.from(collection)));
|
|
178
190
|
}
|
|
179
191
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Record } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
2
|
-
import { Value, Value_$reflection } from "
|
|
2
|
+
import { Value, Value_$reflection } from "../Value.js";
|
|
3
3
|
import { record_type, option_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
4
4
|
import { OntologyAnnotation, OntologyAnnotation_$reflection } from "../OntologyAnnotation.js";
|
|
5
5
|
import { defaultArg, unwrap, map } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
@@ -14,6 +14,16 @@ export class Component extends Record {
|
|
|
14
14
|
this.ComponentUnit = ComponentUnit;
|
|
15
15
|
this.ComponentType = ComponentType;
|
|
16
16
|
}
|
|
17
|
+
AlternateName() {
|
|
18
|
+
const this$ = this;
|
|
19
|
+
return Component__get_ComponentName(this$);
|
|
20
|
+
}
|
|
21
|
+
MeasurementMethod() {
|
|
22
|
+
return void 0;
|
|
23
|
+
}
|
|
24
|
+
Description() {
|
|
25
|
+
return void 0;
|
|
26
|
+
}
|
|
17
27
|
GetCategory() {
|
|
18
28
|
const this$ = this;
|
|
19
29
|
return this$.ComponentType;
|
|
@@ -43,12 +53,12 @@ export function Component_make(value, unit, componentType) {
|
|
|
43
53
|
return new Component(value, unit, componentType);
|
|
44
54
|
}
|
|
45
55
|
|
|
46
|
-
export function
|
|
56
|
+
export function Component_create_Z2F0B38C7(value, unit, componentType) {
|
|
47
57
|
return Component_make(value, unit, componentType);
|
|
48
58
|
}
|
|
49
59
|
|
|
50
60
|
export function Component_get_empty() {
|
|
51
|
-
return
|
|
61
|
+
return Component_create_Z2F0B38C7();
|
|
52
62
|
}
|
|
53
63
|
|
|
54
64
|
/**
|
|
@@ -182,7 +192,7 @@ export function Component__SetCategory_ZDED3A0F(this$, c) {
|
|
|
182
192
|
return new Component(this$.ComponentValue, this$.ComponentUnit, c);
|
|
183
193
|
}
|
|
184
194
|
|
|
185
|
-
export function Component_createAsPV(category, value, unit) {
|
|
186
|
-
return
|
|
195
|
+
export function Component_createAsPV(alternateName, measurementMethod, description, category, value, unit) {
|
|
196
|
+
return Component_create_Z2F0B38C7(unwrap(value), unwrap(unit), unwrap(category));
|
|
187
197
|
}
|
|
188
198
|
|