2023-11-02 12:48:32 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* InputGroup displays text, icon, buttons and other content can be grouped next to an input.
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/inputgroup/)
|
|
|
|
*
|
|
|
|
* @module inputgroup
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
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';
|
2023-11-02 12:48:32 +00:00
|
|
|
|
|
|
|
export declare type InputGroupPassThroughOptionType = InputGroupPassThroughAttributes | ((options: InputGroupPassThroughMethodOptions) => InputGroupPassThroughAttributes | string) | string | null | undefined;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) option method.
|
|
|
|
*/
|
|
|
|
export interface InputGroupPassThroughMethodOptions {
|
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
* @see {@link InputGroupProps.pt}
|
|
|
|
*/
|
|
|
|
export interface InputGroupPassThroughOptions {
|
|
|
|
/**
|
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
|
|
|
*/
|
|
|
|
root?: InputGroupPassThroughOptionType;
|
|
|
|
/**
|
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
|
|
|
|
*/
|
|
|
|
export interface InputGroupPassThroughAttributes {
|
|
|
|
[key: string]: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines valid properties in InputGroup component.
|
|
|
|
*/
|
|
|
|
export interface InputGroupProps {
|
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.
|
|
|
|
* @type {InputGroupPassThroughOptions}
|
|
|
|
*/
|
|
|
|
pt?: PassThrough<InputGroupPassThroughOptions>;
|
|
|
|
/**
|
|
|
|
* 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 InputGroup component.
|
|
|
|
*/
|
|
|
|
export interface InputGroupSlots {
|
|
|
|
/**
|
|
|
|
* Custom default template.
|
|
|
|
*/
|
|
|
|
default(): VNode[];
|
|
|
|
/**
|
|
|
|
* Dynamic content template.
|
|
|
|
* @todo
|
|
|
|
*/
|
|
|
|
[key: string]: (node: any) => VNode[];
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines valid emits in InputGroup component.
|
|
|
|
*/
|
|
|
|
export interface InputGroupEmits {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* **PrimeVue - InputGroup**
|
|
|
|
*
|
|
|
|
* _InputGroup displays text, icon, buttons and other content can be grouped next to an input._
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/inputgroup/)
|
|
|
|
* --- ---
|
|
|
|
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
|
|
|
|
*
|
|
|
|
* @group Component
|
|
|
|
*/
|
|
|
|
declare class InputGroup extends ClassComponent<InputGroupProps, InputGroupSlots, InputGroupEmits> {}
|
|
|
|
|
2024-03-14 22:58:11 +00:00
|
|
|
declare module 'vue' {
|
|
|
|
export interface GlobalComponents {
|
2023-11-02 12:48:32 +00:00
|
|
|
InputGroup: GlobalComponentConstructor<InputGroup>;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default InputGroup;
|