@nfdi4plants/arctrl 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARC.js +103 -12
- package/CWL/CWLTypes.js +2 -2
- package/CWL/Decode.js +2 -2
- package/CWL/Inputs.js +2 -2
- package/CWL/Outputs.js +2 -2
- package/CWL/Requirements.js +2 -2
- package/CWL/ToolDescription.js +1 -1
- package/CWL/WorkflowDescription.js +1 -1
- package/CWL/WorkflowSteps.js +1 -1
- package/ColumnIndex.js +258 -0
- package/Conversion.js +1679 -0
- package/Core/Data.js +28 -3
- package/Core/DataFile.js +19 -3
- package/Core/Helper/Collections.js +107 -4
- package/Core/Helper/DateTime.js +17 -0
- package/Core/Helper/ORCID.js +39 -0
- package/Json/Decode.js +3 -3
- package/Json/Encode.js +9 -0
- package/Json/OntologySourceReference.js +4 -4
- package/Json/ROCrate/LDContext.js +121 -0
- package/Json/ROCrate/LDGraph.js +87 -0
- package/Json/{LDObject.js → ROCrate/LDNode.js} +55 -46
- package/Json/ROCrate/LDRef.js +25 -0
- package/Json/ROCrate/LDValue.js +66 -0
- package/JsonIO/LDObject.js +30 -5
- package/ROCrate/ArcROCrateMetadata.js +14 -13
- package/ROCrate/Generic/Comment.js +115 -0
- package/ROCrate/Generic/Dataset.js +669 -0
- package/ROCrate/Generic/DefinedTerm.js +115 -0
- package/ROCrate/Generic/File.js +200 -0
- package/ROCrate/Generic/LabProcess.js +238 -0
- package/ROCrate/Generic/LabProtocol.js +275 -0
- package/ROCrate/Generic/Organization.js +71 -0
- package/ROCrate/Generic/Person.js +411 -0
- package/ROCrate/Generic/PostalAddress.js +159 -0
- package/ROCrate/Generic/PropertyValue.js +548 -0
- package/ROCrate/Generic/Sample.js +139 -0
- package/ROCrate/Generic/ScholarlyArticle.js +187 -0
- package/ROCrate/Helper.js +6 -0
- package/ROCrate/ISAProfile/Assay.js +3 -3
- package/ROCrate/ISAProfile/Data.js +7 -7
- package/ROCrate/ISAProfile/Dataset.js +7 -6
- package/ROCrate/ISAProfile/Investigation.js +3 -3
- package/ROCrate/ISAProfile/LabProcess.js +7 -7
- package/ROCrate/ISAProfile/LabProtocol.js +7 -7
- package/ROCrate/ISAProfile/Person.js +7 -7
- package/ROCrate/ISAProfile/PropertyValue.js +7 -7
- package/ROCrate/ISAProfile/Sample.js +7 -7
- package/ROCrate/ISAProfile/ScholarlyArticle.js +7 -7
- package/ROCrate/ISAProfile/Study.js +3 -3
- package/ROCrate/LDContext.js +283 -0
- package/ROCrate/LDObject.js +902 -36
- package/ROCrate/ROCrateContext.js +44 -0
- package/ROCrateIO.js +62 -0
- package/Spreadsheet/DataMapTable/DataMapHeader.js +3 -2
- package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/DynObj.fs +31 -1
- package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/DynObj.fs.js +30 -1
- package/fable_modules/DynamicObj.7.0.1/DynamicObj.fs +1025 -0
- package/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +433 -0
- package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/FableJS.fs +16 -0
- package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/FablePy.fs +14 -0
- package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/HashCodes.fs +15 -0
- package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/HashCodes.fs.js +4 -0
- package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/obj/Debug/netstandard2.0/DynamicObj.AssemblyInfo.fs +1 -1
- package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/obj/Release/netstandard2.0/DynamicObj.AssemblyInfo.fs +3 -3
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/Json/ARC.js +0 -31
- package/JsonIO/ARC.js +0 -31
- package/fable_modules/DynamicObj.4.0.3/DynamicObj.fs +0 -310
- package/fable_modules/DynamicObj.4.0.3/DynamicObj.fs.js +0 -166
- /package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/DynamicObj.fableproj +0 -0
- /package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/FableJS.fs.js +0 -0
- /package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/PropertyHelper.fs +0 -0
- /package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/PropertyHelper.fs.js +0 -0
- /package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/ReflectionUtils.fs +0 -0
- /package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/ReflectionUtils.fs.js +0 -0
- /package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{DynamicObj.4.0.3 → DynamicObj.7.0.1}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { tryGetStaticPropertyInfo } from "./ReflectionUtils.fs.js";
|
|
2
|
-
import { getPropertyHelpers, tryGetDynamicPropertyHelper } from "./FableJS.fs.js";
|
|
3
|
-
import { defaultArg, value as value_1, map } from "../fable-library-js.4.24.0/Option.js";
|
|
4
|
-
import { sortBy, iterate, map as map_1, choose, filter } from "../fable-library-js.4.24.0/Seq.js";
|
|
5
|
-
import { boxHashKeyValSeq } from "./HashCodes.fs.js";
|
|
6
|
-
import { safeHash, comparePrimitives } from "../fable-library-js.4.24.0/Util.js";
|
|
7
|
-
import { class_type } from "../fable-library-js.4.24.0/Reflection.js";
|
|
8
|
-
|
|
9
|
-
export class DynamicObj {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.properties = (new Map([]));
|
|
12
|
-
}
|
|
13
|
-
get Properties() {
|
|
14
|
-
const this$ = this;
|
|
15
|
-
return this$.properties;
|
|
16
|
-
}
|
|
17
|
-
set Properties(value) {
|
|
18
|
-
const this$ = this;
|
|
19
|
-
this$.properties = value;
|
|
20
|
-
}
|
|
21
|
-
static ofDict(dynamicProperties) {
|
|
22
|
-
const obj = new DynamicObj();
|
|
23
|
-
obj.Properties = dynamicProperties;
|
|
24
|
-
return obj;
|
|
25
|
-
}
|
|
26
|
-
TryGetStaticPropertyHelper(propertyName) {
|
|
27
|
-
const this$ = this;
|
|
28
|
-
return tryGetStaticPropertyInfo(this$, propertyName);
|
|
29
|
-
}
|
|
30
|
-
TryGetDynamicPropertyHelper(propertyName) {
|
|
31
|
-
const this$ = this;
|
|
32
|
-
return tryGetDynamicPropertyHelper(this$, propertyName);
|
|
33
|
-
}
|
|
34
|
-
TryGetPropertyHelper(propertyName) {
|
|
35
|
-
const this$ = this;
|
|
36
|
-
const matchValue = this$.TryGetStaticPropertyHelper(propertyName);
|
|
37
|
-
return (matchValue == null) ? this$.TryGetDynamicPropertyHelper(propertyName) : matchValue;
|
|
38
|
-
}
|
|
39
|
-
TryGetPropertyValue(propertyName) {
|
|
40
|
-
const this$ = this;
|
|
41
|
-
return map((pi) => pi.GetValue(this$), this$.TryGetPropertyHelper(propertyName));
|
|
42
|
-
}
|
|
43
|
-
GetPropertyValue(propertyName) {
|
|
44
|
-
const this$ = this;
|
|
45
|
-
const matchValue = this$.TryGetPropertyValue(propertyName);
|
|
46
|
-
if (matchValue == null) {
|
|
47
|
-
throw new Error(`No dynamic or static property "${propertyName}" does exist on object.`);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return value_1(matchValue);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
SetProperty(propertyName, propertyValue) {
|
|
54
|
-
const this$ = this;
|
|
55
|
-
const matchValue = this$.TryGetStaticPropertyHelper(propertyName);
|
|
56
|
-
if (matchValue == null) {
|
|
57
|
-
this$[propertyName] = propertyValue;
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
const pi = matchValue;
|
|
61
|
-
if (pi.IsMutable) {
|
|
62
|
-
pi.SetValue(this$, propertyValue);
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
throw new Error(`Cannot set value for static, immutable property "${propertyName}"`);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
RemoveProperty(propertyName) {
|
|
70
|
-
const this$ = this;
|
|
71
|
-
const matchValue = this$.TryGetPropertyHelper(propertyName);
|
|
72
|
-
if (matchValue == null) {
|
|
73
|
-
return false;
|
|
74
|
-
}
|
|
75
|
-
else if (matchValue.IsMutable) {
|
|
76
|
-
const pi_1 = matchValue;
|
|
77
|
-
pi_1.RemoveValue(this$);
|
|
78
|
-
return true;
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
throw new Error(`Cannot remove value for static, immutable property "${propertyName}"`);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
GetPropertyHelpers(includeInstanceProperties) {
|
|
85
|
-
const this$ = this;
|
|
86
|
-
return filter((p) => (p.Name.toLocaleLowerCase() !== "properties"), filter((pd) => {
|
|
87
|
-
if (includeInstanceProperties) {
|
|
88
|
-
return true;
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
return pd.IsDynamic;
|
|
92
|
-
}
|
|
93
|
-
}, getPropertyHelpers(this$)));
|
|
94
|
-
}
|
|
95
|
-
GetProperties(includeInstanceProperties) {
|
|
96
|
-
const this$ = this;
|
|
97
|
-
return choose((kv) => {
|
|
98
|
-
if (kv.Name !== "properties") {
|
|
99
|
-
return [kv.Name, kv.GetValue(this$)];
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
return undefined;
|
|
103
|
-
}
|
|
104
|
-
}, this$.GetPropertyHelpers(includeInstanceProperties));
|
|
105
|
-
}
|
|
106
|
-
GetPropertyNames(includeInstanceProperties) {
|
|
107
|
-
const this$ = this;
|
|
108
|
-
return map_1((kv) => kv[0], this$.GetProperties(includeInstanceProperties));
|
|
109
|
-
}
|
|
110
|
-
CopyDynamicPropertiesTo(target, overWrite) {
|
|
111
|
-
const this$ = this;
|
|
112
|
-
const overWrite_1 = defaultArg(overWrite, false);
|
|
113
|
-
iterate((kv) => {
|
|
114
|
-
let pi;
|
|
115
|
-
const matchValue = target.TryGetPropertyHelper(kv[0]);
|
|
116
|
-
if (matchValue == null) {
|
|
117
|
-
target.SetProperty(kv[0], kv[1]);
|
|
118
|
-
}
|
|
119
|
-
else if ((pi = matchValue, overWrite_1)) {
|
|
120
|
-
const pi_1 = matchValue;
|
|
121
|
-
pi_1.SetValue(target, kv[1]);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
throw new Error(`Property "${kv[0]}" already exists on target object and overWrite was not set to true.`);
|
|
125
|
-
}
|
|
126
|
-
}, this$.GetProperties(false));
|
|
127
|
-
}
|
|
128
|
-
CopyDynamicProperties() {
|
|
129
|
-
const this$ = this;
|
|
130
|
-
const target = new DynamicObj();
|
|
131
|
-
this$.CopyDynamicPropertiesTo(target);
|
|
132
|
-
return target;
|
|
133
|
-
}
|
|
134
|
-
static op_Dynamic(lookup, name) {
|
|
135
|
-
const matchValue = lookup.TryGetPropertyValue(name);
|
|
136
|
-
if (matchValue == null) {
|
|
137
|
-
throw new Error();
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
return value_1(matchValue);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
static op_DynamicAssignment(lookup, name, value) {
|
|
144
|
-
lookup.SetProperty(name, value);
|
|
145
|
-
}
|
|
146
|
-
GetHashCode() {
|
|
147
|
-
const this$ = this;
|
|
148
|
-
return boxHashKeyValSeq(sortBy((pair) => pair[0], this$.GetProperties(true), {
|
|
149
|
-
Compare: comparePrimitives,
|
|
150
|
-
})) | 0;
|
|
151
|
-
}
|
|
152
|
-
Equals(o) {
|
|
153
|
-
let other;
|
|
154
|
-
const this$ = this;
|
|
155
|
-
return (o instanceof DynamicObj) && ((other = o, safeHash(this$) === safeHash(other)));
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export function DynamicObj_$reflection() {
|
|
160
|
-
return class_type("DynamicObj.DynamicObj", undefined, DynamicObj);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export function DynamicObj_$ctor() {
|
|
164
|
-
return new DynamicObj();
|
|
165
|
-
}
|
|
166
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|