2023-03-02 11:11:01 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Ripple directive adds ripple effect to the host element.
|
|
|
|
*
|
2023-03-03 14:17:03 +00:00
|
|
|
* [Live Demo](https://primevue.org/ripple)
|
2023-03-02 14:25:05 +00:00
|
|
|
*
|
|
|
|
* @module ripple
|
2024-05-08 11:40:44 +00:00
|
|
|
*
|
2023-03-02 11:11:01 +00:00
|
|
|
*/
|
|
|
|
import { DirectiveBinding, ObjectDirective } from 'vue';
|
2023-07-06 11:09:01 +00:00
|
|
|
import { DirectiveHooks } from '../basedirective';
|
2023-09-05 08:50:46 +00:00
|
|
|
import { PassThroughOptions } from '../passthrough';
|
2024-04-02 08:24:31 +00:00
|
|
|
import { DesignToken, PassThrough } from '../ts-helpers';
|
2023-07-06 11:09:01 +00:00
|
|
|
|
|
|
|
export declare type RippleDirectivePassThroughOptionType = RippleDirectivePassThroughAttributes | null | undefined;
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2023-06-23 09:47:31 +00:00
|
|
|
/**
|
|
|
|
* Defines options of Ripple.
|
|
|
|
*/
|
|
|
|
export interface RippleOptions {
|
2024-04-02 08:24:31 +00:00
|
|
|
/**
|
|
|
|
* It generates scoped CSS variables using design tokens for the component.
|
|
|
|
*/
|
|
|
|
dt?: DesignToken<any>;
|
2023-06-23 09:47:31 +00:00
|
|
|
/**
|
2023-08-01 14:01:12 +00:00
|
|
|
* Used to pass attributes to DOM elements inside the component.
|
2023-06-23 14:51:42 +00:00
|
|
|
* @type {RippleDirectivePassThroughOptions}
|
2023-06-23 09:47:31 +00:00
|
|
|
*/
|
2023-09-05 11:28:04 +00:00
|
|
|
pt?: PassThrough<RippleDirectivePassThroughOptions>;
|
2023-09-05 08:50:46 +00:00
|
|
|
/**
|
|
|
|
* Used to configure passthrough(pt) options of the component.
|
|
|
|
* @type {PassThroughOptions}
|
|
|
|
*/
|
|
|
|
ptOptions?: PassThroughOptions;
|
2023-07-06 10:11:23 +00:00
|
|
|
/**
|
|
|
|
* When enabled, it removes component related styles in the core.
|
|
|
|
* @defaultValue false
|
|
|
|
*/
|
|
|
|
unstyled?: boolean;
|
2023-06-23 09:47:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) options.
|
|
|
|
* @see {@link RippleOptions.pt}
|
|
|
|
*/
|
2023-06-23 14:51:42 +00:00
|
|
|
export interface RippleDirectivePassThroughOptions {
|
2023-06-23 09:47:31 +00:00
|
|
|
/**
|
2023-08-01 14:01:12 +00:00
|
|
|
* Used to pass attributes to the root's DOM element.
|
2023-06-22 13:52:12 +00:00
|
|
|
*/
|
2023-07-06 11:09:01 +00:00
|
|
|
root?: RippleDirectivePassThroughOptionType;
|
2023-06-22 13:52:12 +00:00
|
|
|
/**
|
2023-11-07 06:16:39 +00:00
|
|
|
* Used to manage all lifecycle hooks.
|
2023-07-06 11:09:01 +00:00
|
|
|
* @see {@link BaseDirective.DirectiveHooks}
|
2023-06-22 13:52:12 +00:00
|
|
|
*/
|
2023-07-06 11:09:01 +00:00
|
|
|
hooks?: DirectiveHooks;
|
2023-06-22 13:52:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2023-07-06 11:09:01 +00:00
|
|
|
* Custom passthrough attributes for each DOM elements
|
2023-06-22 13:52:12 +00:00
|
|
|
*/
|
2023-07-06 11:09:01 +00:00
|
|
|
export interface RippleDirectivePassThroughAttributes {
|
|
|
|
[key: string]: any;
|
2023-06-22 13:52:12 +00:00
|
|
|
}
|
|
|
|
|
2023-03-02 11:11:01 +00:00
|
|
|
/**
|
|
|
|
* Binding of Ripple directive.
|
|
|
|
*/
|
2023-06-22 13:52:12 +00:00
|
|
|
export interface RippleDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {
|
|
|
|
/**
|
|
|
|
* Value of the Ripple.
|
|
|
|
*/
|
|
|
|
value?: RippleOptions | undefined;
|
|
|
|
}
|
2023-03-02 11:11:01 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* **PrimeVue - Ripple**
|
|
|
|
*
|
|
|
|
* _Ripple directive adds ripple effect to the host element._
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/ripple/)
|
|
|
|
* --- ---
|
2023-03-03 10:55:20 +00:00
|
|
|
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
|
2023-03-02 11:11:01 +00:00
|
|
|
*
|
|
|
|
*/
|
2022-09-06 12:03:37 +00:00
|
|
|
declare const Ripple: ObjectDirective;
|
|
|
|
|
|
|
|
export default Ripple;
|