collapse.directive.d.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { AnimationBuilder } from '@angular/animations';
  2. import { AfterViewChecked, ElementRef, EventEmitter, Renderer2 } from '@angular/core';
  3. export declare class CollapseDirective implements AfterViewChecked {
  4. private _el;
  5. private _renderer;
  6. /** This event fires as soon as content collapses */
  7. collapsed: EventEmitter<CollapseDirective>;
  8. /** This event fires when collapsing is started */
  9. collapses: EventEmitter<CollapseDirective>;
  10. /** This event fires as soon as content becomes visible */
  11. expanded: EventEmitter<CollapseDirective>;
  12. /** This event fires when expansion is started */
  13. expands: EventEmitter<CollapseDirective>;
  14. isExpanded: boolean;
  15. isCollapsed: boolean;
  16. isCollapse: boolean;
  17. isCollapsing: boolean;
  18. display: string;
  19. /** turn on/off animation */
  20. isAnimated: boolean;
  21. /** A flag indicating visibility of content (shown or hidden) */
  22. collapse: boolean;
  23. private _display;
  24. private _factoryCollapseAnimation;
  25. private _factoryExpandAnimation;
  26. private _isAnimationDone;
  27. private _player;
  28. private _stylesLoaded;
  29. private _COLLAPSE_ACTION_NAME;
  30. private _EXPAND_ACTION_NAME;
  31. constructor(_el: ElementRef, _renderer: Renderer2, _builder: AnimationBuilder);
  32. ngAfterViewChecked(): void;
  33. /** allows to manually toggle content visibility */
  34. toggle(): void;
  35. /** allows to manually hide content */
  36. hide(): void;
  37. /** allows to manually show collapsed content */
  38. show(): void;
  39. animationRun(isAnimated: boolean, action: string): (callback: () => void) => void;
  40. }