import * as i0 from '@angular/core'; import { TemplateRef, OnInit, OnChanges, ChangeDetectorRef, ElementRef, QueryList, EventEmitter, Renderer2, SimpleChanges } from '@angular/core'; import { NgControl, NgForm, FormGroupDirective } from '@angular/forms'; import { ContextMenuComponent } from '@usitsdasdesign/dds-ng/context-menu'; import { DestroyCtor, I18nCtor, FormAccessorCtor, ErrorStateCtor } from '@usitsdasdesign/dds-ng/core/common-behaviors'; import { DescriptionType } from '@usitsdasdesign/dds-ng/input'; import { LabelPosition, Size, ErrorState, PositionState, Themes } from '@usitsdasdesign/dds-ng/shared'; import { DdsConfigService } from '@usitsdasdesign/dds-ng/shared/dds-config'; import { I18nService, ITranslation } from '@usitsdasdesign/dds-ng/shared/i18n'; import { StickerDirective } from '@usitsdasdesign/dds-ng/sticker'; import { TagComponent } from '@usitsdasdesign/dds-ng/tags'; import { InvokeType } from '@usitsdasdesign/dds-ng/tooltip'; interface SuggestionsTagsInputOptions { label?: string; labelPosition?: LabelPosition | string; description?: string; descriptionType?: DescriptionType | string; size?: Size | string; placeholder?: string; customClass?: string; disabled?: boolean; isSortableList?: boolean; debounceTime?: number; isError?: boolean; isResponsive?: boolean; isInverse?: boolean; isRequired?: boolean; isSelectOnly?: boolean; isOpenPopupOnFocus?: boolean; errorMessage?: string; errorState?: string | ErrorState; maxHeight?: string; tagRemoveBtnIcon?: string; minSearchSymbols?: number; maxLength?: number; headingProp?: string; optionsTemplate?: TemplateRef; isLoading?: boolean; isLoadingWithCounter?: boolean; loadingTemplate?: TemplateRef; ariaLabel?: string; stickerWidth?: number | string; stickerMaxHeight?: number | string; stickerShift?: number; stickerIndent?: number; stickerPosition?: PositionState | string; stickerCustomClass?: string; tooltipIcon?: string; tooltipWidth?: number; tooltipShift?: number; tooltipShowDelay?: number; tooltipHideDelay?: number; tooltipIsDisabled?: boolean; tooltipHasBeak?: boolean; tooltipIndent?: number; tooltipInvokeType?: InvokeType | string; tooltipPosition?: PositionState | string; tooltipCustomClass?: string; tooltipTheme?: Themes | string; stickerIsDynamic?: boolean; } interface SuggestionsTagsItemOptions { heading?: string; value?: any; counter?: number; customClass?: string; disabled?: boolean; [key: string]: any; } declare const SuggestionsTagsInputBase: DestroyCtor & I18nCtor & FormAccessorCtor & ErrorStateCtor; declare class SuggestionsTagsInputComponent extends SuggestionsTagsInputBase implements OnInit, OnChanges { ngControl: NgControl; parentForm: NgForm; parentFormGroup: FormGroupDirective; cdr: ChangeDetectorRef; i18n: I18nService; private renderer; private ddsConfig; disabled: boolean | undefined; isEmptyValue: boolean; sticker: StickerDirective; searchField: ElementRef; wrap: ElementRef; tags: QueryList; label: string | undefined; labelPosition: LabelPosition | string | undefined; size: Size | string | undefined; description: string | undefined; descriptionType: DescriptionType | string | undefined; maxHeight: string | undefined; isError: boolean | undefined; isInverse: boolean | undefined; isSortableList: boolean | undefined; errorMessage: string | undefined; customClass: string | undefined; tagRemoveBtnIcon: string | undefined; errorState: string | ErrorState | undefined; minSearchSymbols: number | undefined; maxLength: number | undefined; debounceTime: number | undefined; isResponsive: boolean | undefined; isOpenPopupOnFocus: boolean | undefined; isRequired: boolean | undefined; isSelectOnly: boolean | undefined; placeholder: string | undefined; ariaLabel: string | undefined; headingProp: string | undefined; isLoading: boolean | undefined; isLoadingWithCounter: boolean | undefined; loadingTemplate: TemplateRef | undefined; optionsTemplate: TemplateRef | undefined; set searchList(list: SuggestionsTagsItemOptions[] | string[] | undefined); get searchList(): SuggestionsTagsItemOptions[] | undefined; get value(): string[] | string | undefined; set value(value: string[] | string | any | undefined); stickerWidth: number | string | undefined; stickerMaxHeight: number | string | undefined; stickerCustomClass: string | undefined; stickerShift: number | undefined; stickerIndent: number | undefined; stickerPosition: PositionState | string | undefined; stickerIsDynamic: boolean | undefined; tooltipIcon: string | undefined; tooltipCustomClass: string | undefined; tooltipWidth: number | undefined; tooltipShift: number | undefined; tooltipIsDisabled: boolean | undefined; tooltipHasBeak: boolean | undefined; tooltipIndent: number | undefined; tooltipShowDelay: number | undefined; tooltipHideDelay: number | undefined; tooltipInvokeType: InvokeType | string | undefined; tooltipPosition: PositionState | string | undefined; tooltipTheme: Themes | string | undefined; valueChanged: EventEmitter; objectValueChanged: EventEmitter; filteredList: SuggestionsTagsItemOptions[]; isSmSize: boolean; isLgSize: boolean; isExternalLabel: boolean; isValueArray: boolean; valueIsString: string; isStickerShown: boolean; popupAriaLabel: string; stickerIsDisabled: boolean; id: string; contextMenuShown: boolean; objectValue: any[]; private prevVal; private _searchList; private _value; private doubleTag; private contextMenu; private letterKeyStream; get isDescriptionTypeTooltip(): boolean; get isErrorMessageShown(): boolean; get tooltipText(): string; get isInfoShown(): boolean; get isErrorTooltipType(): string; constructor(ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, cdr: ChangeDetectorRef, i18n: I18nService, renderer: Renderer2, ddsConfig: DdsConfigService); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; writeValue(value: string[] | string): void; setDisabledState(disabled: boolean): void; changeText(input: HTMLInputElement): void; pickValue(value: SuggestionsTagsItemOptions): void; addTag(inputTarget: HTMLInputElement, event: Event): void; removeTag(item: string): void; tagClosedPressed(event: KeyboardEvent, index: number): void; onHidden(el: HTMLElement): void; onShown(): void; contextMenuInit(contextMenu: ContextMenuComponent): void; handleKeydown(event: KeyboardEvent): void; handleKeyup(event: KeyboardEvent): void; handleKeydownMenu(event: KeyboardEvent): void; checkDuplicate(tag: string): boolean; addWrapActiveState(): void; showPopup(input: HTMLInputElement): void; removeWrapActiveState(): void; removeActiveFocus(): void; blur(): void; checkValueType(value: string[] | string): void; getAriaLabel(): string; getAriaHasPopup(): boolean | string; private getDebounceTime; private setLetterKeyStream; private checkDoubleTag; protected setI18nTexts(translation: ITranslation): void; getFilteringList(): void; private openStickerCondition; private checkIsEmpty; private checkLabelPosition; private checkSize; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SuggestionsTagsInputModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare const MIN_SEARCH_SYMBOLS = 1; declare const INDENT = 8; declare const SHIFT = 0; declare const DOUBLE_TAG_TIME_INFO = 1000; declare const DEFAULT_DEBOUNCE_TIME = 300; declare const ARIA_LISTBOX = "dialog"; declare const WRAP_ACTIVE_CLASS = "dds-suggestions-tags-input__wrap_active"; declare const DEFAULT_TAG_REMOVE_BTN_ICON = "dds-icon_close"; declare const DEFAULT_INFO_BTN_ICON = "dds-icon_info"; declare const DEFAULT_HEADING_PROP = "heading"; export { ARIA_LISTBOX, DEFAULT_DEBOUNCE_TIME, DEFAULT_HEADING_PROP, DEFAULT_INFO_BTN_ICON, DEFAULT_TAG_REMOVE_BTN_ICON, DOUBLE_TAG_TIME_INFO, INDENT, MIN_SEARCH_SYMBOLS, SHIFT, SuggestionsTagsInputComponent, SuggestionsTagsInputModule, WRAP_ACTIVE_CLASS }; export type { SuggestionsTagsInputOptions, SuggestionsTagsItemOptions };