Skip to content

Commit

Permalink
fix(material): remove legacy components (angular#27622)
Browse files Browse the repository at this point in the history
* fix(multiple): remove legacy components from dev-app

* fix(multiple): remove legacy-table from material-experimental components

* fix(multiple): remove mdc kitchen sink

* fix(multiple): make experimental tests pass

* fix(multiple): remove forward of legacy styles

* fix(multiple): remove legacy components

* fix(multiple): remove legacy component theme from yarn-pnp-compat
  • Loading branch information
andrewseguin authored Aug 11, 2023
1 parent caff596 commit f7e3ae3
Show file tree
Hide file tree
Showing 746 changed files with 217 additions and 82,976 deletions.
72 changes: 3 additions & 69 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,6 @@
/src/material/grid-list/** @andrewseguin
/src/material/icon/** @andrewseguin
/src/material/input/** @devversion @mmalerba
/src/material/legacy-autocomplete/** @crisbeto
/src/material/legacy-button/** @andrewseguin
/src/material/legacy-card/** @andrewseguin
/src/material/legacy-checkbox/** @andrewseguin @devversion
/src/material/legacy-chips/** @andrewseguin
/src/material/legacy-dialog/** @andrewseguin @crisbeto
/src/material/legacy-form-field/** @mmalerba
/src/material/legacy-input/** @mmalerba
/src/material/legacy-list/** @andrewseguin @crisbeto @devversion
/src/material/legacy-menu/** @crisbeto
/src/material/legacy-paginator/** @andrewseguin
/src/material/legacy-prebuilt-themes/** @andrewseguin
/src/material/legacy-progress-bar/** @andrewseguin @crisbeto
/src/material/legacy-progress-spinner/** @andrewseguin @crisbeto
/src/material/legacy-radio/** @andrewseguin @devversion
/src/material/legacy-select/** @crisbeto
/src/material/legacy-slide-toggle/** @devversion
/src/material/legacy-slider/** @mmalerba
/src/material/legacy-snack-bar/** @andrewseguin @crisbeto
/src/material/legacy-table/** @andrewseguin
/src/material/legacy-tabs/** @andrewseguin
/src/material/legacy-tooltip/** @andrewseguin
/src/material/list/** @mmalerba @devversion
/src/material/menu/** @crisbeto
/src/material/paginator/** @crisbeto
Expand Down Expand Up @@ -86,13 +64,6 @@
/src/material/core/tokens/** @mmalerba
/src/material/core/typography/** @crisbeto
/src/material/core/util/** @andrewseguin
/src/material/legacy-core/* @andrewseguin
/src/material/legacy-core/color/** @andrewseguin @devversion
/src/material/legacy-core/density/** @devversion
/src/material/legacy-core/option/** @crisbeto
/src/material/legacy-core/testing/** @crisbeto
/src/material/legacy-core/theming/** @andrewseguin @jelbourn
/src/material/legacy-core/typography/** @crisbeto

# Miscellaneous components
/src/google-maps/** @crisbeto
Expand Down Expand Up @@ -156,7 +127,6 @@
/src/dev-app/autocomplete/** @crisbeto
/src/dev-app/badge/** @andrewseguin
/src/dev-app/baseline/** @mmalerba
/src/dev-app/legacy-baseline/** @mmalerba
/src/dev-app/bottom-sheet/** @andrewseguin @crisbeto
/src/dev-app/button-toggle/** @andrewseguin
/src/dev-app/button/** @andrewseguin
Expand Down Expand Up @@ -187,32 +157,11 @@
/src/dev-app/input-modality/** @jelbourn
/src/dev-app/input/** @devversion @mmalerba
/src/dev-app/layout/** @andrewseguin
/src/dev-app/legacy-card/** @mmalerba
/src/dev-app/legacy-checkbox/** @mmalerba
/src/dev-app/legacy-chips/** @andrewseguin
/src/dev-app/legacy-datepicker/** @mmalerba
/src/dev-app/legacy-dialog/** @devversion
/src/dev-app/legacy-input/** @mmalerba
/src/dev-app/legacy-list/** @mmalerba
/src/dev-app/legacy-menu/** @crisbeto
/src/dev-app/legacy-paginator/** @crisbeto
/src/dev-app/legacy-radio/** @andrewseguin @devversion
/src/dev-app/legacy-select/** @crisbeto
/src/dev-app/legacy-slide-toggle/** @devversion
/src/dev-app/legacy-snack-bar/** @andrewseguin
/src/dev-app/legacy-tabs/** @andrewseguin
/src/dev-app/legacy-table/** @andrewseguin
/src/dev-app/legacy-tooltip/** @crisbeto
/src/dev-app/list/** @andrewseguin @crisbeto @devversion
/src/dev-app/live-announcer/** @jelbourn
/src/dev-app/legacy-autocomplete/** @crisbeto
/src/dev-app/mdc-button/** @andrewseguin
/src/dev-app/legacy-button/** @andrewseguin
/src/dev-app/legacy-progress-bar/** @crisbeto
/src/dev-app/legacy-progress-spinner/** @mmalerba
/src/dev-app/legacy-slider/** @devversion
/src/dev-app/mdc-snack-bar/** @andrewseguin
/src/dev-app/mdc-tabs/** @crisbeto
/src/dev-app/button/** @andrewseguin
/src/dev-app/snack-bar/** @andrewseguin
/src/dev-app/tabs/** @crisbeto
/src/dev-app/menu/** @crisbeto
/src/dev-app/menubar/** @jelbourn
/src/dev-app/overlay/** @jelbourn @crisbeto
Expand Down Expand Up @@ -300,21 +249,6 @@
/tools/public_api_guard/material/form-field** @mmalerba
/tools/public_api_guard/material/grid-list** @andrewseguin
/tools/public_api_guard/material/icon** @andrewseguin
/tools/public_api_guard/material/legacy-button** @andrewseguin
/tools/public_api_guard/material/legacy-card** @andrewseguin
/tools/public_api_guard/material/legacy-checkbox** @andrewseguin @devversion
/tools/public_api_guard/material/legacy-dialog** @andrewseguin @crisbeto
/tools/public_api_guard/material/legacy-input** @mmalerba
/tools/public_api_guard/material/legacy-paginator** @andrewseguin
/tools/public_api_guard/material/legacy-progress-bar** @andrewseguin @crisbeto
/tools/public_api_guard/material/legacy-progress-spinner** @andrewseguin @crisbeto
/tools/public_api_guard/material/legacy-radio** @andrewseguin @devversion
/tools/public_api_guard/material/legacy-select** @crisbeto
/tools/public_api_guard/material/legacy-slide-toggle** @devversion
/tools/public_api_guard/material/legacy-snack-bar** @andrewseguin @crisbeto
/tools/public_api_guard/material/legacy-table** @andrewseguin
/tools/public_api_guard/material/legacy-tabs** @andrewseguin
/tools/public_api_guard/material/legacy-tooltip** @andrewseguin
/tools/public_api_guard/material/list** @andrewseguin @crisbeto @devversion
/tools/public_api_guard/material/material** @andrewseguin
/tools/public_api_guard/material/menu** @crisbeto
Expand Down
24 changes: 0 additions & 24 deletions .ng-dev/commit-message.mts
Original file line number Diff line number Diff line change
Expand Up @@ -59,54 +59,30 @@ export const commitMessage: CommitMessageConfig = {
'material/table',
'material/tabs',
'material/autocomplete',
'material/legacy-autocomplete',
'material/badge',
'material/bottom-sheet',
'material/legacy-button',
'material/button-toggle',
'material/legacy-card',
'material/legacy-checkbox',
'material/legacy-checkbox',
'material/chips',
'material/legacy-chips',
'material/core',
'material/legacy-core',
'material/datepicker',
'material/legacy-dialog',
'material/divider',
'material/expansion',
'material/form-field',
'material/legacy-form-field',
'material/grid-list',
'material/icon',
'material/legacy-input',
'material/list',
'material/legacy-list',
'material/menu',
'material/legacy-menu',
'material/legacy-paginator',
'material/prebuilt-themes',
'material/legacy-prebuilt-themes',
'material/legacy-progress-bar',
'material/legacy-progress-spinner',
'material/radio',
'material/legacy-radio',
'material/schematics',
'material/select',
'material/legacy-select',
'material/sidenav',
'material/legacy-slide-toggle',
'material/slider',
'material/legacy-slider',
'material/legacy-snack-bar',
'material/sort',
'material/stepper',
'material/legacy-table',
'material/legacy-tabs',
'material/testing',
'material/theming',
'material/toolbar',
'material/legacy-tooltip',
'material/tooltip',
'material/tree',
'material-moment-adapter',
Expand Down
1 change: 0 additions & 1 deletion .ng-dev/google-sync-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"src/material/index.ts",
"src/material/module.ts",
"src/material/core/index.ts",
"src/material/legacy-core/index.ts",
"src/material/core/theming/tests/**/*",
"src/material/core/tokens/tests/**",
"src/material/expansion/index.ts",
Expand Down
1 change: 0 additions & 1 deletion integration/yarn-pnp-compat/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ $theme: mat.define-light-theme((

@include mat.core();

@include mat.all-legacy-component-themes($theme);
@include mat.all-component-themes($theme);

html,
Expand Down
22 changes: 0 additions & 22 deletions src/dev-app/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -47,28 +47,6 @@ ng_module(
"//src/dev-app/input",
"//src/dev-app/input-modality",
"//src/dev-app/layout",
"//src/dev-app/legacy-autocomplete",
"//src/dev-app/legacy-baseline",
"//src/dev-app/legacy-button",
"//src/dev-app/legacy-card",
"//src/dev-app/legacy-checkbox",
"//src/dev-app/legacy-chips",
"//src/dev-app/legacy-datepicker",
"//src/dev-app/legacy-dialog",
"//src/dev-app/legacy-input",
"//src/dev-app/legacy-list",
"//src/dev-app/legacy-menu",
"//src/dev-app/legacy-paginator",
"//src/dev-app/legacy-progress-bar",
"//src/dev-app/legacy-progress-spinner",
"//src/dev-app/legacy-radio",
"//src/dev-app/legacy-select",
"//src/dev-app/legacy-slide-toggle",
"//src/dev-app/legacy-slider",
"//src/dev-app/legacy-snack-bar",
"//src/dev-app/legacy-table",
"//src/dev-app/legacy-tabs",
"//src/dev-app/legacy-tooltip",
"//src/dev-app/list",
"//src/dev-app/live-announcer",
"//src/dev-app/menu",
Expand Down
7 changes: 0 additions & 7 deletions src/dev-app/dev-app/dev-app-layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@
Baseline
</a>

<a mat-list-item
tabindex="-1"
(click)="navigation.close()"
[routerLink]="['/legacy-baseline']">
Legacy Baseline
</a>

<a mat-list-item
tabindex="-1"
(click)="navigation.close()"
Expand Down
21 changes: 0 additions & 21 deletions src/dev-app/dev-app/dev-app-layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,27 +99,6 @@ export class DevAppLayout {
{name: 'Typography', route: '/typography'},
{name: 'Virtual Scrolling', route: '/virtual-scroll'},
{name: 'YouTube Player', route: '/youtube-player'},
{name: 'Legacy Autocomplete', route: '/legacy-autocomplete'},
{name: 'Legacy Button', route: '/legacy-button'},
{name: 'Legacy Card', route: '/legacy-card'},
{name: 'Legacy Checkbox', route: '/legacy-checkbox'},
{name: 'Legacy Chips', route: '/legacy-chips'},
{name: 'Legacy Datepicker', route: '/legacy-datepicker'},
{name: 'Legacy Dialog', route: '/legacy-dialog'},
{name: 'Legacy Input', route: '/legacy-input'},
{name: 'Legacy List', route: '/legacy-list'},
{name: 'Legacy Menu', route: '/legacy-menu'},
{name: 'Legacy Paginator', route: '/legacy-paginator'},
{name: 'Legacy Progress Bar', route: '/legacy-progress-bar'},
{name: 'Legacy Progress Spinner', route: '/legacy-progress-spinner'},
{name: 'Legacy Radio', route: '/legacy-radio'},
{name: 'Legacy Select', route: '/legacy-select'},
{name: 'Legacy Slider', route: '/legacy-slider'},
{name: 'Legacy Slide Toggle', route: '/legacy-slide-toggle'},
{name: 'Legacy Snack Bar', route: '/legacy-snack-bar'},
{name: 'Legacy Table', route: '/legacy-table'},
{name: 'Legacy Tabs', route: '/legacy-tabs'},
{name: 'Legacy Tooltip', route: '/legacy-tooltip'},
];

/** List of possible global density scale values. */
Expand Down
25 changes: 0 additions & 25 deletions src/dev-app/legacy-autocomplete/BUILD.bazel

This file was deleted.

76 changes: 0 additions & 76 deletions src/dev-app/legacy-autocomplete/legacy-autocomplete-demo.html

This file was deleted.

20 changes: 0 additions & 20 deletions src/dev-app/legacy-autocomplete/legacy-autocomplete-demo.scss

This file was deleted.

Loading

0 comments on commit f7e3ae3

Please sign in to comment.