From 055b25d8e0808a680a4511acb32d80179de14c5a Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 1 Jun 2022 19:38:36 +0200 Subject: [PATCH] refactor(material-experimental/mdc-progress-bar): remove usage of MDC adapter (#25004) Reworks the MDC progress bar so that it doesn't use MDC's adapter anymore. (cherry picked from commit daf7f80847010823995dd3e113ab0ab1f8352ec5) --- .../mdc-progress-bar/BUILD.bazel | 2 - .../mdc-progress-bar/progress-bar.html | 9 +- .../mdc-progress-bar/progress-bar.spec.ts | 23 ++- .../mdc-progress-bar/progress-bar.ts | 154 ++++-------------- 4 files changed, 57 insertions(+), 131 deletions(-) diff --git a/src/material-experimental/mdc-progress-bar/BUILD.bazel b/src/material-experimental/mdc-progress-bar/BUILD.bazel index 89d844e97c97..5a21a84daf44 100644 --- a/src/material-experimental/mdc-progress-bar/BUILD.bazel +++ b/src/material-experimental/mdc-progress-bar/BUILD.bazel @@ -21,11 +21,9 @@ ng_module( ), assets = [":progress_bar_scss"] + glob(["**/*.html"]), deps = [ - "//src/cdk/bidi", "//src/material-experimental/mdc-core", "//src/material/progress-bar", "@npm//@angular/core", - "@npm//@material/linear-progress", ], ) diff --git a/src/material-experimental/mdc-progress-bar/progress-bar.html b/src/material-experimental/mdc-progress-bar/progress-bar.html index 37dd53799026..c903f19305bc 100644 --- a/src/material-experimental/mdc-progress-bar/progress-bar.html +++ b/src/material-experimental/mdc-progress-bar/progress-bar.html @@ -3,10 +3,15 @@ More context in the issue: https://github.com/angular/components/issues/22165. --> -