@nfdi4plants/arctrl 3.0.0 → 3.0.1

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.
Files changed (35) hide show
  1. package/dist/ts/ts/CWL/Decode.d.ts +15 -11
  2. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
  3. package/dist/ts/ts/CWL/Decode.js +73 -23
  4. package/dist/ts/ts/CWL/Encode.d.ts +8 -1
  5. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
  6. package/dist/ts/ts/CWL/Encode.js +15 -11
  7. package/dist/ts/ts/CWL/Requirements.d.ts +1 -1
  8. package/dist/ts/ts/CWL/Requirements.js +1 -1
  9. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +1 -1
  10. package/dist/ts/ts/CWL/WorkflowSteps.js +1 -1
  11. package/dist/ts/ts/Conversion/Workflow.js +3 -3
  12. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +1 -1
  13. package/dist/ts/ts/Yaml/ValidationPackage.js +6 -6
  14. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +1 -1
  15. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +6 -6
  16. package/dist/ts/ts/Yaml.js +1 -1
  17. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.4}/Encode.fs.js +9 -9
  18. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Escapes.fs.js +313 -0
  19. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.4}/FlowToBlock.fs.js +14 -12
  20. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Persil.fs.js +562 -0
  21. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.4}/Preprocessing.fs.js +52 -12
  22. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Reader.fs.js +1314 -0
  23. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.4}/Regex.fs.js +7 -1
  24. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/RegexActivePatterns.fs.js +313 -0
  25. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/StringBuffer.fs.js +60 -0
  26. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Writer.fs.js +391 -0
  27. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/YAMLiciousTypes.fs.js +317 -0
  28. package/package.json +1 -1
  29. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Persil.fs.js +0 -45
  30. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Reader.fs.js +0 -539
  31. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/RegexActivePatterns.fs.js +0 -216
  32. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Writer.fs.js +0 -164
  33. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/YAMLiciousTypes.fs.js +0 -152
  34. /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.4}/Decode.fs.js +0 -0
  35. /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.4}/Interop/JsInterop.fs.js +0 -0
@@ -1,4 +1,10 @@
1
+ const AnchorPattern = "&(?<anchor>[^\\s\\[\\]{},:]+)";
2
+ const AliasPattern = "^\\*(?<alias>[^\\s\\[\\]{},:]+)$";
3
+ const VerbatimTagPattern = "^!<(?<tag>[^>]+)>";
1
4
  const KeyPattern = `^(?<key>[^\\{\\[]+):\\s*(${"<c f=(?<comment>\\d+)\\/>"})?$`;
5
+ const ExplicitKeyPattern = "^\\?\\s*$";
6
+ const ExplicitKeyWithValuePattern = "^\\?\\s+(.+)$";
7
+ const ExplicitValuePattern = "^:\\s*(.*)$";
2
8
  const LineCommentPattern = `^${"<c f=(?<comment>\\d+)\\/>"}$`;
3
9
  const ValuePattern = `^(?<value>.*?)\\s*?(${"<c f=(?<comment>\\d+)\\/>"})?$`;
4
10
  const FlowStyleArrayPattern = `^\\[(?<inlineSequence>.+)\\]\\s*?(${"<c f=(?<comment>\\d+)\\/>"})?$`;
@@ -12,4 +18,4 @@ const JSONOpenerPattern = FlowStyleObjectOpenerPattern;
12
18
  const FlowStyleObjectCloserPattern = `^\\}\\s*(${"<c f=(?<comment>\\d+)\\/>"})?$`;
13
19
  const JSONCloserPattern = FlowStyleObjectCloserPattern;
14
20
 
15
- export { FlowStyleArrayPattern, FlowStyleObjectCloserPattern, FlowStyleObjectOpenerPattern, FlowStyleObjectPattern, InlineJSONPattern, InlineSequencePattern, JSONCloserPattern, JSONOpenerPattern, KeyPattern, LineCommentPattern, SequenceCloserPattern, SequenceOpenerPattern, ValuePattern };
21
+ export { AliasPattern, AnchorPattern, ExplicitKeyPattern, ExplicitKeyWithValuePattern, ExplicitValuePattern, FlowStyleArrayPattern, FlowStyleObjectCloserPattern, FlowStyleObjectOpenerPattern, FlowStyleObjectPattern, InlineJSONPattern, InlineSequencePattern, JSONCloserPattern, JSONOpenerPattern, KeyPattern, LineCommentPattern, SequenceCloserPattern, SequenceOpenerPattern, ValuePattern, VerbatimTagPattern };
@@ -0,0 +1,313 @@
1
+ import { trimStart, substring } from '../../../node_modules/@fable-org/fable-library-js/String.js';
2
+ import { parse } from '../../../node_modules/@fable-org/fable-library-js/Int32.js';
3
+ import { match, create } from '../../../node_modules/@fable-org/fable-library-js/RegExp.js';
4
+ import { KeyPattern, ValuePattern, LineCommentPattern, FlowStyleArrayPattern, SequenceOpenerPattern, SequenceCloserPattern, FlowStyleObjectPattern, FlowStyleObjectOpenerPattern, FlowStyleObjectCloserPattern, AnchorPattern, AliasPattern, VerbatimTagPattern } from './Regex.fs.js';
5
+ import { unwrap, some } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
6
+ import { isDocumentEnd } from './Preprocessing.fs.js';
7
+
8
+ function trimForPattern(s) {
9
+ return trimStart(s);
10
+ }
11
+ function leadingIndent(s) {
12
+ return s.length - trimStart(s).length;
13
+ }
14
+ function $007CKey$007C_$007C(input) {
15
+ let v;
16
+ if (input.tag === /* Line */
17
+ 2) {
18
+ const line = trimForPattern(input.fields[0]);
19
+ const m = match(create(KeyPattern), line);
20
+ if (m != null) {
21
+ return {
22
+ Comment: unwrap((v = m.groups && m.groups.comment || "", v === "" ? void 0 : parse(v, 511, false, 32))),
23
+ Key: m.groups && m.groups.key || ""
24
+ };
25
+ } else {
26
+ return void 0;
27
+ }
28
+ } else {
29
+ return void 0;
30
+ }
31
+ }
32
+ function $007CKeyValue$007C_$007C(input) {
33
+ let Key;
34
+ if (input.tag === /* Line */
35
+ 2) {
36
+ const s = input.fields[0];
37
+ const m = match(/^(?<key>[^\{{\[]+):\s+(?<value>(.*))$/gu, trimForPattern(s));
38
+ if (m != null) {
39
+ const v = (m.groups && m.groups.value || "").trim();
40
+ return Key = m.groups && m.groups.key || "", {
41
+ Indent: leadingIndent(s),
42
+ Key,
43
+ Value: v
44
+ };
45
+ } else {
46
+ return void 0;
47
+ }
48
+ } else {
49
+ return void 0;
50
+ }
51
+ }
52
+ function $007CYamlValue$007C_$007C(input) {
53
+ if (input.tag === /* Line */
54
+ 2) {
55
+ const s = input.fields[0];
56
+ const line = trimForPattern(s);
57
+ const m = match(create(ValuePattern), line);
58
+ if (m != null) {
59
+ let comment;
60
+ const v = m.groups && m.groups.comment || "";
61
+ comment = v === "" ? void 0 : parse(v, 511, false, 32);
62
+ const v_1 = (m.groups && m.groups.value || "").trim();
63
+ return {
64
+ Comment: unwrap(comment),
65
+ Indent: leadingIndent(s),
66
+ Value: v_1
67
+ };
68
+ } else {
69
+ return void 0;
70
+ }
71
+ } else {
72
+ return void 0;
73
+ }
74
+ }
75
+ function $007CYamlComment$007C_$007C(input) {
76
+ if (input.tag === /* Line */
77
+ 2) {
78
+ const line = trimForPattern(input.fields[0]);
79
+ const m = match(create(LineCommentPattern), line);
80
+ if (m != null) {
81
+ return {
82
+ Comment: parse(m.groups && m.groups.comment || "", 511, false, 32)
83
+ };
84
+ } else {
85
+ return void 0;
86
+ }
87
+ } else {
88
+ return void 0;
89
+ }
90
+ }
91
+ function $007CSequenceMinusOpener$007C_$007C(input) {
92
+ if (input.tag === /* Line */
93
+ 2) {
94
+ const s = input.fields[0];
95
+ const m = match(/^-(\s+(?<value>.*))?$/gu, trimForPattern(s));
96
+ if (m != null) {
97
+ let v_1;
98
+ const v = (m.groups && m.groups.value || "").trim();
99
+ v_1 = v === "" ? void 0 : v;
100
+ return {
101
+ Indent: leadingIndent(s),
102
+ Value: unwrap(v_1)
103
+ };
104
+ } else {
105
+ return void 0;
106
+ }
107
+ } else {
108
+ return void 0;
109
+ }
110
+ }
111
+ function $007CFlowStyleArray$007C_$007C(input) {
112
+ let v;
113
+ if (input.tag === /* Line */
114
+ 2) {
115
+ const line = trimForPattern(input.fields[0]);
116
+ const m = match(create(FlowStyleArrayPattern), line);
117
+ if (m != null) {
118
+ return {
119
+ Comment: unwrap((v = m.groups && m.groups.comment || "", v === "" ? void 0 : parse(v, 511, false, 32))),
120
+ Value: m.groups && m.groups.inlineSequence || ""
121
+ };
122
+ } else {
123
+ return void 0;
124
+ }
125
+ } else {
126
+ return void 0;
127
+ }
128
+ }
129
+ const $007CInlineSequence$007C_$007C = $007CFlowStyleArray$007C_$007C;
130
+ function $007CSequenceSquareOpener$007C_$007C(input) {
131
+ let v;
132
+ if (input.tag === /* Line */
133
+ 2) {
134
+ const line = trimForPattern(input.fields[0]);
135
+ const m = match(create(SequenceOpenerPattern), line);
136
+ if (m != null) {
137
+ return {
138
+ Comment: unwrap((v = m.groups && m.groups.comment || "", v === "" ? void 0 : parse(v, 511, false, 32)))
139
+ };
140
+ } else {
141
+ return void 0;
142
+ }
143
+ } else {
144
+ return void 0;
145
+ }
146
+ }
147
+ function $007CSequenceSquareCloser$007C_$007C(input) {
148
+ let v;
149
+ if (input.tag === /* Line */
150
+ 2) {
151
+ const line = trimForPattern(input.fields[0]);
152
+ const m = match(create(SequenceCloserPattern), line);
153
+ if (m != null) {
154
+ return {
155
+ Comment: unwrap((v = m.groups && m.groups.comment || "", v === "" ? void 0 : parse(v, 511, false, 32)))
156
+ };
157
+ } else {
158
+ return void 0;
159
+ }
160
+ } else {
161
+ return void 0;
162
+ }
163
+ }
164
+ function $007CFlowStyleObject$007C_$007C(input) {
165
+ let v;
166
+ if (input.tag === /* Line */
167
+ 2) {
168
+ const line = trimForPattern(input.fields[0]);
169
+ const m = match(create(FlowStyleObjectPattern), line);
170
+ if (m != null) {
171
+ return {
172
+ Comment: unwrap((v = m.groups && m.groups.comment || "", v === "" ? void 0 : parse(v, 511, false, 32))),
173
+ Value: m.groups && m.groups.inlineSequence || ""
174
+ };
175
+ } else {
176
+ return void 0;
177
+ }
178
+ } else {
179
+ return void 0;
180
+ }
181
+ }
182
+ const $007CInlineJSON$007C_$007C = $007CFlowStyleObject$007C_$007C;
183
+ function $007CFlowStyleObjectOpener$007C_$007C(input) {
184
+ let v;
185
+ if (input.tag === /* Line */
186
+ 2) {
187
+ const line = trimForPattern(input.fields[0]);
188
+ const m = match(create(FlowStyleObjectOpenerPattern), line);
189
+ if (m != null) {
190
+ return {
191
+ Comment: unwrap((v = m.groups && m.groups.comment || "", v === "" ? void 0 : parse(v, 511, false, 32))),
192
+ Key: m.groups && m.groups.key || ""
193
+ };
194
+ } else {
195
+ return void 0;
196
+ }
197
+ } else {
198
+ return void 0;
199
+ }
200
+ }
201
+ const $007CJSONKeyOpener$007C_$007C = $007CFlowStyleObjectOpener$007C_$007C;
202
+ function $007CFlowStyleObjectCloser$007C_$007C(input) {
203
+ let v;
204
+ if (input.tag === /* Line */
205
+ 2) {
206
+ const line = trimForPattern(input.fields[0]);
207
+ const m = match(create(FlowStyleObjectCloserPattern), line);
208
+ if (m != null) {
209
+ return {
210
+ Comment: unwrap((v = m.groups && m.groups.comment || "", v === "" ? void 0 : parse(v, 511, false, 32)))
211
+ };
212
+ } else {
213
+ return void 0;
214
+ }
215
+ } else {
216
+ return void 0;
217
+ }
218
+ }
219
+ const $007CJSONCloser$007C_$007C = $007CFlowStyleObjectCloser$007C_$007C;
220
+ function $007CSchemaNamespace$007C_$007C(input) {
221
+ if (input.tag === /* Line */
222
+ 2) {
223
+ const m = match(/^\$(?<key>[a-zA-Z0-9\s:]+):$/gu, trimForPattern(input.fields[0]));
224
+ if (m != null) {
225
+ return {
226
+ Key: m.groups && m.groups.key || ""
227
+ };
228
+ } else {
229
+ return void 0;
230
+ }
231
+ } else {
232
+ return void 0;
233
+ }
234
+ }
235
+ function $007CDocumentEnd$007C_$007C(input) {
236
+ let matchResult, s_1;
237
+ if (input.tag === /* Line */
238
+ 2) {
239
+ if (isDocumentEnd(input.fields[0])) {
240
+ matchResult = 0;
241
+ s_1 = input.fields[0];
242
+ } else {
243
+ matchResult = 1;
244
+ }
245
+ } else {
246
+ matchResult = 1;
247
+ }
248
+ switch (matchResult) {
249
+ case 0:
250
+ return some(void 0);
251
+ default:
252
+ return void 0;
253
+ }
254
+ }
255
+ function $007CWithAnchor$007C_$007C(input) {
256
+ const m = match(create(AnchorPattern), input);
257
+ if (m != null) {
258
+ return m.groups && m.groups.anchor || "";
259
+ } else {
260
+ return void 0;
261
+ }
262
+ }
263
+ function $007CAliasNode$007C_$007C(input) {
264
+ if (input.tag === /* Line */
265
+ 2) {
266
+ const s = input.fields[0];
267
+ const m = match(create(AliasPattern), s.trim());
268
+ if (m != null) {
269
+ return m.groups && m.groups.alias || "";
270
+ } else {
271
+ return void 0;
272
+ }
273
+ } else {
274
+ return void 0;
275
+ }
276
+ }
277
+ function $007CVerbatimTag$007C_$007C(input) {
278
+ const m = match(create(VerbatimTagPattern), input);
279
+ if (m != null) {
280
+ return m.groups && m.groups.tag || "";
281
+ } else {
282
+ return void 0;
283
+ }
284
+ }
285
+ function $007CExplicitKey$007C_$007C(input) {
286
+ if (input.tag === /* Line */
287
+ 2) {
288
+ const line = trimForPattern(input.fields[0]);
289
+ if (line.startsWith("?")) {
290
+ const value = substring(line, 1).trim();
291
+ return some(value === "" ? void 0 : value);
292
+ } else {
293
+ return void 0;
294
+ }
295
+ } else {
296
+ return void 0;
297
+ }
298
+ }
299
+ function $007CExplicitValue$007C_$007C(input) {
300
+ if (input.tag === /* Line */
301
+ 2) {
302
+ const line = trimForPattern(input.fields[0]);
303
+ if (line.startsWith(":")) {
304
+ return substring(line, 1).trim();
305
+ } else {
306
+ return void 0;
307
+ }
308
+ } else {
309
+ return void 0;
310
+ }
311
+ }
312
+
313
+ export { $007CAliasNode$007C_$007C, $007CDocumentEnd$007C_$007C, $007CExplicitKey$007C_$007C, $007CExplicitValue$007C_$007C, $007CFlowStyleArray$007C_$007C, $007CFlowStyleObject$007C_$007C, $007CFlowStyleObjectCloser$007C_$007C, $007CFlowStyleObjectOpener$007C_$007C, $007CInlineJSON$007C_$007C, $007CInlineSequence$007C_$007C, $007CJSONCloser$007C_$007C, $007CJSONKeyOpener$007C_$007C, $007CKey$007C_$007C, $007CKeyValue$007C_$007C, $007CSchemaNamespace$007C_$007C, $007CSequenceMinusOpener$007C_$007C, $007CSequenceSquareCloser$007C_$007C, $007CSequenceSquareOpener$007C_$007C, $007CVerbatimTag$007C_$007C, $007CWithAnchor$007C_$007C, $007CYamlComment$007C_$007C, $007CYamlValue$007C_$007C };
@@ -0,0 +1,60 @@
1
+ import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
2
+ import { getEnumerator, disposeSafe } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
3
+
4
+ class StringBuffer {
5
+ constructor() {
6
+ this.chars = [];
7
+ }
8
+ toString() {
9
+ const _ = this;
10
+ return _.chars.slice().join("");
11
+ }
12
+ }
13
+ function StringBuffer_$reflection() {
14
+ return class_type("YAMLicious.StringBuffer.StringBuffer", void 0, StringBuffer);
15
+ }
16
+ function StringBuffer_$ctor() {
17
+ return new StringBuffer();
18
+ }
19
+ function StringBuffer__get_Length(_) {
20
+ return _.chars.length;
21
+ }
22
+ function StringBuffer__get_Item_Z524259A4(_, i) {
23
+ return _.chars[i];
24
+ }
25
+ function StringBuffer__Append_244C7CD6(this$, c) {
26
+ void this$.chars.push(c);
27
+ return this$;
28
+ }
29
+ function StringBuffer__Append_Z721C83C5(this$, s) {
30
+ const enumerator = getEnumerator(s.split(""));
31
+ try {
32
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
33
+ const c = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
34
+ void this$.chars.push(c);
35
+ }
36
+ } finally {
37
+ disposeSafe(enumerator);
38
+ }
39
+ return this$;
40
+ }
41
+ function StringBuffer__AppendLine_Z721C83C5(this$, s) {
42
+ const enumerator = getEnumerator(s.split(""));
43
+ try {
44
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
45
+ const c = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
46
+ void this$.chars.push(c);
47
+ }
48
+ } finally {
49
+ disposeSafe(enumerator);
50
+ }
51
+ void this$.chars.push("\n");
52
+ return this$;
53
+ }
54
+ function StringBuffer__TrimEndWhitespace(_) {
55
+ while (_.chars.length > 0 && (_.chars[_.chars.length - 1] === " " ? true : _.chars[_.chars.length - 1] === " ")) {
56
+ _.chars.splice(_.chars.length - 1, 1);
57
+ }
58
+ }
59
+
60
+ export { StringBuffer, StringBuffer_$ctor, StringBuffer_$reflection, StringBuffer__AppendLine_Z721C83C5, StringBuffer__Append_244C7CD6, StringBuffer__Append_Z721C83C5, StringBuffer__TrimEndWhitespace, StringBuffer__get_Item_Z524259A4, StringBuffer__get_Length };