expansion-panel-header.d.ts 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. import { FocusMonitor, FocusableOption, FocusOrigin } from '@angular/cdk/a11y';
  9. import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
  10. import { MatExpansionPanel, MatExpansionPanelDefaultOptions } from './expansion-panel';
  11. import { MatAccordionTogglePosition } from './accordion-base';
  12. /**
  13. * `<mat-expansion-panel-header>`
  14. *
  15. * This component corresponds to the header element of an `<mat-expansion-panel>`.
  16. */
  17. export declare class MatExpansionPanelHeader implements OnDestroy, FocusableOption {
  18. panel: MatExpansionPanel;
  19. private _element;
  20. private _focusMonitor;
  21. private _changeDetectorRef;
  22. private _parentChangeSubscription;
  23. /** Whether Angular animations in the panel header should be disabled. */
  24. _animationsDisabled: boolean;
  25. constructor(panel: MatExpansionPanel, _element: ElementRef, _focusMonitor: FocusMonitor, _changeDetectorRef: ChangeDetectorRef, defaultOptions?: MatExpansionPanelDefaultOptions);
  26. _animationStarted(): void;
  27. /** Height of the header while the panel is expanded. */
  28. expandedHeight: string;
  29. /** Height of the header while the panel is collapsed. */
  30. collapsedHeight: string;
  31. /**
  32. * Whether the associated panel is disabled. Implemented as a part of `FocusableOption`.
  33. * @docs-private
  34. */
  35. readonly disabled: any;
  36. /** Toggles the expanded state of the panel. */
  37. _toggle(): void;
  38. /** Gets whether the panel is expanded. */
  39. _isExpanded(): boolean;
  40. /** Gets the expanded state string of the panel. */
  41. _getExpandedState(): string;
  42. /** Gets the panel id. */
  43. _getPanelId(): string;
  44. /** Gets the toggle position for the header. */
  45. _getTogglePosition(): MatAccordionTogglePosition;
  46. /** Gets whether the expand indicator should be shown. */
  47. _showToggle(): boolean;
  48. /** Handle keydown event calling to toggle() if appropriate. */
  49. _keydown(event: KeyboardEvent): void;
  50. /**
  51. * Focuses the panel header. Implemented as a part of `FocusableOption`.
  52. * @param origin Origin of the action that triggered the focus.
  53. * @docs-private
  54. */
  55. focus(origin?: FocusOrigin, options?: FocusOptions): void;
  56. ngOnDestroy(): void;
  57. }
  58. /**
  59. * `<mat-panel-description>`
  60. *
  61. * This directive is to be used inside of the MatExpansionPanelHeader component.
  62. */
  63. export declare class MatExpansionPanelDescription {
  64. }
  65. /**
  66. * `<mat-panel-title>`
  67. *
  68. * This directive is to be used inside of the MatExpansionPanelHeader component.
  69. */
  70. export declare class MatExpansionPanelTitle {
  71. }