2022-09-06 12:03:37 +00:00
|
|
|
import { VNode } from 'vue';
|
|
|
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
|
|
|
|
|
|
export interface BlockUIProps {
|
|
|
|
/**
|
|
|
|
* Controls the blocked state.
|
|
|
|
*/
|
|
|
|
blocked?: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* When enabled, the whole document gets blocked.
|
|
|
|
*/
|
|
|
|
fullScreen?: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* Base zIndex value to use in layering.
|
|
|
|
* Default value is 0.
|
|
|
|
*/
|
|
|
|
baseZIndex?: number | undefined;
|
|
|
|
/**
|
|
|
|
* Whether to automatically manage layering.
|
|
|
|
* Default value is true.
|
|
|
|
*/
|
|
|
|
autoZIndex?: boolean | undefined;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BlockUISlots {
|
|
|
|
/**
|
|
|
|
* Custom content's slot.
|
|
|
|
*/
|
|
|
|
default: () => VNode[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare type BlockUIEmits = {
|
|
|
|
/**
|
|
|
|
* Fired when the element gets blocked.
|
|
|
|
*/
|
2022-09-14 11:26:01 +00:00
|
|
|
block: () => void;
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Fired when the element gets unblocked.
|
|
|
|
*/
|
2022-09-14 11:26:01 +00:00
|
|
|
unblock: () => void;
|
|
|
|
};
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2022-09-14 11:26:01 +00:00
|
|
|
declare class BlockUI extends ClassComponent<BlockUIProps, BlockUISlots, BlockUIEmits> {}
|
2022-09-06 12:03:37 +00:00
|
|
|
|
|
|
|
declare module '@vue/runtime-core' {
|
|
|
|
interface GlobalComponents {
|
2022-09-14 11:26:01 +00:00
|
|
|
BlockUI: GlobalComponentConstructor<BlockUI>;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* BlockUI can either block other components or the whole page.
|
|
|
|
*
|
|
|
|
* Demos:
|
|
|
|
*
|
2022-09-14 11:26:01 +00:00
|
|
|
* - [BlockUI](https://www.primefaces.org/primevue/blockui)
|
2022-09-06 12:03:37 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
export default BlockUI;
|