2023-11-02 12:48:32 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* InputGroupAddon displays text, icon, buttons and other content can be grouped next to an input.
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/inputgroup/)
|
|
|
|
*
|
|
|
|
* @module inputgroupaddon
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
import { VNode } from 'vue';
|
|
|
|
import { ComponentHooks } from '../basecomponent';
|
|
|
|
import { PassThroughOptions } from '../passthrough';
|
2024-05-16 10:50:43 +00:00
|
|
|
import { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
2023-11-02 12:48:32 +00:00
|
|
|
|
2023-11-07 06:14:13 +00:00
|
|
|
export declare type InputGroupAddonPassThroughOptionType = InputGroupAddonPassThroughAttributes | ((options: InputGroupAddonPassThroughMethodOptions) => InputGroupAddonPassThroughAttributes | string) | string | null | undefined;
|
2023-11-02 12:48:32 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) option method.
|
|
|
|
*/
|
2023-11-07 06:14:13 +00:00
|
|
|
export interface InputGroupAddonPassThroughMethodOptions {
|
2023-11-02 12:48:32 +00:00
|
|
|
/**
|
|
|
|
* Defines instance.
|
|
|
|
*/
|
|
|
|
instance: any;
|
2023-12-10 21:41:17 +00:00
|
|
|
/**
|
|
|
|
* Defines valid attributes.
|
|
|
|
*/
|
|
|
|
attrs: any;
|
2023-12-05 11:06:32 +00:00
|
|
|
/**
|
|
|
|
* Defines parent options.
|
|
|
|
*/
|
|
|
|
parent: any;
|
2023-11-02 12:48:32 +00:00
|
|
|
/**
|
|
|
|
* Defines passthrough(pt) options in global config.
|
|
|
|
*/
|
|
|
|
global: object | undefined;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) options.
|
2023-11-07 06:14:13 +00:00
|
|
|
* @see {@link InputGroupAddonProps.pt}
|
2023-11-02 12:48:32 +00:00
|
|
|
*/
|
2023-11-07 06:14:13 +00:00
|
|
|
export interface InputGroupAddonPassThroughOptions {
|
2023-11-02 12:48:32 +00:00
|
|
|
/**
|
2024-05-15 09:24:26 +00:00
|
|
|
* Used to pass attributes to the root's DOM element.
|
2023-11-02 12:48:32 +00:00
|
|
|
*/
|
2023-11-07 06:14:13 +00:00
|
|
|
root?: InputGroupAddonPassThroughOptionType;
|
2023-11-02 12:48:32 +00:00
|
|
|
/**
|
2023-11-07 06:16:39 +00:00
|
|
|
* Used to manage all lifecycle hooks.
|
2023-11-02 12:48:32 +00:00
|
|
|
* @see {@link BaseComponent.ComponentHooks}
|
|
|
|
*/
|
|
|
|
hooks?: ComponentHooks;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough attributes for each DOM elements
|
|
|
|
*/
|
2023-11-07 06:14:13 +00:00
|
|
|
export interface InputGroupAddonPassThroughAttributes {
|
2023-11-02 12:48:32 +00:00
|
|
|
[key: string]: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines valid properties in InputGroupAddon component.
|
|
|
|
*/
|
2023-11-07 06:14:13 +00:00
|
|
|
export interface InputGroupAddonProps {
|
2024-04-02 08:24:31 +00:00
|
|
|
/**
|
|
|
|
* It generates scoped CSS variables using design tokens for the component.
|
|
|
|
*/
|
|
|
|
dt?: DesignToken<any>;
|
2023-11-02 12:48:32 +00:00
|
|
|
/**
|
|
|
|
* Used to pass attributes to DOM elements inside the component.
|
2023-11-07 06:14:13 +00:00
|
|
|
* @type {InputGroupAddonPassThroughOptions}
|
2023-11-02 12:48:32 +00:00
|
|
|
*/
|
2023-11-07 06:14:13 +00:00
|
|
|
pt?: PassThrough<InputGroupAddonPassThroughOptions>;
|
2023-11-02 12:48:32 +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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines valid slots in InputGroupAddon component.
|
|
|
|
*/
|
2023-11-07 06:14:13 +00:00
|
|
|
export interface InputGroupAddonSlots {
|
2023-11-02 12:48:32 +00:00
|
|
|
/**
|
|
|
|
* Custom default template.
|
|
|
|
*/
|
|
|
|
default(): VNode[];
|
|
|
|
/**
|
|
|
|
* Dynamic content template.
|
|
|
|
* @todo
|
|
|
|
*/
|
|
|
|
[key: string]: (node: any) => VNode[];
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines valid emits in InputGroupAddon component.
|
|
|
|
*/
|
2024-05-16 14:05:43 +00:00
|
|
|
export interface InputGroupAddonEmitsOptions {}
|
2024-05-16 10:50:43 +00:00
|
|
|
|
|
|
|
export declare type InputGroupAddonEmits = EmitFn<InputGroupAddonEmitsOptions>;
|
2023-11-02 12:48:32 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* **PrimeVue - InputGroupAddon**
|
|
|
|
*
|
2023-11-07 06:14:13 +00:00
|
|
|
* _InputGroupAddon displays text, icon, buttons and other content can be grouped next to an input._
|
2023-11-02 12:48:32 +00:00
|
|
|
*
|
2023-11-07 06:14:13 +00:00
|
|
|
* [Live Demo](https://www.primevue.org/inputgroupaddon/)
|
2023-11-02 12:48:32 +00:00
|
|
|
* --- ---
|
|
|
|
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
|
|
|
|
*
|
|
|
|
* @group Component
|
2024-05-16 10:50:43 +00:00
|
|
|
*
|
2023-11-02 12:48:32 +00:00
|
|
|
*/
|
2024-05-16 10:50:43 +00:00
|
|
|
declare const InputGroupAddon: DefineComponent<InputGroupAddonProps, InputGroupAddonSlots, InputGroupAddonEmits>;
|
2023-11-02 12:48:32 +00:00
|
|
|
|
2024-03-14 22:58:11 +00:00
|
|
|
declare module 'vue' {
|
|
|
|
export interface GlobalComponents {
|
2024-05-16 10:50:43 +00:00
|
|
|
InputGroupAddon: GlobalComponentConstructor<InputGroupAddonProps, InputGroupAddonSlots, InputGroupAddonEmits>;
|
2023-11-02 12:48:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default InputGroupAddon;
|