Icard/angular-clarity-master(work.../node_modules/ng2-charts/fesm2022/ng2-charts.mjs.map

1 line
20 KiB
Plaintext

{"version":3,"file":"ng2-charts.mjs","sources":["../../../../libs/ng2-charts/src/lib/theme.service.ts","../../../../libs/ng2-charts/src/lib/base-chart.directive.ts","../../../../libs/ng2-charts/src/lib/base-colors.ts","../../../../libs/ng2-charts/src/lib/get-colors.ts","../../../../libs/ng2-charts/src/lib/ng-charts.module.ts","../../../../libs/ng2-charts/src/index.ts","../../../../libs/ng2-charts/src/ng2-charts.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\nimport { ChartConfiguration, ChartOptions } from 'chart.js';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ThemeService {\n private pColorschemesOptions?: ChartOptions;\n public colorschemesOptions: BehaviorSubject<ChartOptions | undefined> =\n new BehaviorSubject<ChartOptions | undefined>(undefined);\n\n setColorschemesOptions(options: ChartConfiguration['options']): void {\n this.pColorschemesOptions = options;\n this.colorschemesOptions.next(options);\n }\n\n getColorschemesOptions(): ChartConfiguration['options'] {\n return this.pColorschemesOptions;\n }\n}\n","import {\n Directive,\n ElementRef,\n EventEmitter,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n Output,\n SimpleChanges,\n} from '@angular/core';\nimport {\n Chart,\n ChartConfiguration,\n ChartEvent,\n ChartType,\n DefaultDataPoint,\n Plugin,\n} from 'chart.js';\n\nimport { ThemeService } from './theme.service';\nimport { Subscription } from 'rxjs';\nimport { distinctUntilChanged } from 'rxjs/operators';\n\nimport { merge } from 'lodash-es';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: 'canvas[baseChart]',\n exportAs: 'base-chart',\n})\nexport class BaseChartDirective<\n TType extends ChartType = ChartType,\n TData = DefaultDataPoint<TType>,\n TLabel = unknown\n> implements OnDestroy, OnChanges\n{\n @Input() public type: ChartConfiguration<TType, TData, TLabel>['type'] =\n 'bar' as TType;\n @Input() public legend?: boolean;\n @Input() public data?: ChartConfiguration<TType, TData, TLabel>['data'];\n @Input() public options: ChartConfiguration<TType, TData, TLabel>['options'];\n @Input() public plugins: Plugin<TType>[] = [];\n\n @Input() public labels?: ChartConfiguration<\n TType,\n TData,\n TLabel\n >['data']['labels'];\n @Input() public datasets?: ChartConfiguration<\n TType,\n TData,\n TLabel\n >['data']['datasets'];\n\n @Output() public chartClick: EventEmitter<{\n event?: ChartEvent;\n active?: object[];\n }> = new EventEmitter();\n @Output() public chartHover: EventEmitter<{\n event: ChartEvent;\n active: object[];\n }> = new EventEmitter();\n\n public ctx: string;\n public chart?: Chart<TType, TData, TLabel>;\n\n private subs: Subscription[] = [];\n private themeOverrides: ChartConfiguration['options'] = {};\n\n public constructor(\n element: ElementRef,\n private zone: NgZone,\n private themeService: ThemeService\n ) {\n this.ctx = element.nativeElement.getContext('2d');\n this.subs.push(\n this.themeService.colorschemesOptions\n .pipe(distinctUntilChanged())\n .subscribe((r) => this.themeChanged(r))\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n const requireRender = ['type'];\n const propertyNames = Object.getOwnPropertyNames(changes);\n\n if (\n propertyNames.some((key) => requireRender.includes(key)) ||\n propertyNames.every((key) => changes[key].isFirstChange())\n ) {\n this.render();\n } else {\n const config = this.getChartConfiguration();\n\n // Using assign to avoid changing the original object reference\n if (this.chart) {\n Object.assign(this.chart.config.data, config.data);\n if (this.chart.config.plugins) {\n Object.assign(this.chart.config.plugins, config.plugins);\n }\n if (this.chart.config.options) {\n Object.assign(this.chart.config.options, config.options);\n }\n }\n\n this.update();\n }\n }\n\n public ngOnDestroy(): void {\n if (this.chart) {\n this.chart.destroy();\n this.chart = void 0;\n }\n this.subs.forEach((s) => s.unsubscribe());\n }\n\n public render(): Chart<TType, TData, TLabel> {\n if (this.chart) {\n this.chart.destroy();\n }\n\n return this.zone.runOutsideAngular(\n () => (this.chart = new Chart(this.ctx, this.getChartConfiguration()))\n );\n }\n\n public update(duration?: any): void {\n if (this.chart) {\n this.zone.runOutsideAngular(() => this.chart?.update(duration));\n }\n }\n\n public hideDataset(index: number, hidden: boolean): void {\n if (this.chart) {\n this.chart.getDatasetMeta(index).hidden = hidden;\n this.update();\n }\n }\n\n public isDatasetHidden(index: number): boolean | undefined {\n return this.chart?.getDatasetMeta(index)?.hidden;\n }\n\n public toBase64Image(): string | undefined {\n return this.chart?.toBase64Image();\n }\n\n private themeChanged(options: ChartConfiguration['options']): void {\n this.themeOverrides = options;\n if (this.chart) {\n if (this.chart.config.options) {\n Object.assign(this.chart.config.options, this.getChartOptions());\n }\n\n this.update();\n }\n }\n\n private getChartOptions(): ChartConfiguration<\n TType,\n TData,\n TLabel\n >['options'] {\n return merge(\n {\n onHover: (event: ChartEvent, active: object[]) => {\n if (!this.chartHover.observed && !this.chartHover.observers?.length) {\n return;\n }\n\n this.zone.run(() => this.chartHover.emit({ event, active }));\n },\n onClick: (event?: ChartEvent, active?: object[]) => {\n if (!this.chartClick.observed && !this.chartClick.observers?.length) {\n return;\n }\n\n this.zone.run(() => this.chartClick.emit({ event, active }));\n },\n },\n this.themeOverrides,\n this.options,\n {\n plugins: {\n legend: {\n display: this.legend,\n },\n },\n }\n );\n }\n\n private getChartConfiguration(): ChartConfiguration<TType, TData, TLabel> {\n return {\n type: this.type,\n data: this.getChartData(),\n options: this.getChartOptions(),\n plugins: this.plugins,\n };\n }\n\n private getChartData(): ChartConfiguration<TType, TData, TLabel>['data'] {\n return this.data\n ? this.data\n : {\n labels: this.labels || [],\n datasets: this.datasets || [],\n };\n }\n}\n","export const baseColors: Array<number[]> = [\n [255, 99, 132],\n [54, 162, 235],\n [255, 206, 86],\n [231, 233, 237],\n [75, 192, 192],\n [151, 187, 205],\n [220, 220, 220],\n [247, 70, 74],\n [70, 191, 189],\n [253, 180, 92],\n [148, 159, 177],\n [77, 83, 96],\n];\n","import { baseColors } from './base-colors';\nimport { Color } from 'chart.js';\n\nexport const builtInDefaults = {\n plugins: { colors: { enabled: false } },\n datasets: {\n line: {\n backgroundColor: (context: any) =>\n rgba(generateColor(context.datasetIndex), 0.4),\n borderColor: (context: any) =>\n rgba(generateColor(context.datasetIndex), 1),\n pointBackgroundColor: (context: any) =>\n rgba(generateColor(context.datasetIndex), 1),\n pointBorderColor: '#fff',\n },\n bar: {\n backgroundColor: (context: any) =>\n rgba(generateColor(context.datasetIndex), 0.6),\n borderColor: (context: any) =>\n rgba(generateColor(context.datasetIndex), 1),\n },\n get radar(): { [key: string]: ((context: any) => Color) | Color } {\n return this.line;\n },\n doughnut: {\n backgroundColor: (context: any) =>\n rgba(generateColor(context.dataIndex), 0.6),\n borderColor: '#fff',\n },\n get pie(): { [key: string]: ((context: any) => Color) | Color } {\n return this.doughnut;\n },\n polarArea: {\n backgroundColor: (context: any) =>\n rgba(generateColor(context.dataIndex), 0.6),\n borderColor: (context: any) => rgba(generateColor(context.dataIndex), 1),\n },\n get bubble(): { [key: string]: ((context: any) => Color) | Color } {\n return this.doughnut;\n },\n get scatter(): { [key: string]: ((context: any) => Color) | Color } {\n return this.doughnut;\n },\n get area(): { [key: string]: ((context: any) => Color) | Color } {\n return this.polarArea;\n },\n },\n};\n\nfunction rgba(colour: Array<number>, alpha: number): Color {\n return 'rgba(' + colour.concat(alpha).join(',') + ')';\n}\n\nfunction getRandomInt(min: number, max: number): number {\n return Math.floor(Math.random() * (max - min + 1)) + min;\n}\n\nfunction getRandomColor(): number[] {\n return [getRandomInt(0, 255), getRandomInt(0, 255), getRandomInt(0, 255)];\n}\n\n/**\n * Generate colors\n */\nfunction generateColor(index = 0): number[] {\n return baseColors[index] || getRandomColor();\n}\n","import {\n Injectable,\n ModuleWithProviders,\n NgModule,\n Optional,\n} from '@angular/core';\nimport { BaseChartDirective } from './base-chart.directive';\nimport {\n Chart,\n registerables,\n ChartComponentLike,\n Defaults,\n defaults,\n} from 'chart.js';\nimport { merge } from 'lodash-es';\nimport { builtInDefaults } from './get-colors';\n\n@Injectable({ providedIn: 'root' })\nexport class NgChartsConfiguration {\n public plugins?: ChartComponentLike[];\n public defaults?: Partial<Defaults>;\n public generateColors = true;\n}\n\nChart.register(...registerables);\n\n@NgModule({\n imports: [],\n declarations: [BaseChartDirective],\n exports: [BaseChartDirective],\n})\nexport class NgChartsModule {\n constructor(@Optional() config?: NgChartsConfiguration) {\n if (config?.plugins) Chart.register(...config.plugins);\n\n const ngChartsDefaults = merge(\n config?.generateColors ? builtInDefaults : {},\n config?.defaults || {}\n );\n\n defaults.set(ngChartsDefaults);\n }\n\n public static forRoot(\n config?: NgChartsConfiguration\n ): ModuleWithProviders<NgChartsModule> {\n return {\n ngModule: NgChartsModule,\n providers: [{ provide: NgChartsConfiguration, useValue: config }],\n };\n }\n}\n","/*\n * Public API Surface of ng2-charts\n */\n\nexport * from './lib/ng-charts.module';\nexport * from './lib/base-chart.directive';\nexport * from './lib/theme.service';\nexport * from './lib/base-colors';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.ThemeService"],"mappings":";;;;;;;MAOa,YAAY,CAAA;AAHzB,IAAA,WAAA,GAAA;AAKS,QAAA,IAAA,CAAA,mBAAmB,GACxB,IAAI,eAAe,CAA2B,SAAS,CAAC,CAAC;AAU5D,KAAA;AARC,IAAA,sBAAsB,CAAC,OAAsC,EAAA;AAC3D,QAAA,IAAI,CAAC,oBAAoB,GAAG,OAAO,CAAC;AACpC,QAAA,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACxC;IAED,sBAAsB,GAAA;QACpB,OAAO,IAAI,CAAC,oBAAoB,CAAC;KAClC;8GAZU,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAZ,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA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