-
Notifications
You must be signed in to change notification settings - Fork 1
/
src_app_custom-elements_code_code-example_module_ts.57ae65d8b8d60ff7.js.map
1 lines (1 loc) · 4.96 KB
/
src_app_custom-elements_code_code-example_module_ts.57ae65d8b8d60ff7.js.map
1
{"version":3,"file":"src_app_custom-elements_code_code-example_module_ts.57ae65d8b8d60ff7.js","mappings":"oQA4BIA,MAAA,YAAuBA,MAAA,GAAYA,8BAAZA,cAAAC,EAAAC,uBAcpB,IAAMC,EAAoB,UAAAC,EAA3B,MAAOD,EApBbE,cAkDYC,KAAAC,MAAQ,GAsBgBD,KAAAE,SAAU,EA3C1C,UACIN,CAAOA,GACPI,KAAKG,QAAUP,EACfI,KAAKI,QAAU,CACX,gBAAiBJ,KAAKJ,OACtB,eAAgBI,KAAKJ,OAE7B,CACA,UAAIA,GACA,OAAOI,KAAKG,OAChB,CAGA,QACIE,CAAKA,GACLL,KAAKC,MAAQI,EACbL,KAAKE,SAA2C,IAAjCF,KAAKK,KAAKC,QAAQ,UACrC,CACA,QAAID,GACA,OAAOL,KAAKC,KAChB,CAGA,YACIM,CAASA,GAETP,KAAKQ,UAAwB,MAAZD,GAAsC,SAAlB,GAAGA,GAC5C,CACA,YAAIA,GACA,OAAOP,KAAKQ,SAChB,CAGA,sBACIC,CAAmBF,GACnBP,KAAKO,SAAWA,CACpB,CAEA,uBACIG,CAAoBH,GACpBP,KAAKO,SAAWA,CACpB,CAQAI,kBACIX,KAAKY,QAAQC,KAAOb,KAAKc,QAAQC,cAAcC,SACnD,WA5DSnB,yCAAoB,0BAApBA,EAAoBoB,UAAA,mBAAAC,UAAA,SAAAC,EAAAC,MAAA,EAAAD,qBAwDlBE,IAAa,mmBAxExB3B,MAAA,aAAoCA,MAAA,GAAyBA,QAE7DA,MAAA,EAAA4B,EAAA,gBAEA5B,MAAA,uBAFSA,MAAA,GAAAA,MAAA,OAAA0B,EAAAxB,QAGPF,cAAA,UAAA0B,EAAAhB,QAAAV,CAAmB,WAAA0B,EAAAG,SAAnB7B,CAAmB,WAAA0B,EAAAI,SAAnB9B,CAAmB,OAAA0B,EAAAf,KAAnBX,CAAmB,SAAA0B,EAAAK,OAAnB/B,CAAmB,WAAA0B,EAAAb,SAAnBb,CAAmB,SAAA0B,EAAAxB,yDAWZC,CAAoB,mBC/B1B,IAAM6B,EAAiB,UAAAC,EAAxB,MAAOD,EALb3B,cAMIC,KAAA4B,uBAAoC/B,YAD3B6B,yCAAiB,0BAAjBA,gCAJCG,KAAcC,OAIfJ,CAAiB","names":["i0","ctx_r1","header","CodeExampleComponent","_CodeExampleComponent","constructor","this","_path","isAvoid","_header","classes","path","indexOf","hidecopy","_hidecopy","hyphenatedHideCopy","capitalizedHideCopy","ngAfterViewInit","aioCode","code","content","nativeElement","innerHTML","selectors","viewQuery","rf","ctx","CodeComponent","CodeExampleComponent_header_3_Template","language","linenums","region","CodeExampleModule","_CodeExampleModule","customElementComponent","CommonModule","CodeModule"],"sourceRoot":"webpack:///","sources":["./src/app/custom-elements/code/code-example.component.ts","./src/app/custom-elements/code/code-example.module.ts"],"sourcesContent":["/* eslint-disable @angular-eslint/component-selector */\nimport {\n Component,\n HostBinding,\n ElementRef,\n ViewChild,\n Input,\n AfterViewInit,\n} from '@angular/core';\nimport { CodeComponent } from './code.component';\n\n/**\n * An embeddable code block that displays nicely formatted code.\n * Example usage:\n *\n * ```\n * <code-example language=\"ts\" linenums=\"2\" class=\"special\" header=\"Do Stuff\">\n * // a code block\n * console.log('do stuff');\n * </code-example>\n * ```\n */\n@Component({\n selector: 'code-example',\n template: `\n <!-- Content projection is used to get the content HTML provided to this component -->\n <div #content style=\"display: none\"><ng-content></ng-content></div>\n\n <header *ngIf=\"header\">{{ header }}</header>\n\n <aio-code\n [ngClass]=\"classes\"\n [language]=\"language\"\n [linenums]=\"linenums\"\n [path]=\"path\"\n [region]=\"region\"\n [hideCopy]=\"hidecopy\"\n [header]=\"header\"\n >\n </aio-code>\n `,\n})\nexport class CodeExampleComponent implements AfterViewInit {\n classes: {};\n\n @Input() language: string;\n\n @Input() linenums: string;\n\n @Input() region: string;\n\n @Input()\n set header(header: string) {\n this._header = header;\n this.classes = {\n 'headed-code': !!this.header,\n 'simple-code': !this.header,\n };\n }\n get header(): string {\n return this._header;\n }\n private _header: string;\n\n @Input()\n set path(path: string) {\n this._path = path;\n this.isAvoid = this.path.indexOf('.avoid.') !== -1;\n }\n get path(): string {\n return this._path;\n }\n private _path = '';\n\n @Input()\n set hidecopy(hidecopy: boolean) {\n // Coerce the boolean value.\n this._hidecopy = hidecopy != null && `${hidecopy}` !== 'false';\n }\n get hidecopy(): boolean {\n return this._hidecopy;\n }\n private _hidecopy: boolean;\n\n @Input('hide-copy')\n set hyphenatedHideCopy(hidecopy: boolean) {\n this.hidecopy = hidecopy;\n }\n\n @Input('hideCopy')\n set capitalizedHideCopy(hidecopy: boolean) {\n this.hidecopy = hidecopy;\n }\n\n @HostBinding('class.avoidFile') isAvoid = false;\n\n @ViewChild('content', { static: true }) content: ElementRef;\n\n @ViewChild(CodeComponent, { static: true }) aioCode: CodeComponent;\n\n ngAfterViewInit() {\n this.aioCode.code = this.content.nativeElement.innerHTML;\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { CodeExampleComponent } from './code-example.component';\nimport { CodeModule } from './code.module';\nimport { WithCustomElementComponent } from '../element-registry';\n\n@NgModule({\n imports: [CommonModule, CodeModule],\n declarations: [CodeExampleComponent],\n exports: [CodeExampleComponent],\n})\nexport class CodeExampleModule implements WithCustomElementComponent {\n customElementComponent: Type<any> = CodeExampleComponent;\n}\n"],"x_google_ignoreList":[]}