primevue
Version:
PrimeVue is a premium UI library for Vue 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, wh
180 lines (168 loc) • 4.75 kB
TypeScript
/**
*
* ProgressSpinner is a process status indicator.
*
* [Live Demo](https://www.primevue.dev/progressspinner)
*
* @module progressspinner
*
*/
import type { DefineComponent, DesignToken, EmitFn, PassThrough } from '@primevue/core';
import type { ComponentHooks } from '@primevue/core/basecomponent';
import type { PassThroughOptions } from 'primevue/passthrough';
import type { VNode } from 'vue';
export declare type ProgressSpinnerPassThroughOptionType = ProgressSpinnerPassThroughAttributes | ((options: ProgressSpinnerPassThroughMethodOptions) => ProgressSpinnerPassThroughAttributes | string) | string | null | undefined;
/**
* Custom passthrough(pt) option method.
*/
export interface ProgressSpinnerPassThroughMethodOptions {
/**
* Defines instance.
*/
instance: any;
/**
* Defines valid properties.
*/
props: ProgressSpinnerProps;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/
parent: any;
/**
* Defines passthrough(pt) options in global config.
*/
global: object | undefined;
}
/**
* Custom passthrough(pt) options.
* @see {@link ProgressSpinnerProps.pt}
*/
export interface ProgressSpinnerPassThroughOptions {
/**
* Used to pass attributes to the root's DOM element.
*/
root?: ProgressSpinnerPassThroughOptionType;
/**
* Used to pass attributes to the circle SVG element.
*/
circle?: ProgressSpinnerPassThroughOptionType;
/**
* Used to pass attributes to the circle track element.
*/
circleTrack?: ProgressSpinnerPassThroughOptionType;
/**
* Used to pass attributes to the circle range element.
*/
circleRange?: ProgressSpinnerPassThroughOptionType;
/**
* Used to pass attributes to the value text element.
*/
value?: ProgressSpinnerPassThroughOptionType;
/**
* Used to manage all lifecycle hooks.
* @see {@link BaseComponent.ComponentHooks}
*/
hooks?: ComponentHooks;
}
/**
* Custom passthrough attributes for each DOM elements
*/
export interface ProgressSpinnerPassThroughAttributes {
[key: string]: any;
}
/**
* Defines valid properties in ProgressSpinner component.
*/
export interface ProgressSpinnerProps {
/**
* Current progress value. When null, the component is in indeterminate mode.
* @defaultValue null
*/
value?: number | null | undefined;
/**
* Minimum value of the progress.
* @defaultValue 0
*/
min?: number | undefined;
/**
* Maximum value of the progress.
* @defaultValue 100
*/
max?: number | undefined;
/**
* Width of the circle stroke.
* @defaultValue 4
*/
strokeWidth?: number | undefined;
/**
* Duration of the rotate animation.
* @defaultValue '2s'
*/
animationDuration?: string | undefined;
/**
* It generates scoped CSS variables using design tokens for the component.
*/
dt?: DesignToken<any>;
/**
* Used to pass attributes to DOM elements inside the component.
* @type {ProgressSpinnerPassThroughOptions}
*/
pt?: PassThrough<ProgressSpinnerPassThroughOptions>;
/**
* 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 ProgressSpinner component.
*/
export interface ProgressSpinnerSlots {
/**
* Default slot to override the value text in determinate mode.
* @param {Object} scope - default slot's params.
*/
default(scope: {
/**
* Current clamped value.
*/
value: number;
/**
* Rounded percent value (0-100).
*/
percent: number;
}): VNode[];
}
/**
* Defines valid emits in ProgressSpinner component.
*/
export interface ProgressSpinnerEmitsOptions {}
export declare type ProgressSpinnerEmits = EmitFn<ProgressSpinnerEmitsOptions>;
/**
* **PrimeVue - ProgressSpinner**
*
* _ProgressSpinner is a process status indicator._
*
* [Live Demo](https://www.primevue.dev/progressspinner/)
* --- ---
* 
*
* @group Component
*
*/
declare const ProgressSpinner: DefineComponent<ProgressSpinnerProps, ProgressSpinnerSlots, ProgressSpinnerEmits>;
declare module 'vue' {
export interface GlobalComponents {
ProgressSpinner: DefineComponent<ProgressSpinnerProps, ProgressSpinnerSlots, ProgressSpinnerEmits>;
}
}
export default ProgressSpinner;