UNPKG

@microsoft/windows-admin-center-sdk

Version:

Microsoft - Windows Admin Center Shell

67 lines (66 loc) 2.88 kB
import { AfterContentInit, AfterViewInit, DoCheck, ElementRef, OnChanges, OnDestroy, QueryList, Renderer2, SimpleChanges } from '@angular/core'; import { DropdownComponent } from '../../../dropdown/dropdown.component'; import { ActionBarComponent } from '../../containers/action-bar/action-bar.component'; import { ActionItem, ActionItemComponent, ActionItemRendererComponent } from '../action-item.component'; import * as i0 from "@angular/core"; export declare class ActionDropdown extends ActionItem { /** * List of child ActionItem objects. */ actions: ActionItem[]; /** * Constructor for ActionDropdown. */ constructor(); } export declare class ActionDropdownRendererComponent extends ActionItemRendererComponent<ActionDropdown> implements DoCheck { private renderer; private hostElement; private static hoverTimeToActivate; static dropdownUtaIdSuffix: string; /** * Dropdown component used in ActionDropdown. */ dropDown: DropdownComponent; private dropDownButtonElement; private isHovering; get actionTitle(): string; get actionDropdownId(): string; get actionDropdownUtaId(): string; /** * Constructor of ActionDropdownRendererComponent. */ constructor(renderer: Renderer2, hostElement: ElementRef); /** * Method called to register a change with the ActionButton. * @param item The ActionButton to register change for. */ itemChanged(item: ActionDropdown): void; ngDoCheck(): void; /** * Host listener to handle keyboard events. */ onToggleKeydown(event: KeyboardEvent): void; /** * Host listeners to handle mouse events. */ onMouseEvent(event: Event): void; private yieldToggleDropdown; static ɵfac: i0.ɵɵFactoryDeclaration<ActionDropdownRendererComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ActionDropdownRendererComponent, "sme-action-dropdown-renderer", never, {}, {}, never, never, false, never>; } export declare class ActionDropdownComponent extends ActionItemComponent implements AfterViewInit, OnChanges, OnDestroy, AfterContentInit { private actionBarComponent; dropDown: DropdownComponent; childActions: QueryList<ActionItemComponent>; actions: ActionItem[]; constructor(actionBarComponent: ActionBarComponent); ngAfterViewInit(): void; ngAfterContentInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; protected createActionItem(): ActionDropdown; private updateActions; static ɵfac: i0.ɵɵFactoryDeclaration<ActionDropdownComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ActionDropdownComponent, "sme-action-dropdown", never, { "actions": "actions"; }, {}, ["childActions"], never, false, never>; }