datastake-daf 0.6.264 → 0.6.265
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 +64 -117
- package/package.json +2 -2
- package/src/@daf/core/components/Dashboard/Globe/Globe.stories.js +5 -30
- package/src/@daf/core/components/Dashboard/Globe/hook.js +7 -63
- package/src/@daf/core/components/Dashboard/Globe/index.jsx +6 -24
- package/src/@daf/core/components/Dashboard/Map/helper.js +7 -0
- package/src/@daf/core/components/Dashboard/Map/hook.js +2 -0
- package/src/@daf/core/components/Dashboard/Map/index.jsx +159 -165
- package/src/@daf/core/components/Dashboard/Map/storyConfig3.js +6 -0
- package/src/@daf/core/components/EditForm/form.jsx +621 -551
- package/src/@daf/core/components/EditForm/storyConfig2.js +28 -33
- package/src/@daf/core/components/Dashboard/Globe/storyConfig.js +0 -243
- package/src/@daf/core/components/Dashboard/Globe/storyConfig1.js +0 -354
|
@@ -19,45 +19,46 @@ export const storyData = {
|
|
|
19
19
|
id: "baselineConditions",
|
|
20
20
|
position: 1,
|
|
21
21
|
DescriptionsOfCommunitiesAtProjectStartCcbCm: {
|
|
22
|
-
_id: "
|
|
23
|
-
id: "
|
|
22
|
+
_id: "68d2bd940e88260c12f6f1ea",
|
|
23
|
+
id: "8dfae3c1-7445-454e-a587-1206216f62c0",
|
|
24
24
|
dataId: "DescriptionsOfCommunitiesAtProjectStartCcbCm",
|
|
25
25
|
section: "baselineConditions",
|
|
26
26
|
type: "text",
|
|
27
|
-
meta: {
|
|
27
|
+
meta: {
|
|
28
|
+
helpText:
|
|
29
|
+
"Describe the communities at the start of the project and any significant community changes in the past. Include the following: • Well-being information: people’s experience of the quality of their lives; this may include environmental, social, economic, psychological, spiritual, and medical dimensions. • Community characteristics: these include shared language, mythology, history, culture, livelihood systems, traditional authority structures, institutions, practices, values, relationship",
|
|
30
|
+
},
|
|
28
31
|
placeholder:
|
|
29
32
|
"Describe the communities at the start of the project and any significant community changes in the pa...",
|
|
30
33
|
position: 2,
|
|
31
34
|
scope: ["communityScenario"],
|
|
32
35
|
label: "4.1.1 Descriptions of Communities at Project Start (CCB, CM1.1)",
|
|
33
|
-
createdAt: "2025-09-
|
|
34
|
-
updatedAt: "2025-09-
|
|
36
|
+
createdAt: "2025-09-23T15:32:38.751Z",
|
|
37
|
+
updatedAt: "2025-09-23T15:32:38.751Z",
|
|
35
38
|
__v: 0,
|
|
36
39
|
},
|
|
37
40
|
HighConservationValuesCcbCm: {
|
|
38
|
-
_id: "
|
|
39
|
-
id: "
|
|
41
|
+
_id: "68d2bd940e88260c12f6f1ec",
|
|
42
|
+
id: "121962b3-95c7-4400-834e-ac33bd2cda78",
|
|
40
43
|
dataId: "HighConservationValuesCcbCm",
|
|
41
44
|
section: "baselineConditions",
|
|
42
45
|
type: "text",
|
|
43
46
|
meta: {
|
|
44
47
|
helpText:
|
|
45
48
|
"Complete the table below for each of the following HCVs related to community well-being in the project zone:",
|
|
46
|
-
placeholder:
|
|
47
|
-
"Complete the table below for each of the following HCVs related to community well-being in the proje...",
|
|
48
49
|
},
|
|
49
50
|
placeholder:
|
|
50
51
|
"Complete the table below for each of the following HCVs related to community well-being in the proje...",
|
|
51
52
|
position: 4,
|
|
52
53
|
scope: ["communityScenario"],
|
|
53
54
|
label: "4.1.3 High Conservation Values (CCB, CM1.2)",
|
|
54
|
-
createdAt: "2025-09-
|
|
55
|
-
updatedAt: "2025-09-
|
|
55
|
+
createdAt: "2025-09-23T15:32:38.752Z",
|
|
56
|
+
updatedAt: "2025-09-23T15:32:38.752Z",
|
|
56
57
|
__v: 0,
|
|
57
58
|
},
|
|
58
59
|
InteractionsBetweenCommunitiesAndCommunityGroupsVcsCcb: {
|
|
59
|
-
_id: "
|
|
60
|
-
id: "
|
|
60
|
+
_id: "68d2bd940e88260c12f6f1ee",
|
|
61
|
+
id: "f99b6bdb-9bda-47ab-9e59-8eef43544d94",
|
|
61
62
|
dataId: "InteractionsBetweenCommunitiesAndCommunityGroupsVcsCcb",
|
|
62
63
|
section: "baselineConditions",
|
|
63
64
|
type: "text",
|
|
@@ -67,18 +68,16 @@ export const storyData = {
|
|
|
67
68
|
placeholder:
|
|
68
69
|
"Describe interactions at the start of the project between the communities and community groups descr...",
|
|
69
70
|
},
|
|
70
|
-
placeholder:
|
|
71
|
-
"Describe interactions at the start of the project between the communities and community groups descr...",
|
|
72
71
|
position: 3,
|
|
73
72
|
scope: ["communityScenario"],
|
|
74
73
|
label: "4.1.2 Interactions between Communities and Community Groups (VCS, 3.19; CCB, CM1.1)",
|
|
75
|
-
createdAt: "2025-09-
|
|
76
|
-
updatedAt: "2025-09-
|
|
74
|
+
createdAt: "2025-09-23T15:32:38.834Z",
|
|
75
|
+
updatedAt: "2025-09-23T15:32:38.834Z",
|
|
77
76
|
__v: 0,
|
|
78
77
|
},
|
|
79
78
|
WithoutprojectCommunityScenario: {
|
|
80
|
-
_id: "
|
|
81
|
-
id: "
|
|
79
|
+
_id: "68d2bd940e88260c12f6f1f0",
|
|
80
|
+
id: "ff2a157b-dec6-4fbb-a01b-3b003b2903c5",
|
|
82
81
|
dataId: "WithoutprojectCommunityScenario",
|
|
83
82
|
section: "baselineConditions",
|
|
84
83
|
type: "text",
|
|
@@ -86,17 +85,16 @@ export const storyData = {
|
|
|
86
85
|
helpText: "Sub-Section Header",
|
|
87
86
|
placeholder: "Sub-Section Header",
|
|
88
87
|
},
|
|
89
|
-
placeholder: "Sub-Section Header",
|
|
90
88
|
position: 1,
|
|
91
89
|
scope: ["communityScenario"],
|
|
92
90
|
label: "4.1 Without-Project Community Scenario",
|
|
93
|
-
createdAt: "2025-09-
|
|
94
|
-
updatedAt: "2025-09-
|
|
91
|
+
createdAt: "2025-09-23T15:32:38.754Z",
|
|
92
|
+
updatedAt: "2025-09-23T15:32:38.754Z",
|
|
95
93
|
__v: 0,
|
|
96
94
|
},
|
|
97
95
|
WithoutprojectScenarioCommunityCcbCm: {
|
|
98
|
-
_id: "
|
|
99
|
-
id: "
|
|
96
|
+
_id: "68d2bd940e88260c12f6f1f2",
|
|
97
|
+
id: "db0eb27c-4544-449c-8495-9d8ae1b1d525",
|
|
100
98
|
dataId: "WithoutprojectScenarioCommunityCcbCm",
|
|
101
99
|
section: "baselineConditions",
|
|
102
100
|
type: "text",
|
|
@@ -106,30 +104,27 @@ export const storyData = {
|
|
|
106
104
|
placeholder:
|
|
107
105
|
"Describe the expected changes in the well-being conditions and other characteristics of communities ...",
|
|
108
106
|
},
|
|
109
|
-
placeholder:
|
|
110
|
-
"Describe the expected changes in the well-being conditions and other characteristics of communities ...",
|
|
111
107
|
position: 5,
|
|
112
108
|
scope: ["communityScenario"],
|
|
113
109
|
label: "4.1.4 Without-Project Scenario: Community (CCB, CM1.3)",
|
|
114
|
-
createdAt: "2025-09-
|
|
115
|
-
updatedAt: "2025-09-
|
|
110
|
+
createdAt: "2025-09-23T15:32:38.757Z",
|
|
111
|
+
updatedAt: "2025-09-23T15:32:38.757Z",
|
|
116
112
|
__v: 0,
|
|
117
113
|
},
|
|
118
114
|
smHelp: {
|
|
119
|
-
_id: "
|
|
120
|
-
id: "
|
|
115
|
+
_id: "68d2bd940e88260c12f6f1f4",
|
|
116
|
+
id: "44ce027b-1a8f-47b9-a8dd-f430d9f70310",
|
|
121
117
|
dataId: "smHelp",
|
|
122
118
|
section: "baselineConditions",
|
|
123
119
|
type: "smartHelp",
|
|
124
120
|
meta: {
|
|
125
121
|
placeholder: "Smart Help",
|
|
126
122
|
},
|
|
127
|
-
placeholder: "Smart Help",
|
|
128
123
|
position: 0,
|
|
129
124
|
scope: ["communityScenario"],
|
|
130
125
|
label: "Smart Help",
|
|
131
|
-
createdAt: "2025-09-
|
|
132
|
-
updatedAt: "2025-09-
|
|
126
|
+
createdAt: "2025-09-23T15:32:38.758Z",
|
|
127
|
+
updatedAt: "2025-09-23T15:32:38.758Z",
|
|
133
128
|
__v: 0,
|
|
134
129
|
},
|
|
135
130
|
label: "Baseline Conditions",
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
import { storyConfig as EventConfig } from "./storyConfig1.js";
|
|
2
|
-
// Create default configs since the other files were deleted
|
|
3
|
-
const DefaultGlobeConfig = {
|
|
4
|
-
data: [
|
|
5
|
-
{
|
|
6
|
-
gps: { latitude: 40.7128, longitude: -74.0060 },
|
|
7
|
-
name: "New York City",
|
|
8
|
-
description: "Major metropolitan area in the United States",
|
|
9
|
-
total: 15,
|
|
10
|
-
sources: 3,
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
gps: { latitude: 51.5074, longitude: -0.1278 },
|
|
14
|
-
name: "London",
|
|
15
|
-
description: "Capital of the United Kingdom",
|
|
16
|
-
total: 12,
|
|
17
|
-
sources: 2,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
gps: { latitude: 35.6762, longitude: 139.6503 },
|
|
21
|
-
name: "Tokyo",
|
|
22
|
-
description: "Capital of Japan",
|
|
23
|
-
total: 8,
|
|
24
|
-
sources: 1,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
gps: { latitude: -33.8688, longitude: 151.2093 },
|
|
28
|
-
name: "Sydney",
|
|
29
|
-
description: "Major city in Australia",
|
|
30
|
-
total: 6,
|
|
31
|
-
sources: 2,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
gps: { latitude: -22.9068, longitude: -43.1729 },
|
|
35
|
-
name: "Rio de Janeiro",
|
|
36
|
-
description: "Major city in Brazil",
|
|
37
|
-
total: 10,
|
|
38
|
-
sources: 1,
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
renderTooltip: (data) => [
|
|
42
|
-
{ label: "City", value: data.name || "-" },
|
|
43
|
-
{ label: "Total Events", value: data.total || 0 },
|
|
44
|
-
{ label: "Sources", value: data.sources || 0 },
|
|
45
|
-
{ label: "Description", value: data.description || "-" },
|
|
46
|
-
],
|
|
47
|
-
primaryLink: true,
|
|
48
|
-
showSider: false,
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
const TerritoryGlobeConfig = {
|
|
52
|
-
data: [
|
|
53
|
-
{
|
|
54
|
-
gps: { latitude: 39.9042, longitude: 116.4074 },
|
|
55
|
-
name: "Beijing Territory",
|
|
56
|
-
description: "Administrative region in China",
|
|
57
|
-
total: 25,
|
|
58
|
-
sources: 4,
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
gps: { latitude: 55.7558, longitude: 37.6176 },
|
|
62
|
-
name: "Moscow Region",
|
|
63
|
-
description: "Federal subject of Russia",
|
|
64
|
-
total: 18,
|
|
65
|
-
sources: 3,
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
gps: { latitude: -26.2041, longitude: 28.0473 },
|
|
69
|
-
name: "Gauteng Province",
|
|
70
|
-
description: "Province in South Africa",
|
|
71
|
-
total: 14,
|
|
72
|
-
sources: 2,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
gps: { latitude: 19.4326, longitude: -99.1332 },
|
|
76
|
-
name: "Mexico City Territory",
|
|
77
|
-
description: "Federal district in Mexico",
|
|
78
|
-
total: 20,
|
|
79
|
-
sources: 3,
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
renderTooltip: (data) => [
|
|
83
|
-
{ label: "Territory", value: data.name || "-" },
|
|
84
|
-
{ label: "Total Events", value: data.total || 0 },
|
|
85
|
-
{ label: "Sources", value: data.sources || 0 },
|
|
86
|
-
{ label: "Description", value: data.description || "-" },
|
|
87
|
-
],
|
|
88
|
-
primaryLink: true,
|
|
89
|
-
showSider: false,
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
const StakeholderGlobeConfig = {
|
|
93
|
-
data: [
|
|
94
|
-
{
|
|
95
|
-
gps: { latitude: 48.8566, longitude: 2.3522 },
|
|
96
|
-
name: "Paris NGO",
|
|
97
|
-
description: "Environmental NGO in France",
|
|
98
|
-
total: 12,
|
|
99
|
-
sources: 2,
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
gps: { latitude: 37.7749, longitude: -122.4194 },
|
|
103
|
-
name: "San Francisco Tech",
|
|
104
|
-
description: "Technology company in California",
|
|
105
|
-
total: 8,
|
|
106
|
-
sources: 1,
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
gps: { latitude: 1.3521, longitude: 103.8198 },
|
|
110
|
-
name: "Singapore Corp",
|
|
111
|
-
description: "Multinational corporation",
|
|
112
|
-
total: 15,
|
|
113
|
-
sources: 3,
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
gps: { latitude: 52.5200, longitude: 13.4050 },
|
|
117
|
-
name: "Berlin Institute",
|
|
118
|
-
description: "Research institute in Germany",
|
|
119
|
-
total: 9,
|
|
120
|
-
sources: 2,
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
gps: { latitude: -34.6037, longitude: -58.3816 },
|
|
124
|
-
name: "Buenos Aires Union",
|
|
125
|
-
description: "Labor union in Argentina",
|
|
126
|
-
total: 11,
|
|
127
|
-
sources: 1,
|
|
128
|
-
},
|
|
129
|
-
],
|
|
130
|
-
renderTooltip: (data) => [
|
|
131
|
-
{ label: "Stakeholder", value: data.name || "-" },
|
|
132
|
-
{ label: "Total Events", value: data.total || 0 },
|
|
133
|
-
{ label: "Sources", value: data.sources || 0 },
|
|
134
|
-
{ label: "Description", value: data.description || "-" },
|
|
135
|
-
],
|
|
136
|
-
primaryLink: true,
|
|
137
|
-
showSider: false,
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
const ChainGlobeConfig = {
|
|
141
|
-
data: [
|
|
142
|
-
{
|
|
143
|
-
gps: { latitude: 23.1291, longitude: 113.2644 },
|
|
144
|
-
name: "Guangzhou Manufacturing",
|
|
145
|
-
description: "Electronics manufacturing hub in China",
|
|
146
|
-
total: 22,
|
|
147
|
-
sources: 4,
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
gps: { latitude: 12.9716, longitude: 77.5946 },
|
|
151
|
-
name: "Bangalore Tech Hub",
|
|
152
|
-
description: "Software development center in India",
|
|
153
|
-
total: 18,
|
|
154
|
-
sources: 3,
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
gps: { latitude: 41.8781, longitude: -87.6298 },
|
|
158
|
-
name: "Chicago Logistics",
|
|
159
|
-
description: "Transportation and logistics hub in USA",
|
|
160
|
-
total: 16,
|
|
161
|
-
sources: 2,
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
gps: { latitude: 25.2048, longitude: 55.2708 },
|
|
165
|
-
name: "Dubai Trade Center",
|
|
166
|
-
description: "International trade and commerce hub",
|
|
167
|
-
total: 14,
|
|
168
|
-
sources: 3,
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
gps: { latitude: -23.5505, longitude: -46.6333 },
|
|
172
|
-
name: "São Paulo Distribution",
|
|
173
|
-
description: "Distribution center in Brazil",
|
|
174
|
-
total: 12,
|
|
175
|
-
sources: 2,
|
|
176
|
-
},
|
|
177
|
-
],
|
|
178
|
-
renderTooltip: (data) => [
|
|
179
|
-
{ label: "Supply Chain Node", value: data.name || "-" },
|
|
180
|
-
{ label: "Total Events", value: data.total || 0 },
|
|
181
|
-
{ label: "Sources", value: data.sources || 0 },
|
|
182
|
-
{ label: "Description", value: data.description || "-" },
|
|
183
|
-
],
|
|
184
|
-
primaryLink: true,
|
|
185
|
-
showSider: false,
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
const ProjectGlobeConfig = {
|
|
189
|
-
data: [
|
|
190
|
-
{
|
|
191
|
-
gps: { latitude: 6.5244, longitude: 3.3792 },
|
|
192
|
-
name: "Lagos Solar Project",
|
|
193
|
-
description: "Renewable energy project in Nigeria",
|
|
194
|
-
total: 8,
|
|
195
|
-
sources: 2,
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
gps: { latitude: -1.2921, longitude: 36.8219 },
|
|
199
|
-
name: "Nairobi Water Initiative",
|
|
200
|
-
description: "Water management project in Kenya",
|
|
201
|
-
total: 12,
|
|
202
|
-
sources: 3,
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
gps: { latitude: 13.7563, longitude: 100.5018 },
|
|
206
|
-
name: "Bangkok Green City",
|
|
207
|
-
description: "Urban sustainability project in Thailand",
|
|
208
|
-
total: 15,
|
|
209
|
-
sources: 4,
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
gps: { latitude: -12.0464, longitude: -77.0428 },
|
|
213
|
-
name: "Lima Education Hub",
|
|
214
|
-
description: "Educational development project in Peru",
|
|
215
|
-
total: 10,
|
|
216
|
-
sources: 2,
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
gps: { latitude: 30.0444, longitude: 31.2357 },
|
|
220
|
-
name: "Cairo Infrastructure",
|
|
221
|
-
description: "Infrastructure development project in Egypt",
|
|
222
|
-
total: 14,
|
|
223
|
-
sources: 3,
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
gps: { latitude: 55.7558, longitude: 37.6176 },
|
|
227
|
-
name: "Moscow Innovation Center",
|
|
228
|
-
description: "Technology innovation project in Russia",
|
|
229
|
-
total: 9,
|
|
230
|
-
sources: 2,
|
|
231
|
-
},
|
|
232
|
-
],
|
|
233
|
-
renderTooltip: (data) => [
|
|
234
|
-
{ label: "Project Name", value: data.name || "-" },
|
|
235
|
-
{ label: "Total Events", value: data.total || 0 },
|
|
236
|
-
{ label: "Sources", value: data.sources || 0 },
|
|
237
|
-
{ label: "Description", value: data.description || "-" },
|
|
238
|
-
],
|
|
239
|
-
primaryLink: true,
|
|
240
|
-
showSider: false,
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
export { DefaultGlobeConfig, TerritoryGlobeConfig, StakeholderGlobeConfig, EventConfig, ChainGlobeConfig, ProjectGlobeConfig };
|