-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path10-es2015.ab89a055fe64628c39d2.js.map
1 lines (1 loc) · 24 KB
/
10-es2015.ab89a055fe64628c39d2.js.map
1
{"version":3,"sources":["webpack:///./src/app/shared/attribute-utils.ts","webpack:///./src/app/custom-elements/live-example/live-example.component.ts","webpack:///./src/app/custom-elements/live-example/live-example.module.ts","webpack:///./src/app/custom-elements/live-example/live-example.component.ngfactory.js.pre-build-optimizer.js","webpack:///./src/app/custom-elements/live-example/live-example.component.html","webpack:///./src/app/custom-elements/live-example/live-example.component.ts.EmbeddedStackblitzComponent.html","webpack:///./src/app/custom-elements/live-example/live-example.module.ngfactory.js.pre-build-optimizer.js"],"names":["getAttrValue","attrs","attr","key","find","a","hasOwnProperty","toLowerCase","undefined","boolFromValue","attrValue","def","trim","LIVE_EXAMPLE_BASE","document_service","ZIP_BASE","live_example_component_LiveExampleComponent","[object Object]","elementRef","location","el","core","nativeElement","attributes","attrMap","name","value","getAttrs","exampleDir","this","getExampleDir","path","stackblitzName","getStackblitzName","mode","getMode","enableDownload","getEnableDownload","stackblitz","getStackblitz","zip","getZip","title","getTitle","textContent","content","match","downloadOnly","isEmbedded","zipName","split","EmbeddedStackblitzComponent","iframe","src","live_example_module_LiveExampleModule","customElementComponent","RenderType_LiveExampleComponent","encapsulation","styles","data","View_LiveExampleComponent_2","_l","_ck","_v","component","View_LiveExampleComponent_1","View_EmbeddedStackblitzComponent_0","RenderType_EmbeddedStackblitzComponent","common","ngIf","_co","View_LiveExampleComponent_3","View_LiveExampleComponent_5","View_LiveExampleComponent_4","View_LiveExampleComponent_0","ngSwitch","ngSwitchCase","View_LiveExampleComponent_Host_0","LiveExampleComponentNgFactory","__webpack_require__","d","__webpack_exports__","LiveExampleModuleNgFactory"],"mappings":"+HAyBO,SAASA,EAAaC,EAAgBC,GAC3C,MAAMC,EAAuB,iBAATD,EACdA,EACAA,EAAKE,KAAKC,GAAKJ,EAAMK,eAAeD,EAAEE,gBAE5C,Y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A,EAA6BA,EAAA,EAAqC,CAAC,CAAC,EAAG,CAACyD,IAAoC,CAAC,EAAGzD,EAAA,GAA8BA,EAAA,IAAkBA,EAAA,GAAQ,KAAM+C,EAAA,EAAmBA,EAAA,EAAyB,CAAC/C,EAAA,EAAc,CAAC,EAAG+C,EAAA,KAAyC/C,EAAA,GAAQ,WAAY+C,EAAA,EAAiBA,EAAA,EAAiB,IAAK/C,EAAA,GAAQ,WAAYiC,EAAsBA,EAAsB","file":"10-es2015.ab89a055fe64628c39d2.js","sourcesContent":["// Utilities for processing HTML element attributes\nimport { ElementRef } from '@angular/core';\n\nexport interface AttrMap {\n [key: string]: string;\n}\n\n/**\n * Get attribute map from element or ElementRef `attributes`.\n * Attribute map keys are forced lowercase for case-insensitive lookup.\n * @param el The source of the attributes.\n */\nexport function getAttrs(el: HTMLElement | ElementRef): AttrMap {\n const attrs: NamedNodeMap = el instanceof ElementRef ? el.nativeElement.attributes : el.attributes;\n const attrMap: AttrMap = {};\n for (const attr of attrs as any as Attr[] /* cast due to https://github.com/Microsoft/TypeScript/issues/2695 */) {\n attrMap[attr.name.toLowerCase()] = attr.value;\n }\n return attrMap;\n}\n\n/**\n * Return the attribute that matches `attr`.\n * @param attr Name of the attribute or a string of candidate attribute names.\n */\nexport function getAttrValue(attrs: AttrMap, attr: string | string[]): string | undefined {\n const key = (typeof attr === 'string')\n ? attr\n : attr.find(a => attrs.hasOwnProperty(a.toLowerCase()));\n\n return (key === undefined) ? undefined : attrs[key.toLowerCase()];\n}\n\n/**\n * Return the boolean state of an attribute value (if supplied)\n * @param attrValue The string value of some attribute (or undefined if attribute not present).\n * @param def Default boolean value when attribute is undefined.\n */\nexport function boolFromValue(attrValue: string | undefined, def: boolean = false) {\n return attrValue === undefined ? def : attrValue.trim() !== 'false';\n}\n\n/**\n * Return the boolean state of attribute from an element\n * @param el The source of the attributes.\n * @param atty Name of the attribute or a string of candidate attribute names.\n * @param def Default boolean value when attribute is undefined.\n */\nexport function getBoolFromAttribute(\n el: HTMLElement | ElementRef,\n attr: string | string[],\n def: boolean = false): boolean {\n return boolFromValue(getAttrValue(getAttrs(el), attr), def);\n}\n","/* tslint:disable component-selector */\nimport { AfterContentInit, AfterViewInit, Component, ElementRef, Input, ViewChild } from '@angular/core';\nimport { Location } from '@angular/common';\nimport { CONTENT_URL_PREFIX } from 'app/documents/document.service';\nimport { AttrMap, boolFromValue, getAttrs, getAttrValue } from 'app/shared/attribute-utils';\n\n\nconst LIVE_EXAMPLE_BASE = CONTENT_URL_PREFIX + 'live-examples/';\nconst ZIP_BASE = CONTENT_URL_PREFIX + 'zips/';\n\n/**\n * Angular.io Live Example Embedded Component\n *\n * Renders a link to a live/host example of the doc page.\n *\n * All attributes and the text content are optional\n *\n * Usage:\n * <live-example\n * [name=\"...\"] // name of the example directory\n * [stackblitz=\"...\"\"] // name of the stackblitz file (becomes part of zip file name as well)\n * [embedded] // embed the stackblitz in the doc page, else display in new browser tab (default)\n * [noDownload] // no downloadable zip option\n * [downloadOnly] // just the zip\n * [title=\"...\"]> // text for live example link and tooltip\n * text // higher precedence way to specify text for live example link and tooltip\n * </live-example>\n * Example:\n * <p>Run <live-example>Try the live example</live-example></p>.\n * // ~/resources/live-examples/{page}/stackblitz.json\n *\n * <p>Run <live-example name=\"toh-pt1\">this example</live-example></p>.\n * // ~/resources/live-examples/toh-pt1/stackblitz.json\n *\n * // Link to the default stackblitz in the toh-pt1 sample\n * // The title overrides default (\"live example\") with \"Tour of Heroes - Part 1\"\n * <p>Run <live-example name=\"toh-pt1\" title=\"Tour of Heroes - Part 1\"></live-example></p>.\n * // ~/resources/live-examples/toh-pt1/stackblitz.json\n *\n * <p>Run <live-example stackblitz=\"minimal\"></live-example></p>.\n * // ~/resources/live-examples/{page}/minimal.stackblitz.json\n *\n * // Embed the current page's default stackblitz\n * // Text within tag is \"live example\"\n * // No title (no tooltip)\n * <live-example embedded title=\"\"></live-example>\n * // ~/resources/live-examples/{page}/stackblitz.json\n *\n * // Displays within the document page as an embedded style stackblitz editor\n * <live-example name=\"toh-pt1\" embedded stackblitz=\"minimal\">Tour of Heroes - Part 1</live-example>\n * // ~/resources/live-examples/toh-pt1/minimal.stackblitz.json\n */\n@Component({\n selector: 'live-example',\n templateUrl: 'live-example.component.html'\n})\nexport class LiveExampleComponent implements AfterContentInit {\n\n readonly mode: 'default' | 'embedded' | 'downloadOnly';\n readonly enableDownload: boolean;\n readonly stackblitz: string;\n readonly zip: string;\n title: string;\n\n @ViewChild('content', { static: true })\n private content: ElementRef;\n\n constructor(elementRef: ElementRef, location: Location) {\n const attrs = getAttrs(elementRef);\n const exampleDir = this.getExampleDir(attrs, location.path(false));\n const stackblitzName = this.getStackblitzName(attrs);\n\n this.mode = this.getMode(attrs);\n this.enableDownload = this.getEnableDownload(attrs);\n this.stackblitz = this.getStackblitz(exampleDir, stackblitzName, this.mode === 'embedded');\n this.zip = this.getZip(exampleDir, stackblitzName);\n this.title = this.getTitle(attrs);\n }\n\n ngAfterContentInit() {\n // Angular will sanitize this title when displayed, so it should be plain text.\n const textContent = this.content.nativeElement.textContent.trim();\n if (textContent) {\n this.title = textContent;\n }\n }\n\n private getEnableDownload(attrs: AttrMap) {\n const downloadDisabled = boolFromValue(getAttrValue(attrs, 'noDownload'));\n return !downloadDisabled;\n }\n\n private getExampleDir(attrs: AttrMap, path: string) {\n let exampleDir = getAttrValue(attrs, 'name');\n if (!exampleDir) {\n // Take the last path segment, excluding query params and hash fragment.\n const match = path.match(/[^/?#]+(?=\\/?(?:\\?|#|$))/);\n exampleDir = match ? match[0] : 'index';\n }\n return exampleDir.trim();\n }\n\n private getMode(this: LiveExampleComponent, attrs: AttrMap): typeof this.mode {\n const downloadOnly = boolFromValue(getAttrValue(attrs, 'downloadOnly'));\n const isEmbedded = boolFromValue(getAttrValue(attrs, 'embedded'));\n\n return downloadOnly ? 'downloadOnly'\n : isEmbedded ? 'embedded' :\n 'default';\n }\n\n private getStackblitz(exampleDir: string, stackblitzName: string, isEmbedded: boolean) {\n const urlQuery = isEmbedded ? '?ctl=1' : '';\n return `${LIVE_EXAMPLE_BASE}${exampleDir}/${stackblitzName}stackblitz.html${urlQuery}`;\n }\n\n private getStackblitzName(attrs: AttrMap) {\n const attrValue = (getAttrValue(attrs, 'stackblitz') || '').trim();\n return attrValue && `${attrValue}.`;\n }\n\n private getTitle(attrs: AttrMap) {\n return (getAttrValue(attrs, 'title') || '在线例子').trim();\n }\n\n private getZip(exampleDir: string, stackblitzName: string) {\n const zipName = exampleDir.split('/')[0];\n return `${ZIP_BASE}${exampleDir}/${stackblitzName}${zipName}.zip`;\n }\n}\n\n///// EmbeddedStackblitzComponent ///\n/**\n * Hides the <iframe> so we can test LiveExampleComponent without actually triggering\n * a call to stackblitz to load the iframe\n */\n@Component({\n selector: 'aio-embedded-stackblitz',\n template: `<iframe #iframe frameborder=\"0\" width=\"100%\" height=\"100%\"></iframe>`,\n styles: [ 'iframe { min-height: 400px; }' ]\n})\nexport class EmbeddedStackblitzComponent implements AfterViewInit {\n @Input() src: string;\n\n @ViewChild('iframe', { static: true }) iframe: ElementRef;\n\n ngAfterViewInit() {\n // DEVELOPMENT TESTING ONLY\n // this.src = 'https://angular.io/resources/live-examples/quickstart/ts/stackblitz.json';\n\n if (this.iframe) {\n // security: the `src` is always authored by the documentation team\n // and is considered to be safe\n this.iframe.nativeElement.src = this.src;\n }\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EmbeddedStackblitzComponent, LiveExampleComponent } from './live-example.component';\nimport { WithCustomElementComponent } from '../element-registry';\n\n@NgModule({\n imports: [ CommonModule ],\n declarations: [ LiveExampleComponent, EmbeddedStackblitzComponent ],\n entryComponents: [ LiveExampleComponent ]\n})\nexport class LiveExampleModule implements WithCustomElementComponent {\n customElementComponent: Type<any> = LiveExampleComponent;\n}\n","/**\n * @fileoverview This file was generated by the Angular template compiler. Do not edit.\n *\n * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}\n * tslint:disable\n */ \nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"./live-example.component\";\nimport * as i2 from \"@angular/common\";\nvar styles_LiveExampleComponent = [];\nvar RenderType_LiveExampleComponent = i0.ɵcrt({ encapsulation: 2, styles: styles_LiveExampleComponent, data: {} });\nexport { RenderType_LiveExampleComponent as RenderType_LiveExampleComponent };\nfunction View_LiveExampleComponent_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, \"p\", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [\" \\u4F60\\u8FD8\\u53EF\\u4EE5 \"])), (_l()(), i0.ɵeld(2, 0, null, null, 1, \"a\", [[\"download\", \"\"], [\"title\", \"\\u4E0B\\u8F7D\\u8303\\u4F8B\"]], [[8, \"href\", 4]], null, null, null, null)), (_l()(), i0.ɵted(-1, null, [\"\\u4E0B\\u8F7D\\u8FD9\\u4E2A\\u4F8B\\u5B50\"])), (_l()(), i0.ɵted(-1, null, [\"\\u3002 \"]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.zip; _ck(_v, 2, 0, currVal_0); }); }\nfunction View_LiveExampleComponent_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, \"span\", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 2, \"div\", [], [[8, \"title\", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, \"aio-embedded-stackblitz\", [], null, null, null, View_EmbeddedStackblitzComponent_0, RenderType_EmbeddedStackblitzComponent)), i0.ɵdid(3, 4243456, null, 0, i1.EmbeddedStackblitzComponent, [], { src: [0, \"src\"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_LiveExampleComponent_2)), i0.ɵdid(5, 16384, null, 0, i2.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, \"ngIf\"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_1 = _co.stackblitz; _ck(_v, 3, 0, currVal_1); var currVal_2 = _co.enableDownload; _ck(_v, 5, 0, currVal_2); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = i0.ɵinlineInterpolate(1, \"\", _co.title, \"\"); _ck(_v, 1, 0, currVal_0); }); }\nfunction View_LiveExampleComponent_3(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, \"span\", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, \"a\", [[\"download\", \"\"]], [[8, \"href\", 4], [8, \"title\", 0]], null, null, null, null)), (_l()(), i0.ɵted(2, null, [\"\", \"\"]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.zip; var currVal_1 = i0.ɵinlineInterpolate(1, \"\", _co.title, \"\"); _ck(_v, 1, 0, currVal_0, currVal_1); var currVal_2 = _co.title; _ck(_v, 2, 0, currVal_2); }); }\nfunction View_LiveExampleComponent_5(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, \"span\", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [\" / \"])), (_l()(), i0.ɵeld(2, 0, null, null, 1, \"a\", [[\"download\", \"\"], [\"title\", \"\\u4E0B\\u8F7D\\u8303\\u4F8B\"]], [[8, \"href\", 4]], null, null, null, null)), (_l()(), i0.ɵted(-1, null, [\"\\u4E0B\\u8F7D\\u8303\\u4F8B\"]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.zip; _ck(_v, 2, 0, currVal_0); }); }\nfunction View_LiveExampleComponent_4(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, \"span\", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, \"a\", [[\"target\", \"_blank\"]], [[8, \"href\", 4], [8, \"title\", 0]], null, null, null, null)), (_l()(), i0.ɵted(2, null, [\"\", \"\"])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_LiveExampleComponent_5)), i0.ɵdid(4, 16384, null, 0, i2.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, \"ngIf\"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_3 = _co.enableDownload; _ck(_v, 4, 0, currVal_3); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.stackblitz; var currVal_1 = i0.ɵinlineInterpolate(1, \"\", _co.title, \"\"); _ck(_v, 1, 0, currVal_0, currVal_1); var currVal_2 = _co.title; _ck(_v, 2, 0, currVal_2); }); }\nexport function View_LiveExampleComponent_0(_l) { return i0.ɵvid(0, [i0.ɵqud(402653184, 1, { content: 0 }), (_l()(), i0.ɵeld(1, 0, [[1, 0], [\"content\", 1]], null, 1, \"span\", [[\"style\", \"display: none\"]], null, null, null, null, null)), i0.ɵncd(null, 0), (_l()(), i0.ɵeld(3, 0, null, null, 7, \"span\", [], null, null, null, null, null)), i0.ɵdid(4, 16384, null, 0, i2.NgSwitch, [], { ngSwitch: [0, \"ngSwitch\"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_LiveExampleComponent_1)), i0.ɵdid(6, 278528, null, 0, i2.NgSwitchCase, [i0.ViewContainerRef, i0.TemplateRef, i2.NgSwitch], { ngSwitchCase: [0, \"ngSwitchCase\"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_LiveExampleComponent_3)), i0.ɵdid(8, 278528, null, 0, i2.NgSwitchCase, [i0.ViewContainerRef, i0.TemplateRef, i2.NgSwitch], { ngSwitchCase: [0, \"ngSwitchCase\"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_LiveExampleComponent_4)), i0.ɵdid(10, 16384, null, 0, i2.NgSwitchDefault, [i0.ViewContainerRef, i0.TemplateRef, i2.NgSwitch], null, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.mode; _ck(_v, 4, 0, currVal_0); var currVal_1 = \"embedded\"; _ck(_v, 6, 0, currVal_1); var currVal_2 = \"downloadOnly\"; _ck(_v, 8, 0, currVal_2); }, null); }\nexport function View_LiveExampleComponent_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, \"live-example\", [], null, null, null, View_LiveExampleComponent_0, RenderType_LiveExampleComponent)), i0.ɵdid(1, 1097728, null, 0, i1.LiveExampleComponent, [i0.ElementRef, i2.Location], null, null)], null, null); }\nvar LiveExampleComponentNgFactory = i0.ɵccf(\"live-example\", i1.LiveExampleComponent, View_LiveExampleComponent_Host_0, {}, {}, [\"*\"]);\nexport { LiveExampleComponentNgFactory as LiveExampleComponentNgFactory };\nvar styles_EmbeddedStackblitzComponent = [\"iframe[_ngcontent-%COMP%] { min-height: 400px; }\"];\nvar RenderType_EmbeddedStackblitzComponent = i0.ɵcrt({ encapsulation: 0, styles: styles_EmbeddedStackblitzComponent, data: {} });\nexport { RenderType_EmbeddedStackblitzComponent as RenderType_EmbeddedStackblitzComponent };\nexport function View_EmbeddedStackblitzComponent_0(_l) { return i0.ɵvid(0, [i0.ɵqud(402653184, 1, { iframe: 0 }), (_l()(), i0.ɵeld(1, 0, [[1, 0], [\"iframe\", 1]], null, 0, \"iframe\", [[\"frameborder\", \"0\"], [\"height\", \"100%\"], [\"width\", \"100%\"]], null, null, null, null, null))], null, null); }\nexport function View_EmbeddedStackblitzComponent_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, \"aio-embedded-stackblitz\", [], null, null, null, View_EmbeddedStackblitzComponent_0, RenderType_EmbeddedStackblitzComponent)), i0.ɵdid(1, 4243456, null, 0, i1.EmbeddedStackblitzComponent, [], null, null)], null, null); }\nvar EmbeddedStackblitzComponentNgFactory = i0.ɵccf(\"aio-embedded-stackblitz\", i1.EmbeddedStackblitzComponent, View_EmbeddedStackblitzComponent_Host_0, { src: \"src\" }, {}, []);\nexport { EmbeddedStackblitzComponentNgFactory as EmbeddedStackblitzComponentNgFactory };\n","<!-- Content projection is used to get the content HTML provided to the component. -->\n<span #content style=\"display: none\"><ng-content></ng-content></span>\n\n<span [ngSwitch]=\"mode\">\n <span *ngSwitchCase=\"'embedded'\">\n <div title=\"{{title}}\">\n <aio-embedded-stackblitz [src]=\"stackblitz\"></aio-embedded-stackblitz>\n </div>\n <p *ngIf=\"enableDownload\">\n 你还可以 <a [href]=\"zip\" download title=\"下载范例\">下载这个例子</a>。\n </p>\n </span>\n <span *ngSwitchCase=\"'downloadOnly'\">\n <a [href]=\"zip\" download title=\"{{title}}\">{{title}}</a>\n </span>\n <span *ngSwitchDefault>\n <a [href]=\"stackblitz\" target=\"_blank\" title=\"{{title}}\">{{title}}</a>\n <span *ngIf=\"enableDownload\">\n / <a [href]=\"zip\" download title=\"下载范例\">下载范例</a>\n </span>\n </span>\n</span>\n","<iframe #iframe frameborder=\"0\" width=\"100%\" height=\"100%\"></iframe>","/**\n * @fileoverview This file was generated by the Angular template compiler. Do not edit.\n *\n * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}\n * tslint:disable\n */ \nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"./live-example.module\";\nimport * as i2 from \"./live-example.component.ngfactory\";\nimport * as i3 from \"@angular/common\";\nvar LiveExampleModuleNgFactory = i0.ɵcmf(i1.LiveExampleModule, [], function (_l) { return i0.ɵmod([i0.ɵmpd(512, i0.ComponentFactoryResolver, i0.ɵCodegenComponentFactoryResolver, [[8, [i2.LiveExampleComponentNgFactory]], [3, i0.ComponentFactoryResolver], i0.NgModuleRef]), i0.ɵmpd(4608, i3.NgLocalization, i3.NgLocaleLocalization, [i0.LOCALE_ID, [2, i3.ɵangular_packages_common_common_a]]), i0.ɵmpd(1073742336, i3.CommonModule, i3.CommonModule, []), i0.ɵmpd(1073742336, i1.LiveExampleModule, i1.LiveExampleModule, [])]); });\nexport { LiveExampleModuleNgFactory as LiveExampleModuleNgFactory };\n"],"sourceRoot":""}