| 
									
										
										
										
											2020-09-09 18:42:13 +02:00
										 |  |  | import {RegexTag, Tag} from "../../Logic/Tags"; | 
					
						
							| 
									
										
										
										
											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-08-22 03:15:42 +02:00
										 |  |  | import Translation from "../../UI/i18n/Translation"; | 
					
						
							| 
									
										
										
										
											2020-07-05 18:59:47 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export class NameInline extends TagRenderingOptions{ | 
					
						
							|  |  |  |      | 
					
						
							| 
									
										
										
										
											2020-08-22 03:15:42 +02:00
										 |  |  |     constructor(category: string | Translation ) { | 
					
						
							| 
									
										
										
										
											2020-07-05 18:59:47 +02:00
										 |  |  |         super({ | 
					
						
							|  |  |  |             mappings: [ | 
					
						
							| 
									
										
										
										
											2020-09-09 18:42:13 +02:00
										 |  |  |                 {k: new Tag("noname", "yes"), txt: Translations.t.general.noNameCategory.Subs({category: category})}, | 
					
						
							|  |  |  |                 {k: new RegexTag("name", /.+/), txt: "{name}"}, | 
					
						
							|  |  |  |                 {k:new Tag("name",""), txt: category} | 
					
						
							| 
									
										
										
										
											2020-07-05 18:59:47 +02:00
										 |  |  |             ] | 
					
						
							|  |  |  |         }); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  | } |