/** Core */ import { CoreComponent } from "cmf.core/src/core"; import { OnValidate, OnValidateArgs } from "../../directives/validator/validator"; /** Angular */ import { ElementRef } from "@angular/core"; import * as ng from "@angular/core"; /** * ValueValidator interface - function to validate the string in input */ export declare type ValueValidator = (item: string) => Promise; /** * @whatItDoes * This component shows an input to get an array. Shows the inserted values * in blue to the left of the input area * * @howToUse * This component is used with the inputs and outputs mentioned below. * Can be used in Input Component and PropertyEditor * * * ### Inputs * `boolean` : **required** - Determines if the input is mandatory or not. (default is _null_); * `string` : **placeholder** - Placeholder to display inside the input ; * `boolean` : **disabled** - Determines if the input is disabled (default is _null_) ; * `any` : **value** - Initial value (supports two-way data binding) ; * `ValueValidator` : **valueValidator** - Defines a function to validate the input value, with return Promise * `boolean` : **inputEditable** - Defines if input is editable, by default is true * * ### Outputs * `any` : **valueChange** - Triggered when the value change . * `any` : **filterValueChange** - Filter according to user input * * ### Example * To use the component, assume this HTML Template as an example: * * ```HTML *