index.d.ts 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. import { AfterViewInit } from '@angular/core';
  2. import { ChangeDetectorRef } from '@angular/core';
  3. import { ElementRef } from '@angular/core';
  4. import { FocusMonitor } from '@angular/cdk/a11y';
  5. import { FocusOrigin } from '@angular/cdk/a11y';
  6. import * as i0 from '@angular/core';
  7. import * as i2 from '@angular/material/core';
  8. import * as i3 from '@angular/cdk/observers';
  9. import * as i4 from '@angular/material/checkbox';
  10. import { TransitionCheckState as LegacyTransitionCheckState } from '@angular/material/checkbox';
  11. import { MAT_CHECKBOX_DEFAULT_OPTIONS as MAT_LEGACY_CHECKBOX_DEFAULT_OPTIONS } from '@angular/material/checkbox';
  12. import { MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY as MAT_LEGACY_CHECKBOX_DEFAULT_OPTIONS_FACTORY } from '@angular/material/checkbox';
  13. import { MAT_CHECKBOX_REQUIRED_VALIDATOR as MAT_LEGACY_CHECKBOX_REQUIRED_VALIDATOR } from '@angular/material/checkbox';
  14. import { _MatCheckboxBase } from '@angular/material/checkbox';
  15. import { MatCheckboxClickAction as MatLegacyCheckboxClickAction } from '@angular/material/checkbox';
  16. import { MatCheckboxDefaultOptions as MatLegacyCheckboxDefaultOptions } from '@angular/material/checkbox';
  17. import { MatCheckboxRequiredValidator as MatLegacyCheckboxRequiredValidator } from '@angular/material/checkbox';
  18. import { _MatCheckboxRequiredValidatorModule as _MatLegacyCheckboxRequiredValidatorModule } from '@angular/material/checkbox';
  19. import { NgZone } from '@angular/core';
  20. import { OnDestroy } from '@angular/core';
  21. declare namespace i1 {
  22. export {
  23. MatLegacyCheckboxChange,
  24. MAT_LEGACY_CHECKBOX_CONTROL_VALUE_ACCESSOR,
  25. MatLegacyCheckbox
  26. }
  27. }
  28. export { LegacyTransitionCheckState }
  29. /**
  30. * Provider Expression that allows mat-checkbox to register as a ControlValueAccessor.
  31. * This allows it to support [(ngModel)].
  32. * @docs-private
  33. * @deprecated Use `MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR` from `@angular/material/checkbox` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  34. * @breaking-change 17.0.0
  35. */
  36. export declare const MAT_LEGACY_CHECKBOX_CONTROL_VALUE_ACCESSOR: any;
  37. export { MAT_LEGACY_CHECKBOX_DEFAULT_OPTIONS }
  38. export { MAT_LEGACY_CHECKBOX_DEFAULT_OPTIONS_FACTORY }
  39. export { MAT_LEGACY_CHECKBOX_REQUIRED_VALIDATOR }
  40. /**
  41. * A material design checkbox component. Supports all of the functionality of an HTML5 checkbox,
  42. * and exposes a similar API. A checkbox can be either checked, unchecked, indeterminate, or
  43. * disabled. Note that all additional accessibility attributes are taken care of by the component,
  44. * so there is no need to provide them yourself. However, if you want to omit a label and still
  45. * have the checkbox be accessible, you may supply an [aria-label] input.
  46. * See: https://material.io/design/components/selection-controls.html
  47. * @deprecated Use `MatCheckbox` from `@angular/material/checkbox` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  48. * @breaking-change 17.0.0
  49. */
  50. export declare class MatLegacyCheckbox extends _MatCheckboxBase<MatLegacyCheckboxChange> implements AfterViewInit, OnDestroy {
  51. private _focusMonitor;
  52. protected _animationClasses: {
  53. uncheckedToChecked: string;
  54. uncheckedToIndeterminate: string;
  55. checkedToUnchecked: string;
  56. checkedToIndeterminate: string;
  57. indeterminateToChecked: string;
  58. indeterminateToUnchecked: string;
  59. };
  60. constructor(elementRef: ElementRef<HTMLElement>, changeDetectorRef: ChangeDetectorRef, _focusMonitor: FocusMonitor, ngZone: NgZone, tabIndex: string, animationMode?: string, options?: MatLegacyCheckboxDefaultOptions);
  61. protected _createChangeEvent(isChecked: boolean): MatLegacyCheckboxChange;
  62. protected _getAnimationTargetElement(): any;
  63. ngAfterViewInit(): void;
  64. ngOnDestroy(): void;
  65. /**
  66. * Event handler for checkbox input element.
  67. * Toggles checked state if element is not disabled.
  68. * Do not toggle on (change) event since IE doesn't fire change event when
  69. * indeterminate checkbox is clicked.
  70. * @param event
  71. */
  72. _onInputClick(event: Event): void;
  73. /** Focuses the checkbox. */
  74. focus(origin?: FocusOrigin, options?: FocusOptions): void;
  75. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyCheckbox, [null, null, null, null, { attribute: "tabindex"; }, { optional: true; }, { optional: true; }]>;
  76. static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyCheckbox, "mat-checkbox", ["matCheckbox"], { "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, ["*"], false, never>;
  77. }
  78. /**
  79. * Change event object emitted by a checkbox.
  80. * @deprecated Use `MatCheckboxChange` from `@angular/material/checkbox` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  81. * @breaking-change 17.0.0
  82. */
  83. export declare class MatLegacyCheckboxChange {
  84. /** The source checkbox of the event. */
  85. source: MatLegacyCheckbox;
  86. /** The new `checked` value of the checkbox. */
  87. checked: boolean;
  88. }
  89. export { MatLegacyCheckboxClickAction }
  90. export { MatLegacyCheckboxDefaultOptions }
  91. /**
  92. * @deprecated Use `MatCheckboxModule` from `@angular/material/checkbox` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  93. * @breaking-change 17.0.0
  94. */
  95. export declare class MatLegacyCheckboxModule {
  96. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyCheckboxModule, never>;
  97. static ɵmod: i0.ɵɵNgModuleDeclaration<MatLegacyCheckboxModule, [typeof i1.MatLegacyCheckbox], [typeof i2.MatRippleModule, typeof i2.MatCommonModule, typeof i3.ObserversModule, typeof i4._MatCheckboxRequiredValidatorModule], [typeof i1.MatLegacyCheckbox, typeof i2.MatCommonModule, typeof i4._MatCheckboxRequiredValidatorModule]>;
  98. static ɵinj: i0.ɵɵInjectorDeclaration<MatLegacyCheckboxModule>;
  99. }
  100. export { MatLegacyCheckboxRequiredValidator }
  101. export { _MatLegacyCheckboxRequiredValidatorModule }
  102. export { }