import * as i0 from '@angular/core'; import { OnInit, AfterViewInit, ChangeDetectorRef, QueryList, ElementRef, TemplateRef, EventEmitter, SimpleChanges } from '@angular/core'; import { ContextMenuItemComponent, ContextMenuComponent } from '@usitsdasdesign/dds-ng/context-menu'; import { DestroyCtor, FormAccessorCtor } from '@usitsdasdesign/dds-ng/core/common-behaviors'; import { ThemeClassesMap } from '@usitsdasdesign/dds-ng/core/theme'; import { ExtThemes, ButtonKind, Size, WidthState, PositionState } from '@usitsdasdesign/dds-ng/shared'; import { DdsConfigService } from '@usitsdasdesign/dds-ng/shared/dds-config'; import { StickerDirective } from '@usitsdasdesign/dds-ng/sticker'; declare const DropdownBase: DestroyCtor & FormAccessorCtor; declare class DropdownComponent extends DropdownBase implements OnInit, AfterViewInit { cdr: ChangeDetectorRef; private dropdownService; private ddsConfig; disabled: boolean | undefined; inlineFlex: boolean; get isFullWidth(): boolean; items: QueryList; dropdownBtn: ElementRef; sticker: StickerDirective; label: string | undefined; ariaLabel: string | undefined; icon: string | undefined; theme: ExtThemes | string | undefined; kind: ButtonKind | string | undefined; size: Size | string | undefined; width: WidthState | string | undefined; customClass: string | undefined; isColorBg: boolean | undefined; isInverse: boolean | undefined; isResponsive: boolean | undefined; isLoading: boolean | undefined; isLoadingWithCounter: boolean | undefined; loadingTemplate: TemplateRef | undefined; stickerWidth: number | string | undefined; stickerMaxHeight: number | string | undefined; stickerShift: number | undefined; stickerCustomClass: string | undefined; stickerIsOutsideClick: boolean | undefined; stickerIsDisabled: boolean | undefined; stickerPosition: PositionState | string | undefined; stickerIndent: number | undefined; stickerIsDynamic: boolean | undefined; itemSelected: EventEmitter; dropdownShow: boolean; themeConfig: ThemeClassesMap; activeItemId: number; id: string; labelId: string; private dropdownItems; private keyManager; private selectedValue; private keyboardTrigger; get isExpandedText(): string; constructor(cdr: ChangeDetectorRef, dropdownService: DropdownService, ddsConfig: DdsConfigService); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; addDropdownItem(dropdownItem: DropdownItemComponent): void; toggleDropdown(): void; checkBtnText(btnTextEl: HTMLElement): boolean; onHidden(): void; onShown(el: HTMLElement): void; changeItem(value: string): void; handleKeydown(event: KeyboardEvent): void; preventEvent(event: KeyboardEvent): void; handleKeydownMenu(event: KeyboardEvent): void; reset(): void; getAriaLabel(): string; getAriaLabelBy(): string; private setActiveItem; private initKeyManager; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DropdownService { private dropdown; initSelect(component: DropdownComponent | DropdownFlyoutComponent): void; addItem(item: DropdownItemComponent): void; changeItem(value: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class DropdownItemComponent implements OnInit, AfterViewInit { cdr: ChangeDetectorRef; private dropdownService; el: ElementRef; disabled: boolean | undefined; width: boolean; value: string | undefined; customClass: string | undefined; counter: number | undefined; focus: boolean | undefined; isSelected: boolean | undefined; menuItem: ContextMenuItemComponent; itemId: number; constructor(cdr: ChangeDetectorRef, dropdownService: DropdownService, el: ElementRef); ngOnInit(): void; ngAfterViewInit(): void; changeItem(): void; changeFocus(value: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare const DropdownFlyoutBase: DestroyCtor & FormAccessorCtor; declare class DropdownFlyoutComponent extends DropdownFlyoutBase implements OnInit, AfterViewInit { cdr: ChangeDetectorRef; private dropdownService; private ddsConfig; disabled: boolean | undefined; inlineFlex: boolean; get isFullWidth(): boolean; items: QueryList; dropdownBtn: ElementRef; label: string | undefined; ariaLabel: string | undefined; icon: string | undefined; theme: ExtThemes | string | undefined; kind: ButtonKind | string | undefined; size: Size | string | undefined; width: WidthState | string | undefined; customClass: string | undefined; isColorBg: boolean | undefined; isInverse: boolean | undefined; isLoading: boolean | undefined; isLoadingWithCounter: boolean | undefined; loadingTemplate: TemplateRef | undefined; dropdownMenuWidth: number | string | undefined; dropdownMenuMaxHeight: number | string | undefined; dropdownMenuPosition: PositionState | string | undefined; dropdownMenuCustomClass: string | undefined; itemSelected: EventEmitter; dropdownShow: boolean; themeConfig: ThemeClassesMap; activeItemId: number; id: string; isResponsive: boolean; labelId: string; private dropdownItems; private keyManager; private selectedValue; private contextMenu; private keyboardTrigger; get isExpandedText(): string; get getDropdownMenuWidth(): string; constructor(cdr: ChangeDetectorRef, dropdownService: DropdownService, ddsConfig: DdsConfigService); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; addDropdownItem(dropdownItem: DropdownItemComponent): void; mouseover(): void; close(): void; checkBtnText(btnTextEl: HTMLElement): boolean; changeItem(value: string): void; contextMenuInit(contextMenu: ContextMenuComponent): void; handleKeydown(event: KeyboardEvent): void; preventEvent(event: KeyboardEvent): void; handleKeydownMenu(event: KeyboardEvent): void; reset(): void; getAriaLabel(): string; getAriaLabelBy(): string; isNumeric(val: any): boolean; private setActiveItem; private initKeyManager; private scrollToItem; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DropdownModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface DropdownOptions { theme?: ExtThemes | string; kind?: ButtonKind | string; size?: Size | string; width?: WidthState | string; label?: string; ariaLabel?: string; icon?: string; customClass?: string; isColorBg?: boolean; disabled?: boolean; isInverse?: boolean; isResponsive?: boolean; isLoading?: boolean; isLoadingWithCounter?: boolean; loadingTemplate?: TemplateRef; stickerPosition?: PositionState | string; stickerWidth?: number | string; stickerMaxHeight?: number | string; stickerCustomClass?: string; stickerIndent?: number; stickerShift?: number; stickerIsDisabled?: boolean; stickerIsOutsideClick?: boolean; stickerIsDynamic?: boolean; } interface DropdownFlyoutOptions { theme?: ExtThemes | string; kind?: ButtonKind | string; size?: Size | string; width?: WidthState | string; label?: string; ariaLabel?: string; icon?: string; customClass?: string; isColorBg?: boolean; disabled?: boolean; isInverse?: boolean; isLoading?: boolean; isLoadingWithCounter?: boolean; loadingTemplate?: TemplateRef; dropdownMenuWidth?: number | string; dropdownMenuMaxHeight?: number | string; dropdownMenuPosition?: PositionState | string; dropdownMenuCustomClass?: string; } interface DropdownItemOptions { heading?: string; customClass?: string; value: string; counter?: number; disabled?: boolean; } export { DropdownComponent, DropdownFlyoutComponent, DropdownItemComponent, DropdownModule }; export type { DropdownFlyoutOptions, DropdownItemOptions, DropdownOptions };