import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { ApexOptions } from '../../chart/chart.component'; import { defaultChartOptions } from '../../../utils/default-chart-options'; import { MatBottomSheet } from '@angular/material/bottom-sheet'; import { ShareBottomSheetComponent } from '../../share-bottom-sheet/share-bottom-sheet.component'; import { scaleInOutAnimation } from '../../../animations/scale-in-out.animation'; @Component({ selector: 'vex-widget-quick-line-chart', templateUrl: './widget-quick-line-chart.component.html', changeDetection: ChangeDetectionStrategy.OnPush, animations: [scaleInOutAnimation] }) export class WidgetQuickLineChartComponent { @Input() icon: string; @Input() value: string; @Input() label: string; @Input() iconClass: string; @Input() options: ApexOptions = defaultChartOptions({ chart: { type: 'area', height: 100 } }); @Input() series: ApexNonAxisChartSeries | ApexAxisChartSeries; showButton: boolean; constructor(private _bottomSheet: MatBottomSheet) {} openSheet() { this._bottomSheet.open(ShareBottomSheetComponent); } }