UNPKG

1.27 kBSource Map (JSON)View Raw
1{"version":3,"sources":["ng://primeng/codehighlighter/codehighlighter.ts"],"names":["CodeHighlighter","el","this","prototype","ngAfterViewInit","window","highlightElement","nativeElement","ElementRef","__decorate","Directive","selector","CodeHighlighterModule","NgModule","imports","CommonModule","exports","declarations"],"mappings":"0tBAAAA,EAAA,WAQI,SAAAA,EAAmBC,GAAAC,KAAAD,GAAAA,EAOvB,OALID,EAAAG,UAAAC,gBAAA,WACQC,OAAc,OACdA,OAAc,MAAEC,iBAAiBJ,KAAKD,GAAGM,yDAJ1BC,EAAAA,cAFdR,EAAeS,EAAA,CAH3BC,EAAAA,UAAU,CACPC,SAAU,aAEDX,GANb,gBAsBA,SAAAY,KAAqC,OAAxBA,EAAqBH,EAAA,CALjCI,EAAAA,SAAS,CACNC,QAAS,CAACC,EAAAA,cACVC,QAAS,CAAChB,GACViB,aAAc,CAACjB,MAENY","sourcesContent":["import { NgModule, Directive, ElementRef, AfterViewInit } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@Directive({\n selector: '[pCode]'\n})\nexport class CodeHighlighter implements AfterViewInit {\n\n constructor(public el: ElementRef) { }\n\n ngAfterViewInit() {\n if (window['Prism']) {\n window['Prism'].highlightElement(this.el.nativeElement);\n }\n }\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [CodeHighlighter],\n declarations: [CodeHighlighter]\n})\nexport class CodeHighlighterModule { }\n\n\n"]}
\No newline at end of file