1 | import { NgModule, Directive } from '@angular/core';
|
---|
2 | import { CommonModule } from '@angular/common';
|
---|
3 | import * as i0 from "@angular/core";
|
---|
4 | export class CodeHighlighter {
|
---|
5 | constructor(el) {
|
---|
6 | this.el = el;
|
---|
7 | }
|
---|
8 | ngAfterViewInit() {
|
---|
9 | if (window['Prism']) {
|
---|
10 | window['Prism'].highlightElement(this.el.nativeElement);
|
---|
11 | }
|
---|
12 | }
|
---|
13 | }
|
---|
14 | CodeHighlighter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CodeHighlighter, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
---|
15 | CodeHighlighter.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0", type: CodeHighlighter, selector: "[pCode]", host: { classAttribute: "p-element" }, ngImport: i0 });
|
---|
16 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CodeHighlighter, decorators: [{
|
---|
17 | type: Directive,
|
---|
18 | args: [{
|
---|
19 | selector: '[pCode]',
|
---|
20 | host: {
|
---|
21 | 'class': 'p-element'
|
---|
22 | }
|
---|
23 | }]
|
---|
24 | }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
---|
25 | export class CodeHighlighterModule {
|
---|
26 | }
|
---|
27 | CodeHighlighterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CodeHighlighterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
---|
28 | CodeHighlighterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CodeHighlighterModule, declarations: [CodeHighlighter], imports: [CommonModule], exports: [CodeHighlighter] });
|
---|
29 | CodeHighlighterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CodeHighlighterModule, imports: [[CommonModule]] });
|
---|
30 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CodeHighlighterModule, decorators: [{
|
---|
31 | type: NgModule,
|
---|
32 | args: [{
|
---|
33 | imports: [CommonModule],
|
---|
34 | exports: [CodeHighlighter],
|
---|
35 | declarations: [CodeHighlighter]
|
---|
36 | }]
|
---|
37 | }] });
|
---|
38 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZWhpZ2hsaWdodGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2FwcC9jb21wb25lbnRzL2NvZGVoaWdobGlnaHRlci9jb2RlaGlnaGxpZ2h0ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxTQUFTLEVBQTZCLE1BQU0sZUFBZSxDQUFDO0FBQy9FLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7QUFRL0MsTUFBTSxPQUFPLGVBQWU7SUFFeEIsWUFBbUIsRUFBYztRQUFkLE9BQUUsR0FBRixFQUFFLENBQVk7SUFBSSxDQUFDO0lBRXRDLGVBQWU7UUFDWCxJQUFJLE1BQU0sQ0FBQyxPQUFPLENBQUMsRUFBRTtZQUNqQixNQUFNLENBQUMsT0FBTyxDQUFDLENBQUMsZ0JBQWdCLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxhQUFhLENBQUMsQ0FBQztTQUMzRDtJQUNMLENBQUM7OzRHQVJRLGVBQWU7Z0dBQWYsZUFBZTsyRkFBZixlQUFlO2tCQU4zQixTQUFTO21CQUFDO29CQUNQLFFBQVEsRUFBRSxTQUFTO29CQUNuQixJQUFJLEVBQUU7d0JBQ0YsT0FBTyxFQUFFLFdBQVc7cUJBQ3ZCO2lCQUNKOztBQWlCRCx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