diff --git a/src/cdk-experimental/selection/selection-module.ts b/src/cdk-experimental/selection/selection-module.ts index 3a3a3a9ca286..40dcdece7ebb 100644 --- a/src/cdk-experimental/selection/selection-module.ts +++ b/src/cdk-experimental/selection/selection-module.ts @@ -7,7 +7,6 @@ */ import {CdkTableModule} from '@angular/cdk/table'; -import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {CdkRowSelection} from './row-selection'; @@ -18,7 +17,6 @@ import {CdkSelectionToggle} from './selection-toggle'; @NgModule({ imports: [ - CommonModule, CdkTableModule, CdkSelection, CdkSelectionToggle, diff --git a/src/material-experimental/selection/selection-module.ts b/src/material-experimental/selection/selection-module.ts index 866221834d45..af9c76e74ce8 100644 --- a/src/material-experimental/selection/selection-module.ts +++ b/src/material-experimental/selection/selection-module.ts @@ -8,7 +8,6 @@ // TODO(yifange): Move the table-specific code to a separate module from the other selection // behaviors once we move it out of experimental. -import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {MatTableModule} from '@angular/material/table'; import {MatCheckboxModule} from '@angular/material/checkbox'; @@ -20,7 +19,6 @@ import {MatRowSelection} from './row-selection'; @NgModule({ imports: [ - CommonModule, MatTableModule, MatCheckboxModule, MatSelectAll, diff --git a/src/material/autocomplete/module.ts b/src/material/autocomplete/module.ts index 860119daae9a..d1e9983fad63 100644 --- a/src/material/autocomplete/module.ts +++ b/src/material/autocomplete/module.ts @@ -8,7 +8,6 @@ import {NgModule} from '@angular/core'; import {MatCommonModule, MatOptionModule} from '@angular/material/core'; -import {CommonModule} from '@angular/common'; import {CdkScrollableModule} from '@angular/cdk/scrolling'; import {OverlayModule} from '@angular/cdk/overlay'; import {MatAutocomplete} from './autocomplete'; @@ -23,7 +22,6 @@ import {MatAutocompleteOrigin} from './autocomplete-origin'; OverlayModule, MatOptionModule, MatCommonModule, - CommonModule, MatAutocomplete, MatAutocompleteTrigger, MatAutocompleteOrigin, diff --git a/src/material/card/module.ts b/src/material/card/module.ts index 5ca2edb27cc8..a72ce0bf1404 100644 --- a/src/material/card/module.ts +++ b/src/material/card/module.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {MatCommonModule} from '@angular/material/core'; import { @@ -44,7 +43,7 @@ const CARD_DIRECTIVES = [ ]; @NgModule({ - imports: [MatCommonModule, CommonModule, ...CARD_DIRECTIVES], + imports: [MatCommonModule, ...CARD_DIRECTIVES], exports: [CARD_DIRECTIVES, MatCommonModule], }) export class MatCardModule {} diff --git a/src/material/datepicker/datepicker-module.ts b/src/material/datepicker/datepicker-module.ts index e0e99e22fb6d..abe21e81f077 100644 --- a/src/material/datepicker/datepicker-module.ts +++ b/src/material/datepicker/datepicker-module.ts @@ -9,7 +9,6 @@ import {A11yModule} from '@angular/cdk/a11y'; import {OverlayModule} from '@angular/cdk/overlay'; import {PortalModule} from '@angular/cdk/portal'; -import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {MatButtonModule} from '@angular/material/button'; import {CdkScrollableModule} from '@angular/cdk/scrolling'; @@ -34,7 +33,6 @@ import {MatDatepickerActions, MatDatepickerApply, MatDatepickerCancel} from './d @NgModule({ imports: [ - CommonModule, MatButtonModule, OverlayModule, A11yModule, diff --git a/src/material/form-field/module.ts b/src/material/form-field/module.ts index 92e042438fa2..4e09f29dff33 100644 --- a/src/material/form-field/module.ts +++ b/src/material/form-field/module.ts @@ -7,7 +7,6 @@ */ import {ObserversModule} from '@angular/cdk/observers'; -import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {MatCommonModule} from '@angular/material/core'; import {MatError} from './directives/error'; @@ -20,7 +19,6 @@ import {MatFormField} from './form-field'; @NgModule({ imports: [ MatCommonModule, - CommonModule, ObserversModule, MatFormField, MatLabel, diff --git a/src/material/list/list-module.ts b/src/material/list/list-module.ts index ebb83b31883e..75c4cec2676b 100644 --- a/src/material/list/list-module.ts +++ b/src/material/list/list-module.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {MatPseudoCheckboxModule, MatRippleModule, MatCommonModule} from '@angular/material/core'; import {MatDividerModule} from '@angular/material/divider'; @@ -28,7 +27,6 @@ import {ObserversModule} from '@angular/cdk/observers'; @NgModule({ imports: [ ObserversModule, - CommonModule, MatCommonModule, MatRippleModule, MatPseudoCheckboxModule, diff --git a/src/material/menu/module.ts b/src/material/menu/module.ts index 667ac4376814..0888920c6a18 100644 --- a/src/material/menu/module.ts +++ b/src/material/menu/module.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {MatCommonModule, MatRippleModule} from '@angular/material/core'; import {OverlayModule} from '@angular/cdk/overlay'; @@ -18,7 +17,6 @@ import {MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER, MatMenuTrigger} from './menu- @NgModule({ imports: [ - CommonModule, MatRippleModule, MatCommonModule, OverlayModule, diff --git a/src/material/progress-spinner/module.ts b/src/material/progress-spinner/module.ts index 5c6c9b658c5d..4ea6aa671114 100644 --- a/src/material/progress-spinner/module.ts +++ b/src/material/progress-spinner/module.ts @@ -9,10 +9,9 @@ import {NgModule} from '@angular/core'; import {MatCommonModule} from '@angular/material/core'; import {MatProgressSpinner, MatSpinner} from './progress-spinner'; -import {CommonModule} from '@angular/common'; @NgModule({ - imports: [CommonModule, MatProgressSpinner, MatSpinner], + imports: [MatProgressSpinner, MatSpinner], exports: [MatProgressSpinner, MatSpinner, MatCommonModule], }) export class MatProgressSpinnerModule {} diff --git a/src/material/radio/module.ts b/src/material/radio/module.ts index 54cedc152f38..ec9d5f40fc41 100644 --- a/src/material/radio/module.ts +++ b/src/material/radio/module.ts @@ -6,13 +6,12 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {MatCommonModule, MatRippleModule} from '@angular/material/core'; import {MatRadioButton, MatRadioGroup} from './radio'; @NgModule({ - imports: [MatCommonModule, CommonModule, MatRippleModule, MatRadioGroup, MatRadioButton], + imports: [MatCommonModule, MatRippleModule, MatRadioGroup, MatRadioButton], exports: [MatCommonModule, MatRadioGroup, MatRadioButton], }) export class MatRadioModule {} diff --git a/src/material/select/module.ts b/src/material/select/module.ts index 4a910ed034c0..2bc3d42ebabe 100644 --- a/src/material/select/module.ts +++ b/src/material/select/module.ts @@ -7,7 +7,6 @@ */ import {OverlayModule} from '@angular/cdk/overlay'; -import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {MatCommonModule, MatOptionModule} from '@angular/material/core'; import {MatFormFieldModule} from '@angular/material/form-field'; @@ -15,14 +14,7 @@ import {CdkScrollableModule} from '@angular/cdk/scrolling'; import {MatSelect, MatSelectTrigger, MAT_SELECT_SCROLL_STRATEGY_PROVIDER} from './select'; @NgModule({ - imports: [ - CommonModule, - OverlayModule, - MatOptionModule, - MatCommonModule, - MatSelect, - MatSelectTrigger, - ], + imports: [OverlayModule, MatOptionModule, MatCommonModule, MatSelect, MatSelectTrigger], exports: [ CdkScrollableModule, MatFormFieldModule, diff --git a/src/material/stepper/stepper-module.ts b/src/material/stepper/stepper-module.ts index 838518646d46..8b6c63fbb46e 100644 --- a/src/material/stepper/stepper-module.ts +++ b/src/material/stepper/stepper-module.ts @@ -8,7 +8,6 @@ import {PortalModule} from '@angular/cdk/portal'; import {CdkStepperModule} from '@angular/cdk/stepper'; -import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {ErrorStateMatcher, MatCommonModule, MatRippleModule} from '@angular/material/core'; import {MatIconModule} from '@angular/material/icon'; @@ -23,7 +22,6 @@ import {MatStepContent} from './step-content'; @NgModule({ imports: [ MatCommonModule, - CommonModule, PortalModule, CdkStepperModule, MatIconModule, diff --git a/src/material/tooltip/module.ts b/src/material/tooltip/module.ts index 9e6575c8065b..97e26a05f7f8 100644 --- a/src/material/tooltip/module.ts +++ b/src/material/tooltip/module.ts @@ -7,7 +7,6 @@ */ import {NgModule} from '@angular/core'; -import {CommonModule} from '@angular/common'; import {A11yModule} from '@angular/cdk/a11y'; import {OverlayModule} from '@angular/cdk/overlay'; import {CdkScrollableModule} from '@angular/cdk/scrolling'; @@ -19,7 +18,7 @@ import { } from './tooltip'; @NgModule({ - imports: [A11yModule, CommonModule, OverlayModule, MatCommonModule, MatTooltip, TooltipComponent], + imports: [A11yModule, OverlayModule, MatCommonModule, MatTooltip, TooltipComponent], exports: [MatTooltip, TooltipComponent, MatCommonModule, CdkScrollableModule], providers: [MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER], }) diff --git a/tools/public_api_guard/material/autocomplete.md b/tools/public_api_guard/material/autocomplete.md index 4949ce629f4c..cbe39d11f711 100644 --- a/tools/public_api_guard/material/autocomplete.md +++ b/tools/public_api_guard/material/autocomplete.md @@ -14,8 +14,7 @@ import { EventEmitter } from '@angular/core'; import * as i0 from '@angular/core'; import * as i1 from '@angular/cdk/overlay'; import * as i2 from '@angular/material/core'; -import * as i3 from '@angular/common'; -import * as i7 from '@angular/cdk/scrolling'; +import * as i6 from '@angular/cdk/scrolling'; import { InjectionToken } from '@angular/core'; import { MatOptgroup } from '@angular/material/core'; import { MatOption } from '@angular/material/core'; @@ -142,7 +141,7 @@ export class MatAutocompleteModule { // (undocumented) static ɵinj: i0.ɵɵInjectorDeclaration; // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public diff --git a/tools/public_api_guard/material/card.md b/tools/public_api_guard/material/card.md index 576c88722df2..628fe507ac5b 100644 --- a/tools/public_api_guard/material/card.md +++ b/tools/public_api_guard/material/card.md @@ -6,7 +6,6 @@ import * as i0 from '@angular/core'; import * as i1 from '@angular/material/core'; -import * as i2 from '@angular/common'; import { InjectionToken } from '@angular/core'; // @public @@ -103,7 +102,7 @@ export class MatCardModule { // (undocumented) static ɵinj: i0.ɵɵInjectorDeclaration; // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public diff --git a/tools/public_api_guard/material/datepicker.md b/tools/public_api_guard/material/datepicker.md index ee65f1dbf42c..43c985a3f525 100644 --- a/tools/public_api_guard/material/datepicker.md +++ b/tools/public_api_guard/material/datepicker.md @@ -23,13 +23,12 @@ import { FactoryProvider } from '@angular/core'; import { FocusOrigin } from '@angular/cdk/a11y'; import { FormGroupDirective } from '@angular/forms'; import * as i0 from '@angular/core'; -import * as i1 from '@angular/common'; -import * as i2 from '@angular/material/button'; -import * as i20 from '@angular/cdk/scrolling'; -import * as i3 from '@angular/cdk/overlay'; -import * as i4 from '@angular/cdk/a11y'; -import * as i5 from '@angular/cdk/portal'; -import * as i6 from '@angular/material/core'; +import * as i1 from '@angular/material/button'; +import * as i19 from '@angular/cdk/scrolling'; +import * as i2 from '@angular/cdk/overlay'; +import * as i3 from '@angular/cdk/a11y'; +import * as i4 from '@angular/cdk/portal'; +import * as i5 from '@angular/material/core'; import { InjectionToken } from '@angular/core'; import { MatButton } from '@angular/material/button'; import { MatFormFieldControl } from '@angular/material/form-field'; @@ -511,7 +510,7 @@ export class MatDatepickerModule { // (undocumented) static ɵinj: i0.ɵɵInjectorDeclaration; // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public diff --git a/tools/public_api_guard/material/form-field.md b/tools/public_api_guard/material/form-field.md index db2b4bf94c92..f7efb046f473 100644 --- a/tools/public_api_guard/material/form-field.md +++ b/tools/public_api_guard/material/form-field.md @@ -13,8 +13,7 @@ import { BooleanInput } from '@angular/cdk/coercion'; import { ElementRef } from '@angular/core'; import * as i0 from '@angular/core'; import * as i1 from '@angular/material/core'; -import * as i2 from '@angular/common'; -import * as i3 from '@angular/cdk/observers'; +import * as i2 from '@angular/cdk/observers'; import { InjectionToken } from '@angular/core'; import { NgControl } from '@angular/forms'; import { Observable } from 'rxjs'; @@ -198,7 +197,7 @@ export class MatFormFieldModule { // (undocumented) static ɵinj: i0.ɵɵInjectorDeclaration; // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public diff --git a/tools/public_api_guard/material/list.md b/tools/public_api_guard/material/list.md index a9a2eafe9a27..07dd4c82049c 100644 --- a/tools/public_api_guard/material/list.md +++ b/tools/public_api_guard/material/list.md @@ -11,9 +11,8 @@ import { ElementRef } from '@angular/core'; import { EventEmitter } from '@angular/core'; import * as i0 from '@angular/core'; import * as i1 from '@angular/cdk/observers'; -import * as i11 from '@angular/material/divider'; -import * as i2 from '@angular/common'; -import * as i3 from '@angular/material/core'; +import * as i10 from '@angular/material/divider'; +import * as i2 from '@angular/material/core'; import { InjectionToken } from '@angular/core'; import { NgZone } from '@angular/core'; import { OnChanges } from '@angular/core'; @@ -153,7 +152,7 @@ export class MatListModule { // (undocumented) static ɵinj: i0.ɵɵInjectorDeclaration; // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public (undocumented) diff --git a/tools/public_api_guard/material/menu.md b/tools/public_api_guard/material/menu.md index d52575110cd7..30587093ea5f 100644 --- a/tools/public_api_guard/material/menu.md +++ b/tools/public_api_guard/material/menu.md @@ -13,10 +13,9 @@ import { EventEmitter } from '@angular/core'; import { FocusableOption } from '@angular/cdk/a11y'; import { FocusOrigin } from '@angular/cdk/a11y'; import * as i0 from '@angular/core'; -import * as i1 from '@angular/common'; -import * as i2 from '@angular/material/core'; -import * as i3 from '@angular/cdk/overlay'; -import * as i8 from '@angular/cdk/scrolling'; +import * as i1 from '@angular/material/core'; +import * as i2 from '@angular/cdk/overlay'; +import * as i7 from '@angular/cdk/scrolling'; import { InjectionToken } from '@angular/core'; import { Observable } from 'rxjs'; import { OnDestroy } from '@angular/core'; @@ -192,7 +191,7 @@ export class MatMenuModule { // (undocumented) static ɵinj: i0.ɵɵInjectorDeclaration; // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public diff --git a/tools/public_api_guard/material/progress-spinner.md b/tools/public_api_guard/material/progress-spinner.md index bae5cac27552..f401ed839ddb 100644 --- a/tools/public_api_guard/material/progress-spinner.md +++ b/tools/public_api_guard/material/progress-spinner.md @@ -6,8 +6,7 @@ import { ElementRef } from '@angular/core'; import * as i0 from '@angular/core'; -import * as i1 from '@angular/common'; -import * as i3 from '@angular/material/core'; +import * as i2 from '@angular/material/core'; import { InjectionToken } from '@angular/core'; import { ThemePalette } from '@angular/material/core'; @@ -65,7 +64,7 @@ export class MatProgressSpinnerModule { // (undocumented) static ɵinj: i0.ɵɵInjectorDeclaration; // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public @deprecated (undocumented) diff --git a/tools/public_api_guard/material/radio.md b/tools/public_api_guard/material/radio.md index 5ef2f429d2b0..000afc2ad4f4 100644 --- a/tools/public_api_guard/material/radio.md +++ b/tools/public_api_guard/material/radio.md @@ -13,7 +13,6 @@ import { EventEmitter } from '@angular/core'; import { FocusOrigin } from '@angular/cdk/a11y'; import * as i0 from '@angular/core'; import * as i1 from '@angular/material/core'; -import * as i2 from '@angular/common'; import { InjectionToken } from '@angular/core'; import { OnDestroy } from '@angular/core'; import { OnInit } from '@angular/core'; @@ -166,7 +165,7 @@ export class MatRadioModule { // (undocumented) static ɵinj: i0.ɵɵInjectorDeclaration; // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // (No @packageDocumentation comment for this package) diff --git a/tools/public_api_guard/material/select.md b/tools/public_api_guard/material/select.md index b51b0132d334..10a5fdb41d89 100644 --- a/tools/public_api_guard/material/select.md +++ b/tools/public_api_guard/material/select.md @@ -17,11 +17,10 @@ import { ElementRef } from '@angular/core'; import { ErrorStateMatcher } from '@angular/material/core'; import { EventEmitter } from '@angular/core'; import * as i0 from '@angular/core'; -import * as i1 from '@angular/common'; -import * as i2 from '@angular/cdk/overlay'; -import * as i3 from '@angular/material/core'; -import * as i5 from '@angular/cdk/scrolling'; -import * as i6 from '@angular/material/form-field'; +import * as i1 from '@angular/cdk/overlay'; +import * as i2 from '@angular/material/core'; +import * as i4 from '@angular/cdk/scrolling'; +import * as i5 from '@angular/material/form-field'; import { InjectionToken } from '@angular/core'; import { MatError } from '@angular/material/form-field'; import { MatFormField } from '@angular/material/form-field'; @@ -246,7 +245,7 @@ export class MatSelectModule { // (undocumented) static ɵinj: i0.ɵɵInjectorDeclaration; // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public diff --git a/tools/public_api_guard/material/stepper.md b/tools/public_api_guard/material/stepper.md index a989ec6117cf..00c63518d5ed 100644 --- a/tools/public_api_guard/material/stepper.md +++ b/tools/public_api_guard/material/stepper.md @@ -21,10 +21,9 @@ import { FocusOrigin } from '@angular/cdk/a11y'; import { FormGroupDirective } from '@angular/forms'; import * as i0 from '@angular/core'; import * as i1 from '@angular/material/core'; -import * as i2 from '@angular/common'; -import * as i3 from '@angular/cdk/portal'; -import * as i4 from '@angular/cdk/stepper'; -import * as i5 from '@angular/material/icon'; +import * as i2 from '@angular/cdk/portal'; +import * as i3 from '@angular/cdk/stepper'; +import * as i4 from '@angular/material/icon'; import { NgForm } from '@angular/forms'; import { OnDestroy } from '@angular/core'; import { Optional } from '@angular/core'; @@ -189,7 +188,7 @@ export class MatStepperModule { // (undocumented) static ɵinj: i0.ɵɵInjectorDeclaration; // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public diff --git a/tools/public_api_guard/material/tooltip.md b/tools/public_api_guard/material/tooltip.md index 1c83fa4db149..86e845b5e301 100644 --- a/tools/public_api_guard/material/tooltip.md +++ b/tools/public_api_guard/material/tooltip.md @@ -12,10 +12,9 @@ import { Directionality } from '@angular/cdk/bidi'; import { ElementRef } from '@angular/core'; import * as i0 from '@angular/core'; import * as i1 from '@angular/cdk/a11y'; -import * as i2 from '@angular/common'; -import * as i3 from '@angular/cdk/overlay'; -import * as i4 from '@angular/material/core'; -import * as i6 from '@angular/cdk/scrolling'; +import * as i2 from '@angular/cdk/overlay'; +import * as i3 from '@angular/material/core'; +import * as i5 from '@angular/cdk/scrolling'; import { InjectionToken } from '@angular/core'; import { NumberInput } from '@angular/cdk/coercion'; import { Observable } from 'rxjs'; @@ -129,7 +128,7 @@ export class MatTooltipModule { // (undocumented) static ɵinj: i0.ɵɵInjectorDeclaration; // (undocumented) - static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; } // @public