primevue-mirror/packages/primevue/src/imagecompare/ImageCompare.d.ts

117 lines
3.0 KiB
TypeScript
Raw Normal View History

2024-10-03 13:15:54 +00:00
/**
*
2024-10-03 17:09:21 +00:00
* ImageCompare
2024-10-03 13:15:54 +00:00
*
2024-10-03 17:09:21 +00:00
* [Live Demo](https://www.primevue.org/ImageCompare/)
2024-10-03 13:15:54 +00:00
*
2024-10-03 17:09:21 +00:00
* @module ImageCompare
2024-10-03 13:15:54 +00:00
*
*/
import type { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '@primevue/core';
import type { PassThroughOptions } from 'primevue/passthrough';
import { TransitionProps } from 'vue';
2024-10-03 17:09:21 +00:00
export declare type ImageComparePassThroughOptionType = ImageComparePassThroughAttributes | ((options: ImageComparePassThroughMethodOptions) => ImageComparePassThroughAttributes | string) | string | null | undefined;
2024-10-03 13:15:54 +00:00
2024-10-03 17:09:21 +00:00
export declare type ImageComparePassThroughTransitionType = TransitionProps | ((options: ImageComparePassThroughMethodOptions) => TransitionProps) | undefined;
2024-10-03 13:15:54 +00:00
/**
* Custom passthrough(pt) option method.
*/
2024-10-03 17:09:21 +00:00
export interface ImageComparePassThroughMethodOptions {
2024-10-03 13:15:54 +00:00
/**
* Defines instance.
*/
instance: any;
/**
* Defines valid properties.
*/
2024-10-03 17:09:21 +00:00
props: ImageCompareProps;
2024-10-03 13:15:54 +00:00
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/
parent: any;
/**
* Defines passthrough(pt) options in global config.
*/
global: object | undefined;
}
/**
* Custom passthrough(pt) options.
2024-10-03 17:09:21 +00:00
* @see {@link ImageCompareProps.pt}
2024-10-03 13:15:54 +00:00
*/
2024-10-03 17:09:21 +00:00
export interface ImageComparePassThroughOptions {
2024-10-03 13:15:54 +00:00
/**
* Used to pass attributes to the root's DOM element.
*/
2024-10-03 17:09:21 +00:00
root?: ImageComparePassThroughOptionType;
2024-10-03 13:15:54 +00:00
}
/**
* Custom passthrough attributes for each DOM elements
*/
2024-10-03 17:09:21 +00:00
export interface ImageComparePassThroughAttributes {
2024-10-03 13:15:54 +00:00
[key: string]: any;
}
/**
2024-10-03 17:09:21 +00:00
* Defines valid properties in ImageCompare component.
2024-10-03 13:15:54 +00:00
*/
2024-10-03 17:09:21 +00:00
export interface ImageCompareProps {
2024-10-03 13:15:54 +00:00
/**
* It generates scoped CSS variables using design tokens for the component.
*/
dt?: DesignToken<any>;
/**
* Used to pass attributes to DOM elements inside the component.
2024-10-03 17:09:21 +00:00
* @type {ImageComparePassThroughOptions}
2024-10-03 13:15:54 +00:00
*/
2024-10-03 17:09:21 +00:00
pt?: PassThrough<ImageComparePassThroughOptions>;
2024-10-03 13:15:54 +00:00
/**
* Used to configure passthrough(pt) options of the component.
* @type {PassThroughOptions}
*/
ptOptions?: PassThroughOptions;
/**
* When enabled, it removes component related styles in the core.
* @defaultValue false
*/
unstyled?: boolean;
}
/**
2024-10-03 17:09:21 +00:00
* Defines valid slots in ImageCompare slots.
2024-10-03 13:15:54 +00:00
*/
2024-10-03 17:09:21 +00:00
export interface ImageCompareSlots {}
2024-10-03 13:15:54 +00:00
2024-10-03 17:09:21 +00:00
export interface ImageCompareEmitsOptions {}
2024-10-03 13:15:54 +00:00
2024-10-03 17:09:21 +00:00
export declare type ImageCompareEmits = EmitFn<ImageCompareEmitsOptions>;
2024-10-03 13:15:54 +00:00
/**
2024-10-03 17:09:21 +00:00
* **PrimeVue - ImageCompare**
2024-10-03 13:15:54 +00:00
*
2024-10-03 17:09:21 +00:00
* _ImageCompare_
2024-10-03 13:15:54 +00:00
*
2024-10-03 17:09:21 +00:00
* [Live Demo](https://www.primevue.org/ImageCompare/)
2024-10-03 13:15:54 +00:00
* --- ---
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
*
* @group Component
*
*/
2024-10-03 17:09:21 +00:00
declare const ImageCompare: DefineComponent<ImageCompareProps, ImageCompareSlots, ImageCompareEmits>;
2024-10-03 13:15:54 +00:00
declare module 'vue' {
export interface GlobalComponents {
2024-10-03 17:09:21 +00:00
ImageCompare: GlobalComponentConstructor<ImageCompareProps, ImageCompareSlots, ImageCompareEmits>;
2024-10-03 13:15:54 +00:00
}
}
2024-10-03 17:09:21 +00:00
export default ImageCompare;