forked from MapComplete/MapComplete
		
	Make imageCarousel fit in with other elements (to make images optional or lower in the popup), add ghost bike popup
This commit is contained in:
		
							parent
							
								
									5970883adc
								
							
						
					
					
						commit
						54a01dfbef
					
				
					 15 changed files with 289 additions and 57 deletions
				
			
		|  | @ -8,8 +8,29 @@ import {Changes} from "../../Logic/Changes"; | |||
| import {VariableUiElement} from "../Base/VariableUIElement"; | ||||
| import {ConfirmDialog} from "../ConfirmDialog"; | ||||
| import {UserDetails} from "../../Logic/OsmConnection"; | ||||
| import {TagDependantUIElement, TagDependantUIElementConstructor} from "../../Customizations/UIElementConstructor"; | ||||
| 
 | ||||
| export class ImageCarouselConstructor implements TagDependantUIElementConstructor{ | ||||
|     IsKnown(properties: any): boolean { | ||||
|         return true; | ||||
|     } | ||||
| 
 | ||||
|     IsQuestioning(properties: any): boolean { | ||||
|         return false; | ||||
|     } | ||||
| 
 | ||||
|     Priority(): number { | ||||
|         return 0; | ||||
|     } | ||||
| 
 | ||||
|     construct(tags: UIEventSource<any>, changes: Changes): TagDependantUIElement { | ||||
|         return new ImageCarousel(tags, changes); | ||||
|     } | ||||
|      | ||||
| } | ||||
| 
 | ||||
| export class ImageCarousel extends TagDependantUIElement { | ||||
| 
 | ||||
| export class ImageCarousel extends UIElement { | ||||
| 
 | ||||
|     private readonly searcher: ImageSearcher; | ||||
| 
 | ||||
|  | @ -98,6 +119,18 @@ export class ImageCarousel extends UIElement { | |||
|             "</span>"; | ||||
|     } | ||||
| 
 | ||||
|     IsKnown(): boolean { | ||||
|         return true; | ||||
|     } | ||||
| 
 | ||||
|     IsQuestioning(): boolean { | ||||
|         return false; | ||||
|     } | ||||
| 
 | ||||
|     Priority(): number { | ||||
|         return 0; | ||||
|     } | ||||
| 
 | ||||
|     InnerUpdate(htmlElement: HTMLElement) { | ||||
|         super.InnerUpdate(htmlElement); | ||||
|         this._deleteButton.Update(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue