UNPKG

primeng

Version:

PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB

108 lines (107 loc) 4.74 kB
import { AfterContentInit, ElementRef, QueryList, TemplateRef } from '@angular/core'; import { PrimeTemplate } from 'primeng/api'; import { BaseComponent } from 'primeng/basecomponent'; import { MeterItem } from './metergroup.interface'; import { MeterGroupStyle } from './style/metergroupstyle'; import * as i0 from "@angular/core"; import * as i1 from "primeng/api"; export declare class MeterGroupLabel { value: any[]; labelPosition: 'start' | 'end'; labelOrientation: 'horizontal' | 'vertical'; min: number; max: number; iconTemplate: TemplateRef<any> | undefined; get labelClass(): { [key: string]: boolean; }; parentInstance: MeterGroup; static ɵfac: i0.ɵɵFactoryDeclaration<MeterGroupLabel, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MeterGroupLabel, "p-meterGroupLabel, p-metergrouplabel", never, { "value": { "alias": "value"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "labelOrientation": { "alias": "labelOrientation"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "iconTemplate": { "alias": "iconTemplate"; "required": false; }; }, {}, never, never, true, never>; } /** * MeterGroup displays scalar measurements within a known range. * @group Components */ export declare class MeterGroup extends BaseComponent implements AfterContentInit { /** * Current value of the metergroup. * @group Props */ value: MeterItem[] | undefined; /** * Mininum boundary value. * @group Props */ min: number; /** * Maximum boundary value. * @group Props */ max: number; /** * Specifies the layout of the component, valid values are 'horizontal' and 'vertical'. * @group Props */ orientation: 'horizontal' | 'vertical'; /** * Specifies the label position of the component, valid values are 'start' and 'end'. * @group Props */ labelPosition: 'start' | 'end'; /** * Specifies the label orientation of the component, valid values are 'horizontal' and 'vertical'. * @group Props */ labelOrientation: 'horizontal' | 'vertical' | undefined; /** * Inline style of the element. * @group Props */ style: { [klass: string]: any; } | null | undefined; /** * Style class of the element. * @group Props */ styleClass: string | undefined; get vertical(): boolean; get containerClass(): { 'p-metergroup p-component': boolean; 'p-metergroup-horizontal': boolean; 'p-metergroup-vertical': boolean; }; labelTemplate: TemplateRef<any> | undefined; meterTemplate: TemplateRef<any> | undefined; endTemplate: TemplateRef<any> | undefined; startTemplate: TemplateRef<any> | undefined; iconTemplate: TemplateRef<any> | undefined; templates: QueryList<PrimeTemplate> | undefined; _labelTemplate: TemplateRef<any> | undefined; _meterTemplate: TemplateRef<any> | undefined; _endTemplate: TemplateRef<any> | undefined; _startTemplate: TemplateRef<any> | undefined; _iconTemplate: TemplateRef<any> | undefined; _componentStyle: MeterGroupStyle; container: ElementRef; ngAfterViewInit(): void; ngAfterContentInit(): void; percent(meter?: number): number; percentValue(meter: any): string; meterStyle(val: any): { backgroundColor: any; width: string; height: string; }; totalPercent(): number; percentages(): any[]; trackByFn(index: number): number; static ɵfac: i0.ɵɵFactoryDeclaration<MeterGroup, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MeterGroup, "p-meterGroup, p-metergroup, p-meter-group", never, { "value": { "alias": "value"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "labelOrientation": { "alias": "labelOrientation"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; }, {}, ["labelTemplate", "meterTemplate", "endTemplate", "startTemplate", "iconTemplate", "templates"], never, true, never>; } export declare class MeterGroupModule { static ɵfac: i0.ɵɵFactoryDeclaration<MeterGroupModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<MeterGroupModule, never, [typeof MeterGroup, typeof i1.SharedModule], [typeof MeterGroup, typeof i1.SharedModule]>; static ɵinj: i0.ɵɵInjectorDeclaration<MeterGroupModule>; }