Guest User

Untitled

a guest
Oct 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. import { InjectionToken } from '@angular/core';
  9. import { HammerLoader } from '@angular/platform-browser';
  10. /** Injection token that configures whether the Material sanity checks are enabled. */
  11. export declare const MATERIAL_SANITY_CHECKS: InjectionToken<boolean>;
  12. /** @docs-private */
  13. export declare function MATERIAL_SANITY_CHECKS_FACTORY(): boolean;
  14. /**
  15. * Module that captures anything that should be loaded and/or run for *all* Angular Material
  16. * components. This includes Bidi, etc.
  17. *
  18. * This module should be imported to each top-level component module (e.g., MatTabsModule).
  19. */
  20. export declare class MatCommonModule {
  21. private _sanityChecksEnabled;
  22. private _hammerLoader?;
  23. /** Whether we've done the global sanity checks (e.g. a theme is loaded, there is a doctype). */
  24. private _hasDoneGlobalChecks;
  25. /** Whether we've already checked for HammerJs availability. */
  26. private _hasCheckedHammer;
  27. /** Reference to the global `document` object. */
  28. private _document;
  29. /** Reference to the global 'window' object. */
  30. private _window;
  31. constructor(_sanityChecksEnabled: boolean, _hammerLoader?: HammerLoader | undefined);
  32. /** Whether any sanity checks are enabled */
  33. private _areChecksEnabled;
  34. /** Whether the code is running in tests. */
  35. private _isTestEnv;
  36. private _checkDoctypeIsDefined;
  37. private _checkThemeIsPresent;
  38. /** Checks whether HammerJS is available. */
  39. _checkHammerIsAvailable(): void;
  40. }
Add Comment
Please, Sign In to add comment