primevue-mirror/components/lib/progressspinner/ProgressSpinner.d.ts

138 lines
3.5 KiB
TypeScript
Executable File

/**
*
* ProgressSpinner is a process status indicator.
*
* [Live Demo](https://www.primevue.org/progressspinner)
*
* @module progressspinner
*
*/
import { ComponentHooks } from '../basecomponent';
import { PassThroughOptions } from '../passthrough';
import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
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 spinner's DOM element.
*/
spinner?: ProgressSpinnerPassThroughOptionType;
/**
* Used to pass attributes to the circle's DOM element.
*/
circle?: 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 {
/**
* Width of the circle stroke.
* @defaultValue 2
*/
strokeWidth?: string | undefined;
/**
* Color for the background of the circle.
*/
fill?: string | undefined;
/**
* Duration of the rotate animation.
* @defaultValue 2s
*/
animationDuration?: string | undefined;
/**
* 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 {}
/**
* Defines valid emits in ProgressSpinner component.
*/
export interface ProgressSpinnerEmits {}
/**
* **PrimeVue - ProgressSpinner**
*
* _ProgressSpinner is a process status indicator._
*
* [Live Demo](https://www.primevue.org/progressspinner/)
* --- ---
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
*
* @group Component
*/
declare class ProgressSpinner extends ClassComponent<ProgressSpinnerProps, ProgressSpinnerSlots, ProgressSpinnerEmits> {}
declare module '@vue/runtime-core' {
interface GlobalComponents {
ProgressSpinner: GlobalComponentConstructor<ProgressSpinner>;
}
}
export default ProgressSpinner;