common-module-WayjW0Pb.mjs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { HighContrastModeDetector } from '@angular/cdk/a11y';
  2. import { BidiModule } from '@angular/cdk/bidi';
  3. import * as i0 from '@angular/core';
  4. import { InjectionToken, inject, NgModule } from '@angular/core';
  5. /**
  6. * Injection token that configures whether the Material sanity checks are enabled.
  7. * @deprecated No longer used and will be removed.
  8. * @breaking-change 21.0.0
  9. */
  10. const MATERIAL_SANITY_CHECKS = new InjectionToken('mat-sanity-checks', {
  11. providedIn: 'root',
  12. factory: () => true,
  13. });
  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. * @deprecated No longer used and will be removed.
  20. * @breaking-change 21.0.0
  21. */
  22. class MatCommonModule {
  23. constructor() {
  24. // While A11yModule also does this, we repeat it here to avoid importing A11yModule
  25. // in MatCommonModule.
  26. inject(HighContrastModeDetector)._applyBodyHighContrastModeCssClasses();
  27. }
  28. static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MatCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
  29. static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: MatCommonModule, imports: [BidiModule], exports: [BidiModule] });
  30. static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MatCommonModule, imports: [BidiModule, BidiModule] });
  31. }
  32. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MatCommonModule, decorators: [{
  33. type: NgModule,
  34. args: [{
  35. imports: [BidiModule],
  36. exports: [BidiModule],
  37. }]
  38. }], ctorParameters: () => [] });
  39. export { MatCommonModule as M, MATERIAL_SANITY_CHECKS as a };
  40. //# sourceMappingURL=common-module-WayjW0Pb.mjs.map