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 { HighContrastModeDetector } from '@angular/cdk/a11y';
|
---|
9 | import { InjectionToken } from '@angular/core';
|
---|
10 | /** @docs-private */
|
---|
11 | export declare function MATERIAL_SANITY_CHECKS_FACTORY(): SanityChecks;
|
---|
12 | /** Injection token that configures whether the Material sanity checks are enabled. */
|
---|
13 | export declare const MATERIAL_SANITY_CHECKS: InjectionToken<SanityChecks>;
|
---|
14 | /**
|
---|
15 | * Possible sanity checks that can be enabled. If set to
|
---|
16 | * true/false, all checks will be enabled/disabled.
|
---|
17 | */
|
---|
18 | export declare type SanityChecks = boolean | GranularSanityChecks;
|
---|
19 | /** Object that can be used to configure the sanity checks granularly. */
|
---|
20 | export interface GranularSanityChecks {
|
---|
21 | doctype: boolean;
|
---|
22 | theme: boolean;
|
---|
23 | version: boolean;
|
---|
24 | }
|
---|
25 | /**
|
---|
26 | * Module that captures anything that should be loaded and/or run for *all* Angular Material
|
---|
27 | * components. This includes Bidi, etc.
|
---|
28 | *
|
---|
29 | * This module should be imported to each top-level component module (e.g., MatTabsModule).
|
---|
30 | */
|
---|
31 | export declare class MatCommonModule {
|
---|
32 | /** Whether we've done the global sanity checks (e.g. a theme is loaded, there is a doctype). */
|
---|
33 | private _hasDoneGlobalChecks;
|
---|
34 | /** Configured sanity checks. */
|
---|
35 | private _sanityChecks;
|
---|
36 | /** Used to reference correct document/window */
|
---|
37 | protected _document: Document;
|
---|
38 | constructor(highContrastModeDetector: HighContrastModeDetector, sanityChecks: any, document: any);
|
---|
39 | /** Gets whether a specific sanity check is enabled. */
|
---|
40 | private _checkIsEnabled;
|
---|
41 | private _checkDoctypeIsDefined;
|
---|
42 | private _checkThemeIsPresent;
|
---|
43 | /** Checks whether the material version matches the cdk version */
|
---|
44 | private _checkCdkVersionMatch;
|
---|
45 | }
|
---|