index.d.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import * as i0 from '@angular/core';
  2. import { AfterViewInit, ElementRef, QueryList } from '@angular/core';
  3. import { M as MatCommonModule } from '../common-module.d-C8xzHJDr.js';
  4. import '@angular/cdk/bidi';
  5. declare class MatToolbarRow {
  6. static ɵfac: i0.ɵɵFactoryDeclaration<MatToolbarRow, never>;
  7. static ɵdir: i0.ɵɵDirectiveDeclaration<MatToolbarRow, "mat-toolbar-row", ["matToolbarRow"], {}, {}, never, never, true, never>;
  8. }
  9. declare class MatToolbar implements AfterViewInit {
  10. protected _elementRef: ElementRef<any>;
  11. private _platform;
  12. private _document;
  13. /**
  14. * Theme color of the toolbar. This API is supported in M2 themes only, it has
  15. * no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/toolbar/styling.
  16. *
  17. * For information on applying color variants in M3, see
  18. * https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
  19. */
  20. color?: string | null;
  21. /** Reference to all toolbar row elements that have been projected. */
  22. _toolbarRows: QueryList<MatToolbarRow>;
  23. constructor(...args: unknown[]);
  24. ngAfterViewInit(): void;
  25. /**
  26. * Throws an exception when developers are attempting to combine the different toolbar row modes.
  27. */
  28. private _checkToolbarMixedModes;
  29. static ɵfac: i0.ɵɵFactoryDeclaration<MatToolbar, never>;
  30. static ɵcmp: i0.ɵɵComponentDeclaration<MatToolbar, "mat-toolbar", ["matToolbar"], { "color": { "alias": "color"; "required": false; }; }, {}, ["_toolbarRows"], ["*", "mat-toolbar-row"], true, never>;
  31. }
  32. /**
  33. * Throws an exception when attempting to combine the different toolbar row modes.
  34. * @docs-private
  35. */
  36. declare function throwToolbarMixedModesError(): void;
  37. declare class MatToolbarModule {
  38. static ɵfac: i0.ɵɵFactoryDeclaration<MatToolbarModule, never>;
  39. static ɵmod: i0.ɵɵNgModuleDeclaration<MatToolbarModule, never, [typeof MatCommonModule, typeof MatToolbar, typeof MatToolbarRow], [typeof MatToolbar, typeof MatToolbarRow, typeof MatCommonModule]>;
  40. static ɵinj: i0.ɵɵInjectorDeclaration<MatToolbarModule>;
  41. }
  42. export { MatToolbar, MatToolbarModule, MatToolbarRow, throwToolbarMixedModesError };