1 line
9.7 KiB
Plaintext
1 line
9.7 KiB
Plaintext
{"version":3,"sources":["webpack:///./src async","webpack:///./src/main.ts","webpack:///./src/app/app.component.ts","webpack:///./src/app/app.module.ts","webpack:///./src/app/chart.component.ts","webpack:///./src/environments/environment.ts","webpack:///./src/app/app.component.css","webpack:///./src/app/app.component.html","webpack:///./src/app/chart.component.html"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA,uCAAuC,WAAW;AAClD;AACA;AACA;;;;;;;;;;;;;;ACN0E;AAC5B;AACU;AACZ;AAE5C,EAAE,CAAC,CAAC,8EAAW,CAAC,UAAU,CAAC,CAAC,CAAC;IAC3B,oFAAc,EAAE,CAAC;AACnB,CAAC;AAED,wHAAsB,EAAE,CAAC,eAAe,CAAC,kEAAS,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;ACTX;AAOzC;IAAA;QACE,UAAK,GAAG,YAAY,CAAC;IACvB,CAAC;IAPD;QAAC,+EAAS,CAAC;YACT,QAAQ,EAAE,UAAU;YACpB,kCAAmC;YACnC,kCAAkC;SACnC,CAAC;;oBAAA;IAGF,mBAAC;AAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;ACTwD;AACjB;AACI;AACF;AACU;AAEN;AACQ;AAgBtD;IAAA;IAAyB,CAAC;IAd1B;QAAC,8EAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,oEAAY;gBACZ,4EAAkB;aACnB;YACD,OAAO,EAAE;gBACP,gFAAa;gBACb,mEAAW;gBACX,iEAAU;gBACV,mEAAY;aACb;YACD,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,CAAC,oEAAY,CAAC;SAC1B,CAAC;;iBAAA;IACuB,gBAAC;AAAD,CAAC;;;;;;;;;;;;;;;;;;;;ACvBe;AAMzC;IAAA;QACE,YAAY;QACL,kBAAa,GAAc;YAChC,EAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAA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AsB,kBAAkB,KAAK,C;;;;;;;ACA7C,8BAA8B,OAAO,6C;;;;;;;ACArC,uGAAuG,srBAAsrB,OAAO,0HAA0H,iBAAiB,gBAAgB,iH","file":"main.bundle.js","sourcesContent":["function webpackEmptyContext(req) {\n\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nmodule.exports = webpackEmptyContext;\nwebpackEmptyContext.id = 342;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src async\n// module id = 342\n// module chunks = 1","import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\nimport { enableProdMode } from '@angular/core';\r\nimport { environment } from './environments/environment';\r\nimport { AppModule } from './app/app.module';\r\n\r\nif (environment.production) {\r\n enableProdMode();\r\n}\r\n\r\nplatformBrowserDynamic().bootstrapModule(AppModule);\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.ts","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.css']\r\n})\r\nexport class AppComponent {\r\n title = 'app works!';\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/app.component.ts","import { BrowserModule } from '@angular/platform-browser';\r\nimport { NgModule } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { HttpModule } from '@angular/http';\r\nimport { ChartsModule } from 'ng2-charts/ng2-charts';\r\n\r\nimport { AppComponent } from './app.component';\r\nimport { LineChartComponent } from './chart.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n AppComponent,\r\n LineChartComponent\r\n ],\r\n imports: [\r\n BrowserModule,\r\n FormsModule,\r\n HttpModule,\r\n ChartsModule\r\n ],\r\n providers: [],\r\n bootstrap: [AppComponent]\r\n})\r\nexport class AppModule { }\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/app.module.ts","import { Component } from '@angular/core';\r\n \r\n@Component({\r\n selector: 'line-chart',\r\n templateUrl: './chart.component.html'\r\n})\r\nexport class LineChartComponent {\r\n // lineChart\r\n public lineChartData:Array<any> = [\r\n {data: [65, 59, 80, 81, 56, 55, 40], label: 'Series A'},\r\n {data: [28, 48, 40, 19, 86, 27, 90], label: 'Series B'},\r\n {data: [18, 48, 77, 9, 100, 27, 40], label: 'Series C'}\r\n ];\r\n public lineChartLabels:Array<any> = ['January', 'February', 'March', 'April', 'May', 'June', 'July'];\r\n public lineChartOptions:any = {\r\n responsive: true\r\n };\r\n public lineChartColors:Array<any> = [\r\n { // grey\r\n backgroundColor: 'rgba(148,159,177,0.2)',\r\n borderColor: 'rgba(148,159,177,1)',\r\n pointBackgroundColor: 'rgba(148,159,177,1)',\r\n pointBorderColor: '#fff',\r\n pointHoverBackgroundColor: '#fff',\r\n pointHoverBorderColor: 'rgba(148,159,177,0.8)'\r\n },\r\n { // dark grey\r\n backgroundColor: 'rgba(77,83,96,0.2)',\r\n borderColor: 'rgba(77,83,96,1)',\r\n pointBackgroundColor: 'rgba(77,83,96,1)',\r\n pointBorderColor: '#fff',\r\n pointHoverBackgroundColor: '#fff',\r\n pointHoverBorderColor: 'rgba(77,83,96,1)'\r\n },\r\n { // grey\r\n backgroundColor: 'rgba(148,159,177,0.2)',\r\n borderColor: 'rgba(148,159,177,1)',\r\n pointBackgroundColor: 'rgba(148,159,177,1)',\r\n pointBorderColor: '#fff',\r\n pointHoverBackgroundColor: '#fff',\r\n pointHoverBorderColor: 'rgba(148,159,177,0.8)'\r\n }\r\n ];\r\n public lineChartLegend:boolean = true;\r\n public lineChartType:string = 'line';\r\n \r\n public randomize():void {\r\n let _lineChartData:Array<any> = new Array(this.lineChartData.length);\r\n for (let i = 0; i < this.lineChartData.length; i++) {\r\n _lineChartData[i] = {data: new Array(this.lineChartData[i].data.length), label: this.lineChartData[i].label};\r\n for (let j = 0; j < this.lineChartData[i].data.length; j++) {\r\n _lineChartData[i].data[j] = Math.floor((Math.random() * 100) + 1);\r\n }\r\n }\r\n this.lineChartData = _lineChartData;\r\n }\r\n \r\n // events\r\n public chartClicked(e:any):void {\r\n console.log(e);\r\n }\r\n \r\n public chartHovered(e:any):void {\r\n console.log(e);\r\n }\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/app/chart.component.ts","// The file contents for the current environment will overwrite these during build.\r\n// The build system defaults to the dev environment which uses `environment.ts`, but if you do\r\n// `ng build --env=prod` then `environment.prod.ts` will be used instead.\r\n// The list of which env maps to which file can be found in `angular-cli.json`.\r\n\r\nexport const environment = {\r\n production: false\r\n};\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/environments/environment.ts","module.exports = \"h1 {\\r\\n\\tcolor: blue;\\r\\n}\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/app.component.css\n// module id = 611\n// module chunks = 1","module.exports = \"<h1>\\r\\n {{title}}\\r\\n\\r\\n <line-chart></line-chart>\\r\\n</h1>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/app.component.html\n// module id = 612\n// module chunks = 1","module.exports = \"<div class=\\\"row\\\">\\r\\n <div class=\\\"col-md-6\\\">\\r\\n <div style=\\\"display: block;\\\">\\r\\n <canvas baseChart width=\\\"400\\\" height=\\\"400\\\"\\r\\n [datasets]=\\\"lineChartData\\\"\\r\\n [labels]=\\\"lineChartLabels\\\"\\r\\n [options]=\\\"lineChartOptions\\\"\\r\\n [colors]=\\\"lineChartColors\\\"\\r\\n [legend]=\\\"lineChartLegend\\\"\\r\\n [chartType]=\\\"lineChartType\\\"\\r\\n (chartHover)=\\\"chartHovered($event)\\\"\\r\\n (chartClick)=\\\"chartClicked($event)\\\"></canvas>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"col-md-6\\\" style=\\\"margin-bottom: 10px\\\">\\r\\n <table class=\\\"table table-responsive table-condensed\\\">\\r\\n <tr>\\r\\n <th *ngFor=\\\"let label of lineChartLabels\\\">{{label}}</th>\\r\\n </tr>\\r\\n <tr *ngFor=\\\"let d of lineChartData\\\">\\r\\n <td *ngFor=\\\"let label of lineChartLabels; let j=index\\\">{{d && d.data[j]}}</td>\\r\\n </tr>\\r\\n </table>\\r\\n <button (click)=\\\"randomize()\\\">CLICK</button>\\r\\n </div>\\r\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/app/chart.component.html\n// module id = 613\n// module chunks = 1"],"sourceRoot":""} |