From 5bb8e7c1035a76cc8c7025d1187954b89935cc88 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 1 Jun 2022 14:05:55 +0200 Subject: [PATCH] refactor(material-experimental/mdc-progress-bar): remove usage of MDC adapter Reworks the MDC progress bar so that it doesn't use MDC's adapter anymore. --- .../mdc-progress-bar/BUILD.bazel | 2 - .../mdc-progress-bar/progress-bar.html | 9 +- .../mdc-progress-bar/progress-bar.spec.ts | 25 +-- .../mdc-progress-bar/progress-bar.ts | 154 ++++-------------- 4 files changed, 58 insertions(+), 132 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. --> -