import * as i0 from '@angular/core'; import { ViewContainerRef, TemplateRef, EventEmitter, OnInit, OnDestroy, ElementRef, Renderer2, ChangeDetectorRef } from '@angular/core'; import { BsComponentRef, ComponentLoaderFactory } from 'ngx-bootstrap/component-loader'; import { AnimationBuilder } from '@angular/animations'; /** Default dropdown configuration */ declare class BsDropdownConfig { /** default dropdown auto closing behavior */ autoClose: boolean; /** default dropdown auto closing behavior */ insideClick: boolean; /** turn on/off animation */ isAnimated: boolean; /** value true of stopOnClickPropagation allows event stopPropagation*/ stopOnClickPropagation: boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class BsDropdownMenuDirective { constructor(_state: BsDropdownState, _viewContainer: ViewContainerRef, _templateRef: TemplateRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class BsDropdownState { direction: 'down' | 'up'; autoClose: boolean; insideClick: boolean; isAnimated: boolean; stopOnClickPropagation: boolean; isOpenChange: EventEmitter; isDisabledChange: EventEmitter; toggleClick: EventEmitter; counts: number; /** * Content to be displayed as popover. */ dropdownMenu: Promise>; resolveDropdownMenu: (componentRef: BsComponentRef) => void; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class BsDropdownDirective implements OnInit, OnDestroy { private _elementRef; private _renderer; private _viewContainerRef; private _cis; private _state; private _config; /** * Placement of a popover. Accepts: "top", "bottom", "left", "right" */ placement: i0.InputSignal; /** * Specifies events that should trigger. Supports a space separated list of * event names. */ triggers: i0.InputSignal; /** * A selector specifying the element the popover should be appended to. */ container: i0.InputSignal; /** * This attribute indicates that the dropdown should be opened upwards */ dropup: i0.InputSignal; _dropup: boolean; /** * Indicates that dropdown will be closed on item or document click, * and after pressing ESC */ autoClose: i0.InputSignal; /** * Indicates that dropdown will be animated */ isAnimated: i0.InputSignal; /** * This attribute indicates that the dropdown shouldn't close on inside click when autoClose is set to true */ insideClick: i0.InputSignal; /** * Disables dropdown toggle and hides dropdown menu if opened */ isDisabledInput: i0.InputSignal; get isDisabled(): boolean; /** * Returns whether or not the popover is currently being shown */ isOpenInput: i0.InputSignal; get isOpen(): boolean; /** * Emits an event when isOpen change */ readonly isOpenChange: i0.OutputEmitterRef; /** * Emits an event when the popover is shown */ readonly onShown: i0.OutputEmitterRef; /** * Emits an event when the popover is hidden */ readonly onHidden: i0.OutputEmitterRef; private _dropdown; private get _showInline(); private _isInlineOpen; private _inlinedMenu?; private _isDisabled; private _subscriptions; private _isInited; private _factoryDropDownAnimation; constructor(_elementRef: ElementRef, _renderer: Renderer2, _viewContainerRef: ViewContainerRef, _cis: ComponentLoaderFactory, _state: BsDropdownState, _config: BsDropdownConfig, _builder: AnimationBuilder); ngOnInit(): void; /** * Opens an element’s popover. This is considered a “manual” triggering of * the popover. */ show(): void; /** * Closes an element’s popover. This is considered a “manual” triggering of * the popover. */ hide(): void; /** * Toggles an element’s popover. This is considered a “manual” triggering of * the popover. With parameter true allows toggling, with parameter false * only hides opened dropdown. Parameter usage will be removed in ngx-bootstrap v3 */ toggle(value?: boolean): void; /** @internal */ _contains(event: Event): boolean; navigationClick(event: Event): void; ngOnDestroy(): void; private addBs4Polyfills; private playAnimation; private addShowClass; private removeShowClass; private checkRightAlignment; private addDropupStyles; private removeDropupStyles; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class BsDropdownToggleDirective implements OnDestroy { private _changeDetectorRef; private _dropdown; private _element; private _renderer; private _state; isDisabled: undefined | true; isOpen: boolean; private _subscriptions; private _documentClickListener?; private _escKeyUpListener?; constructor(_changeDetectorRef: ChangeDetectorRef, _dropdown: BsDropdownDirective, _element: ElementRef, _renderer: Renderer2, _state: BsDropdownState); onClick(event: MouseEvent): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class BsDropdownContainerComponent implements OnDestroy { private _state; private cd; private _renderer; private _element; isOpen: boolean; private _factoryDropDownAnimation; get direction(): 'down' | 'up'; private _subscription; constructor(_state: BsDropdownState, cd: ChangeDetectorRef, _renderer: Renderer2, _element: ElementRef, _builder: AnimationBuilder); /** @internal */ _contains(el: Element): boolean; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class BsDropdownModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { BsDropdownConfig, BsDropdownContainerComponent, BsDropdownDirective, BsDropdownMenuDirective, BsDropdownModule, BsDropdownState, BsDropdownToggleDirective };