| 
									
										
										
										
											2020-07-16 15:29:50 +02:00
										 |  |  | import {TagRenderingOptions} from "../../TagRendering"; | 
					
						
							|  |  |  | import {Tag} from "../../../Logic/TagsFilter"; | 
					
						
							| 
									
										
										
										
											2020-07-16 09:54:32 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-16 15:29:50 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-16 15:32:32 +02:00
										 |  |  | export default class PumpValves extends TagRenderingOptions{ | 
					
						
							| 
									
										
										
										
											2020-07-16 09:54:32 +02:00
										 |  |  |     constructor() { | 
					
						
							|  |  |  |         super({ | 
					
						
							|  |  |  |             question: "What valves are supported?", | 
					
						
							|  |  |  |             mappings: [ | 
					
						
							|  |  |  |                 { | 
					
						
							|  |  |  |                     k: new Tag("valves", " sclaverand;schrader;dunlop"), | 
					
						
							|  |  |  |                     txt: "There is a default head, so Presta, Dunlop and Auto" | 
					
						
							|  |  |  |                 }, | 
					
						
							|  |  |  |                 {k: new Tag("valves", "dunlop"), txt: "Only dunlop"}, | 
					
						
							|  |  |  |                 {k: new Tag("valves", "sclaverand"), txt: "Only Sclaverand (also known as Dunlop)"}, | 
					
						
							|  |  |  |                 {k: new Tag("valves", "auto"), txt: "Only auto"}, | 
					
						
							|  |  |  |             ], | 
					
						
							|  |  |  |             freeform: { | 
					
						
							|  |  |  |                 key: "valves", | 
					
						
							|  |  |  |                 template: "Supported valves are $$$", | 
					
						
							|  |  |  |                 renderTemplate: "Supported valves are {valves}" | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |         }); | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2020-07-16 15:29:50 +02:00
										 |  |  | } |