-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
1578 lines (1542 loc) · 45.2 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<script setup>
import { ref, computed } from "vue";
import { dataTypes } from "./helpers/helpers";
import { stacToForm, formToStac } from "./helpers/converters";
import LazyList from "lazy-load-list/vue";
import licenses from "./helpers/licenses.json";
import languages from "./helpers/languages.json";
import { FormKitIcon } from "@formkit/vue";
import { vAutoAnimate } from "@formkit/auto-animate";
import { FormKitMessages } from "@formkit/vue";
const config = useRuntimeConfig();
const filterText = ref("");
const owner = config.public.owner;
const validateTimeStep = (node) => {
for (const childName in node.value) {
if (
!isNaN(node.value[childName]) &&
!isNaN(parseFloat(node.value[childName]))
) {
return true;
}
}
return false;
};
const { status, data: items } = await useFetch(
"/api/item-requests/items",
{
headers: {
"content-type": "application/json",
"x-user": owner,
"x-FairicubeOwner": true,
},
lazy: true,
}
);
const data = computed(() => items.value?.items ?? []);
const members = computed(() => items.value?.members ?? []);
const itemsIdentifiers = computed(() => {
let ids = [];
if (data.value.length > 0) {
data.value.map((item) => ids.push(item.name));
}
return ids;
});
const filteredProduct = computed(() => {
let filter = filterText.value;
if (!filter.length) return data.value;
return data.value.filter((item) =>
item.name.toLowerCase().includes(filter.toLowerCase())
);
});
/// TODO need to set the initial values so that it could be edited from the server
let product = ref({});
const stacIsNew = ref(true);
const showList = ref(true);
const showModal = ref(false);
const showBackModal = ref(false);
const showBboxError = ref(false);
const showForm = ref(false);
const editForm = async (item) => {
const itemData = await useFetch(
`/api/item-requests/${item.name}`,
{
method: "POST",
body: JSON.stringify({ item }),
headers: {
"content-type": "application/json",
"x-user": owner,
"x-FairicubeOwner": true,
},
}
);
const stacData = itemData.data._rawValue.stac;
product = stacToForm(stacData);
product.members = members.value;
product.assignees = JSON.parse(JSON.stringify(item)).assignees;
stacIsNew.value = false;
showForm.value = true;
showList.value = false;
};
const createForm = () => {
product = ref({
horizontal_axis: {
regular: true,
},
vertical_axis: {
regular: true,
},
time_axis: {
regular: true,
},
});
stacIsNew.value = true;
showForm.value = true;
showList.value = false;
};
const backToList = () => {
product = ref({});
filterText.value = "";
showBackModal.value = false;
showForm.value = false;
showList.value = true;
};
const closeModal = () => {
showModal.value = false;
location.reload();
};
const openBackModal = () => {
showBackModal.value = true;
};
const closeBackModal = () => {
showBackModal.value = false;
location.reload();
};
const cancelBackModel = () => {
showBackModal.value = false;
};
const cancelBboxModel = () => {
showBboxError.value = false;
};
const useGlobeBound = (values) => {
showBboxError.value = false;
let formItems =
product.value && typeof product.value == "object" ? product.value : product;
formItems.horizontal_axis.bbox.x[0] = -180;
formItems.horizontal_axis.bbox.y[0] = -90;
formItems.horizontal_axis.bbox.x[1] = 180;
formItems.horizontal_axis.bbox.y[1] = 90;
formItems.horizontal_axis.horizontal_crs = 4326;
submit(formItems);
};
const identifier_exists = ({ value }) => {
return new Promise((resolve) => {
setTimeout(
() =>
resolve(!stacIsNew.value || !itemsIdentifiers.value.includes(value)),
200
);
});
};
const distinct = (node) =>
!node.value.includes("/") && !node.value.includes(" ");
let licensesData = [{ label: "Other", value: "proprietary" }];
const createLicenses = licenses.licenses.map((license) => {
licensesData.push({ label: license.name, value: license.licenseId });
});
let languagesData = [{ label: "Multiple", value: "Multiple" }];
const createLanguages = Object.keys(languages).map((language) =>
languagesData.push({ label: language, value: language })
);
async function submit(values) {
if (values.horizontal_axis.regular) {
if (values.horizontal_axis.bbox === undefined) {
values.horizontal_axis.bbox = { x: [null, null], y: [null, null] };
}
let submittedBbox = [
values.horizontal_axis.bbox.x[0],
values.horizontal_axis.bbox.y[0],
values.horizontal_axis.bbox.x[1],
values.horizontal_axis.bbox.y[1],
];
let hasNoNullValues =
!submittedBbox.includes(undefined) && !submittedBbox.includes(null);
if (!hasNoNullValues) {
showBboxError.value = true;
return;
}
}
const submitStac = await formToStac(values);
const request = await useFetch(
`/api/item-requests/stac_dist/${submitStac.stac.id}.json`,
{
onRequest({ req, options }) {
options.method = "PUT";
options.body = JSON.stringify(submitStac);
options.headers = {
"content-type": "application/json",
"x-user": owner,
"x-FairicubeOwner": true,
};
},
onResponse({ req, response }) {
if (response.status === 200) {
showModal.value = true;
// backToList();
}
},
onResponseError({ req, response }) {
// Handle the response errors
},
}
);
}
</script>
<template>
<div class="modal-overlay title" v-show="showModal">
<div class="modal">
<img
class="check"
src="https://fairicube.nilu.no/wp-content/uploads/sites/21/2022/09/fairicube_logo_footer_400x297.png"
alt=""
/>
<img
class="check"
src="~/assets/img/check.png"
style="max-width: 50% !important"
alt=""
/>
<p>Successfully submitted STAC data</p>
<FormKit
type="button"
label="Close"
style="background-color: gray"
@click="closeModal"
/>
</div>
</div>
<div class="modal-overlay title" v-show="showBboxError">
<div class="modal" style="height: 300px">
<img
class="check"
src="~/assets/img/warning.png"
style="size: 50%"
alt=""
/>
<h6>WARNING</h6>
<p>
Projection error!, please check input bbox values. by clicking continue,
Global world bounds in WGS84 will be used in the generated STAC item.
</p>
<div style="display: flex">
<FormKit
type="button"
label="Continue"
style="background-color: gray"
@click="useGlobeBound"
/>
<FormKit
type="button"
label="Cancel"
style="background-color: gray"
@click="cancelBboxModel"
/>
</div>
</div>
</div>
<div class="modal-overlay title" v-show="showBackModal">
<div class="modal" style="height: 300px">
<img
class="check"
src="~/assets/img/warning.png"
style="size: 50%"
alt=""
/>
<h6>WARNING</h6>
<p>By clicking the Back-Button, all recent changes will be lost!</p>
<div style="display: flex">
<FormKit
type="button"
label="Back"
style="background-color: Red"
@click="backToList"
/>
<FormKit
type="button"
label="Cancel"
style="background-color: gray"
@click="cancelBackModel"
/>
</div>
</div>
</div>
<div class="github-issue-form">
<img
src="https://fairicube.nilu.no/wp-content/uploads/sites/21/2022/09/fairicube_logo_footer_400x297.png"
alt="Fairicube Logo"
width="244"
height="50"
class="logo"
/>
<div class="github-issue-form" v-show="showList">
<div class="bbox" style="align-items: flex-end">
<FormKit
type="search"
placeholder="Filter products"
label="Search"
v-model="filterText"
/>
<FormKit
type="button"
label="New"
style="background-color: green"
@click="createForm"
/>
</div>
<ClientOnly>
<LazyList
:data="filteredProduct"
:itemsPerRender="150"
containerClasses="list"
defaultLoadingColor="#222"
>
<template v-slot="{ item }">
<div
class="bbox"
style="align-items: baseline; flex-direction: row-reverse"
>
<p class="title" style="min-width: fit-content">
{{ item.name }}
</p>
<div style="display: flex">
<FormKit
type="button"
label="Edit"
suffix-icon="settings"
style="background-color: gray"
help=""
@click="editForm(item)"
/>
<a :href="item.pull" target="_blank" rel="noopener noreferrer">
<FormKit
v-if="item.pull"
type="button"
label="link"
suffix-icon="github"
style="background-color: black; max-width: inherit"
help=""
/>
</a>
</div>
</div>
</template>
</LazyList>
</ClientOnly>
</div>
<FormKit
type="form"
id="registration"
@submit="submit"
v-model="product"
#default="{ value, state: { dirty } }"
v-show="showForm"
dirty-behavior="compare"
:actions="false"
>
<FormKit type="button" label="back" @click="openBackModal" />
<FormKit
type="radio"
name="platform"
label="Target Platform"
:options="{
Eox: 'EOX',
Rasdaman: 'rasdaman',
Both: 'Both',
}"
validation="required"
/>
<h2 class="title">General</h2>
<FormKit
type="text"
name="title"
label="Title"
help="The title of the issue request"
validation="required"
/>
<FormKit
:disabled="!stacIsNew"
type="text"
name="identifier"
label="ID"
help="The ID of the requested stac item"
:validation-rules="{ identifier_exists, distinct }"
:validation-messages="{
identifier_exists:
'Sorry, this Id is duplicated. please Try another one.',
distinct: 'ID value must not contain spaces or slash (/) characters',
}"
validation="required | (500)identifier_exists | distinct"
/>
<FormKit
type="textarea"
name="description"
validation="?required"
validation-visibility="live"
:validation-messages="{
required:
'description is required, you can submit now successfully but the validation test will fail.',
}"
label="Description"
help="Brief, nontechnical explanation of the datacube."
/>
<FormKit type="text" name="dataSource" label="Data Source" />
<FormKit
type="text"
name="datasource_type"
label="Source Type"
help="The data source type"
validation="?required"
validation-visibility="live"
:validation-messages="{
required:
'Source Type value is required, you can submit now successfully but the validation test will fail.',
}"
/>
<FormKit type="group" name="general">
<FormKit type="text" name="area_cover" label="total area cover" />
<FormKit
type="text"
name="crs"
help="reference system number in EPSG format e.g(4326)"
label="CRS"
/>
</FormKit>
<FormKit
type="list"
dynamic
#default="{ items, node, value }"
name="assets"
v-if="product.platform !== 'Rasdaman'"
>
<h2 class="title">Assets</h2>
<FormKit
type="group"
v-for="(item, index) in items"
:key="item"
:index="index"
>
<div class="group form-group">
<FormKit
type="url"
label="Source"
name="href"
placeholder="https://www.example.com..."
help="The link to the source of the dataset."
/>
<FormKit
label="Role"
type="select"
name="roles"
placeholder="Select Asset's role"
:options="[
{
label: 'data',
value: 'data',
},
{
label: 'metadata',
value: 'metadata',
},
{
label: 'overview',
value: 'overview',
},
]"
/>
<FormKit
type="text"
name="name"
label="name"
help="The name of the data asset"
:validation-rules="{ distinct }"
:validation-messages="{
distinct:
'Asset name must not contain spaces or slash (/) characters',
}"
validation="distinct"
/>
<FormKit
type="button"
label="Remove"
style="background-color: red"
help="remove asset"
@click="() => node.input(value.filter((_, i) => i !== index))"
/>
</div>
</FormKit>
<br />
<FormKit
type="button"
label="+ Add asset"
help="Add another data asset"
@click="() => node.input(value.concat({}))"
/>
</FormKit>
<FormKit
type="list"
dynamic
#default="{ items, node, value }"
name="providers"
>
<h2 class="title">Organizations</h2>
<FormKit
type="group"
v-for="(item, index) in items"
:key="item"
:index="index"
>
<div class="group form-group">
<FormKit
type="text"
name="organization"
label="Organization"
validation="?require_one:organization_name"
validation-visibility="live"
:validation-messages="{
require_one:
'organization or name value is required, you can submit now successfully but the validation test will fail.',
}"
help="The name of the organization which produced the dataset."
/>
<FormKit
type="text"
name="organization_name"
label="Name"
validation="?require_one:organization"
validation-visibility="live"
:validation-messages="{
require_one:
'organization or name value is required, you can submit now successfully but the validation test will fail.',
}"
help="The name of the organization which produced the dataset."
/>
<FormKit
type="text"
name="organization_email"
label="Email"
help="The email of the organization which produced the dataset."
/>
<FormKit
type="text"
name="ORCID_ID"
label="ORCID ID"
help="ORCID ID"
/>
<FormKit
type="text"
name="project_purpose"
label="Project Purpose"
/>
<FormKit
label="Role"
type="select"
name="roles"
placeholder="Select organization role"
:options="[
{
label:
'licensor: The organization that is licensing the dataset under the license specified in the Collections license field',
value: 'licensor',
},
{
label:
'producer: The provider that initially captured and processed the source data',
value: 'producer',
},
{
label:
'processor: Any provider who processed data to a derived product.',
value: 'processor',
},
{
label:
'host: The actual provider offering the data on their storage. There should be no more than one host, specified as last element of the list.',
value: 'host',
},
]"
/>
<FormKit
type="url"
label="Documentation Link"
name="doc_link"
placeholder="https://www.example.com..."
validation="url"
/>
<FormKit type="textarea" name="comments" label="Comments" />
<FormKit
type="button"
label="Remove"
style="background-color: red"
help="remove organization"
@click="() => node.input(value.filter((_, i) => i !== index))"
/>
</div>
</FormKit>
<br />
<FormKit
type="button"
label="+ Add Organizations"
help="Add another organization"
@click="() => node.input(value.concat({}))"
/>
</FormKit>
<FormKit type="group" name="horizontal_axis">
<h2 class="title">Horizontal Axis</h2>
<FormKit
type="text"
name="horizontal_crs"
label="Horizontal CRS"
validation="?required"
validation-visibility="live"
:validation-messages="{
required:
'reference system is required, you can submit now successfully but the validation test will fail.',
}"
help="reference system number in EPSG format e.g(4326)"
placeholder="4326"
/>
<FormKit type="checkbox" name="regular" label="regular ?" />
<FormKit type="group" name="bbox">
<FormKit type="list" name="x">
<div class="bbox">
<h4 class="title" style="padding: 0.5em">BBOX</h4>
<br />
<FormKit
type="text"
label="bottom x bound"
number
validation="number|?required"
validation-visibility="live"
:validation-messages="{
required:
'all bbox values are required, you can submit now successfully but the validation test will fail.',
}"
placeholder="-180.0"
help="West Bound"
/>
<FormKit
type="text"
label="upper x bound"
number
validation="number|?required"
validation-visibility="live"
:validation-messages="{
required:
'all bbox values are required, you can submit now successfully but the validation test will fail.',
}"
placeholder="180.0"
help="East Boound"
/>
</div>
</FormKit>
<FormKit type="list" name="y">
<div class="bbox">
<h4 class="title" style="padding: 0.5em">BBOX</h4>
<br />
<FormKit
type="text"
label="bottom y bound"
number
validation="number|?required"
validation-visibility="live"
:validation-messages="{
required:
'all bbox values are required, you can submit now successfully but the validation test will fail.',
}"
placeholder="-90.0"
help="South Bound"
/>
<FormKit
type="text"
label="upper y bound"
number
validation="number|?required"
validation-visibility="live"
:validation-messages="{
required:
'all bbox values are required, you can submit now successfully but the validation test will fail.',
}"
placeholder="90.0"
help="North Bound"
/>
</div>
</FormKit>
<FormKit
type="text"
name="x_values"
label="X values"
v-if="!product.horizontal_axis.regular"
/>
<FormKit
type="text"
name="y_values"
label="Y values"
v-if="!product.horizontal_axis.regular"
/>
</FormKit>
<FormKit
type="text"
name="unit_of_measure"
validation="?required"
validation-visibility="live"
:validation-messages="{
required:
'unit of measure is required, you can submit now successfully but the validation test will fail.',
}"
label="Unit of Measure"
placeholder="degree"
/>
<FormKit
type="text"
name="interpolation"
label="Interpolation/Aggregation"
/>
<FormKit
type="text"
name="x_resolution"
number
validation="number|?required"
validation-visibility="live"
:validation-messages="{
required:
'resolution as a float is required, you can submit now successfully but the validation test will fail.',
}"
label="X Resolution"
help="Resolution. Should be 1 value as required by UC, not all resolutions of dataset"
/>
<FormKit
type="text"
number
validation="number|?required"
validation-visibility="live"
:validation-messages="{
required:
'resolution as a float is required, you can submit now successfully but the validation test will fail.',
}"
name="y_resolution"
label="Y Resolution"
help="Resolution. Should be 1 value as required by UC, not all resolutions of dataset"
/>
</FormKit>
<FormKit type="group" name="vertical_axis">
<h2 class="title">Vertical Axis</h2>
<FormKit
type="text"
name="vertical_crs"
label="Vertical CRS"
help="reference system number in EPSG format e.g(4326)"
placeholder="3855"
/>
<FormKit type="checkbox" name="regular" label="regular ?" />
<FormKit type="list" name="bbox" v-if="product.vertical_axis.regular">
<div class="bbox">
<h4 class="title" style="padding: 0.5em">Lower/Upper Bound</h4>
<br />
<FormKit
type="text"
label="bottom bound"
number
validation="number"
help="lower bound"
/>
<FormKit
type="text"
label="top bound"
number
validation="number"
help="Upper bound"
/>
</div>
</FormKit>
<FormKit
type="text"
name="values"
label="Vertical axis values"
v-if="!product.vertical_axis.regular"
/>
<FormKit
type="text"
name="unit_of_measure"
label="Unit of Measure"
placeholder="Meters"
/>
<FormKit
type="text"
name="interpolation"
label="Interpolation/Aggregation"
/>
<FormKit
type="text"
name="resolution"
label="Resolution"
help="Resolution (or 'irregular'). Should be 1 value as required by UC, not all resolutions of dataset"
/>
</FormKit>
<br />
<FormKit type="group" name="third">
<div class="bbox" style="flex-direction: column">
<FormKit type="checkbox" name="threeD" label="3D" />
<h2 class="title">Time Axis</h2>
</div>
</FormKit>
<FormKit
type="group"
name="time_axis"
v-if="product.third && product.third.threeD"
>
<div class="group form-group">
<FormKit type="checkbox" name="regular" label="regular ?" />
<FormKit
type="list"
name="bbox"
v-if="product.time_axis.regular"
validation="required"
>
<div class="bbox">
<h4 class="title" style="padding: 0.5em; padding-top: 0.5em">
Lower/Upper Bound
</h4>
<br />
<FormKit
type="datetime-local"
label="begin time"
step="1"
validation=""
/>
<FormKit
type="datetime-local"
label="end time"
step="1"
validation=""
/>
</div>
</FormKit>
<div v-auto-animate>
<FormKit
label="Values"
name="values"
type="list"
dynamic
#default="{ node, items, value }"
v-if="!product.time_axis.regular"
validation="required"
>
<div v-for="(item, index) in items" :key="item" class="todo">
<FormKit
type="datetime-local"
step="1"
style="max-width: fit-content"
name="datetime"
:index="index"
/>
<ul class="controls">
<li>
<button
type="button"
@click="
() => node.input(value.filter((_, i) => i !== index))
"
class="button close"
>
<FormKitIcon icon="close" />
</button>
</li>
</ul>
</div>
<FormKit
type="button"
style="background-color: gray"
@click="() => node.input(value.concat({}))"
>+</FormKit
>
</FormKit>
</div>
<FormKit
type="text"
name="unit_of_measure"
validation="?required"
validation-visibility="live"
:validation-messages="{
required:
'unit of measure is required, you can submit now successfully but the validation test will fail.',
}"
label="Unit of Measure"
placeholder="minute"
/>
<FormKit
type="text"
name="interpolation"
label="Interpolation/Aggregation"
/>
<FormKit
type="group"
v-if="product.time_axis.regular"
validation-visibility="live"
:validation-rules="{ validateTimeStep }"
validation="?validateTimeStep"
:validation-messages="{
validateTimeStep:
'Time resolution is required, you can submit now successfully but the validation test will fail.',
}"
id="timeGroup"
name="step"
label="Resolution"
help="Resolution. Should be 1 value as required by UC, not all resolutions of dataset"
>
<h4 class="title" style="padding: 0.5em; padding-top: 0.5em">
Resolution
</h4>
<div>
<FormKitMessages />
</div>
<div style="display: flex; flex-wrap: nowrap">
<FormKit
type="number"
number
min="0"
max="100"
step="1"
name="Y"
label="Years"
/>
<FormKit
type="number"
number
min="0"
max="12"
step="1"
name="M"
label="Months"
/>
<FormKit
type="number"
min="0"
max="30"
step="1"
number
name="D"
label="Days"
/>
<FormKit
type="number"
number
min="0"
max="24"
step="1"
name="H"
label="Hours"
/>
<FormKit
type="number"
min="0"
max="60"
step="1"
number
name="Ms"
label="Minutes"
/>
<FormKit
type="number"
min="0"
max="60"
step="1"
number
name="S"
label="Seconds"
/>
</div>
</FormKit>
</div>
</FormKit>
<FormKit
type="list"
dynamic
#default="{ items, node, value }"
name="other_dims"
>
<h2 class="title">Other Axis</h2>
<FormKit
type="group"
v-for="(item, index) in items"
:key="item"
:index="index"
>
<div class="group form-group">
<FormKit
type="text"
name="name"