UNPKG

1.32 kBSource Map (JSON)View Raw
1{"version":3,"file":"primeng-codehighlighter.umd.js","sources":["ng://primeng/codehighlighter/codehighlighter.ts"],"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"],"names":["ElementRef","Directive","NgModule","CommonModule"],"mappings":";;;;;;;;;;;;AAAA;QAQI,yBAAmB,EAAc;YAAd,OAAE,GAAF,EAAE,CAAY;SAAK;QAEtC,yCAAe,GAAf;YACI,IAAI,MAAM,CAAC,OAAO,CAAC,EAAE;gBACjB,MAAM,CAAC,OAAO,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;aAC3D;SACJ;;oBANsBA,eAAU;;QAFxB,eAAe;YAH3BC,cAAS,CAAC;gBACP,QAAQ,EAAE,SAAS;aACtB,CAAC;WACW,eAAe,CAS3B;QAAD,sBAAC;KATD,IASC;;QAOD;SAAsC;QAAzB,qBAAqB;YALjCC,aAAQ,CAAC;gBACN,OAAO,EAAE,CAACC,mBAAY,CAAC;gBACvB,OAAO,EAAE,CAAC,eAAe,CAAC;gBAC1B,YAAY,EAAE,CAAC,eAAe,CAAC;aAClC,CAAC;WACW,qBAAqB,CAAI;QAAD,4BAAC;KAAtC;;;;;;;;;;;;;"}
\No newline at end of file