import * as i0 from '@angular/core'; import { OnInit, AfterViewInit, OnChanges, ChangeDetectorRef, ElementRef, TemplateRef, EventEmitter, Renderer2, SimpleChanges, AfterContentInit, QueryList } from '@angular/core'; import { DestroyCtor, I18nCtor, ResponsivenessCtor } from '@usitsdasdesign/dds-ng/core/common-behaviors'; import { ListManager } from '@usitsdasdesign/dds-ng/core/list-manager'; import { ThemeClassesMap } from '@usitsdasdesign/dds-ng/core/theme'; import { DdsFormControlGroup, DdsFormControl, Themes, Size } from '@usitsdasdesign/dds-ng/shared'; import { DdsConfigService } from '@usitsdasdesign/dds-ng/shared/dds-config'; import { I18nService, ITranslation } from '@usitsdasdesign/dds-ng/shared/i18n'; import { ResizeHandlerService } from '@usitsdasdesign/dds-ng/shared/resize-handler'; import { CheckboxComponent } from '@usitsdasdesign/dds-ng/checkbox'; import { RadioComponent } from '@usitsdasdesign/dds-ng/radio'; import { ToggleComponent } from '@usitsdasdesign/dds-ng/toggle'; declare class ContextMenuService { contextMenu: ContextMenuComponent; initContextMenu(component: ContextMenuComponent): void; addItem(item: ContextMenuItemComponent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const ContextMenuItemBase: DestroyCtor; declare class ContextMenuItemComponent extends ContextMenuItemBase implements OnInit, AfterViewInit, OnChanges { private renderer; cdr: ChangeDetectorRef; el: ElementRef; private contextMenuService; disabled: boolean | undefined; width: boolean; checkbox: CheckboxComponent; radio: RadioComponent; toggle: ToggleComponent; btnRef: ElementRef; ariaLabel: string | undefined; ariaRole: string | undefined; attrTabindex: string | undefined; customClass: string | undefined; ariaSelected: boolean | undefined; template: TemplateRef | undefined; counter: number | undefined; set focus(value: boolean | undefined); selectedItem: EventEmitter; selectedChanged: EventEmitter; isAriaSelected: boolean; itemId: number; constructor(renderer: Renderer2, cdr: ChangeDetectorRef, el: ElementRef, contextMenuService: ContextMenuService); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; selectItem(e: Event): void; emitEvent(event: KeyboardEvent): void; preventEvent(event: KeyboardEvent): void; isSelected(value?: boolean | undefined): void; private checkIfCheckboxInContent; private checkIfRadioInContent; private checkIfToggleInContent; private keyboardFocus; private keyboardUnfocus; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare const ContextMenuBase: DestroyCtor & I18nCtor & ResponsivenessCtor; declare class ContextMenuComponent extends ContextMenuBase implements AfterContentInit, AfterViewInit, OnChanges { private renderer; cdr: ChangeDetectorRef; elementRef: ElementRef; private ddsConfig; i18n: I18nService; resizeService: ResizeHandlerService; contextMenuService: ContextMenuService; isFullWidth: boolean; controlGroup: DdsFormControlGroup; controls: QueryList; contextMenu: ElementRef; label: string | undefined; theme: Themes | string | undefined; size: Size | string | undefined; maxHeight: number | string | undefined; ariaLabel: string | undefined; ariaRole: string | undefined; customClass: string | undefined; isResponsive: boolean | undefined; isInitialFocused: boolean | undefined; isRequired: boolean | undefined; isInverse: boolean | undefined; activeItemId: number | undefined; enabledListManager: boolean | undefined; isLoading: boolean | undefined; isLoadingWithCounter: boolean | undefined; loadingTemplate: TemplateRef | undefined; ariaMultiselectable: boolean | undefined | null; ariaDescription: string | undefined; closed: EventEmitter; onInit: EventEmitter; keyPressed: EventEmitter; keyboardFocusOut: EventEmitter; themeConfig: ThemeClassesMap; keyManager: ListManager; contextMenuItems: ContextMenuItemComponent[]; closeBtnAriaLabel: string; isPreventTab: boolean; get maxHeightWithoutHeader(): string; get getMaxHeight(): string; get isSmSize(): boolean; get isLgSize(): boolean; constructor(renderer: Renderer2, cdr: ChangeDetectorRef, elementRef: ElementRef, ddsConfig: DdsConfigService, i18n: I18nService, resizeService: ResizeHandlerService, contextMenuService: ContextMenuService); ngOnChanges(changes: SimpleChanges): void; ngAfterContentInit(): void; ngAfterViewInit(): void; addSelectItem(selectItem: ContextMenuItemComponent): void; focus(): void; close(): void; initListManager(): void; unFocus(): void; handleKeydown(event: KeyboardEvent): void; protected setI18nTexts(translation: ITranslation): void; private checkForRadioGroupInContent; private updateInverseState; private scrollToItem; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ContextMenuGroupComponent { label: string | undefined; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ContextMenuModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface ContextMenuOptions { label?: string; theme?: Themes | string; size?: Size | string; maxHeight?: number | string; ariaLabel?: string; ariaRole?: string; ariaMultiselectable?: boolean; ariaDescription?: string; customClass?: string; isResponsive?: boolean; isInitialFocused?: boolean; isInverse?: boolean; activeItemId?: number; isLoading?: boolean; isLoadingWithCounter?: boolean; loadingTemplate?: TemplateRef; } interface ContextMenuGroupOptions { label?: string; } interface ContextMenuItemOptions { counter?: number; ariaLabel?: string; ariaRole?: string; customClass?: string; focus?: boolean; ariaSelected?: boolean; disabled?: boolean; template?: TemplateRef; } export { ContextMenuComponent, ContextMenuGroupComponent, ContextMenuItemComponent, ContextMenuModule }; export type { ContextMenuGroupOptions, ContextMenuItemOptions, ContextMenuOptions };