datastake-daf 0.6.229 → 0.6.230
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/dist/components/index.js +466 -440
- package/dist/utils/index.js +441 -414
- package/package.json +1 -1
- package/src/@daf/core/components/Dashboard/Widget/ProjectWidget/ProjectWidget.stories.jsx +66 -85
- package/src/@daf/core/components/EditForm/components/DataLink/index.js +578 -631
- package/src/@daf/core/components/EditForm/storyConfig1.js +250 -69
- package/src/@daf/core/components/Icon/configs/Hedera01.js +16 -0
- package/src/@daf/core/components/Icon/configs/Records.js +15 -0
- package/src/@daf/core/components/Icon/configs/index.js +5 -1
- package/src/styles/components/_analysisView.scss +2 -31
- package/.env +0 -8
- package/.vscode/settings.json +0 -13
|
@@ -1,75 +1,256 @@
|
|
|
1
|
-
export const getApiBaseUrl = () => "http://192.168.4.
|
|
1
|
+
export const getApiBaseUrl = () => "http://192.168.4.65:4020";
|
|
2
2
|
|
|
3
3
|
export const getAppHeader = () => ({
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
Application: "sbg",
|
|
5
|
+
Language: "en",
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
export const storyData = {
|
|
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
|
-
|
|
9
|
+
getApiBaseUrl,
|
|
10
|
+
getAppHeader,
|
|
11
|
+
form: {
|
|
12
|
+
id: "financialManagement",
|
|
13
|
+
description: "",
|
|
14
|
+
icon: "",
|
|
15
|
+
position: 0,
|
|
16
|
+
show: true,
|
|
17
|
+
options: {
|
|
18
|
+
"id": "identification",
|
|
19
|
+
"position": 1,
|
|
20
|
+
|
|
21
|
+
"sectoralScope": {
|
|
22
|
+
"_id": "68caccdb5a424c6d3b2492be",
|
|
23
|
+
"id": "675385c3-69ea-49ee-920e-b0de30af48ba",
|
|
24
|
+
"dataId": "sectoralScope",
|
|
25
|
+
"section": "identification",
|
|
26
|
+
"type": "select",
|
|
27
|
+
"meta": {
|
|
28
|
+
"comment": false,
|
|
29
|
+
"notApplicable": false,
|
|
30
|
+
"notAvailable": false,
|
|
31
|
+
"mandatory": true,
|
|
32
|
+
"store": {
|
|
33
|
+
"stakeholder": {
|
|
34
|
+
"global": true,
|
|
35
|
+
"path": "category"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"position": 3,
|
|
40
|
+
"rules": [
|
|
41
|
+
{
|
|
42
|
+
"required": true,
|
|
43
|
+
"message": "errors::field is required"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"scope": [
|
|
47
|
+
"modalStraatos",
|
|
48
|
+
"straatosProject",
|
|
49
|
+
"projectDetails",
|
|
50
|
+
"project"
|
|
51
|
+
],
|
|
52
|
+
"label": "Sectoral Scope",
|
|
53
|
+
"options": [
|
|
54
|
+
{
|
|
55
|
+
"label": "Agriculture, Forestry and Other Land Use (AFOLU)",
|
|
56
|
+
"value": "agricultureForestryAndOtherLandUse"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"label": "Energy (renewable/non-renewable)",
|
|
60
|
+
"value": "energy",
|
|
61
|
+
"disabled": true
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"label": "Energy distribution",
|
|
65
|
+
"value": "energyDistribution",
|
|
66
|
+
"disabled": true
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"label": "Energy demand",
|
|
70
|
+
"value": "energyDemand",
|
|
71
|
+
"disabled": true
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"label": "Manufacturing industries",
|
|
75
|
+
"value": "manufacturingIndustries",
|
|
76
|
+
"disabled": true
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"label": "Chemical industry",
|
|
80
|
+
"value": "chemicalIndustry",
|
|
81
|
+
"disabled": true
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"label": "Construction",
|
|
85
|
+
"value": "construction",
|
|
86
|
+
"disabled": true
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"label": "Transport",
|
|
90
|
+
"value": "transport",
|
|
91
|
+
"disabled": true
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"label": "Mining/mineral production",
|
|
95
|
+
"value": "miningMineralProduction",
|
|
96
|
+
"disabled": true
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"label": "Metal production",
|
|
100
|
+
"value": "metalProduction",
|
|
101
|
+
"disabled": true
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"label": "Fugitive emissions from fuels (solid, oil, and gas)",
|
|
105
|
+
"value": "fugitiveEmissionsFromFuels",
|
|
106
|
+
"disabled": true
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"label": "Fugitive emissions from industrial gases (halocarbons and sulphur hexafluoride)",
|
|
110
|
+
"value": "fugitiveEmissionsFromIndustrialGases",
|
|
111
|
+
"disabled": true
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"label": "Solvent use",
|
|
115
|
+
"value": "solventUse",
|
|
116
|
+
"disabled": true
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"label": "Waste handling and disposal",
|
|
120
|
+
"value": "wasteHandlingAndDisposal",
|
|
121
|
+
"disabled": true
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"label": "Livestock and manure management",
|
|
125
|
+
"value": "livestockAndManureManagement",
|
|
126
|
+
"disabled": true
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"label": "Carbon capture and storage",
|
|
130
|
+
"value": "carbonCaptureAndStorage",
|
|
131
|
+
"disabled": true
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"createdAt": "2025-09-17T14:59:42.118Z",
|
|
135
|
+
"updatedAt": "2025-09-17T14:59:42.118Z",
|
|
136
|
+
"__v": 0
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
"label": "Identification",
|
|
140
|
+
"subTitle": "Identification"
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
data: {
|
|
144
|
+
location: [
|
|
145
|
+
{
|
|
146
|
+
_id: "689f1086cd1642955475a45e",
|
|
147
|
+
form: "location",
|
|
148
|
+
id: "f276986a-5b41-45bf-b02b-61e79c42cf50",
|
|
149
|
+
parent: {
|
|
150
|
+
_id: "689f1086cd1642955475a462",
|
|
151
|
+
createdAt: "2025-08-15T10:48:38.719Z",
|
|
152
|
+
updatedAt: "2025-08-15T10:48:38.719Z",
|
|
153
|
+
id: "e006842b-b9bb-431f-b9b9-184e82e324b4",
|
|
154
|
+
name: "test 999444444",
|
|
155
|
+
authorId: "df5378ae-704a-4a46-93b2-336cc5341456",
|
|
156
|
+
collectId: "93ed3cfd5abf671367ca3116d8bdcb429ca55d16",
|
|
157
|
+
country: "AX",
|
|
158
|
+
category: "plot",
|
|
159
|
+
datastakeId: "LOC-00000000295",
|
|
160
|
+
__v: 0,
|
|
161
|
+
},
|
|
162
|
+
perimeter: [
|
|
163
|
+
[58.313817167753996, 18.413085937500004],
|
|
164
|
+
[59.2700913303328, 17.270507812500004],
|
|
165
|
+
[59.18015006492145, 16.479492187500004],
|
|
166
|
+
],
|
|
167
|
+
name: "test 999444444",
|
|
168
|
+
country: "AX",
|
|
169
|
+
category: "plot",
|
|
170
|
+
authorId: "df5378ae-704a-4a46-93b2-336cc5341456",
|
|
171
|
+
published: false,
|
|
172
|
+
version: 1,
|
|
173
|
+
datastakeId: "LOC-00000000295",
|
|
174
|
+
pictures: [],
|
|
175
|
+
documents: [],
|
|
176
|
+
associatedSubjects: [
|
|
177
|
+
{
|
|
178
|
+
entity: "PlantingCycle",
|
|
179
|
+
_id: {},
|
|
180
|
+
nature: "location",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
entity: "PlantingCycle",
|
|
184
|
+
_id: {},
|
|
185
|
+
nature: "location",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
entity: "PlantingCycle",
|
|
189
|
+
_id: {},
|
|
190
|
+
nature: "location",
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
createdAt: "2025-08-15",
|
|
194
|
+
updatedAt: "2025-08-15",
|
|
195
|
+
__v: 0,
|
|
196
|
+
label: "test 999444444",
|
|
197
|
+
value: "689f1086cd1642955475a45e",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
_id: "689f1135cd1642955475a594",
|
|
201
|
+
form: "location",
|
|
202
|
+
id: "d60984d5-e79a-474f-8c6d-b9d4256f0357",
|
|
203
|
+
parent: {
|
|
204
|
+
_id: "689f1135cd1642955475a59b",
|
|
205
|
+
createdAt: "2025-08-15T10:51:33.758Z",
|
|
206
|
+
updatedAt: "2025-08-15T10:51:33.758Z",
|
|
207
|
+
id: "818f4b75-2212-47e4-b07e-52a7e6454568",
|
|
208
|
+
name: "edd",
|
|
209
|
+
authorId: "df5378ae-704a-4a46-93b2-336cc5341456",
|
|
210
|
+
collectId: "79af2232d97ef4ae6b435b1d22997a978b5e2f47",
|
|
211
|
+
country: "AX",
|
|
212
|
+
administrativeLevel1: null,
|
|
213
|
+
administrativeLevel2: null,
|
|
214
|
+
category: "plot",
|
|
215
|
+
datastakeId: "LOC-00000000296",
|
|
216
|
+
__v: 0,
|
|
217
|
+
},
|
|
218
|
+
perimeter: [
|
|
219
|
+
[59.98229931379975, 17.228966156671063],
|
|
220
|
+
[59.98229931379975, 17.565517949147456],
|
|
221
|
+
[59.77480258556264, 17.53667065264947],
|
|
222
|
+
],
|
|
223
|
+
administrativeLevel1: null,
|
|
224
|
+
administrativeLevel2: null,
|
|
225
|
+
name: "edd",
|
|
226
|
+
country: "AX",
|
|
227
|
+
category: "plot",
|
|
228
|
+
authorId: "df5378ae-704a-4a46-93b2-336cc5341456",
|
|
229
|
+
gps: null,
|
|
230
|
+
published: false,
|
|
231
|
+
version: 1,
|
|
232
|
+
datastakeId: "LOC-00000000296",
|
|
233
|
+
pictures: [],
|
|
234
|
+
documents: [],
|
|
235
|
+
associatedSubjects: [
|
|
236
|
+
{
|
|
237
|
+
entity: "Event",
|
|
238
|
+
_id: {},
|
|
239
|
+
nature: "location",
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
entity: "PlantingCycle",
|
|
243
|
+
_id: {},
|
|
244
|
+
nature: "location",
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
projectId: "PRJ-00000000107",
|
|
248
|
+
createdAt: "2025-08-15T10:51:33.758Z",
|
|
249
|
+
updatedAt: "2025-08-15T10:51:33.758Z",
|
|
250
|
+
__v: 0,
|
|
251
|
+
label: "edd",
|
|
252
|
+
value: "689f1135cd1642955475a594",
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
},
|
|
75
256
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const config = {
|
|
2
|
+
viewBox: "0 0 33 33",
|
|
3
|
+
children: (
|
|
4
|
+
<>
|
|
5
|
+
<path
|
|
6
|
+
d="M16.5216 0.376038C19.6645 0.375295 22.737 1.30661 25.3505 3.05219C27.9641 4.79777 30.0012 7.27921 31.2044 10.1827C32.4075 13.0861 32.7226 16.2812 32.1098 19.3637C31.497 22.4462 29.9838 25.2778 27.7616 27.5003C25.5394 29.7228 22.708 31.2363 19.6255 31.8495C16.543 32.4627 13.3479 32.148 10.4443 30.9452C7.54075 29.7424 5.05907 27.7055 3.31318 25.0921C1.56729 22.4788 0.635615 19.4064 0.635986 16.2636C0.636484 12.0504 2.31025 8.00993 5.28922 5.0306C8.2682 2.05127 12.3085 0.377034 16.5216 0.376038ZM12.1788 17.2385H21.0617V15.0276H12.1788V17.2385ZM22.989 23.1348H20.9659V18.8464H12.083V23.1348H10.0656V9.23458H12.083V13.4234H20.9659V9.22895H22.989V23.1348Z"
|
|
7
|
+
fill="#384250"
|
|
8
|
+
clipRule="evenodd"
|
|
9
|
+
fillRule="evenodd"
|
|
10
|
+
/>
|
|
11
|
+
</>
|
|
12
|
+
),
|
|
13
|
+
tag: ["circle"],
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default config;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const config = {
|
|
2
|
+
viewBox: "0 0 13 13",
|
|
3
|
+
children: (
|
|
4
|
+
<>
|
|
5
|
+
<path
|
|
6
|
+
d="M12.1887 6.84023C12.0099 8.51948 11.0584 10.0931 9.484 11.0021C6.8682 12.5123 3.52338 11.6161 2.01314 9.00029L1.85229 8.72168M1.31035 5.69128C1.48909 4.01202 2.44057 2.4384 4.015 1.5294C6.63081 0.0191672 9.97563 0.915408 11.4859 3.53121L11.6467 3.80982M1.27625 10.1687L1.74726 8.41084L3.50511 8.88186M9.99395 3.64962L11.7518 4.12063L12.2228 2.36278M6.74953 3.37036V6.26574L8.35807 7.23086"
|
|
7
|
+
stroke="currentColor"
|
|
8
|
+
strokeLinecap="round"
|
|
9
|
+
strokeLinejoin="round"
|
|
10
|
+
/>
|
|
11
|
+
</>
|
|
12
|
+
),
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default config;
|
|
@@ -205,6 +205,8 @@ import Briefcase from "./Briefcase";
|
|
|
205
205
|
import Certificate from "./Certificate";
|
|
206
206
|
import LinkChain from "./LinkChain";
|
|
207
207
|
import Robot from "./Robot";
|
|
208
|
+
import Hedera01 from "./Hedera01";
|
|
209
|
+
import Records from "./Records";
|
|
208
210
|
|
|
209
211
|
const config = {
|
|
210
212
|
Right,
|
|
@@ -413,7 +415,9 @@ const config = {
|
|
|
413
415
|
Briefcase,
|
|
414
416
|
Certificate,
|
|
415
417
|
LinkChain,
|
|
416
|
-
Robot
|
|
418
|
+
Robot,
|
|
419
|
+
Hedera01,
|
|
420
|
+
Records
|
|
417
421
|
};
|
|
418
422
|
|
|
419
423
|
export default config;
|
|
@@ -191,8 +191,7 @@
|
|
|
191
191
|
.content {
|
|
192
192
|
width: 100%;
|
|
193
193
|
flex: 1;
|
|
194
|
-
|
|
195
|
-
overflow-y: auto;
|
|
194
|
+
overflow: auto;
|
|
196
195
|
display: flex;
|
|
197
196
|
|
|
198
197
|
.view-content {
|
|
@@ -302,7 +301,6 @@
|
|
|
302
301
|
.daf-analysis-layout {
|
|
303
302
|
display: flex;
|
|
304
303
|
flex-direction: column;
|
|
305
|
-
overflow-x: hidden; // Dont make the page overflow
|
|
306
304
|
|
|
307
305
|
.go-select-cont {
|
|
308
306
|
padding: var(--size-lg);
|
|
@@ -357,7 +355,6 @@
|
|
|
357
355
|
display: flex;
|
|
358
356
|
flex-wrap: wrap;
|
|
359
357
|
gap: var(--size-lg);
|
|
360
|
-
|
|
361
358
|
//FUTURE ILVI - remove this
|
|
362
359
|
@media (max-width: 850px) {
|
|
363
360
|
flex-direction: column;
|
|
@@ -367,7 +364,6 @@
|
|
|
367
364
|
.widget {
|
|
368
365
|
flex: 1;
|
|
369
366
|
|
|
370
|
-
|
|
371
367
|
&.dds-widget {
|
|
372
368
|
min-width: 400px;
|
|
373
369
|
}
|
|
@@ -378,31 +374,6 @@
|
|
|
378
374
|
flex-wrap: nowrap;
|
|
379
375
|
}
|
|
380
376
|
|
|
381
|
-
.horizontal-scroll {
|
|
382
|
-
overflow-x: auto;
|
|
383
|
-
overflow-y: hidden;
|
|
384
|
-
scrollbar-width: thin;
|
|
385
|
-
scrollbar-color: #c1c1c1 #f1f1f1;
|
|
386
|
-
|
|
387
|
-
&::-webkit-scrollbar {
|
|
388
|
-
height: 8px;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
&::-webkit-scrollbar-track {
|
|
392
|
-
background: #f1f1f1;
|
|
393
|
-
border-radius: 4px;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
&::-webkit-scrollbar-thumb {
|
|
397
|
-
background: #c1c1c1;
|
|
398
|
-
border-radius: 4px;
|
|
399
|
-
|
|
400
|
-
&:hover {
|
|
401
|
-
background: #a8a8a8;
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
|
|
406
377
|
&.own-data-collapsed {
|
|
407
378
|
.overflow-section {
|
|
408
379
|
max-width: calc(100vw - 48px - 250px);
|
|
@@ -527,4 +498,4 @@
|
|
|
527
498
|
}
|
|
528
499
|
}
|
|
529
500
|
}
|
|
530
|
-
}
|
|
501
|
+
}
|
package/.env
DELETED
package/.vscode/settings.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"cSpell.words": ["cukura"],
|
|
3
|
-
"files.autoSave": "afterDelay",
|
|
4
|
-
"editor.wordWrap": "on",
|
|
5
|
-
"editor.autoClosingBrackets": "always",
|
|
6
|
-
"editor.autoClosingComments": "always",
|
|
7
|
-
"editor.autoClosingQuotes": "always",
|
|
8
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
9
|
-
"editor.formatOnPaste": true,
|
|
10
|
-
"editor.formatOnSave": true,
|
|
11
|
-
"notebook.defaultFormatter": "esbenp.prettier-vscode",
|
|
12
|
-
"javascript.format.semicolons": "insert"
|
|
13
|
-
}
|