diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4adf92417953..caba5eb81526 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -16,7 +16,7 @@ /src/material/grid-list/** @andrewseguin /src/material/icon/** @andrewseguin /src/material/legacy-input/** @mmalerba -/src/material/list/** @andrewseguin @crisbeto @devversion +/src/material/legacy-list/** @andrewseguin @crisbeto @devversion /src/material/legacy-menu/** @crisbeto /src/material/paginator/** @andrewseguin /src/material/prebuilt-themes/** @andrewseguin @@ -118,7 +118,7 @@ /src/material-experimental/mdc-core/** @crisbeto /src/material/dialog/** @devversion /src/material/form-field/** @devversion @mmalerba -/src/material-experimental/mdc-list/** @mmalerba @devversion +/src/material/list/** @mmalerba @devversion /src/material/menu/** @crisbeto /src/material/select/** @crisbeto /src/material-experimental/mdc-paginator/** @crisbeto diff --git a/.ng-dev/commit-message.mts b/.ng-dev/commit-message.mts index 2502ea5d4752..ded36e2cbded 100644 --- a/.ng-dev/commit-message.mts +++ b/.ng-dev/commit-message.mts @@ -47,7 +47,6 @@ export const commitMessage: CommitMessageConfig = { 'material/dialog', 'material/form-field', 'material/input', - 'material-experimental/mdc-list', 'material-experimental/mdc-paginator', 'material/progress-bar', 'material-experimental/mdc-progress-spinner', @@ -85,6 +84,7 @@ export const commitMessage: CommitMessageConfig = { 'material/icon', 'material/legacy-input', 'material/list', + 'material/legacy-list', 'material/menu', 'material/legacy-menu', 'material/paginator', diff --git a/goldens/tsec-exemption.json b/goldens/tsec-exemption.json index 035ce976b9dd..9afff1aeabf5 100644 --- a/goldens/tsec-exemption.json +++ b/goldens/tsec-exemption.json @@ -4,7 +4,7 @@ "ban-element-setattribute": [ "../src/cdk/a11y/aria-describer/aria-reference.ts", "../src/material/checkbox/checkbox.ts", - "../src/material-experimental/mdc-list/interactive-list-base.ts", + "../src/material/list/interactive-list-base.ts", "../src/material-experimental/mdc-progress-spinner/progress-spinner.ts", "../src/material/slide-toggle/slide-toggle.ts", "../src/material/icon/icon-registry.ts", diff --git a/integration/size-test/material/list/BUILD.bazel b/integration/size-test/material/list/BUILD.bazel index c349ba35a86c..3f49d3df4120 100644 --- a/integration/size-test/material/list/BUILD.bazel +++ b/integration/size-test/material/list/BUILD.bazel @@ -3,5 +3,5 @@ load("//integration/size-test:index.bzl", "size_test") size_test( name = "nav-list", file = "nav-list.ts", - deps = ["//src/material/list"], + deps = ["//src/material/legacy-list"], ) diff --git a/integration/size-test/material/list/nav-list.ts b/integration/size-test/material/list/nav-list.ts index 9c605aadcfef..4c8a3e5ad5c7 100644 --- a/integration/size-test/material/list/nav-list.ts +++ b/integration/size-test/material/list/nav-list.ts @@ -1,5 +1,5 @@ import {Component, NgModule} from '@angular/core'; -import {MatListModule} from '@angular/material/list'; +import {MatLegacyListModule} from '@angular/material/legacy-list'; /** * Basic component using `MatNavList` and `MatListItem`. Other parts of the list @@ -18,7 +18,7 @@ import {MatListModule} from '@angular/material/list'; export class TestComponent {} @NgModule({ - imports: [MatListModule], + imports: [MatLegacyListModule], declarations: [TestComponent], bootstrap: [TestComponent], }) diff --git a/src/components-examples/material-experimental/popover-edit/BUILD.bazel b/src/components-examples/material-experimental/popover-edit/BUILD.bazel index 7c75580b5486..9682b28ac100 100644 --- a/src/components-examples/material-experimental/popover-edit/BUILD.bazel +++ b/src/components-examples/material-experimental/popover-edit/BUILD.bazel @@ -15,7 +15,7 @@ ng_module( "//src/material/icon", "//src/material/legacy-checkbox", "//src/material/legacy-input", - "//src/material/list", + "//src/material/legacy-list", "//src/material/snack-bar", "//src/material/table", "@npm//@angular/common", diff --git a/src/components-examples/material-experimental/popover-edit/index.ts b/src/components-examples/material-experimental/popover-edit/index.ts index a469fbc4b3b4..5896571fc4b9 100644 --- a/src/components-examples/material-experimental/popover-edit/index.ts +++ b/src/components-examples/material-experimental/popover-edit/index.ts @@ -6,7 +6,7 @@ import {MatButtonModule} from '@angular/material/button'; import {MatLegacyCheckboxModule} from '@angular/material/legacy-checkbox'; import {MatIconModule} from '@angular/material/icon'; import {MatLegacyInputModule} from '@angular/material/legacy-input'; -import {MatListModule} from '@angular/material/list'; +import {MatLegacyListModule} from '@angular/material/legacy-list'; import {MatSnackBarModule} from '@angular/material/snack-bar'; import {MatTableModule} from '@angular/material/table'; import {PopoverEditCellSpanMatTableExample} from './popover-edit-cell-span-mat-table/popover-edit-cell-span-mat-table-example'; @@ -35,7 +35,7 @@ const EXAMPLES = [ MatLegacyCheckboxModule, MatIconModule, MatLegacyInputModule, - MatListModule, + MatLegacyListModule, MatPopoverEditModule, MatSnackBarModule, MatTableModule, diff --git a/src/components-examples/material/bottom-sheet/BUILD.bazel b/src/components-examples/material/bottom-sheet/BUILD.bazel index d2eaac889ff2..de008a3b6873 100644 --- a/src/components-examples/material/bottom-sheet/BUILD.bazel +++ b/src/components-examples/material/bottom-sheet/BUILD.bazel @@ -19,7 +19,7 @@ ng_module( "//src/material/bottom-sheet", "//src/material/bottom-sheet/testing", "//src/material/button", - "//src/material/list", + "//src/material/legacy-list", "@npm//@angular/platform-browser", "@npm//@angular/platform-browser-dynamic", "@npm//@types/jasmine", diff --git a/src/components-examples/material/bottom-sheet/index.ts b/src/components-examples/material/bottom-sheet/index.ts index 35b5fcc016f8..adec0b5c174e 100644 --- a/src/components-examples/material/bottom-sheet/index.ts +++ b/src/components-examples/material/bottom-sheet/index.ts @@ -1,7 +1,7 @@ import {NgModule} from '@angular/core'; import {MatBottomSheetModule} from '@angular/material/bottom-sheet'; import {MatButtonModule} from '@angular/material/button'; -import {MatListModule} from '@angular/material/list'; +import {MatLegacyListModule} from '@angular/material/legacy-list'; import { BottomSheetOverviewExample, BottomSheetOverviewExampleSheet, @@ -17,7 +17,7 @@ const EXAMPLES = [ ]; @NgModule({ - imports: [MatBottomSheetModule, MatButtonModule, MatListModule], + imports: [MatBottomSheetModule, MatButtonModule, MatLegacyListModule], declarations: EXAMPLES, exports: EXAMPLES, }) diff --git a/src/components-examples/material/divider/BUILD.bazel b/src/components-examples/material/divider/BUILD.bazel index 0203ff33234a..9e798951feb5 100644 --- a/src/components-examples/material/divider/BUILD.bazel +++ b/src/components-examples/material/divider/BUILD.bazel @@ -17,7 +17,7 @@ ng_module( "//src/cdk/testing/testbed", "//src/material/divider", "//src/material/divider/testing", - "//src/material/list", + "//src/material/legacy-list", "@npm//@angular/platform-browser", "@npm//@angular/platform-browser-dynamic", "@npm//@types/jasmine", diff --git a/src/components-examples/material/divider/index.ts b/src/components-examples/material/divider/index.ts index d6fc46ef4909..4a269b477f4a 100644 --- a/src/components-examples/material/divider/index.ts +++ b/src/components-examples/material/divider/index.ts @@ -1,6 +1,6 @@ import {NgModule} from '@angular/core'; import {MatDividerModule} from '@angular/material/divider'; -import {MatListModule} from '@angular/material/list'; +import {MatLegacyListModule} from '@angular/material/legacy-list'; import {DividerOverviewExample} from './divider-overview/divider-overview-example'; import {DividerHarnessExample} from './divider-harness/divider-harness-example'; @@ -9,7 +9,7 @@ export {DividerHarnessExample, DividerOverviewExample}; const EXAMPLES = [DividerHarnessExample, DividerOverviewExample]; @NgModule({ - imports: [MatDividerModule, MatListModule], + imports: [MatDividerModule, MatLegacyListModule], declarations: EXAMPLES, exports: EXAMPLES, }) diff --git a/src/components-examples/material/list/BUILD.bazel b/src/components-examples/material/list/BUILD.bazel index fc7e0e692d46..1d381c70f426 100644 --- a/src/components-examples/material/list/BUILD.bazel +++ b/src/components-examples/material/list/BUILD.bazel @@ -16,8 +16,8 @@ ng_module( "//src/cdk/testing", "//src/cdk/testing/testbed", "//src/material/icon", - "//src/material/list", - "//src/material/list/testing", + "//src/material/legacy-list", + "//src/material/legacy-list/testing", "@npm//@angular/platform-browser", "@npm//@angular/platform-browser-dynamic", "@npm//@types/jasmine", @@ -40,8 +40,8 @@ ng_test_library( ":list", "//src/cdk/testing", "//src/cdk/testing/testbed", - "//src/material/list", - "//src/material/list/testing", + "//src/material/legacy-list", + "//src/material/legacy-list/testing", "@npm//@angular/platform-browser-dynamic", ], ) diff --git a/src/components-examples/material/list/index.ts b/src/components-examples/material/list/index.ts index 394651accd7b..1507d89eea19 100644 --- a/src/components-examples/material/list/index.ts +++ b/src/components-examples/material/list/index.ts @@ -1,7 +1,7 @@ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {MatIconModule} from '@angular/material/icon'; -import {MatListModule} from '@angular/material/list'; +import {MatLegacyListModule} from '@angular/material/legacy-list'; import {ListOverviewExample} from './list-overview/list-overview-example'; import {ListSectionsExample} from './list-sections/list-sections-example'; import {ListSelectionExample} from './list-selection/list-selection-example'; @@ -25,7 +25,7 @@ const EXAMPLES = [ ]; @NgModule({ - imports: [CommonModule, MatIconModule, MatListModule], + imports: [CommonModule, MatIconModule, MatLegacyListModule], declarations: EXAMPLES, exports: EXAMPLES, }) diff --git a/src/components-examples/material/list/list-harness/list-harness-example.spec.ts b/src/components-examples/material/list/list-harness/list-harness-example.spec.ts index 463bb0cf31cd..10db84963547 100644 --- a/src/components-examples/material/list/list-harness/list-harness-example.spec.ts +++ b/src/components-examples/material/list/list-harness/list-harness-example.spec.ts @@ -1,8 +1,8 @@ import {HarnessLoader, parallel} from '@angular/cdk/testing'; import {ComponentFixture, TestBed} from '@angular/core/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; -import {MatListHarness} from '@angular/material/list/testing'; -import {MatListModule} from '@angular/material/list'; +import {MatLegacyListHarness} from '@angular/material/legacy-list/testing'; +import {MatLegacyListModule} from '@angular/material/legacy-list'; import {ListHarnessExample} from './list-harness-example'; describe('ListHarnessExample', () => { @@ -11,7 +11,7 @@ describe('ListHarnessExample', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - imports: [MatListModule], + imports: [MatLegacyListModule], declarations: [ListHarnessExample], }).compileComponents(); fixture = TestBed.createComponent(ListHarnessExample); @@ -20,7 +20,7 @@ describe('ListHarnessExample', () => { }); it('should get all items', async () => { - const list = await loader.getHarness(MatListHarness); + const list = await loader.getHarness(MatLegacyListHarness); const items = await list.getItems(); expect(await parallel(() => items.map(i => i.getText()))).toEqual([ 'Item 1', @@ -30,13 +30,13 @@ describe('ListHarnessExample', () => { }); it('should get all items matching text', async () => { - const list = await loader.getHarness(MatListHarness); + const list = await loader.getHarness(MatLegacyListHarness); const items = await list.getItems({text: /[13]/}); expect(await parallel(() => items.map(i => i.getText()))).toEqual(['Item 1', 'Item 3']); }); it('should get items by subheader', async () => { - const list = await loader.getHarness(MatListHarness); + const list = await loader.getHarness(MatLegacyListHarness); const sections = await list.getItemsGroupedBySubheader(); expect(sections.length).toBe(3); expect(sections[0].heading).toBeUndefined(); @@ -51,7 +51,7 @@ describe('ListHarnessExample', () => { }); it('should get list item text and lines', async () => { - const list = await loader.getHarness(MatListHarness); + const list = await loader.getHarness(MatLegacyListHarness); const items = await list.getItems(); expect(items.length).toBe(3); expect(await items[0].getText()).toBe('Item 1'); diff --git a/src/components-examples/material/sidenav/BUILD.bazel b/src/components-examples/material/sidenav/BUILD.bazel index 4057d76f6d45..e59545343d9e 100644 --- a/src/components-examples/material/sidenav/BUILD.bazel +++ b/src/components-examples/material/sidenav/BUILD.bazel @@ -19,9 +19,9 @@ ng_module( "//src/material/button", "//src/material/icon", "//src/material/legacy-checkbox", + "//src/material/legacy-list", "//src/material/legacy-radio", "//src/material/legacy-select", - "//src/material/list", "//src/material/sidenav", "//src/material/toolbar", "@npm//@angular/forms", diff --git a/src/components-examples/material/sidenav/index.ts b/src/components-examples/material/sidenav/index.ts index 0b38ebb7d244..d3177169f00f 100644 --- a/src/components-examples/material/sidenav/index.ts +++ b/src/components-examples/material/sidenav/index.ts @@ -4,7 +4,7 @@ import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {MatButtonModule} from '@angular/material/button'; import {MatLegacyCheckboxModule} from '@angular/material/legacy-checkbox'; import {MatIconModule} from '@angular/material/icon'; -import {MatListModule} from '@angular/material/list'; +import {MatLegacyListModule} from '@angular/material/legacy-list'; import {MatLegacyRadioModule} from '@angular/material/legacy-radio'; import {MatLegacySelectModule} from '@angular/material/legacy-select'; import {MatSidenavModule} from '@angular/material/sidenav'; @@ -56,7 +56,7 @@ const EXAMPLES = [ MatButtonModule, MatLegacyCheckboxModule, MatIconModule, - MatListModule, + MatLegacyListModule, MatLegacyRadioModule, MatSidenavModule, MatLegacySelectModule, diff --git a/src/dev-app/bottom-sheet/BUILD.bazel b/src/dev-app/bottom-sheet/BUILD.bazel index 1a4dc0d9440e..4f394b3b46e6 100644 --- a/src/dev-app/bottom-sheet/BUILD.bazel +++ b/src/dev-app/bottom-sheet/BUILD.bazel @@ -17,8 +17,8 @@ ng_module( "//src/material/legacy-checkbox", "//src/material/legacy-form-field", "//src/material/legacy-input", + "//src/material/legacy-list", "//src/material/legacy-select", - "//src/material/list", "@npm//@angular/forms", ], ) diff --git a/src/dev-app/bottom-sheet/bottom-sheet-demo.ts b/src/dev-app/bottom-sheet/bottom-sheet-demo.ts index 0ca5a7c93bb9..664ef88c9829 100644 --- a/src/dev-app/bottom-sheet/bottom-sheet-demo.ts +++ b/src/dev-app/bottom-sheet/bottom-sheet-demo.ts @@ -21,7 +21,7 @@ import {MatLegacyCheckboxModule} from '@angular/material/legacy-checkbox'; import {MatLegacyFormFieldModule} from '@angular/material/legacy-form-field'; import {MatIconModule} from '@angular/material/icon'; import {MatLegacyInputModule} from '@angular/material/legacy-input'; -import {MatListModule} from '@angular/material/list'; +import {MatLegacyListModule} from '@angular/material/legacy-list'; import {MatLegacySelectModule} from '@angular/material/legacy-select'; const defaultConfig = new MatBottomSheetConfig(); @@ -42,7 +42,7 @@ const defaultConfig = new MatBottomSheetConfig(); MatIconModule, MatLegacyInputModule, MatLegacySelectModule, - MatListModule, + MatLegacyListModule, ], }) export class BottomSheetDemo { @@ -77,7 +77,7 @@ export class BottomSheetDemo { `, standalone: true, - imports: [CommonModule, MatListModule], + imports: [CommonModule, MatLegacyListModule], }) export class ExampleBottomSheet { constructor(private _bottomSheet: MatBottomSheetRef) {} diff --git a/src/dev-app/dev-app/BUILD.bazel b/src/dev-app/dev-app/BUILD.bazel index 1208882e0a48..d7e0f048c38b 100644 --- a/src/dev-app/dev-app/BUILD.bazel +++ b/src/dev-app/dev-app/BUILD.bazel @@ -15,7 +15,7 @@ ng_module( "//src/material/button", "//src/material/core", "//src/material/icon", - "//src/material/list", + "//src/material/legacy-list", "//src/material/sidenav", "//src/material/toolbar", "@npm//@angular/router", diff --git a/src/dev-app/dev-app/dev-app-layout.ts b/src/dev-app/dev-app/dev-app-layout.ts index fb16ccc68b94..1dbf750a5a60 100644 --- a/src/dev-app/dev-app/dev-app-layout.ts +++ b/src/dev-app/dev-app/dev-app-layout.ts @@ -13,7 +13,7 @@ import {DevAppDirectionality} from './dev-app-directionality'; import {DevAppRippleOptions} from './ripple-options'; import {CommonModule, DOCUMENT} from '@angular/common'; import {MatSidenavModule} from '@angular/material/sidenav'; -import {MatListModule} from '@angular/material/list'; +import {MatLegacyListModule} from '@angular/material/legacy-list'; import {MatButtonModule} from '@angular/material/button'; import {RouterModule} from '@angular/router'; import {MatIconModule} from '@angular/material/icon'; @@ -34,7 +34,7 @@ export const ANIMATIONS_STORAGE_KEY = 'ANGULAR_COMPONENTS_ANIMATIONS_DISABLED'; CommonModule, MatButtonModule, MatIconModule, - MatListModule, + MatLegacyListModule, MatSidenavModule, MatToolbarModule, RouterModule, diff --git a/src/dev-app/drawer/BUILD.bazel b/src/dev-app/drawer/BUILD.bazel index 84a126e8831a..2f91c505260d 100644 --- a/src/dev-app/drawer/BUILD.bazel +++ b/src/dev-app/drawer/BUILD.bazel @@ -11,7 +11,7 @@ ng_module( ], deps = [ "//src/material/button", - "//src/material/list", + "//src/material/legacy-list", "//src/material/sidenav", ], ) diff --git a/src/dev-app/drawer/drawer-demo.ts b/src/dev-app/drawer/drawer-demo.ts index 367ba3a6094d..61da9bc65720 100644 --- a/src/dev-app/drawer/drawer-demo.ts +++ b/src/dev-app/drawer/drawer-demo.ts @@ -8,7 +8,7 @@ import {Component} from '@angular/core'; import {MatButtonModule} from '@angular/material/button'; -import {MatListModule} from '@angular/material/list'; +import {MatLegacyListModule} from '@angular/material/legacy-list'; import {MatSidenavModule} from '@angular/material/sidenav'; @Component({ @@ -16,7 +16,7 @@ import {MatSidenavModule} from '@angular/material/sidenav'; templateUrl: 'drawer-demo.html', styleUrls: ['drawer-demo.css'], standalone: true, - imports: [MatButtonModule, MatListModule, MatSidenavModule], + imports: [MatButtonModule, MatLegacyListModule, MatSidenavModule], }) export class DrawerDemo { invert = false; diff --git a/src/dev-app/list/BUILD.bazel b/src/dev-app/list/BUILD.bazel index 36376529141c..e010b3180b5e 100644 --- a/src/dev-app/list/BUILD.bazel +++ b/src/dev-app/list/BUILD.bazel @@ -13,7 +13,7 @@ ng_module( "//src/material/button", "//src/material/icon", "//src/material/legacy-checkbox", - "//src/material/list", + "//src/material/legacy-list", ], ) diff --git a/src/dev-app/list/list-demo.ts b/src/dev-app/list/list-demo.ts index 69c9c2b21c14..7d0c3eeb8003 100644 --- a/src/dev-app/list/list-demo.ts +++ b/src/dev-app/list/list-demo.ts @@ -12,7 +12,10 @@ import {FormsModule} from '@angular/forms'; import {MatButtonModule} from '@angular/material/button'; import {MatLegacyCheckboxModule} from '@angular/material/legacy-checkbox'; import {MatIconModule} from '@angular/material/icon'; -import {MatListModule, MatListOptionCheckboxPosition} from '@angular/material/list'; +import { + MatLegacyListModule, + MatLegacyListOptionCheckboxPosition, +} from '@angular/material/legacy-list'; @Component({ selector: 'list-demo', @@ -25,7 +28,7 @@ import {MatListModule, MatListOptionCheckboxPosition} from '@angular/material/li MatButtonModule, MatLegacyCheckboxModule, MatIconModule, - MatListModule, + MatLegacyListModule, ], }) export class ListDemo { @@ -37,7 +40,7 @@ export class ListDemo { {name: 'Bobby', headline: 'UX designer'}, ]; - checkboxPosition: MatListOptionCheckboxPosition = 'before'; + checkboxPosition: MatLegacyListOptionCheckboxPosition = 'before'; messages: {from: string; subject: string; message: string; image: string}[] = [ { diff --git a/src/dev-app/mdc-list/BUILD.bazel b/src/dev-app/mdc-list/BUILD.bazel index 11cd909993f1..0b60ff60c322 100644 --- a/src/dev-app/mdc-list/BUILD.bazel +++ b/src/dev-app/mdc-list/BUILD.bazel @@ -11,8 +11,8 @@ ng_module( ], deps = [ "//src/material-experimental/mdc-button", - "//src/material-experimental/mdc-list", "//src/material/icon", + "//src/material/list", ], ) diff --git a/src/dev-app/mdc-list/mdc-list-demo.ts b/src/dev-app/mdc-list/mdc-list-demo.ts index 7341a89a582c..508a084d087d 100644 --- a/src/dev-app/mdc-list/mdc-list-demo.ts +++ b/src/dev-app/mdc-list/mdc-list-demo.ts @@ -9,10 +9,7 @@ import {Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MatButtonModule} from '@angular/material-experimental/mdc-button'; -import { - MatListModule, - MatListOptionCheckboxPosition, -} from '@angular/material-experimental/mdc-list'; +import {MatListModule, MatListOptionCheckboxPosition} from '@angular/material/list'; import {MatIconModule} from '@angular/material/icon'; import {CommonModule} from '@angular/common'; diff --git a/src/e2e-app/BUILD.bazel b/src/e2e-app/BUILD.bazel index 7f21255e09bf..5aa4082c4d59 100644 --- a/src/e2e-app/BUILD.bazel +++ b/src/e2e-app/BUILD.bazel @@ -59,11 +59,11 @@ ng_module( "//src/material/legacy-dialog", "//src/material/legacy-form-field", "//src/material/legacy-input", + "//src/material/legacy-list", "//src/material/legacy-menu", "//src/material/legacy-progress-bar", "//src/material/legacy-radio", "//src/material/legacy-slide-toggle", - "//src/material/list", "//src/material/menu", "//src/material/progress-bar", "//src/material/progress-spinner", diff --git a/src/e2e-app/e2e-app/e2e-app-module.ts b/src/e2e-app/e2e-app/e2e-app-module.ts index 807c74be264a..eadbc26f82ea 100644 --- a/src/e2e-app/e2e-app/e2e-app-module.ts +++ b/src/e2e-app/e2e-app/e2e-app-module.ts @@ -8,12 +8,12 @@ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; -import {MatListModule} from '@angular/material/list'; +import {MatLegacyListModule} from '@angular/material/legacy-list'; import {RouterModule} from '@angular/router'; import {E2eAppLayout, Home} from './e2e-app-layout'; @NgModule({ - imports: [CommonModule, MatListModule, RouterModule], + imports: [CommonModule, MatLegacyListModule, RouterModule], declarations: [E2eAppLayout, Home], exports: [E2eAppLayout], }) diff --git a/src/material-experimental/_index.scss b/src/material-experimental/_index.scss index 464e1561d044..0fbdc9d6fbf3 100644 --- a/src/material-experimental/_index.scss +++ b/src/material-experimental/_index.scss @@ -23,8 +23,6 @@ mdc-fab-density, mdc-fab-theme; @forward './mdc-button/icon-button-theme' as mdc-icon-button-* show mdc-icon-button-color, mdc-icon-button-typography, mdc-icon-button-density, mdc-icon-button-theme; -@forward './mdc-list/list-theme' as mdc-list-* show mdc-list-color, mdc-list-typography, - mdc-list-density, mdc-list-theme; @forward './mdc-paginator/paginator-theme' as mdc-paginator-* show mdc-paginator-color, mdc-paginator-typography, mdc-paginator-density, mdc-paginator-theme; @forward './mdc-progress-spinner/progress-spinner-theme' as mdc-progress-spinner-* show diff --git a/src/material-experimental/config.bzl b/src/material-experimental/config.bzl index 679125071412..c14b6bd1e3c2 100644 --- a/src/material-experimental/config.bzl +++ b/src/material-experimental/config.bzl @@ -3,8 +3,6 @@ entryPoints = [ "mdc-button", "mdc-button/testing", "mdc-core", - "mdc-list", - "mdc-list/testing", "mdc-paginator", "mdc-paginator/testing", "mdc-progress-spinner", diff --git a/src/material-experimental/mdc-core/color/_all-color.import.scss b/src/material-experimental/mdc-core/color/_all-color.import.scss index fe8a5f7af90c..fbf07b4fdd69 100644 --- a/src/material-experimental/mdc-core/color/_all-color.import.scss +++ b/src/material-experimental/mdc-core/color/_all-color.import.scss @@ -23,9 +23,6 @@ $mat-mdc-table-mdc-data-table-sort-icon-active-color, $mat-mdc-table-mdc-data-ta $mat-mdc-table-mdc-data-table-stroke-color, $mat-mdc-table-mdc-data-table-table-divider-color; @forward '../../mdc-paginator/paginator-variables' as mat-mdc-paginator-*; @forward '../core-theme.import'; -@forward '../../mdc-list/interactive-list-theme' as mat-mdc-*; -@forward '../../mdc-list/list-option-theme' as mat-mdc-*; -@forward '../../mdc-list/list-theme' as mat-mdc-list-*; @forward '../../mdc-paginator/paginator-theme' as mat-mdc-paginator-*; @forward '../../mdc-progress-spinner/progress-spinner-theme' as mat-mdc-progress-spinner-*; @forward '../theming/all-theme'; diff --git a/src/material-experimental/mdc-core/density/_all-density.import.scss b/src/material-experimental/mdc-core/density/_all-density.import.scss index 749a371e6775..9ec7db33a77f 100644 --- a/src/material-experimental/mdc-core/density/_all-density.import.scss +++ b/src/material-experimental/mdc-core/density/_all-density.import.scss @@ -23,9 +23,6 @@ $mat-mdc-table-mdc-data-table-sort-icon-active-color, $mat-mdc-table-mdc-data-ta $mat-mdc-table-mdc-data-table-stroke-color, $mat-mdc-table-mdc-data-table-table-divider-color; @forward '../../mdc-paginator/paginator-variables' as mat-mdc-paginator-*; @forward '../core-theme.import'; -@forward '../../mdc-list/interactive-list-theme' as mat-mdc-*; -@forward '../../mdc-list/list-option-theme' as mat-mdc-*; -@forward '../../mdc-list/list-theme' as mat-mdc-list-*; @forward '../../mdc-paginator/paginator-theme' as mat-mdc-paginator-*; @forward '../../mdc-progress-spinner/progress-spinner-theme' as mat-mdc-progress-spinner-*; @forward '../theming/all-theme'; diff --git a/src/material-experimental/mdc-core/theming/BUILD.bazel b/src/material-experimental/mdc-core/theming/BUILD.bazel index 1cb9bbb453bb..3bff49de16c2 100644 --- a/src/material-experimental/mdc-core/theming/BUILD.bazel +++ b/src/material-experimental/mdc-core/theming/BUILD.bazel @@ -22,7 +22,6 @@ sass_library( "//src/material:sass_lib", "//src/material-experimental/mdc-button:mdc_button_scss_lib", "//src/material-experimental/mdc-core:mdc_core_scss_lib", - "//src/material-experimental/mdc-list:mdc_list_scss_lib", "//src/material-experimental/mdc-paginator:mdc_paginator_scss_lib", "//src/material-experimental/mdc-progress-spinner:mdc_progress_spinner_scss_lib", "//src/material-experimental/mdc-snack-bar:mdc_snack_bar_scss_lib", diff --git a/src/material-experimental/mdc-core/theming/_all-theme.import.scss b/src/material-experimental/mdc-core/theming/_all-theme.import.scss index 879c7d2984b0..d75a592df8f1 100644 --- a/src/material-experimental/mdc-core/theming/_all-theme.import.scss +++ b/src/material-experimental/mdc-core/theming/_all-theme.import.scss @@ -23,16 +23,12 @@ $mat-mdc-table-mdc-data-table-sort-icon-active-color, $mat-mdc-table-mdc-data-ta $mat-mdc-table-mdc-data-table-stroke-color, $mat-mdc-table-mdc-data-table-table-divider-color; @forward '../../mdc-paginator/paginator-variables' as mat-mdc-paginator-*; @forward '../core-theme.import'; -@forward '../../mdc-list/interactive-list-theme' as mat-mdc-*; -@forward '../../mdc-list/list-option-theme' as mat-mdc-*; -@forward '../../mdc-list/list-theme' as mat-mdc-list-*; @forward '../../mdc-paginator/paginator-theme' as mat-mdc-paginator-*; @forward '../../mdc-progress-spinner/progress-spinner-theme' as mat-mdc-progress-spinner-*; @forward 'all-theme' hide all-mdc-component-themes;; @import '../core-theme'; @import '../../mdc-button/button-theme'; -@import '../../mdc-list/list-theme'; @import '../../mdc-snack-bar/snack-bar-theme'; @import '../../mdc-tabs/tabs-theme'; @import '../../mdc-table/table-theme'; diff --git a/src/material-experimental/mdc-core/theming/_all-theme.scss b/src/material-experimental/mdc-core/theming/_all-theme.scss index 91ec7206bed6..9856e1caa820 100644 --- a/src/material-experimental/mdc-core/theming/_all-theme.scss +++ b/src/material-experimental/mdc-core/theming/_all-theme.scss @@ -4,7 +4,6 @@ @use '../../mdc-button/button-theme'; @use '../../mdc-button/fab-theme'; @use '../../mdc-button/icon-button-theme'; -@use '../../mdc-list/list-theme'; @use '../../mdc-snack-bar/snack-bar-theme'; @use '../../mdc-tabs/tabs-theme'; @use '../../mdc-table/table-theme'; @@ -23,7 +22,7 @@ @include mat.card-theme($theme-or-color-config); @include mat.checkbox-theme($theme-or-color-config); @include mat.chips-theme($theme-or-color-config); - @include list-theme.theme($theme-or-color-config); + @include mat.list-theme($theme-or-color-config); @include mat.menu-theme($theme-or-color-config); @include paginator-theme.theme($theme-or-color-config); @include mat.progress-bar-theme($theme-or-color-config); diff --git a/src/material-experimental/mdc-core/typography/_all-typography.import.scss b/src/material-experimental/mdc-core/typography/_all-typography.import.scss index d51b573734da..900ec9d33dfe 100644 --- a/src/material-experimental/mdc-core/typography/_all-typography.import.scss +++ b/src/material-experimental/mdc-core/typography/_all-typography.import.scss @@ -23,9 +23,6 @@ $mat-mdc-table-mdc-data-table-sort-icon-active-color, $mat-mdc-table-mdc-data-ta $mat-mdc-table-mdc-data-table-stroke-color, $mat-mdc-table-mdc-data-table-table-divider-color; @forward '../../mdc-paginator/paginator-variables' as mat-mdc-paginator-*; @forward '../core-theme.import'; -@forward '../../mdc-list/interactive-list-theme' as mat-mdc-*; -@forward '../../mdc-list/list-option-theme' as mat-mdc-*; -@forward '../../mdc-list/list-theme' as mat-mdc-list-*; @forward '../../mdc-paginator/paginator-theme' as mat-mdc-paginator-*; @forward '../../mdc-progress-spinner/progress-spinner-theme' as mat-mdc-progress-spinner-*; @forward '../theming/all-theme'; diff --git a/src/material-experimental/mdc-list/README.md b/src/material-experimental/mdc-list/README.md deleted file mode 100644 index 481def9a6cb8..000000000000 --- a/src/material-experimental/mdc-list/README.md +++ /dev/null @@ -1 +0,0 @@ -TODO: WIP diff --git a/src/material-experimental/mdc-list/_list-theme.import.scss b/src/material-experimental/mdc-list/_list-theme.import.scss deleted file mode 100644 index 0e0a4a5684aa..000000000000 --- a/src/material-experimental/mdc-list/_list-theme.import.scss +++ /dev/null @@ -1,6 +0,0 @@ -@forward 'interactive-list-theme' as mat-mdc-*; -@forward 'list-option-theme' as mat-mdc-*; -@forward 'list-theme' as mat-mdc-list-*; - -@import './interactive-list-theme'; -@import './list-option-theme'; diff --git a/src/material-experimental/mdc-list/_list-theme.scss b/src/material-experimental/mdc-list/_list-theme.scss deleted file mode 100644 index fe7078186932..000000000000 --- a/src/material-experimental/mdc-list/_list-theme.scss +++ /dev/null @@ -1,80 +0,0 @@ -@use 'sass:map'; -@use '@angular/material' as mat; -@use '@material/list/evolution-mixins' as mdc-list; - -@use './interactive-list-theme'; -@use './list-option-theme'; - -@mixin color($config-or-theme) { - $config: mat.get-color-config($config-or-theme); - $primary: mat.get-color-from-palette(map.get($config, primary)); - $accent: mat.get-color-from-palette(map.get($config, accent)); - $warn: mat.get-color-from-palette(map.get($config, warn)); - - @include mat.private-using-mdc-theme($config) { - // MDC's state styles are tied in with their ripple. Since we don't use the MDC - // ripple, we need to add the hover, focus and selected states manually. - @include interactive-list-theme.private-interactive-list-item-state-colors($config); - @include mdc-list.without-ripple($query: mat.$private-mdc-theme-styles-query); - - .mat-mdc-list-option { - @include list-option-theme.private-list-option-color-override($config, $primary, primary); - } - .mat-mdc-list-option.mat-accent { - @include list-option-theme.private-list-option-color-override($config, $accent, secondary); - } - .mat-mdc-list-option.mat-warn { - @include list-option-theme.private-list-option-color-override($config, $warn, error); - } - } -} - -@mixin density($config-or-theme) { - $density-scale: mat.get-density-config($config-or-theme); - - @include mat.private-disable-mdc-fallback-declarations { - .mat-mdc-list-item { - @include mdc-list.one-line-item-density($density-scale); - @include mdc-list.two-line-item-density($density-scale); - @include mdc-list.three-line-item-density($density-scale); - } - - @include list-option-theme.private-list-option-density-styles($density-scale); - } -} - -@mixin typography($config-or-theme) { - $config: mat.private-typography-to-2018-config( - mat.get-typography-config($config-or-theme)); - @include mat.private-using-mdc-typography($config) { - @include mdc-list.without-ripple($query: mat.$private-mdc-typography-styles-query); - @include list-option-theme.private-list-option-typography-styles(); - } - - // According to the public spec this should be subtitle-1. - // However, body-1 and subtitle-1 are nearly identical in the public spec, - // and the Google-specific spec states that it should be body-1. - // For consistency, we use body-1 for both public and Google internal. - .mat-mdc-list-item .mdc-list-item__primary-text { - @include mat.typography-level($config, body-1); - } -} - -@mixin theme($theme-or-color-config) { - $theme: mat.private-legacy-get-theme($theme-or-color-config); - @include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-list') { - $color: mat.get-color-config($theme); - $density: mat.get-density-config($theme); - $typography: mat.get-typography-config($theme); - - @if $color != null { - @include color($color); - } - @if $density != null { - @include density($density); - } - @if $typography != null { - @include typography($typography); - } - } -} diff --git a/src/material-experimental/mdc-list/list-item.html b/src/material-experimental/mdc-list/list-item.html deleted file mode 100644 index e52a1e9491c4..000000000000 --- a/src/material-experimental/mdc-list/list-item.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - -
diff --git a/src/material-experimental/mdc-list/list-option.html b/src/material-experimental/mdc-list/list-option.html deleted file mode 100644 index 3dd89050aa65..000000000000 --- a/src/material-experimental/mdc-list/list-option.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - -
- -
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/src/material-experimental/mdc-list/list.e2e.spec.ts b/src/material-experimental/mdc-list/list.e2e.spec.ts deleted file mode 100644 index da97d573c380..000000000000 --- a/src/material-experimental/mdc-list/list.e2e.spec.ts +++ /dev/null @@ -1,3 +0,0 @@ -it('should have e2e tests', () => { - // TODO: Implement. -}); diff --git a/src/material-experimental/mdc-list/list.scss b/src/material-experimental/mdc-list/list.scss deleted file mode 100644 index 76c3cce765db..000000000000 --- a/src/material-experimental/mdc-list/list.scss +++ /dev/null @@ -1,113 +0,0 @@ -@use '@angular/material' as mat; -@use '@material/list/evolution-mixins' as mdc-list; - - -@include mat.private-disable-mdc-fallback-declarations { - @include mdc-list.without-ripple($query: mat.$private-mdc-base-styles-query); -} - -// MDC expects the list element to be a `