pseudo-checkbox-module.d-DL5oxSJM.d.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import * as i0 from '@angular/core';
  2. import { M as MatCommonModule } from './common-module.d-C8xzHJDr.js';
  3. /**
  4. * Possible states for a pseudo checkbox.
  5. * @docs-private
  6. */
  7. type MatPseudoCheckboxState = 'unchecked' | 'checked' | 'indeterminate';
  8. /**
  9. * Component that shows a simplified checkbox without including any kind of "real" checkbox.
  10. * Meant to be used when the checkbox is purely decorative and a large number of them will be
  11. * included, such as for the options in a multi-select. Uses no SVGs or complex animations.
  12. * Note that theming is meant to be handled by the parent element, e.g.
  13. * `mat-primary .mat-pseudo-checkbox`.
  14. *
  15. * Note that this component will be completely invisible to screen-reader users. This is *not*
  16. * interchangeable with `<mat-checkbox>` and should *not* be used if the user would directly
  17. * interact with the checkbox. The pseudo-checkbox should only be used as an implementation detail
  18. * of more complex components that appropriately handle selected / checked state.
  19. * @docs-private
  20. */
  21. declare class MatPseudoCheckbox {
  22. _animationMode?: "NoopAnimations" | "BrowserAnimations" | null | undefined;
  23. /** Display state of the checkbox. */
  24. state: MatPseudoCheckboxState;
  25. /** Whether the checkbox is disabled. */
  26. disabled: boolean;
  27. /**
  28. * Appearance of the pseudo checkbox. Default appearance of 'full' renders a checkmark/mixedmark
  29. * indicator inside a square box. 'minimal' appearance only renders the checkmark/mixedmark.
  30. */
  31. appearance: 'minimal' | 'full';
  32. constructor(...args: unknown[]);
  33. static ɵfac: i0.ɵɵFactoryDeclaration<MatPseudoCheckbox, never>;
  34. static ɵcmp: i0.ɵɵComponentDeclaration<MatPseudoCheckbox, "mat-pseudo-checkbox", never, { "state": { "alias": "state"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, never, true, never>;
  35. }
  36. declare class MatPseudoCheckboxModule {
  37. static ɵfac: i0.ɵɵFactoryDeclaration<MatPseudoCheckboxModule, never>;
  38. static ɵmod: i0.ɵɵNgModuleDeclaration<MatPseudoCheckboxModule, never, [typeof MatCommonModule, typeof MatPseudoCheckbox], [typeof MatPseudoCheckbox]>;
  39. static ɵinj: i0.ɵɵInjectorDeclaration<MatPseudoCheckboxModule>;
  40. }
  41. export { MatPseudoCheckboxModule as M, MatPseudoCheckbox as b };
  42. export type { MatPseudoCheckboxState as a };