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