UNPKG

@kelvininc/ui-components

Version:
36 lines (35 loc) 1.16 kB
import { EventEmitter } from '../../stencil-public-runtime'; import { EComponentSize, ITextField } from '../../types'; import { ISelectCreateOption, ISelectCreateOptionEvents } from './select-create-option.types'; /** * @part create-button - The create action button element. * @part cancel-button - The cancel action button element. * @part text-field - The text field element. */ export declare class KvSelectCreateOption implements ISelectCreateOption, ISelectCreateOptionEvents { /** @inheritdoc */ value?: string; /** @inheritdoc */ disabled?: boolean; /** @inheritdoc */ size?: EComponentSize; /** @inheritdoc */ inputConfig?: Partial<ITextField>; /** @inheritdoc */ clickCreate: EventEmitter<void>; /** @inheritdoc */ clickCancel: EventEmitter<void>; /** @inheritdoc */ valueChanged: EventEmitter<string>; /** Focus the input */ focusInput(): Promise<void>; /** Blur the input */ blurInput(): Promise<void>; private input?; private onKeyPress; private onCreate; private onCancel; private get canSubmit(); componentDidLoad(): void; render(): any; }