UNPKG

primeng

Version:

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

118 lines (114 loc) 4.46 kB
import { ProgressBarPassThrough, ProgressBarMode, ProgressBarContentTemplateContext } from 'primeng/types/progressbar'; export * from 'primeng/types/progressbar'; import * as _angular_core from '@angular/core'; import { TemplateRef } from '@angular/core'; import { BaseComponent } from 'primeng/basecomponent'; import * as i1 from 'primeng/bind'; import { Bind } from 'primeng/bind'; import { BaseStyle } from 'primeng/base'; import * as i2 from 'primeng/api'; /** * * ProgressBar is a process status indicator. * * [Live Demo](https://www.primeng.org/progressbar) * * @module progressbarstyle * */ declare enum ProgressBarClasses { /** * Class name of the root element */ root = "p-progressbar", /** * Class name of the value element */ value = "p-progressbar-value", /** * Class name of the label element */ label = "p-progressbar-label" } declare class ProgressBarStyle extends BaseStyle { name: string; style: string; classes: { root: ({ instance }: { instance: any; }) => (string | { 'p-progressbar-determinate': boolean; 'p-progressbar-indeterminate': boolean; })[]; value: string; label: string; }; static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressBarStyle, never>; static ɵprov: _angular_core.ɵɵInjectableDeclaration<ProgressBarStyle>; } interface ProgressBarStyle extends BaseStyle { } /** * ProgressBar is a process status indicator. * @group Components */ declare class ProgressBar extends BaseComponent<ProgressBarPassThrough> { componentName: string; $pcProgressBar: ProgressBar | undefined; bindDirectiveInstance: Bind; /** * Current value of the progress. * @group Props */ value: _angular_core.InputSignalWithTransform<number | undefined, unknown>; /** * Whether to display the progress bar value. * @group Props */ showValue: _angular_core.InputSignalWithTransform<boolean, unknown>; /** * Style class of the value element. * @group Props */ valueStyleClass: _angular_core.InputSignal<string | undefined>; /** * Unit sign appended to the value. * @group Props */ unit: _angular_core.InputSignal<string>; /** * Defines the mode of the progress * @defaultValue 'determinate' * @group Props */ mode: _angular_core.InputSignal<ProgressBarMode>; /** * Color for the background of the progress. * @group Props */ color: _angular_core.InputSignal<string | undefined>; /** * Template of the content. * @param {ProgressBarContentTemplateContext} context - content context. * @see {@link ProgressBarContentTemplateContext} * @group Templates */ contentTemplate: _angular_core.Signal<TemplateRef<ProgressBarContentTemplateContext> | undefined>; _componentStyle: ProgressBarStyle; onAfterViewChecked(): void; dataP: _angular_core.Signal<string>; ariaLevel: _angular_core.Signal<string>; contentTemplateContext: _angular_core.Signal<{ $implicit: number | undefined; }>; showLabel: _angular_core.Signal<boolean>; labelDisplay: _angular_core.Signal<"flex" | "none">; static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressBar, never>; static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgressBar, "p-progressbar, p-progress-bar", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "valueStyleClass": { "alias": "valueStyleClass"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, ["contentTemplate"], never, true, [{ directive: typeof i1.Bind; inputs: {}; outputs: {}; }]>; } declare class ProgressBarModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressBarModule, never>; static ɵmod: _angular_core.ɵɵNgModuleDeclaration<ProgressBarModule, never, [typeof ProgressBar, typeof i2.SharedModule], [typeof ProgressBar, typeof i2.SharedModule]>; static ɵinj: _angular_core.ɵɵInjectorDeclaration<ProgressBarModule>; } export { ProgressBar, ProgressBarClasses, ProgressBarModule, ProgressBarStyle };