{"version":3,"file":"chip-input.d.ts","sources":["chip-input.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA","sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { BooleanInput } from '@angular/cdk/coercion';\nimport { AfterContentInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';\nimport { MatChipsDefaultOptions } from './chip-default-options';\nimport { MatChipList } from './chip-list';\nimport { MatChipTextControl } from './chip-text-control';\n/** Represents an input event on a `matChipInput`. */\nexport interface MatChipInputEvent {\n /**\n * The native `` element that the event is being fired for.\n * @deprecated Use `MatChipInputEvent#chipInput.inputElement` instead.\n * @breaking-change 13.0.0 This property will be removed.\n */\n input: HTMLInputElement;\n /** The value of the input. */\n value: string;\n /**\n * Reference to the chip input that emitted the event.\n * @breaking-change 13.0.0 This property will be made required.\n */\n chipInput?: MatChipInput;\n}\n/**\n * Directive that adds chip-specific behaviors to an input element inside ``.\n * May be placed inside or outside of an ``.\n */\nexport declare class MatChipInput implements MatChipTextControl, OnChanges, OnDestroy, AfterContentInit {\n protected _elementRef: ElementRef;\n private _defaultOptions;\n /** Used to prevent focus moving to chips while user is holding backspace */\n private _focusLastChipOnBackspace;\n /** Whether the control is focused. */\n focused: boolean;\n _chipList: MatChipList;\n /** Register input for chip list */\n set chipList(value: MatChipList);\n /**\n * Whether or not the chipEnd event will be emitted when the input is blurred.\n */\n get addOnBlur(): boolean;\n set addOnBlur(value: boolean);\n _addOnBlur: boolean;\n /**\n * The list of key codes that will trigger a chipEnd event.\n *\n * Defaults to `[ENTER]`.\n */\n separatorKeyCodes: readonly number[] | ReadonlySet;\n /** Emitted when a chip is to be added. */\n readonly chipEnd: EventEmitter;\n /** The input's placeholder text. */\n placeholder: string;\n /** Unique id for the input. */\n id: string;\n /** Whether the input is disabled. */\n get disabled(): boolean;\n set disabled(value: boolean);\n private _disabled;\n /** Whether the input is empty. */\n get empty(): boolean;\n /** The native input element to which this directive is attached. */\n readonly inputElement: HTMLInputElement;\n constructor(_elementRef: ElementRef, _defaultOptions: MatChipsDefaultOptions);\n ngOnChanges(): void;\n ngOnDestroy(): void;\n ngAfterContentInit(): void;\n /** Utility method to make host definition/tests more clear. */\n _keydown(event?: KeyboardEvent): void;\n /**\n * Pass events to the keyboard manager. Available here for tests.\n */\n _keyup(event: KeyboardEvent): void;\n /** Checks to see if the blur should emit the (chipEnd) event. */\n _blur(): void;\n _focus(): void;\n /** Checks to see if the (chipEnd) event needs to be emitted. */\n _emitChipEnd(event?: KeyboardEvent): void;\n _onInput(): void;\n /** Focuses the input. */\n focus(options?: FocusOptions): void;\n /** Clears the input */\n clear(): void;\n /** Checks whether a keycode is one of the configured separators. */\n private _isSeparatorKey;\n static ngAcceptInputType_addOnBlur: BooleanInput;\n static ngAcceptInputType_disabled: BooleanInput;\n}\n"]}