primevue-mirror/components/lib/progressbar/ProgressBar.d.ts

108 lines
2.6 KiB
TypeScript
Raw Normal View History

2023-03-01 14:12:19 +00:00
/**
*
* ProgressBar is a process status indicator.
*
* [Live Demo](https://www.primevue.org/progressbar)
*
* @module progressbar
*
*/
2022-09-06 12:03:37 +00:00
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2023-04-21 13:34:40 +00:00
export declare type ProgressBarPassThroughOptionType = ProgressBarPassThroughAttributes | ((options: ProgressBarPassThroughMethodOptions) => ProgressBarPassThroughAttributes) | null | undefined;
/**
* Custom passthrough(pt) option method.
*/
export interface ProgressBarPassThroughMethodOptions {
props: ProgressBarProps;
}
/**
* Custom passthrough(pt) options.
* @see {@link ProgressBarProps.pt}
*/
export interface ProgressBarPassThroughOptions {
/**
* Uses to pass attributes to the root's DOM element.
*/
root?: ProgressBarPassThroughOptionType;
/**
* Uses to pass attributes to the value's DOM element.
*/
value?: ProgressBarPassThroughOptionType;
/**
* Uses to pass attributes to the label's DOM element.
*/
label?: ProgressBarPassThroughOptionType;
}
/**
* Custom passthrough attributes for each DOM elements
*/
export interface ProgressBarPassThroughAttributes {
[key: string]: any;
}
2023-03-01 14:12:19 +00:00
/**
* Defines valid properties in ProgressBar component.
*/
2022-09-06 12:03:37 +00:00
export interface ProgressBarProps {
/**
* Current value of the progress.
*/
value?: number | undefined;
/**
* Defines the mode of the progress
2023-03-08 10:51:52 +00:00
* @defaultValue determinate
2022-09-06 12:03:37 +00:00
*/
2023-03-01 14:12:19 +00:00
mode?: 'determinate' | 'indeterminate' | undefined;
2022-09-06 12:03:37 +00:00
/**
* Whether to display the progress bar value.
2023-03-01 14:12:19 +00:00
* @defaultValue true
2022-09-06 12:03:37 +00:00
*/
showValue?: boolean | undefined;
2023-04-21 13:34:40 +00:00
/**
* Uses to pass attributes to DOM elements inside the component.
* @type {ProgressBarPassThroughOptions}
*/
pt?: ProgressBarPassThroughOptions;
2022-09-06 12:03:37 +00:00
}
2023-03-01 14:12:19 +00:00
/**
* Defines valid slots in ProgressBar component.
*/
2022-09-06 12:03:37 +00:00
export interface ProgressBarSlots {
/**
* Custom content slot.
*/
2023-03-01 14:12:19 +00:00
default(): VNode[];
2022-09-06 12:03:37 +00:00
}
2023-03-01 14:12:19 +00:00
/**
* Defines valid emits in ProgressBar component.
*/
export interface ProgressBarEmits {}
2022-09-06 12:03:37 +00:00
2023-03-01 14:12:19 +00:00
/**
* **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
*/
2022-09-14 11:26:01 +00:00
declare class ProgressBar extends ClassComponent<ProgressBarProps, ProgressBarSlots, ProgressBarEmits> {}
2022-09-06 12:03:37 +00:00
declare module '@vue/runtime-core' {
interface GlobalComponents {
2022-09-14 11:26:01 +00:00
ProgressBar: GlobalComponentConstructor<ProgressBar>;
2022-09-06 12:03:37 +00:00
}
}
export default ProgressBar;