UNPKG

1.32 kBSource Map (JSON)View Raw
1{"version":3,"file":"primeng-codehighlighter.js","sources":["../../src/app/components/codehighlighter/codehighlighter.ts","../../src/app/components/codehighlighter/primeng-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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;MAMa,eAAe;IAExB,YAAmB,EAAc;QAAd,OAAE,GAAF,EAAE,CAAY;KAAK;IAEtC,eAAe;QACX,IAAI,MAAM,CAAC,OAAO,CAAC,EAAE;YACjB,MAAM,CAAC,OAAO,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;SAC3D;KACJ;;;YAXJ,SAAS,SAAC;gBACP,QAAQ,EAAE,SAAS;aACtB;;;YAL6B,UAAU;;MAsB3B,qBAAqB;;;YALjC,QAAQ,SAAC;gBACN,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,OAAO,EAAE,CAAC,eAAe,CAAC;gBAC1B,YAAY,EAAE,CAAC,eAAe,CAAC;aAClC;;;ACrBD;;;;;;"}
\No newline at end of file