UNPKG

@alauda-fe/common

Version:

Alauda frontend team common codes.

43 lines (42 loc) 2.34 kB
import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core'; import { Chart, Legend as ChartLegend } from 'zz-chart'; import { StringMap } from '../../core/public-api'; import * as i0 from "@angular/core"; export interface LegendItem { name: string; color: string; activate?: boolean; } export declare class LegendPayload { legend: LegendItem; source: LegendItem[]; } export declare class LegendComponent implements OnInit, OnChanges { readonly cdr: ChangeDetectorRef; symbol: 'circle' | 'square' | 'line'; template: TemplateRef<unknown> | string | 'dropdown'; mode: 'card' | 'default'; translation: boolean; leftOperation: TemplateRef<unknown>; leftOperationContext: StringMap; rightOperation: TemplateRef<unknown>; hideLegend: boolean; selectAllOperation: boolean; selectAllName: string; chart: Chart; changeLegend: EventEmitter<LegendItem[]>; get noData(): boolean; get legendInstance(): ChartLegend; get legendItem(): LegendItem[]; legendEntries: LegendItem[]; isTemplateRef: (label: any) => label is TemplateRef<unknown>; allSelected: boolean; get symbolName(): string; constructor(cdr: ChangeDetectorRef); ngOnChanges({ chart }: SimpleChanges): void; ngOnInit(): void; selected(legend: LegendItem): void; allSelect(select: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration<LegendComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<LegendComponent, "acl-base-legend", never, { "symbol": { "alias": "symbol"; "required": false; }; "template": { "alias": "template"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "translation": { "alias": "translation"; "required": false; }; "leftOperation": { "alias": "leftOperation"; "required": false; }; "leftOperationContext": { "alias": "leftOperationContext"; "required": false; }; "rightOperation": { "alias": "rightOperation"; "required": false; }; "hideLegend": { "alias": "hideLegend"; "required": false; }; "selectAllOperation": { "alias": "selectAllOperation"; "required": false; }; "selectAllName": { "alias": "selectAllName"; "required": false; }; "chart": { "alias": "chart"; "required": false; }; }, { "changeLegend": "changeLegend"; }, never, never, false, never>; }