import * as i0 from '@angular/core'; import { EventEmitter, PipeTransform } from '@angular/core'; import * as i1 from '@c8y/ngx-components'; import { GainsightService } from '@c8y/ngx-components'; import * as i2 from '@angular/forms'; import { ControlValueAccessor } from '@angular/forms'; import * as i3 from 'ngx-bootstrap/tooltip'; import { Observable, BehaviorSubject } from 'rxjs'; import { DefaultIconDefinition } from '@c8y/ngx-components/icon-selector/model'; import { SupportedIconsSuggestions } from '@c8y/ngx-components/icon-selector/icons'; import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal'; declare class IconSelectorComponent { iconCategoriesToExclude: string[]; showIconClass: boolean; onSelect: EventEmitter; selectedIcon: SupportedIconsSuggestions; icons$: Observable; filteredIcons$: Observable; searchTerm$: BehaviorSubject; selectedIconCategory$: BehaviorSubject; availableIconCategories$: Observable; constructor(); loadIconDefinitions(): Promise; filterIconsByCategoryAndSearchTerm(iconCategories: DefaultIconDefinition[], selectedCategory: string, searchTerm: string): DefaultIconDefinition[]; onSearchChange(searchTerm: string): void; onCategoryFilterChanged(categoryChange: string): void; onIconClicked(icon: ReadonlyArray): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class IconSelectorModalComponent { private bsModal; title: string; currentSelection: string; saveButtonLabel: string; iconCategoriesToExclude: string[]; showIconClass: boolean; readonly result: Promise; private save; private cancel; constructor(bsModal: BsModalRef); close(): void; saveChanges(): void; selectionChange(newSelection: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class IconNamePipe implements PipeTransform { transform(icon: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class IconSelectorService { protected modal: BsModalService; constructor(modal: BsModalService); selectIcon(initialState?: Partial>): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * A component which acts as a wrapper for the icon selector. * * Example 1: * ``` * ``` * OR as a part of a formGroup * Example 2: * ``` * ``` */ declare class IconSelectorWrapperComponent implements ControlValueAccessor { private iconSelector; private gainsightService; canRemoveIcon: boolean; selectedIcon: string; /** * The displayed icon size, the value has to be multiple of 8. */ iconSize: number; onSelect: EventEmitter; /** * @ignore */ onTouched: () => void; constructor(iconSelector: IconSelectorService, gainsightService: GainsightService); /** * @ignore */ onChange: (value: string) => void; /** * @ignore * @param icon The value to update */ writeValue(icon: string): void; /** * @ignore * @param fn The function to register for changes */ registerOnChange(fn: () => void): void; /** * @ignore * @param fn The function to register for changes */ registerOnTouched(fn: () => void): void; removeIcon(): void; openIconSelector(): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class IconSelectorModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { IconNamePipe, IconSelectorComponent, IconSelectorModalComponent, IconSelectorModule, IconSelectorService, IconSelectorWrapperComponent }; //# sourceMappingURL=index.d.ts.map