Skip to content

Commit 9eeb4b5

Browse files
authored
cleanup: rename lib/ to material/ (#15889)
1 parent a800c2a commit 9eeb4b5

File tree

828 files changed

+328
-345
lines changed

Some content is hidden

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

828 files changed

+328
-345
lines changed

.github/CODEOWNERS

Lines changed: 91 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
# Angular Material components
2-
/src/lib/* @jelbourn
3-
/src/lib/autocomplete/** @crisbeto
4-
/src/lib/badge/** @jelbourn
5-
/src/lib/bottom-sheet/** @jelbourn @crisbeto
6-
/src/lib/button-toggle/** @jelbourn
7-
/src/lib/button/** @jelbourn @josephperrott
8-
/src/lib/card/** @jelbourn
9-
/src/lib/checkbox/** @jelbourn @devversion @josephperrott
10-
/src/lib/chips/** @jelbourn
11-
/src/lib/datepicker/** @mmalerba
12-
/src/lib/dialog/** @jelbourn @crisbeto
13-
/src/lib/divider/** @jelbourn @crisbeto
14-
/src/lib/expansion/** @josephperrott @jelbourn
15-
/src/lib/form-field/** @mmalerba
16-
/src/lib/grid-list/** @jelbourn
17-
/src/lib/icon/** @jelbourn
18-
/src/lib/input/** @mmalerba
19-
/src/lib/list/** @jelbourn @crisbeto @devversion
20-
/src/lib/menu/** @crisbeto
21-
/src/lib/paginator/** @andrewseguin
22-
/src/lib/prebuilt-themes/** @jelbourn
23-
/src/lib/progress-bar/** @jelbourn @crisbeto @josephperrott
24-
/src/lib/progress-spinner/** @jelbourn @crisbeto @josephperrott
25-
/src/lib/radio/** @jelbourn @devversion
26-
/src/lib/schematics/** @devversion @jelbourn
27-
/src/lib/select/** @crisbeto
28-
/src/lib/sidenav/** @mmalerba
29-
/src/lib/slide-toggle/** @devversion
30-
/src/lib/slider/** @mmalerba
31-
/src/lib/snack-bar/** @jelbourn @crisbeto @josephperrott
32-
/src/lib/sort/** @andrewseguin
33-
/src/lib/stepper/** @mmalerba
34-
/src/lib/table/** @andrewseguin
35-
/src/lib/tabs/** @andrewseguin
36-
/src/lib/testing/** @jelbourn
37-
/src/lib/toolbar/** @devversion
38-
/src/lib/tooltip/** @andrewseguin
39-
/src/lib/tree/** @jelbourn @andrewseguin
2+
/src/material/* @jelbourn
3+
/src/material/autocomplete/** @crisbeto
4+
/src/material/badge/** @jelbourn
5+
/src/material/bottom-sheet/** @jelbourn @crisbeto
6+
/src/material/button-toggle/** @jelbourn
7+
/src/material/button/** @jelbourn @josephperrott
8+
/src/material/card/** @jelbourn
9+
/src/material/checkbox/** @jelbourn @devversion @josephperrott
10+
/src/material/chips/** @jelbourn
11+
/src/material/datepicker/** @mmalerba
12+
/src/material/dialog/** @jelbourn @crisbeto
13+
/src/material/divider/** @jelbourn @crisbeto
14+
/src/material/expansion/** @josephperrott @jelbourn
15+
/src/material/form-field/** @mmalerba
16+
/src/material/grid-list/** @jelbourn
17+
/src/material/icon/** @jelbourn
18+
/src/material/input/** @mmalerba
19+
/src/material/list/** @jelbourn @crisbeto @devversion
20+
/src/material/menu/** @crisbeto
21+
/src/material/paginator/** @andrewseguin
22+
/src/material/prebuilt-themes/** @jelbourn
23+
/src/material/progress-bar/** @jelbourn @crisbeto @josephperrott
24+
/src/material/progress-spinner/** @jelbourn @crisbeto @josephperrott
25+
/src/material/radio/** @jelbourn @devversion
26+
/src/material/schematics/** @devversion @jelbourn
27+
/src/material/select/** @crisbeto
28+
/src/material/sidenav/** @mmalerba
29+
/src/material/slide-toggle/** @devversion
30+
/src/material/slider/** @mmalerba
31+
/src/material/snack-bar/** @jelbourn @crisbeto @josephperrott
32+
/src/material/sort/** @andrewseguin
33+
/src/material/stepper/** @mmalerba
34+
/src/material/table/** @andrewseguin
35+
/src/material/tabs/** @andrewseguin
36+
/src/material/testing/** @jelbourn
37+
/src/material/toolbar/** @devversion
38+
/src/material/tooltip/** @andrewseguin
39+
/src/material/tree/** @jelbourn @andrewseguin
4040

4141
# Angular Material core
42-
/src/lib/core/* @jelbourn
43-
/src/lib/core/animation/** @jelbourn
44-
/src/lib/core/common-behaviors/** @jelbourn @devversion
45-
/src/lib/core/datetime/** @mmalerba
46-
/src/lib/core/error/** @crisbeto @mmalerba
47-
/src/lib/core/gestures/** @jelbourn
48-
/src/lib/core/label/** @mmalerba
49-
/src/lib/core/line/** @jelbourn
50-
/src/lib/core/option/** @crisbeto
51-
/src/lib/core/placeholder/** @mmalerba
52-
/src/lib/core/ripple/** @devversion
53-
/src/lib/core/selection/** @jelbourn
54-
/src/lib/core/selection/pseudo*/** @crisbeto @jelbourn
55-
/src/lib/core/style/** @jelbourn
56-
/src/lib/core/theming/** @jelbourn
57-
/src/lib/core/typography/** @crisbeto
58-
/src/lib/core/util/** @jelbourn
42+
/src/material/core/* @jelbourn
43+
/src/material/core/animation/** @jelbourn
44+
/src/material/core/common-behaviors/** @jelbourn @devversion
45+
/src/material/core/datetime/** @mmalerba
46+
/src/material/core/error/** @crisbeto @mmalerba
47+
/src/material/core/gestures/** @jelbourn
48+
/src/material/core/label/** @mmalerba
49+
/src/material/core/line/** @jelbourn
50+
/src/material/core/option/** @crisbeto
51+
/src/material/core/placeholder/** @mmalerba
52+
/src/material/core/ripple/** @devversion
53+
/src/material/core/selection/** @jelbourn
54+
/src/material/core/selection/pseudo*/** @crisbeto @jelbourn
55+
/src/material/core/style/** @jelbourn
56+
/src/material/core/theming/** @jelbourn
57+
/src/material/core/typography/** @crisbeto
58+
/src/material/core/util/** @jelbourn
5959

6060
# CDK
6161
/src/cdk/* @jelbourn
@@ -252,42 +252,42 @@
252252
/tools/public_api_guard/cdk/table.d.ts @andrewseguin
253253
/tools/public_api_guard/cdk/text-field.d.ts @mmalerba
254254
/tools/public_api_guard/cdk/tree.d.ts @jelbourn @andrewseguin
255-
/tools/public_api_guard/lib/autocomplete.d.ts @crisbeto
256-
/tools/public_api_guard/lib/badge.d.ts @jelbourn
257-
/tools/public_api_guard/lib/bottom-sheet.d.ts @jelbourn @crisbeto
258-
/tools/public_api_guard/lib/button-toggle.d.ts @jelbourn
259-
/tools/public_api_guard/lib/button.d.ts @jelbourn @josephperrott
260-
/tools/public_api_guard/lib/card.d.ts @jelbourn
261-
/tools/public_api_guard/lib/checkbox.d.ts @jelbourn @devversion @josephperrott
262-
/tools/public_api_guard/lib/chips.d.ts @jelbourn
263-
/tools/public_api_guard/lib/core.d.ts @jelbourn
264-
/tools/public_api_guard/lib/datepicker.d.ts @mmalerba
265-
/tools/public_api_guard/lib/dialog.d.ts @jelbourn @crisbeto
266-
/tools/public_api_guard/lib/divider.d.ts @jelbourn @crisbeto
267-
/tools/public_api_guard/lib/expansion.d.ts @josephperrott @jelbourn
268-
/tools/public_api_guard/lib/form-field.d.ts @mmalerba
269-
/tools/public_api_guard/lib/grid-list.d.ts @jelbourn
270-
/tools/public_api_guard/lib/icon.d.ts @jelbourn
271-
/tools/public_api_guard/lib/input.d.ts @mmalerba
272-
/tools/public_api_guard/lib/list.d.ts @jelbourn @crisbeto @devversion
273-
/tools/public_api_guard/lib/menu.d.ts @crisbeto
274-
/tools/public_api_guard/lib/paginator.d.ts @andrewseguin
275-
/tools/public_api_guard/lib/progress-bar.d.ts @jelbourn @crisbeto @josephperrott
276-
/tools/public_api_guard/lib/progress-spinner.d.ts @jelbourn @crisbeto @josephperrott
277-
/tools/public_api_guard/lib/radio.d.ts @jelbourn @devversion
278-
/tools/public_api_guard/lib/select.d.ts @crisbeto
279-
/tools/public_api_guard/lib/sidenav.d.ts @mmalerba
280-
/tools/public_api_guard/lib/slide-toggle.d.ts @devversion
281-
/tools/public_api_guard/lib/slider.d.ts @mmalerba
282-
/tools/public_api_guard/lib/snack-bar.d.ts @jelbourn @crisbeto @josephperrott
283-
/tools/public_api_guard/lib/sort.d.ts @andrewseguin
284-
/tools/public_api_guard/lib/stepper.d.ts @mmalerba
285-
/tools/public_api_guard/lib/table.d.ts @andrewseguin
286-
/tools/public_api_guard/lib/tabs.d.ts @andrewseguin
287-
/tools/public_api_guard/lib/toolbar.d.ts @devversion
288-
/tools/public_api_guard/lib/tooltip.d.ts @andrewseguin
289-
/tools/public_api_guard/lib/tree.d.ts @jelbourn @andrewseguin
290-
/tools/public_api_guard/lib/lib.d.ts @jelbourn
255+
/tools/public_api_guard/material/autocomplete.d.ts @crisbeto
256+
/tools/public_api_guard/material/badge.d.ts @jelbourn
257+
/tools/public_api_guard/material/bottom-sheet.d.ts @jelbourn @crisbeto
258+
/tools/public_api_guard/material/button-toggle.d.ts @jelbourn
259+
/tools/public_api_guard/material/button.d.ts @jelbourn @josephperrott
260+
/tools/public_api_guard/material/card.d.ts @jelbourn
261+
/tools/public_api_guard/material/checkbox.d.ts @jelbourn @devversion @josephperrott
262+
/tools/public_api_guard/material/chips.d.ts @jelbourn
263+
/tools/public_api_guard/material/core.d.ts @jelbourn
264+
/tools/public_api_guard/material/datepicker.d.ts @mmalerba
265+
/tools/public_api_guard/material/dialog.d.ts @jelbourn @crisbeto
266+
/tools/public_api_guard/material/divider.d.ts @jelbourn @crisbeto
267+
/tools/public_api_guard/material/expansion.d.ts @josephperrott @jelbourn
268+
/tools/public_api_guard/material/form-field.d.ts @mmalerba
269+
/tools/public_api_guard/material/grid-list.d.ts @jelbourn
270+
/tools/public_api_guard/material/icon.d.ts @jelbourn
271+
/tools/public_api_guard/material/input.d.ts @mmalerba
272+
/tools/public_api_guard/material/list.d.ts @jelbourn @crisbeto @devversion
273+
/tools/public_api_guard/material/menu.d.ts @crisbeto
274+
/tools/public_api_guard/material/paginator.d.ts @andrewseguin
275+
/tools/public_api_guard/material/progress-bar.d.ts @jelbourn @crisbeto @josephperrott
276+
/tools/public_api_guard/material/progress-spinner.d.ts @jelbourn @crisbeto @josephperrott
277+
/tools/public_api_guard/material/radio.d.ts @jelbourn @devversion
278+
/tools/public_api_guard/material/select.d.ts @crisbeto
279+
/tools/public_api_guard/material/sidenav.d.ts @mmalerba
280+
/tools/public_api_guard/material/slide-toggle.d.ts @devversion
281+
/tools/public_api_guard/material/slider.d.ts @mmalerba
282+
/tools/public_api_guard/material/snack-bar.d.ts @jelbourn @crisbeto @josephperrott
283+
/tools/public_api_guard/material/sort.d.ts @andrewseguin
284+
/tools/public_api_guard/material/stepper.d.ts @mmalerba
285+
/tools/public_api_guard/material/table.d.ts @andrewseguin
286+
/tools/public_api_guard/material/tabs.d.ts @andrewseguin
287+
/tools/public_api_guard/material/toolbar.d.ts @devversion
288+
/tools/public_api_guard/material/tooltip.d.ts @andrewseguin
289+
/tools/public_api_guard/material/tree.d.ts @jelbourn @andrewseguin
290+
/tools/public_api_guard/material/material.d.ts @jelbourn
291291

292292
# Misc
293293
/* @jelbourn

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2774,7 +2774,7 @@ We expect to have the tool ready when we release version 6.0.0.
27742774
* **menu:** not closing when overlay is detached externally ([#8868](https://github.com/angular/material2/issues/8868)) ([534c797](https://github.com/angular/material2/commit/534c797))
27752775
* **overlay:** export OverlaySizeConfig ([#8932](https://github.com/angular/material2/issues/8932)) ([adfa31e](https://github.com/angular/material2/commit/adfa31e))
27762776
* **paginator:** set default display value ([#8455](https://github.com/angular/material2/issues/8455)) ([ccb325e](https://github.com/angular/material2/commit/ccb325e)), closes [#8454](https://github.com/angular/material2/issues/8454)
2777-
* **portal:** inaccurate hasAttahed result and portal being cleared if attached too early ([#8642](https://github.com/angular/material2/issues/8642)) ([93e6c53](https://github.com/angular/material2/commit/93e6c53)), closes [/github.com/angular/material2/blob/master/src/lib/dialog/dialog-container.ts#L118](https://github.com//github.com/angular/material2/blob/master/src/lib/dialog/dialog-container.ts/issues/L118) [#8628](https://github.com/angular/material2/issues/8628)
2777+
* **portal:** inaccurate hasAttahed result and portal being cleared if attached too early ([#8642](https://github.com/angular/material2/issues/8642)) ([93e6c53](https://github.com/angular/material2/commit/93e6c53)), closes [/github.com/angular/material2/blob/master/src/material/dialog/dialog-container.ts#L118](https://github.com//github.com/angular/material2/blob/master/src/material/dialog/dialog-container.ts/issues/L118) [#8628](https://github.com/angular/material2/issues/8628)
27782778
* **select:** alt + arrow key not opening in single-selection mode ([#8910](https://github.com/angular/material2/issues/8910)) ([85f83f9](https://github.com/angular/material2/commit/85f83f9))
27792779
* **select:** change event emitted before data binding is updated ([#8740](https://github.com/angular/material2/issues/8740)) ([2493797](https://github.com/angular/material2/commit/2493797)), closes [#8739](https://github.com/angular/material2/issues/8739)
27802780
* **select:** complete state change event ([#8777](https://github.com/angular/material2/issues/8777)) ([46411e3](https://github.com/angular/material2/commit/46411e3))
@@ -3159,7 +3159,7 @@ information](https://github.com/angular/material2/blob/master/CHANGELOG.md#break
31593159
available from @angular/material and instead must be imported from @angular/cdk/collections
31603160
* `isFocusTrapEnabled` is now properly marked internal.
31613161
* The `OverlayRef.getState` method has been renamed to `OverlayRef.getConfig`.
3162-
* `defaultErrorStateMatcher` has been replaced by `ErrorStateMatcher`. For more info, see the [input docs](https://github.com/angular/material2/blob/master/src/lib/input/input.md#custom-error-matcher).
3162+
* `defaultErrorStateMatcher` has been replaced by `ErrorStateMatcher`. For more info, see the [input docs](https://github.com/angular/material2/blob/master/src/material/input/input.md#custom-error-matcher).
31633163

31643164
### Features
31653165

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ label for a list of issues where we could use help from the community.
103103
[16]: https://material.angular.io/components/slider/overview
104104
[17]: https://material.angular.io/components/menu/overview
105105
[18]: https://material.angular.io/components/tooltip/overview
106-
[19]: https://github.com/angular/material2/blob/master/src/lib/core/ripple/ripple.md
106+
[19]: https://github.com/angular/material2/blob/master/src/material/core/ripple/ripple.md
107107
[20]: https://material.angular.io/guide/theming
108108
[21]: https://material.angular.io/components/snack-bar/overview
109109
[22]: https://material.angular.io/components/dialog/overview

guides/theming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class UnicornCandyAppModule {
185185
```
186186

187187
#### Theming only certain components
188-
The `angular-material-theme` mixin will output styles for [all components in the library](https://github.com/angular/material2/blob/master/src/lib/core/theming/_all-theme.scss).
188+
The `angular-material-theme` mixin will output styles for [all components in the library](https://github.com/angular/material2/blob/master/src/material/core/theming/_all-theme.scss).
189189
If you are only using a subset of the components (or if you want to change the theme for specific
190190
components), you can include component-specific theme mixins. You also will need to include
191191
the `mat-core-theme` mixin as well, which contains theme-specific styles for common behaviors

guides/typography.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ If you're using Material's theming, you can also pass in your typography config
101101
```
102102

103103
For more details about the typography functions and default config, see the
104-
[source](https://github.com/angular/material2/blob/master/src/lib/core/typography/_typography.scss).
104+
[source](https://github.com/angular/material2/blob/master/src/material/core/typography/_typography.scss).
105105

106106

107107
### Material typography in your custom CSS

packages.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ MATERIAL_PACKAGES = [
7070
"tree",
7171
]
7272

73-
MATERIAL_TARGETS = ["//src/lib:material"] + ["//src/lib/%s" % p for p in MATERIAL_PACKAGES]
73+
MATERIAL_TARGETS = ["//src/material:material"] + ["//src/material/%s" % p for p in MATERIAL_PACKAGES]
7474

7575
# List that references the sass libraries for each Material package. This can be used to create
7676
# the theming scss-bundle or to specify dependencies for the all-theme.scss file.
7777
MATERIAL_SCSS_LIBS = [
78-
"//src/lib/%s:%s_scss_lib" % (p, p.replace('-', '_')) for p in MATERIAL_PACKAGES
78+
"//src/material/%s:%s_scss_lib" % (p, p.replace('-', '_')) for p in MATERIAL_PACKAGES
7979
]
8080

8181
# Each individual package uses a placeholder for the version of Angular to ensure they're

scripts/bazel/build-packages.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,10 @@ mkdir -p ${packages_dist}
1919
for p in ${packages[@]}
2020
do
2121
bazel build src/${p}:npm_package
22-
23-
# The output for "lib" should go into a directory named "material"
24-
[[ ${p} = "lib" ]] && out_dir="material" || out_dir="${p}"
25-
2622
# Copy without preserving the read-only mode from bazel so that we can make final modifications
2723
# to the generated package.
28-
mkdir -p ${packages_dist}/${out_dir}
29-
cp -r --no-preserve=mode ${bazel_bin}/src/${p}/npm_package/* ${packages_dist}/${out_dir}
24+
mkdir -p ${packages_dist}/${p}
25+
cp -r --no-preserve=mode ${bazel_bin}/src/${p}/npm_package/* ${packages_dist}/${p}
3026
done
3127

3228
# Update the root @angular/material metadata file to re-export metadata from each entry-point.

src/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ load("//tools/dgeni:index.bzl", "dgeni_api_docs")
66

77
# List that contains all source files that need to be processed by Dgeni.
88
apiSourceFiles = ["//src/cdk/%s:source-files" % name for name in CDK_PACKAGES] + [
9-
"//src/lib/%s:source-files" % name for name in MATERIAL_PACKAGES]
9+
"//src/material/%s:source-files" % name for name in MATERIAL_PACKAGES]
1010

1111
exports_files([
1212
"bazel-tsconfig-build.json",

0 commit comments

Comments
 (0)