|
164 | 164 | } |
165 | 165 | ] |
166 | 166 | }, |
167 | | - { |
168 | | - "id": "archetypeSelection", |
169 | | - "title": "Archetype Selection", |
170 | | - "drawerTitle": "Select the archetype", |
171 | | - "requiredSteps": [ |
172 | | - "uom" |
173 | | - ], |
174 | | - "explanation": "Select the archetype and confirm to continue.", |
175 | | - "requiresConfirmation": true, |
176 | | - "confirmationSource": "component", |
177 | | - "wps": { |
178 | | - "identifier": "lare_coastal", |
179 | | - "trigger": "stepComplete", |
180 | | - "inputs": [ |
181 | | - { |
182 | | - "id": "sessionid", |
183 | | - "type": "LiteralData", |
184 | | - "source": "store:app.wpsResults.initialSetup.sessionid" |
185 | | - } |
186 | | - ], |
187 | | - "storeResultAs": "coastalUseCase", |
188 | | - "outputActions": [ |
189 | | - { |
190 | | - "action": "removeLayer", |
191 | | - "fromResultKey": "uom", |
192 | | - "path": "layers" |
193 | | - }, |
194 | | - { |
195 | | - "action": "addLayer", |
196 | | - "path": "layers" |
197 | | - } |
198 | | - ] |
199 | | - }, |
200 | | - "components": [ |
201 | | - { |
202 | | - "component": "SelectionList", |
203 | | - "componentProps": { |
204 | | - "label": "Archetypes", |
205 | | - "selectionKey": "archetypeSelection", |
206 | | - "options": [ |
207 | | - { |
208 | | - "id": "coastal", |
209 | | - "name": "Urban Coastal" |
210 | | - }, |
211 | | - { |
212 | | - "id": "agricultural_land", |
213 | | - "name": "Agricultural Land" |
214 | | - }, |
215 | | - { |
216 | | - "id": "rural_settlements", |
217 | | - "name": "Rural Settlements" |
218 | | - } |
219 | | - ] |
220 | | - } |
221 | | - } |
222 | | - ] |
223 | | - }, |
224 | 167 | { |
225 | 168 | "id": "kcsSelection", |
226 | 169 | "title": "KCS & Hazards", |
227 | 170 | "drawerTitle": "Select KCS and hazard", |
228 | 171 | "requiredSteps": [ |
229 | | - "archetypeSelection" |
| 172 | + "uom" |
230 | 173 | ], |
231 | 174 | "explanation": "Select KCS and hazard type, then confirm to run the UOM KCS calculation.", |
232 | 175 | "requiresConfirmation": true, |
|
268 | 211 | { |
269 | 212 | "component": "SelectionList", |
270 | 213 | "componentProps": { |
271 | | - "label": "KCS", |
272 | | - "selectionKey": "kcsSelection", |
| 214 | + "label": "Hazards", |
| 215 | + "selectionKey": "hazardSelection", |
| 216 | + "conditionSource": "uomArchetype", |
273 | 217 | "options": [ |
274 | 218 | { |
275 | | - "id": "transport", |
276 | | - "name": "Transport" |
| 219 | + "id": "salinization", |
| 220 | + "name": "Salinization", |
| 221 | + "condition": "coastal" |
| 222 | + }, |
| 223 | + { |
| 224 | + "id": "flood", |
| 225 | + "name": "Flood", |
| 226 | + "condition": "coastal" |
| 227 | + }, |
| 228 | + { |
| 229 | + "id": "heat", |
| 230 | + "name": "Heat", |
| 231 | + "condition": "urban" |
| 232 | + }, |
| 233 | + { |
| 234 | + "id": "drought", |
| 235 | + "name": "Drought", |
| 236 | + "condition": "rural" |
277 | 237 | } |
278 | 238 | ] |
279 | 239 | } |
280 | 240 | }, |
281 | 241 | { |
282 | 242 | "component": "SelectionList", |
283 | 243 | "componentProps": { |
284 | | - "label": "Hazards", |
285 | | - "selectionKey": "hazardSelection", |
| 244 | + "label": "KCS", |
| 245 | + "selectionKey": "kcsSelection", |
| 246 | + "conditionSource": "hazardSelection", |
286 | 247 | "options": [ |
287 | 248 | { |
288 | | - "id": "pluvial_RP200", |
289 | | - "name": "Pluvial floods" |
| 249 | + "id": "agriculture", |
| 250 | + "name": "Agriculture", |
| 251 | + "condition": "salinization" |
| 252 | + }, |
| 253 | + { |
| 254 | + "id": "transport", |
| 255 | + "name": "Transport", |
| 256 | + "condition": "flood" |
| 257 | + }, |
| 258 | + { |
| 259 | + "id": "agriculture", |
| 260 | + "name": "Agriculture", |
| 261 | + "condition": "drought" |
| 262 | + }, |
| 263 | + { |
| 264 | + "id": "vulnerable_population_hospitals", |
| 265 | + "name": "Vulnerable population (Hospitals)", |
| 266 | + "condition": "salinization" |
290 | 267 | } |
291 | 268 | ] |
292 | 269 | } |
|
0 commit comments