datastake-daf 0.6.253 → 0.6.254
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/.env +8 -0
- package/.vscode/settings.json +13 -0
- package/dist/components/index.js +3 -2
- package/package.json +1 -1
- package/src/@daf/core/components/Dashboard/Widget/ProjectWidget/components/SdgList.jsx +6 -6
- package/src/@daf/core/components/Dashboard/Widget/ProjectWidget/index.jsx +1 -0
- package/src/@daf/core/components/EditForm/storyConfig.js +1 -1
- package/src/@daf/core/components/EditForm/storyConfig1.js +244 -249
package/.env
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
package/dist/components/index.js
CHANGED
|
@@ -21092,7 +21092,7 @@ function SdgList({
|
|
|
21092
21092
|
}) {
|
|
21093
21093
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
21094
21094
|
children: [/*#__PURE__*/jsxRuntime.jsx(Label, {
|
|
21095
|
-
children: "SDGs
|
|
21095
|
+
children: "SDGs"
|
|
21096
21096
|
}), /*#__PURE__*/jsxRuntime.jsx(SDGIcons, {
|
|
21097
21097
|
sdgList: sdgList,
|
|
21098
21098
|
t: t
|
|
@@ -21175,7 +21175,8 @@ function ProjectWidget(_ref) {
|
|
|
21175
21175
|
}), !hideSDGList && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
21176
21176
|
style: {
|
|
21177
21177
|
borderTop: "1px solid var(--base-gray-30)",
|
|
21178
|
-
paddingTop: "10px"
|
|
21178
|
+
paddingTop: "10px",
|
|
21179
|
+
minHeight: "61px"
|
|
21179
21180
|
},
|
|
21180
21181
|
children: /*#__PURE__*/jsxRuntime.jsx(SdgList, {
|
|
21181
21182
|
sdgList: sdgList,
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Label } from "../style";
|
|
2
2
|
import SDGIcons from "../../../../UI/SDGIcon/index.jsx";
|
|
3
3
|
export default function SdgList({ sdgList = [], t }) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
return (
|
|
5
|
+
<>
|
|
6
|
+
<Label>SDGs</Label>
|
|
7
|
+
<SDGIcons sdgList={sdgList} t={t} />
|
|
8
|
+
</>
|
|
9
|
+
);
|
|
10
10
|
}
|
|
@@ -1,256 +1,251 @@
|
|
|
1
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
|
-
|
|
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
|
-
label: "edd",
|
|
252
|
-
value: "689f1135cd1642955475a594",
|
|
253
|
-
},
|
|
254
|
-
],
|
|
255
|
-
},
|
|
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: ["modalStraatos", "straatosProject", "projectDetails", "project"],
|
|
47
|
+
label: "Sectoral Scope",
|
|
48
|
+
options: [
|
|
49
|
+
{
|
|
50
|
+
label: "Agriculture, Forestry and Other Land Use (AFOLU)",
|
|
51
|
+
value: "agricultureForestryAndOtherLandUse",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: "Energy (renewable/non-renewable)",
|
|
55
|
+
value: "energy",
|
|
56
|
+
disabled: true,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: "Energy distribution",
|
|
60
|
+
value: "energyDistribution",
|
|
61
|
+
disabled: true,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: "Energy demand",
|
|
65
|
+
value: "energyDemand",
|
|
66
|
+
disabled: true,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: "Manufacturing industries",
|
|
70
|
+
value: "manufacturingIndustries",
|
|
71
|
+
disabled: true,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: "Chemical industry",
|
|
75
|
+
value: "chemicalIndustry",
|
|
76
|
+
disabled: true,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: "Construction",
|
|
80
|
+
value: "construction",
|
|
81
|
+
disabled: true,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: "Transport",
|
|
85
|
+
value: "transport",
|
|
86
|
+
disabled: true,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
label: "Mining/mineral production",
|
|
90
|
+
value: "miningMineralProduction",
|
|
91
|
+
disabled: true,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
label: "Metal production",
|
|
95
|
+
value: "metalProduction",
|
|
96
|
+
disabled: true,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
label: "Fugitive emissions from fuels (solid, oil, and gas)",
|
|
100
|
+
value: "fugitiveEmissionsFromFuels",
|
|
101
|
+
disabled: true,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: "Fugitive emissions from industrial gases (halocarbons and sulphur hexafluoride)",
|
|
105
|
+
value: "fugitiveEmissionsFromIndustrialGases",
|
|
106
|
+
disabled: true,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
label: "Solvent use",
|
|
110
|
+
value: "solventUse",
|
|
111
|
+
disabled: true,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
label: "Waste handling and disposal",
|
|
115
|
+
value: "wasteHandlingAndDisposal",
|
|
116
|
+
disabled: true,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
label: "Livestock and manure management",
|
|
120
|
+
value: "livestockAndManureManagement",
|
|
121
|
+
disabled: true,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
label: "Carbon capture and storage",
|
|
125
|
+
value: "carbonCaptureAndStorage",
|
|
126
|
+
disabled: true,
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
createdAt: "2025-09-17T14:59:42.118Z",
|
|
130
|
+
updatedAt: "2025-09-17T14:59:42.118Z",
|
|
131
|
+
__v: 0,
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
label: "Identification",
|
|
135
|
+
subTitle: "Identification",
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
data: {
|
|
139
|
+
location: [
|
|
140
|
+
{
|
|
141
|
+
_id: "689f1086cd1642955475a45e",
|
|
142
|
+
form: "location",
|
|
143
|
+
id: "f276986a-5b41-45bf-b02b-61e79c42cf50",
|
|
144
|
+
parent: {
|
|
145
|
+
_id: "689f1086cd1642955475a462",
|
|
146
|
+
createdAt: "2025-08-15T10:48:38.719Z",
|
|
147
|
+
updatedAt: "2025-08-15T10:48:38.719Z",
|
|
148
|
+
id: "e006842b-b9bb-431f-b9b9-184e82e324b4",
|
|
149
|
+
name: "test 999444444",
|
|
150
|
+
authorId: "df5378ae-704a-4a46-93b2-336cc5341456",
|
|
151
|
+
collectId: "93ed3cfd5abf671367ca3116d8bdcb429ca55d16",
|
|
152
|
+
country: "AX",
|
|
153
|
+
category: "plot",
|
|
154
|
+
datastakeId: "LOC-00000000295",
|
|
155
|
+
__v: 0,
|
|
156
|
+
},
|
|
157
|
+
perimeter: [
|
|
158
|
+
[58.313817167753996, 18.413085937500004],
|
|
159
|
+
[59.2700913303328, 17.270507812500004],
|
|
160
|
+
[59.18015006492145, 16.479492187500004],
|
|
161
|
+
],
|
|
162
|
+
name: "test 999444444",
|
|
163
|
+
country: "AX",
|
|
164
|
+
category: "plot",
|
|
165
|
+
authorId: "df5378ae-704a-4a46-93b2-336cc5341456",
|
|
166
|
+
published: false,
|
|
167
|
+
version: 1,
|
|
168
|
+
datastakeId: "LOC-00000000295",
|
|
169
|
+
pictures: [],
|
|
170
|
+
documents: [],
|
|
171
|
+
associatedSubjects: [
|
|
172
|
+
{
|
|
173
|
+
entity: "PlantingCycle",
|
|
174
|
+
_id: {},
|
|
175
|
+
nature: "location",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
entity: "PlantingCycle",
|
|
179
|
+
_id: {},
|
|
180
|
+
nature: "location",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
entity: "PlantingCycle",
|
|
184
|
+
_id: {},
|
|
185
|
+
nature: "location",
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
createdAt: "2025-08-15",
|
|
189
|
+
updatedAt: "2025-08-15",
|
|
190
|
+
__v: 0,
|
|
191
|
+
label: "test 999444444",
|
|
192
|
+
value: "689f1086cd1642955475a45e",
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
_id: "689f1135cd1642955475a594",
|
|
196
|
+
form: "location",
|
|
197
|
+
id: "d60984d5-e79a-474f-8c6d-b9d4256f0357",
|
|
198
|
+
parent: {
|
|
199
|
+
_id: "689f1135cd1642955475a59b",
|
|
200
|
+
createdAt: "2025-08-15T10:51:33.758Z",
|
|
201
|
+
updatedAt: "2025-08-15T10:51:33.758Z",
|
|
202
|
+
id: "818f4b75-2212-47e4-b07e-52a7e6454568",
|
|
203
|
+
name: "edd",
|
|
204
|
+
authorId: "df5378ae-704a-4a46-93b2-336cc5341456",
|
|
205
|
+
collectId: "79af2232d97ef4ae6b435b1d22997a978b5e2f47",
|
|
206
|
+
country: "AX",
|
|
207
|
+
administrativeLevel1: null,
|
|
208
|
+
administrativeLevel2: null,
|
|
209
|
+
category: "plot",
|
|
210
|
+
datastakeId: "LOC-00000000296",
|
|
211
|
+
__v: 0,
|
|
212
|
+
},
|
|
213
|
+
perimeter: [
|
|
214
|
+
[59.98229931379975, 17.228966156671063],
|
|
215
|
+
[59.98229931379975, 17.565517949147456],
|
|
216
|
+
[59.77480258556264, 17.53667065264947],
|
|
217
|
+
],
|
|
218
|
+
administrativeLevel1: null,
|
|
219
|
+
administrativeLevel2: null,
|
|
220
|
+
name: "edd",
|
|
221
|
+
country: "AX",
|
|
222
|
+
category: "plot",
|
|
223
|
+
authorId: "df5378ae-704a-4a46-93b2-336cc5341456",
|
|
224
|
+
gps: null,
|
|
225
|
+
published: false,
|
|
226
|
+
version: 1,
|
|
227
|
+
datastakeId: "LOC-00000000296",
|
|
228
|
+
pictures: [],
|
|
229
|
+
documents: [],
|
|
230
|
+
associatedSubjects: [
|
|
231
|
+
{
|
|
232
|
+
entity: "Event",
|
|
233
|
+
_id: {},
|
|
234
|
+
nature: "location",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
entity: "PlantingCycle",
|
|
238
|
+
_id: {},
|
|
239
|
+
nature: "location",
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
projectId: "PRJ-00000000107",
|
|
243
|
+
createdAt: "2025-08-15T10:51:33.758Z",
|
|
244
|
+
updatedAt: "2025-08-15T10:51:33.758Z",
|
|
245
|
+
__v: 0,
|
|
246
|
+
label: "edd",
|
|
247
|
+
value: "689f1135cd1642955475a594",
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
},
|
|
256
251
|
};
|