| 
									
										
										
										
											2020-07-05 18:59:47 +02:00
										 |  |  | import {And, Tag} from "../../Logic/TagsFilter"; | 
					
						
							| 
									
										
										
										
											2020-07-20 21:03:55 +02:00
										 |  |  | import {UIElement} from "../../UI/UIElement"; | 
					
						
							| 
									
										
										
										
											2020-07-26 02:01:34 +02:00
										 |  |  | import Translations from "../../UI/i18n/Translations"; | 
					
						
							| 
									
										
										
										
											2020-07-31 17:38:03 +02:00
										 |  |  | import {TagRenderingOptions} from "../TagRenderingOptions"; | 
					
						
							| 
									
										
										
										
											2020-07-05 18:59:47 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export class NameInline extends TagRenderingOptions{ | 
					
						
							|  |  |  |      | 
					
						
							| 
									
										
										
										
											2020-07-26 02:01:34 +02:00
										 |  |  |     constructor(category: string | UIElement ) { | 
					
						
							| 
									
										
										
										
											2020-07-05 18:59:47 +02:00
										 |  |  |         super({ | 
					
						
							|  |  |  |             question: "", | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             freeform: { | 
					
						
							|  |  |  |                 renderTemplate: "{name}", | 
					
						
							| 
									
										
										
										
											2020-07-26 02:01:34 +02:00
										 |  |  |                 template: Translations.t.general.nameInlineQuestion.Subs({category: category}), | 
					
						
							| 
									
										
										
										
											2020-07-05 18:59:47 +02:00
										 |  |  |                 key: "name", | 
					
						
							|  |  |  |                 extraTags: new Tag("noname", "") // Remove 'noname=yes'
 | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             mappings: [ | 
					
						
							| 
									
										
										
										
											2020-07-26 02:01:34 +02:00
										 |  |  |                 {k: new Tag("noname","yes"), txt: Translations.t.general.noNameCategory.Subs({category: category})}, | 
					
						
							|  |  |  |                 {k: null, txt: category} | 
					
						
							| 
									
										
										
										
											2020-07-05 18:59:47 +02:00
										 |  |  |             ] | 
					
						
							|  |  |  |         }); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  | } |