2024-01-30 08:03:01 +00:00
|
|
|
/**
|
|
|
|
*
|
2024-02-02 12:56:33 +00:00
|
|
|
* InputIcon displays an icon.
|
2024-01-30 08:03:01 +00:00
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/inputgroup/)
|
|
|
|
*
|
|
|
|
* @module inputicon
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
import { VNode } from 'vue';
|
|
|
|
import { ComponentHooks } from '../basecomponent';
|
|
|
|
import { PassThroughOptions } from '../passthrough';
|
2024-04-02 08:24:31 +00:00
|
|
|
import { ClassComponent, DesignToken, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
2024-01-30 08:03:01 +00:00
|
|
|
|
2024-05-09 06:35:19 +00:00
|
|
|
export declare type InputIconPassThroughOptionType<T = any> = InputIconPassThroughAttributes | ((options: InputIconPassThroughMethodOptions<T>) => InputIconPassThroughAttributes | string) | string | null | undefined;
|
2024-01-30 08:03:01 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) option method.
|
|
|
|
*/
|
2024-05-09 06:35:19 +00:00
|
|
|
export interface InputIconPassThroughMethodOptions<T = any> {
|
2024-01-30 08:03:01 +00:00
|
|
|
/**
|
|
|
|
* Defines instance.
|
|
|
|
*/
|
|
|
|
instance: any;
|
|
|
|
/**
|
|
|
|
* Defines valid attributes.
|
|
|
|
*/
|
|
|
|
attrs: any;
|
|
|
|
/**
|
|
|
|
* Defines parent options.
|
|
|
|
*/
|
2024-05-09 06:35:19 +00:00
|
|
|
parent: T;
|
2024-01-30 08:03:01 +00:00
|
|
|
/**
|
|
|
|
* Defines passthrough(pt) options in global config.
|
|
|
|
*/
|
|
|
|
global: object | undefined;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) options.
|
|
|
|
* @see {@link InputIconProps.pt}
|
|
|
|
*/
|
2024-05-09 06:35:19 +00:00
|
|
|
export interface InputIconPassThroughOptions<T = any> {
|
2024-01-30 08:03:01 +00:00
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the root's DOM element.
|
2024-01-30 08:03:01 +00:00
|
|
|
*/
|
2024-05-09 06:35:19 +00:00
|
|
|
root?: InputIconPassThroughOptionType<T>;
|
2024-01-30 08:03:01 +00:00
|
|
|
/**
|
|
|
|
* Used to manage all lifecycle hooks.
|
|
|
|
* @see {@link BaseComponent.ComponentHooks}
|
|
|
|
*/
|
|
|
|
hooks?: ComponentHooks;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough attributes for each DOM elements
|
|
|
|
*/
|
|
|
|
export interface InputIconPassThroughAttributes {
|
|
|
|
[key: string]: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines valid properties in InputIcon component.
|
|
|
|
*/
|
|
|
|
export interface InputIconProps {
|
2024-04-02 08:24:31 +00:00
|
|
|
/**
|
|
|
|
* It generates scoped CSS variables using design tokens for the component.
|
|
|
|
*/
|
|
|
|
dt?: DesignToken<any>;
|
2024-01-30 08:03:01 +00:00
|
|
|
/**
|
|
|
|
* Used to pass attributes to DOM elements inside the component.
|
|
|
|
* @type {InputIconPassThroughOptions}
|
|
|
|
*/
|
|
|
|
pt?: PassThrough<InputIconPassThroughOptions>;
|
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines valid slots in InputIcon component.
|
|
|
|
*/
|
|
|
|
export interface InputIconSlots {
|
|
|
|
/**
|
|
|
|
* Custom default template.
|
|
|
|
*/
|
|
|
|
default(): VNode[];
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines valid emits in InputIcon component.
|
|
|
|
*/
|
|
|
|
export interface InputIconEmits {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* **PrimeVue - InputIcon**
|
|
|
|
*
|
|
|
|
* _InputIcon displays text, icon, buttons and other content can be grouped next to an input._
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/inputtext/)
|
|
|
|
* --- ---
|
|
|
|
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
|
|
|
|
*
|
|
|
|
* @group Component
|
|
|
|
*/
|
|
|
|
declare class InputIcon extends ClassComponent<InputIconProps, InputIconSlots, InputIconEmits> {}
|
|
|
|
|
2024-03-14 22:58:11 +00:00
|
|
|
declare module 'vue' {
|
|
|
|
export interface GlobalComponents {
|
2024-01-30 08:03:01 +00:00
|
|
|
InputIcon: GlobalComponentConstructor<InputIcon>;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default InputIcon;
|