import { ElementRef, QueryList } from '@angular/core'; import { Point } from '../../popover/common/popover'; import { ButtonInGroupService } from '../providers/button-in-group.service'; import { ClrCommonStringsService } from '../../utils/i18n/common-strings.service'; import { ClrButton } from './button'; export declare class ClrButtonGroup { buttonGroupNewService: ButtonInGroupService; private elementRef; commonStrings: ClrCommonStringsService; buttons: QueryList; constructor(buttonGroupNewService: ButtonInGroupService, elementRef: ElementRef, commonStrings: ClrCommonStringsService); inlineButtons: ClrButton[]; menuButtons: ClrButton[]; /** * 1. Initializes the initial Button Group View * 2. Subscribes to changes on the ContentChildren * in case the user content projection changes */ ngAfterContentInit(): void; /** * Moves the button into the other ViewContainer * when an update is received. * * @param button */ rearrangeButton(button: ClrButton): void; /** * Author: Eudes * * Finds the order of a button w.r.t other buttons * * @param buttonToMove * @returns */ getMoveIndex(buttonToMove: ClrButton): number; initializeButtons(): void; /** * Overflow Menu * */ private _menuPosition; menuPosition: string; private _openMenu; openMenu: boolean; anchorPoint: Point; popoverPoint: Point; /** * Toggle the ClrDropdown Menu when the ClrDropdown Toggle is * clicked. Also set a flag that indicates that the toggle * was clicked so that we don't traverse the DOM to find the * location of the click. */ toggleMenu(): void; /** * Flag with indicates if the overflow menu toggle was clicked. * If true, this can save us traversing the DOM to find * whether the click was withing the button group toggle * or menu in the onMouseClick method */ private _overflowMenuToggleClicked; /** * Called on mouse clicks anywhere in the DOM. * Checks to see if the mouseclick happened on the host or outside */ onMouseClick(target: any): void; }