/** * * ProgressBar is a process status indicator. * * [Live Demo](https://www.primevue.org/progressbar) * * @module progressbar * */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { PassThroughOptions } from '../passthrough'; import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers'; export declare type ProgressBarPassThroughOptionType = ProgressBarPassThroughAttributes | ((options: ProgressBarPassThroughMethodOptions) => ProgressBarPassThroughAttributes | string) | string | null | undefined; /** * Custom passthrough(pt) option method. */ export interface ProgressBarPassThroughMethodOptions { /** * Defines instance. */ instance: any; /** * Defines valid properties. */ props: ProgressBarProps; /** * Defines passthrough(pt) options in global config. */ global: object | undefined; /** * Defines parent instance. */ parent: T; } /** * Custom passthrough(pt) options. * @see {@link ProgressBarProps.pt} */ export interface ProgressBarPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: ProgressBarPassThroughOptionType; /** * Used to pass attributes to the value's DOM element. */ value?: ProgressBarPassThroughOptionType; /** * Used to pass attributes to the label's DOM element. */ label?: ProgressBarPassThroughOptionType; /** * Used to manage all lifecycle hooks. * @see {@link BaseComponent.ComponentHooks} */ hooks?: ComponentHooks; } /** * Custom passthrough attributes for each DOM elements */ export interface ProgressBarPassThroughAttributes { [key: string]: any; } /** * Defines valid properties in ProgressBar component. */ export interface ProgressBarProps { /** * Current value of the progress. */ value?: number | undefined; /** * Defines the mode of the progress * @defaultValue determinate */ mode?: 'determinate' | 'indeterminate' | undefined; /** * Whether to display the progress bar value. * @defaultValue true */ showValue?: boolean | undefined; /** * Used to pass attributes to DOM elements inside the component. * @type {ProgressBarPassThroughOptions} */ pt?: PassThrough; /** * Used to configure passthrough(pt) options of the component. * @type {PassThroughOptions} */ ptOptions?: PassThroughOptions; /** * When enabled, it removes component related styles in the core. * @defaultValue false */ unstyled?: boolean; } /** * Defines valid slots in ProgressBar component. */ export interface ProgressBarSlots { /** * Custom content slot. */ default(): VNode[]; } /** * Defines valid emits in ProgressBar component. */ export interface ProgressBarEmits {} /** * **PrimeVue - ProgressBar** * * ProgressBar is a process status indicator._ * * [Live Demo](https://www.primevue.org/progressbar/) * --- --- * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png) * * @group Component */ declare class ProgressBar extends ClassComponent {} declare module 'vue' { export interface GlobalComponents { ProgressBar: GlobalComponentConstructor; } } export default ProgressBar;