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';
|
2023-07-06 11:17:08 +00:00
|
|
|
import { ComponentHooks } from '../basecomponent';
|
2023-09-05 08:50:46 +00:00
|
|
|
import { PassThroughOptions } from '../passthrough';
|
2023-08-17 23:51:01 +00:00
|
|
|
import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers';
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2023-07-11 22:42:43 +00:00
|
|
|
export declare type BlockUIPassThroughOptionType = BlockUIPassThroughAttributes | ((options: BlockUIPassThroughMethodOptions) => BlockUIPassThroughAttributes | string) | string | null | undefined;
|
2023-04-24 09:32:20 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) option method.
|
|
|
|
*/
|
|
|
|
export interface BlockUIPassThroughMethodOptions {
|
2023-09-05 06:50:04 +00:00
|
|
|
/**
|
|
|
|
* Defines instance.
|
|
|
|
*/
|
2023-07-06 12:01:33 +00:00
|
|
|
instance: any;
|
2023-09-05 06:50:04 +00:00
|
|
|
/**
|
|
|
|
* Defines valid properties.
|
|
|
|
*/
|
2023-04-24 09:32:20 +00:00
|
|
|
props: BlockUIProps;
|
2023-09-05 06:50:04 +00:00
|
|
|
/**
|
|
|
|
* Defines current inline state.
|
|
|
|
*/
|
2023-04-24 09:32:20 +00:00
|
|
|
state: BlockUIState;
|
2023-09-05 08:50:46 +00:00
|
|
|
/**
|
|
|
|
* Defines passthrough(pt) options in global config.
|
|
|
|
*/
|
|
|
|
global: object | undefined;
|
2023-04-24 09:32:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) options.
|
|
|
|
* @see {@link BlockUIProps.pt}
|
|
|
|
*/
|
|
|
|
export interface BlockUIPassThroughOptions {
|
|
|
|
/**
|
2023-08-01 14:01:12 +00:00
|
|
|
* Used to pass attributes to the root's DOM element.
|
2023-04-24 09:32:20 +00:00
|
|
|
*/
|
|
|
|
root?: BlockUIPassThroughOptionType;
|
2023-08-03 13:52:00 +00:00
|
|
|
/**
|
|
|
|
* Used to pass attributes to the mask's DOM element.
|
|
|
|
*/
|
|
|
|
mask?: BlockUIPassThroughOptionType;
|
2023-07-06 11:09:01 +00:00
|
|
|
/**
|
2023-08-01 14:01:12 +00:00
|
|
|
* Used to manage all lifecycle hooks
|
2023-07-06 11:09:01 +00:00
|
|
|
* @see {@link BaseComponent.ComponentHooks}
|
|
|
|
*/
|
|
|
|
hooks?: ComponentHooks;
|
2023-04-24 09:32:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough attributes for each DOM elements
|
|
|
|
*/
|
|
|
|
export interface BlockUIPassThroughAttributes {
|
|
|
|
[key: string]: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines current inline state in BlockUI component.
|
|
|
|
*/
|
|
|
|
export interface BlockUIState {
|
|
|
|
/**
|
|
|
|
* Current blocked state as a boolean.
|
|
|
|
* @defaultValue false
|
|
|
|
*/
|
|
|
|
isBlocked: boolean;
|
|
|
|
}
|
|
|
|
|
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-04-24 09:32:20 +00:00
|
|
|
/**
|
2023-08-01 14:01:12 +00:00
|
|
|
* Used to pass attributes to DOM elements inside the component.
|
2023-04-24 09:32:20 +00:00
|
|
|
* @type {BlockUIPassThroughOptions}
|
|
|
|
*/
|
2023-08-17 23:51:01 +00:00
|
|
|
pt?: PTOptions<BlockUIPassThroughOptions>;
|
2023-09-05 08:50:46 +00:00
|
|
|
/**
|
|
|
|
* Used to configure passthrough(pt) options of the component.
|
|
|
|
* @type {PassThroughOptions}
|
|
|
|
*/
|
|
|
|
ptOptions?: PassThroughOptions;
|
2023-05-24 14:56:02 +00:00
|
|
|
/**
|
|
|
|
* When enabled, it removes component related styles in the core.
|
|
|
|
* @defaultValue false
|
|
|
|
*/
|
|
|
|
unstyled?: boolean;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
|
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;
|