primevue-mirror/components/lib/blockui/BlockUI.d.ts

83 lines
1.7 KiB
TypeScript
Raw Normal View History

2023-03-01 13:00:49 +00:00
/**
*
* BlockUI represents people using icons, labels and images.
*
* [Live Demo](https://www.primevue.org/blockui)
*
* @module blockui
*
*/
2022-09-06 12:03:37 +00:00
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2023-03-01 13:00:49 +00:00
/**
* Defines valid properties in BlockUI component
*/
2022-09-06 12:03:37 +00:00
export interface BlockUIProps {
/**
* Controls the blocked state.
2023-03-10 14:00:58 +00:00
* @defaultValue false
2022-09-06 12:03:37 +00:00
*/
blocked?: boolean | undefined;
/**
* When enabled, the whole document gets blocked.
2023-03-10 14:00:58 +00:00
* @defaultValue false
2022-09-06 12:03:37 +00:00
*/
fullScreen?: boolean | undefined;
/**
* Base zIndex value to use in layering.
2023-03-01 13:00:49 +00:00
* @defaultValue 0
2022-09-06 12:03:37 +00:00
*/
baseZIndex?: number | undefined;
/**
* Whether to automatically manage layering.
2023-03-01 13:00:49 +00:00
* @defaultValue true
2022-09-06 12:03:37 +00:00
*/
autoZIndex?: boolean | undefined;
}
2023-03-01 13:00:49 +00:00
/**
* Defines valid slots in BlockUI component
*/
2022-09-06 12:03:37 +00:00
export interface BlockUISlots {
/**
* Custom content's slot.
*/
2023-03-01 13:00:49 +00:00
default(): VNode[];
2022-09-06 12:03:37 +00:00
}
2023-03-01 13:00:49 +00:00
/**
* Defines valid emits in BlockUI component
*/
export interface BlockUIEmits {
2022-09-06 12:03:37 +00:00
/**
* Fired when the element gets blocked.
*/
2023-03-01 13:00:49 +00:00
block(): void;
2022-09-06 12:03:37 +00:00
/**
* Fired when the element gets unblocked.
*/
2023-03-01 13:00:49 +00:00
unblock(): void;
}
2022-09-06 12:03:37 +00:00
2023-03-01 13:00:49 +00:00
/**
* **PrimeVue - BlockUI**
*
* _BlockUI represents people using icons, labels and images._
*
* [Live Demo](https://www.primevue.org/blockui/)
* --- ---
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
*
* @group Component
*/
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
}
}
export default BlockUI;