| 
									
										
										
										
											2022-01-22 02:56:35 +01:00
										 |  |  | import Combine from "../Base/Combine" | 
					
						
							|  |  |  | import { FlowStep } from "./FlowStep" | 
					
						
							|  |  |  | import { UIEventSource } from "../../Logic/UIEventSource" | 
					
						
							|  |  |  | import Translations from "../i18n/Translations" | 
					
						
							|  |  |  | import Title from "../Base/Title" | 
					
						
							| 
									
										
										
										
											2022-04-14 03:01:54 +02:00
										 |  |  | import { CreateNotes } from "./CreateNotes" | 
					
						
							| 
									
										
										
										
											2022-04-19 23:42:58 +02:00
										 |  |  | import { FixedUiElement } from "../Base/FixedUiElement" | 
					
						
							| 
									
										
										
										
											2022-01-22 02:56:35 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | export default class Introdution extends Combine implements FlowStep<void> { | 
					
						
							| 
									
										
										
										
											2022-04-14 03:01:54 +02:00
										 |  |  |     readonly IsValid: UIEventSource<boolean> | 
					
						
							|  |  |  |     readonly Value: UIEventSource<void> | 
					
						
							| 
									
										
										
										
											2022-01-26 21:40:38 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-22 02:56:35 +01:00
										 |  |  |     constructor() { | 
					
						
							| 
									
										
										
										
											2022-04-19 23:42:58 +02:00
										 |  |  |         const example = CreateNotes.createNoteContentsUi( | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2022-04-14 03:01:54 +02:00
										 |  |  |                 properties: { | 
					
						
							|  |  |  |                     some_key: "some_value", | 
					
						
							|  |  |  |                     note: "a note in the original dataset", | 
					
						
							| 
									
										
										
										
											2022-09-08 21:40:48 +02:00
										 |  |  |                 }, | 
					
						
							| 
									
										
										
										
											2022-04-14 03:01:54 +02:00
										 |  |  |                 geometry: { | 
					
						
							|  |  |  |                     coordinates: [3.4, 51.2], | 
					
						
							| 
									
										
										
										
											2022-09-08 21:40:48 +02:00
										 |  |  |                 }, | 
					
						
							| 
									
										
										
										
											2022-04-14 03:01:54 +02:00
										 |  |  |             }, | 
					
						
							|  |  |  |             { | 
					
						
							|  |  |  |                 wikilink: | 
					
						
							|  |  |  |                     "https://wiki.openstreetmap.org/wiki/Imports/<documentation of your import>", | 
					
						
							|  |  |  |                 intro: "There might be an XYZ here", | 
					
						
							|  |  |  |                 theme: "theme", | 
					
						
							|  |  |  |                 source: "source of the data", | 
					
						
							|  |  |  |             } | 
					
						
							| 
									
										
										
										
											2022-04-19 23:42:58 +02:00
										 |  |  |         ).map((el) => (el === "" ? new FixedUiElement("").SetClass("block") : el)) | 
					
						
							| 
									
										
										
										
											2022-09-08 21:40:48 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-22 02:56:35 +01:00
										 |  |  |         super([ | 
					
						
							| 
									
										
										
										
											2022-04-14 01:32:04 +02:00
										 |  |  |             new Title(Translations.t.importHelper.introduction.title), | 
					
						
							|  |  |  |             Translations.t.importHelper.introduction.description, | 
					
						
							|  |  |  |             Translations.t.importHelper.introduction.importFormat, | 
					
						
							| 
									
										
										
										
											2022-04-14 03:01:54 +02:00
										 |  |  |             new Combine([new Combine(example).SetClass("flex flex-col")]).SetClass("literal-code"), | 
					
						
							|  |  |  |         ]) | 
					
						
							| 
									
										
										
										
											2022-01-22 02:56:35 +01:00
										 |  |  |         this.SetClass("flex flex-col") | 
					
						
							| 
									
										
										
										
											2022-04-14 03:01:54 +02:00
										 |  |  |         this.IsValid = new UIEventSource<boolean>(true) | 
					
						
							|  |  |  |         this.Value = new UIEventSource<void>(undefined) | 
					
						
							| 
									
										
										
										
											2022-01-22 02:56:35 +01:00
										 |  |  |     } | 
					
						
							|  |  |  | } |