index.d.ts 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. import { _AbstractConstructor } from '@angular/material/core';
  2. import { AfterViewInit } from '@angular/core';
  3. import { CanColor } from '@angular/material/core';
  4. import { ChangeDetectorRef } from '@angular/core';
  5. import { _Constructor } from '@angular/material/core';
  6. import { ElementRef } from '@angular/core';
  7. import { EventEmitter } from '@angular/core';
  8. import * as i0 from '@angular/core';
  9. import * as i2 from '@angular/common';
  10. import * as i3 from '@angular/material/core';
  11. import { ProgressAnimationEnd as LegacyProgressAnimationEnd } from '@angular/material/progress-bar';
  12. import { ProgressBarMode as LegacyProgressBarMode } from '@angular/material/progress-bar';
  13. import { MAT_PROGRESS_BAR_DEFAULT_OPTIONS as MAT_LEGACY_PROGRESS_BAR_DEFAULT_OPTIONS } from '@angular/material/progress-bar';
  14. import { MAT_PROGRESS_BAR_LOCATION as MAT_LEGACY_PROGRESS_BAR_LOCATION } from '@angular/material/progress-bar';
  15. import { MAT_PROGRESS_BAR_LOCATION_FACTORY as MAT_LEGACY_PROGRESS_BAR_LOCATION_FACTORY } from '@angular/material/progress-bar';
  16. import { MatProgressBarDefaultOptions as MatLegacyProgressBarDefaultOptions } from '@angular/material/progress-bar';
  17. import { MatProgressBarLocation as MatLegacyProgressBarLocation } from '@angular/material/progress-bar';
  18. import { NgZone } from '@angular/core';
  19. import { NumberInput } from '@angular/cdk/coercion';
  20. import { OnDestroy } from '@angular/core';
  21. declare namespace i1 {
  22. export {
  23. MatLegacyProgressBar
  24. }
  25. }
  26. export { LegacyProgressAnimationEnd }
  27. export { LegacyProgressBarMode }
  28. export { MAT_LEGACY_PROGRESS_BAR_DEFAULT_OPTIONS }
  29. export { MAT_LEGACY_PROGRESS_BAR_LOCATION }
  30. export { MAT_LEGACY_PROGRESS_BAR_LOCATION_FACTORY }
  31. /**
  32. * `<mat-progress-bar>` component.
  33. * @deprecated Use `MatProgressBar` from `@angular/material/progress-bar` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  34. * @breaking-change 17.0.0
  35. */
  36. export declare class MatLegacyProgressBar extends _MatProgressBarBase implements CanColor, AfterViewInit, OnDestroy {
  37. private _ngZone;
  38. _animationMode?: string | undefined;
  39. /**
  40. * @deprecated `_changeDetectorRef` parameter to be made required.
  41. * @breaking-change 11.0.0
  42. */
  43. private _changeDetectorRef?;
  44. constructor(elementRef: ElementRef, _ngZone: NgZone, _animationMode?: string | undefined,
  45. /**
  46. * @deprecated `location` parameter to be made required.
  47. * @breaking-change 8.0.0
  48. */
  49. location?: MatLegacyProgressBarLocation, defaults?: MatLegacyProgressBarDefaultOptions,
  50. /**
  51. * @deprecated `_changeDetectorRef` parameter to be made required.
  52. * @breaking-change 11.0.0
  53. */
  54. _changeDetectorRef?: ChangeDetectorRef | undefined);
  55. /** Flag that indicates whether NoopAnimations mode is set to true. */
  56. _isNoopAnimation: boolean;
  57. /** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */
  58. get value(): number;
  59. set value(v: NumberInput);
  60. private _value;
  61. /** Buffer value of the progress bar. Defaults to zero. */
  62. get bufferValue(): number;
  63. set bufferValue(v: number);
  64. private _bufferValue;
  65. _primaryValueBar: ElementRef;
  66. /**
  67. * Event emitted when animation of the primary progress bar completes. This event will not
  68. * be emitted when animations are disabled, nor will it be emitted for modes with continuous
  69. * animations (indeterminate and query).
  70. */
  71. readonly animationEnd: EventEmitter<LegacyProgressAnimationEnd>;
  72. /** Reference to animation end subscription to be unsubscribed on destroy. */
  73. private _animationEndSubscription;
  74. /**
  75. * Mode of the progress bar.
  76. *
  77. * Input must be one of these values: determinate, indeterminate, buffer, query, defaults to
  78. * 'determinate'.
  79. * Mirrored to mode attribute.
  80. */
  81. mode: LegacyProgressBarMode;
  82. /** ID of the progress bar. */
  83. progressbarId: string;
  84. /** Attribute to be used for the `fill` attribute on the internal `rect` element. */
  85. _rectangleFillValue: string;
  86. /** Gets the current transform value for the progress bar's primary indicator. */
  87. _primaryTransform(): {
  88. transform: string;
  89. };
  90. /**
  91. * Gets the current transform value for the progress bar's buffer indicator. Only used if the
  92. * progress mode is set to buffer, otherwise returns an undefined, causing no transformation.
  93. */
  94. _bufferTransform(): {
  95. transform: string;
  96. } | null;
  97. ngAfterViewInit(): void;
  98. ngOnDestroy(): void;
  99. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyProgressBar, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, null]>;
  100. static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyProgressBar, "mat-progress-bar", ["matProgressBar"], { "color": { "alias": "color"; "required": false; }; "value": { "alias": "value"; "required": false; }; "bufferValue": { "alias": "bufferValue"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, { "animationEnd": "animationEnd"; }, never, never, false, never>;
  101. }
  102. export { MatLegacyProgressBarDefaultOptions }
  103. export { MatLegacyProgressBarLocation }
  104. /**
  105. * @deprecated Use `MatProgressBarModule` from `@angular/material/progress-bar` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  106. * @breaking-change 17.0.0
  107. */
  108. export declare class MatLegacyProgressBarModule {
  109. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyProgressBarModule, never>;
  110. static ɵmod: i0.ɵɵNgModuleDeclaration<MatLegacyProgressBarModule, [typeof i1.MatLegacyProgressBar], [typeof i2.CommonModule, typeof i3.MatCommonModule], [typeof i1.MatLegacyProgressBar, typeof i3.MatCommonModule]>;
  111. static ɵinj: i0.ɵɵInjectorDeclaration<MatLegacyProgressBarModule>;
  112. }
  113. /** @docs-private */
  114. declare const _MatProgressBarBase: _Constructor<CanColor> & _AbstractConstructor<CanColor> & {
  115. new (_elementRef: ElementRef): {
  116. _elementRef: ElementRef;
  117. };
  118. };
  119. export { }