Browse Source

feat(client): enforce encapsulation

pull/6859/head
KenTandrian 1 day ago
parent
commit
3a24348d39
  1. 24
      apps/client/src/app/components/investment-chart/investment-chart.component.ts

24
apps/client/src/app/components/investment-chart/investment-chart.component.ts

@ -55,20 +55,20 @@ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
templateUrl: './investment-chart.component.html' templateUrl: './investment-chart.component.html'
}) })
export class GfInvestmentChartComponent implements OnChanges, OnDestroy { export class GfInvestmentChartComponent implements OnChanges, OnDestroy {
@Input() benchmarkDataItems: InvestmentItem[] = []; @Input() public benchmarkDataItems: InvestmentItem[] = [];
@Input() benchmarkDataLabel = ''; @Input() public benchmarkDataLabel = '';
@Input() colorScheme: ColorScheme; @Input() public colorScheme: ColorScheme;
@Input() currency: string; @Input() public currency: string;
@Input() groupBy: GroupBy; @Input() public groupBy: GroupBy;
@Input() historicalDataItems: LineChartItem[] = []; @Input() public historicalDataItems: LineChartItem[] = [];
@Input() isInPercentage = false; @Input() public isInPercentage = false;
@Input() isLoading = false; @Input() public isLoading = false;
@Input() locale = getLocale(); @Input() public locale = getLocale();
@Input() savingsRate = 0; @Input() public savingsRate = 0;
@ViewChild('chartCanvas') chartCanvas: ElementRef<HTMLCanvasElement>; @ViewChild('chartCanvas') private chartCanvas: ElementRef<HTMLCanvasElement>;
public chart: Chart<'bar' | 'line'>; private chart: Chart<'bar' | 'line'>;
private investments: InvestmentItem[]; private investments: InvestmentItem[];
private values: LineChartItem[]; private values: LineChartItem[];

Loading…
Cancel
Save