/* eslint-disable @typescript-eslint/no-explicit-any */ /** * * InputGroup displays text, icon, buttons and other content can be grouped next to an input. * * @module inputgroup * */ import { VNode } from 'vue'; import { ComponentHooks } from '../BaseComponent/BaseComponent.d'; import { PassThroughOptions } from '../PassThrough'; import { ClassComponent, GlobalComponentConstructor, PassThrough, } from '../ts-helpers'; export declare type InputGroupPassThroughOptionType = | InputGroupPassThroughAttributes | (( options: InputGroupPassThroughMethodOptions, ) => InputGroupPassThroughAttributes | string) | string | null | undefined; /** * Custom passthrough(pt) option method. */ export interface InputGroupPassThroughMethodOptions { /** * Defines instance. */ instance: any; /** * Defines valid attributes. */ attrs: any; /** * Defines parent options. */ parent: any; /** * Defines passthrough(pt) options in global config. */ global: object | undefined; } /** * Custom passthrough(pt) options. * @see {@link InputGroupProps.pt} */ export interface InputGroupPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: InputGroupPassThroughOptionType; /** * Used to manage all lifecycle hooks. * @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 { /** * Used to pass attributes to DOM elements inside the component. * @type {InputGroupPassThroughOptions} */ pt?: PassThrough; /** * 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; /** * @defaultValue false */ invalid?: boolean; /** * @defaultValue false */ disabled?: boolean; } /** * Defines valid slots in InputGroup component. */ export interface InputGroupSlots { /** * Custom default template. */ default(): VNode[]; /** * Dynamic content template. * @todo */ [key: string]: (node: any) => VNode[]; } /** * **TSVue - InputGroup** * * _InputGroup displays text, icon, buttons and other content can be grouped next to an input._ * * --- --- * ![TSVue](https://ik.imagekit.io/kurniadev/TS-HEAD-BLACK.png) * * @group Component */ declare class InputGroup extends ClassComponent< InputGroupProps, InputGroupSlots, InputGroupEmits > {} declare module '@vue/runtime-core' { interface GlobalComponents { InputGroup: GlobalComponentConstructor; } } export default InputGroup;