index.d.ts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import { _AbstractConstructor } from '@angular/material/core';
  2. import { AfterViewInit } from '@angular/core';
  3. import { CanColor } from '@angular/material/core';
  4. import { CanDisable } from '@angular/material/core';
  5. import { CanDisableRipple } from '@angular/material/core';
  6. import { _Constructor } from '@angular/material/core';
  7. import { ElementRef } from '@angular/core';
  8. import { FocusableOption } from '@angular/cdk/a11y';
  9. import { FocusMonitor } from '@angular/cdk/a11y';
  10. import { FocusOrigin } from '@angular/cdk/a11y';
  11. import * as i0 from '@angular/core';
  12. import * as i2 from '@angular/material/core';
  13. import { MatRipple } from '@angular/material/core';
  14. import { NgZone } from '@angular/core';
  15. import { OnDestroy } from '@angular/core';
  16. declare namespace i1 {
  17. export {
  18. MatLegacyButton,
  19. MatLegacyAnchor
  20. }
  21. }
  22. declare const _MatButtonBase: _Constructor<CanColor> & _AbstractConstructor<CanColor> & _Constructor<CanDisable> & _AbstractConstructor<CanDisable> & _Constructor<CanDisableRipple> & _AbstractConstructor<CanDisableRipple> & {
  23. new (_elementRef: ElementRef): {
  24. _elementRef: ElementRef;
  25. };
  26. };
  27. /**
  28. * Material design anchor button.
  29. * @deprecated Use `MatAnchor` from `@angular/material/button` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  30. * @breaking-change 17.0.0
  31. */
  32. export declare class MatLegacyAnchor extends MatLegacyButton implements AfterViewInit, OnDestroy {
  33. /** @breaking-change 14.0.0 _ngZone will be required. */
  34. private _ngZone?;
  35. /** Tabindex of the button. */
  36. tabIndex: number;
  37. constructor(focusMonitor: FocusMonitor, elementRef: ElementRef, animationMode: string,
  38. /** @breaking-change 14.0.0 _ngZone will be required. */
  39. _ngZone?: NgZone | undefined);
  40. ngAfterViewInit(): void;
  41. ngOnDestroy(): void;
  42. _haltDisabledEvents: (event: Event) => void;
  43. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyAnchor, [null, null, { optional: true; }, { optional: true; }]>;
  44. static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyAnchor, "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", ["matButton", "matAnchor"], { "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, ["*"], false, never>;
  45. }
  46. /**
  47. * Material design button.
  48. * @deprecated Use `MatButton` from `@angular/material/button` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  49. * @breaking-change 17.0.0
  50. */
  51. export declare class MatLegacyButton extends _MatButtonBase implements AfterViewInit, OnDestroy, CanDisable, CanColor, CanDisableRipple, FocusableOption {
  52. private _focusMonitor;
  53. _animationMode: string;
  54. /** Whether the button is round. */
  55. readonly isRoundButton: boolean;
  56. /** Whether the button is icon button. */
  57. readonly isIconButton: boolean;
  58. /** Reference to the MatRipple instance of the button. */
  59. ripple: MatRipple;
  60. constructor(elementRef: ElementRef, _focusMonitor: FocusMonitor, _animationMode: string);
  61. ngAfterViewInit(): void;
  62. ngOnDestroy(): void;
  63. /** Focuses the button. */
  64. focus(origin?: FocusOrigin, options?: FocusOptions): void;
  65. _getHostElement(): any;
  66. _isRippleDisabled(): boolean;
  67. /** Gets whether the button has one of the given attributes. */
  68. _hasHostAttributes(...attributes: string[]): boolean;
  69. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyButton, [null, null, { optional: true; }]>;
  70. static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyButton, "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", ["matButton"], { "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], false, never>;
  71. }
  72. /**
  73. * @deprecated Use `MatButtonModule` from `@angular/material/button` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  74. * @breaking-change 17.0.0
  75. */
  76. export declare class MatLegacyButtonModule {
  77. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyButtonModule, never>;
  78. static ɵmod: i0.ɵɵNgModuleDeclaration<MatLegacyButtonModule, [typeof i1.MatLegacyButton, typeof i1.MatLegacyAnchor], [typeof i2.MatRippleModule, typeof i2.MatCommonModule], [typeof i1.MatLegacyButton, typeof i1.MatLegacyAnchor, typeof i2.MatCommonModule]>;
  79. static ɵinj: i0.ɵɵInjectorDeclaration<MatLegacyButtonModule>;
  80. }
  81. export { }