UNPKG

2.15 kBTypeScriptView Raw
1import { AnimationBuilder } from '@angular/animations';
2import { AfterViewChecked, ElementRef, EventEmitter, Renderer2 } from '@angular/core';
3import * as ɵngcc0 from '@angular/core';
4export declare class CollapseDirective implements AfterViewChecked {
5 private _el;
6 private _renderer;
7 /** This event fires as soon as content collapses */
8 collapsed: EventEmitter<CollapseDirective>;
9 /** This event fires when collapsing is started */
10 collapses: EventEmitter<CollapseDirective>;
11 /** This event fires as soon as content becomes visible */
12 expanded: EventEmitter<CollapseDirective>;
13 /** This event fires when expansion is started */
14 expands: EventEmitter<CollapseDirective>;
15 isExpanded: boolean;
16 collapseNewValue: boolean;
17 isCollapsed: boolean;
18 isCollapse: boolean;
19 isCollapsing: boolean;
20 set display(value: string);
21 /** turn on/off animation */
22 isAnimated: boolean;
23 /** A flag indicating visibility of content (shown or hidden) */
24 set collapse(value: boolean);
25 get collapse(): boolean;
26 private _display;
27 private _isAnimationDone?;
28 private _player?;
29 private _stylesLoaded;
30 private _COLLAPSE_ACTION_NAME;
31 private _EXPAND_ACTION_NAME;
32 private readonly _factoryCollapseAnimation;
33 private readonly _factoryExpandAnimation;
34 constructor(_el: ElementRef, _renderer: Renderer2, _builder: AnimationBuilder);
35 ngAfterViewChecked(): void;
36 /** allows to manually toggle content visibility */
37 toggle(): void;
38 /** allows to manually hide content */
39 hide(): void;
40 /** allows to manually show collapsed content */
41 show(): void;
42 animationRun(isAnimated: boolean, action: string): (callback: () => void) => void;
43 static ɵfac: ɵngcc0.ɵɵFactoryDef<CollapseDirective, never>;
44 static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta<CollapseDirective, "[collapse]", ["bs-collapse"], { "isAnimated": "isAnimated"; "display": "display"; "collapse": "collapse"; }, { "collapsed": "collapsed"; "collapses": "collapses"; "expanded": "expanded"; "expands": "expands"; }, never>;
45}
46
47//# sourceMappingURL=collapse.directive.d.ts.map
\No newline at end of file