Skip to content

Commit 049da95

Browse files
devversionmmalerba
authored andcommitted
refactor: remove moduleId from all components (#17626)
Removes all `moduleId` properties from components. We no longer need them since we inline resources when building the library.
1 parent e7aeee4 commit 049da95

File tree

295 files changed

+66
-430
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

295 files changed

+66
-430
lines changed

src/BUILD.bazel

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package(default_visibility = ["//visibility:public"])
33
load("@npm_bazel_typescript//:index.bzl", "ts_config")
44
load("//src/cdk:config.bzl", "CDK_ENTRYPOINTS")
55
load("//src/material:config.bzl", "MATERIAL_ENTRYPOINTS", "MATERIAL_TESTING_ENTRYPOINTS")
6-
load("//tools:defaults.bzl", "ts_library")
76
load("//tools/dgeni:index.bzl", "dgeni_api_docs")
87

98
cdkApiEntryPoints = CDK_ENTRYPOINTS
@@ -20,11 +19,6 @@ exports_files([
2019
"README.md",
2120
])
2221

23-
ts_library(
24-
name = "module-typings",
25-
srcs = [":module-typings.d.ts"],
26-
)
27-
2822
ts_config(
2923
name = "tsconfig-test",
3024
src = "bazel-tsconfig-test.json",

src/a11y-demo/a11y-demo.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {NavigationEnd, Router} from '@angular/router';
1111
import {Subscription} from 'rxjs';
1212

1313
@Component({
14-
moduleId: module.id,
1514
templateUrl: 'a11y-demo.html',
1615
styleUrls: ['a11y-demo.css'],
1716
})
@@ -82,7 +81,6 @@ export class AccessibilityDemoRoot implements OnDestroy {
8281
}
8382

8483
@Component({
85-
moduleId: module.id,
8684
selector: 'accessibility-home',
8785
template: `<p>Welcome to the accessibility examples for Angular Material!</p>`,
8886
})

src/a11y-demo/autocomplete/autocomplete-a11y.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {Component} from '@angular/core';
1010

1111

1212
@Component({
13-
moduleId: module.id,
1413
selector: 'autocomplete-a11y',
1514
templateUrl: 'autocomplete-a11y.html',
1615
styleUrls: ['autocomplete-a11y.css'],

src/a11y-demo/button-toggle/button-toggle-a11y.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {Component} from '@angular/core';
1010

1111

1212
@Component({
13-
moduleId: module.id,
1413
selector: 'button-toggle-a11y',
1514
templateUrl: 'button-toggle-a11y.html',
1615
styleUrls: ['button-toggle-a11y.css'],

src/a11y-demo/button/button-a11y.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {MatSnackBar} from '@angular/material/snack-bar';
1111

1212

1313
@Component({
14-
moduleId: module.id,
1514
selector: 'button-a11y',
1615
templateUrl: 'button-a11y.html',
1716
styleUrls: ['button-a11y.css'],

src/a11y-demo/card/card-a11y.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {MatSnackBar} from '@angular/material/snack-bar';
1111

1212

1313
@Component({
14-
moduleId: module.id,
1514
selector: 'card-a11y',
1615
templateUrl: 'card-a11y.html',
1716
styleUrls: ['card-a11y.css'],

src/a11y-demo/checkbox/checkbox-a11y.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export interface Task {
1616
}
1717

1818
@Component({
19-
moduleId: module.id,
2019
selector: 'checkbox-a11y',
2120
templateUrl: 'checkbox-a11y.html',
2221
styleUrls: ['checkbox-a11y.css'],

src/a11y-demo/chips/chips-a11y.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export interface Person {
1717
}
1818

1919
@Component({
20-
moduleId: module.id,
2120
selector: 'chips-a11y',
2221
templateUrl: 'chips-a11y.html',
2322
styleUrls: ['chips-a11y.css'],

src/a11y-demo/datepicker/datepicker-a11y.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {Component} from '@angular/core';
1010

1111

1212
@Component({
13-
moduleId: module.id,
1413
selector: 'datepicker-a11y',
1514
templateUrl: 'datepicker-a11y.html',
1615
styleUrls: ['datepicker-a11y.css'],

src/a11y-demo/dialog/dialog-a11y.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {MatDialog} from '@angular/material/dialog';
1111

1212

1313
@Component({
14-
moduleId: module.id,
1514
selector: 'dialog-a11y',
1615
templateUrl: 'dialog-a11y.html',
1716
styleUrls: ['dialog-a11y.css'],
@@ -42,21 +41,18 @@ export class DialogAccessibilityDemo {
4241
}
4342

4443
@Component({
45-
moduleId: module.id,
4644
selector: 'dialog-fruit-a11y',
4745
templateUrl: 'dialog-fruit-a11y.html',
4846
})
4947
export class DialogFruitExampleDialog {}
5048

5149
@Component({
52-
moduleId: module.id,
5350
selector: 'dialog-welcome-a11y',
5451
templateUrl: 'dialog-welcome-a11y.html',
5552
})
5653
export class DialogWelcomeExampleDialog {}
5754

5855
@Component({
59-
moduleId: module.id,
6056
selector: 'dialog-neptune-a11y-dialog',
6157
templateUrl: './dialog-neptune-a11y.html',
6258
})
@@ -69,7 +65,6 @@ export class DialogNeptuneExampleDialog {
6965
}
7066

7167
@Component({
72-
moduleId: module.id,
7368
selector: 'dialog-neptune-iframe-dialog',
7469
styles: [`
7570
iframe {
@@ -81,7 +76,6 @@ export class DialogNeptuneExampleDialog {
8176
export class DialogNeptuneIFrameDialog {}
8277

8378
@Component({
84-
moduleId: module.id,
8579
selector: 'dialog-address-form-a11y',
8680
styles: [`
8781
.demo-full-width {

0 commit comments

Comments
 (0)