1 | import { ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2, ViewContainerRef } from '@angular/core';
|
2 | import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
|
3 | import { BsDropdownConfig } from './bs-dropdown.config';
|
4 | import { BsDropdownState } from './bs-dropdown.state';
|
5 | import { AnimationBuilder } from '@angular/animations';
|
6 | import * as i0 from "@angular/core";
|
7 | export declare class BsDropdownDirective implements OnInit, OnDestroy {
|
8 | private _elementRef;
|
9 | private _renderer;
|
10 | private _viewContainerRef;
|
11 | private _cis;
|
12 | private _state;
|
13 | private _config;
|
14 | |
15 |
|
16 |
|
17 | placement?: string;
|
18 | |
19 |
|
20 |
|
21 |
|
22 | triggers?: string;
|
23 | |
24 |
|
25 |
|
26 | container?: string;
|
27 | |
28 |
|
29 |
|
30 | dropup: boolean;
|
31 | |
32 |
|
33 |
|
34 |
|
35 | set autoClose(value: boolean);
|
36 | get autoClose(): boolean;
|
37 | |
38 |
|
39 |
|
40 | set isAnimated(value: boolean);
|
41 | get isAnimated(): boolean;
|
42 | |
43 |
|
44 |
|
45 | set insideClick(value: boolean);
|
46 | get insideClick(): boolean;
|
47 | |
48 |
|
49 |
|
50 | set isDisabled(value: boolean);
|
51 | get isDisabled(): boolean;
|
52 | |
53 |
|
54 |
|
55 | get isOpen(): boolean;
|
56 | set isOpen(value: boolean);
|
57 | |
58 |
|
59 |
|
60 | isOpenChange: EventEmitter<boolean>;
|
61 | |
62 |
|
63 |
|
64 | onShown: EventEmitter<boolean>;
|
65 | |
66 |
|
67 |
|
68 | onHidden: EventEmitter<boolean>;
|
69 | private _dropdown;
|
70 | private get _showInline();
|
71 | private _isInlineOpen;
|
72 | private _inlinedMenu?;
|
73 | private _isDisabled;
|
74 | private _subscriptions;
|
75 | private _isInited;
|
76 | private _factoryDropDownAnimation;
|
77 | constructor(_elementRef: ElementRef, _renderer: Renderer2, _viewContainerRef: ViewContainerRef, _cis: ComponentLoaderFactory, _state: BsDropdownState, _config: BsDropdownConfig, _builder: AnimationBuilder);
|
78 | ngOnInit(): void;
|
79 | /**
|
80 | * Opens an element’s popover. This is considered a “manual” triggering of
|
81 | * the popover.
|
82 | */
|
83 | show(): void;
|
84 | /**
|
85 | * Closes an element’s popover. This is considered a “manual” triggering of
|
86 | * the popover.
|
87 | */
|
88 | hide(): void;
|
89 | /**
|
90 | * Toggles an element’s popover. This is considered a “manual” triggering of
|
91 | * the popover. With parameter <code>true</code> allows toggling, with parameter <code>false</code>
|
92 | * only hides opened dropdown. Parameter usage will be removed in ngx-bootstrap v3
|
93 | */
|
94 | toggle(value?: boolean): void;
|
95 | /** @internal */
|
96 | _contains(event: MouseEvent): boolean;
|
97 | navigationClick(event: KeyboardEvent): void;
|
98 | ngOnDestroy(): void;
|
99 | private addBs4Polyfills;
|
100 | private playAnimation;
|
101 | private addShowClass;
|
102 | private removeShowClass;
|
103 | private checkRightAlignment;
|
104 | private addDropupStyles;
|
105 | private removeDropupStyles;
|
106 | static ɵfac: i0.ɵɵFactoryDeclaration<BsDropdownDirective, never>;
|
107 | static ɵdir: i0.ɵɵDirectiveDeclaration<BsDropdownDirective, "[bsDropdown], [dropdown]", ["bs-dropdown"], { "placement": { "alias": "placement"; "required": false; }; "triggers": { "alias": "triggers"; "required": false; }; "container": { "alias": "container"; "required": false; }; "dropup": { "alias": "dropup"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "isAnimated": { "alias": "isAnimated"; "required": false; }; "insideClick": { "alias": "insideClick"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; }, { "isOpenChange": "isOpenChange"; "onShown": "onShown"; "onHidden": "onHidden"; }, never, never, false, never>;
|
108 | }
|