Move legacy Angular Material imports to the MDC components

Proprietary

Material 17 removed the @angular/material/legacy-* entry points that the Material 15 ng update moved imports to. Moves each imported symbol to the MDC-based entry point, such as MatLegacyButtonModule from @angular/material/legacy-button to MatButtonModule from @angular/material/button, and renames its uses, as the mdc-migration schematic of Material 15 does. Symbols that the MDC-based entry points do not export, such as MatLegacyChipList, stay for FindLegacyMaterialUsage to mark.

org.openrewrite.angular.material.MigrateLegacyMaterialImports
mod run . --recipe=org.openrewrite.angular.material.MigrateLegacyMaterialImports

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.