/** * @license * Copyright Datorama. All Rights Reserved. * * Use of this source code is governed by an Apache License 2.0 license that can be * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE */ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnInit, TemplateRef } from '@angular/core'; import { FormControl } from '@angular/forms'; export declare class DatoTriggerMulti implements OnInit, AfterViewInit { private host; private cdr; maxActiveElementWidth: string; input: ElementRef; _restCount: number; private _isFocused; get isFocused(): boolean; set isFocused(value: boolean); loadingTemplate: TemplateRef; /** * Search box FormControl */ control: FormControl; /** * Search box placeholder */ placeholder: string; isLoading: boolean; /** * Allow sorting of selected values */ isSortable: boolean; showSelectAllChip: boolean; selectAllChipTxt: string; /** * keep focus in input after selecting option */ keepFocus: boolean; /** * * @type {any[]} * @private */ private _options; set options(value: any[]); get options(): any[]; get showRest(): boolean; /** * * @type {number} * @private */ private _limitTo; set limitTo(value: number); get limitTo(): number; /** * * @type {boolean} * @private */ private _disabled; set disabled(value: boolean); get disabled(): boolean; /** * * @type {string} */ labelKey: any; /** * * @type {string} */ idKey: any; /** * * @param {boolean} value */ set clickOutside(value: boolean); removeOption: EventEmitter; unselectAll: EventEmitter; /** * Selected options order has changed */ reorderOptions: EventEmitter; showClear: boolean; searchSubscription: any; onClick(): void; constructor(host: ElementRef, cdr: ChangeDetectorRef); ngOnInit(): void; updateOrder(): void; /** * * @param option */ remove(option: any): void; /** * * @param $event */ removeFocus($event: any): void; ngOnDestroy(): void; clearSearch(): void; /** * Remove option with keyboard * @param event */ onKeyDown(event: KeyboardEvent): void; ngAfterViewInit(): void; private setRestCount; calcInputWidth(container: HTMLElement): number; }