Skip to content

Commit 0ef4966

Browse files
committed
build: fix up legacy tooltip demo
Fixes the file and class names in the legacy tooltip demo and moves the examples into the dev app.
1 parent f710b4b commit 0ef4966

File tree

41 files changed

+129
-220
lines changed

Some content is hidden

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

41 files changed

+129
-220
lines changed

src/components-examples/config.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ ALL_EXAMPLES = [
44
# with "bazel query 'kind("ng_module", //src/components-examples/...:*)' --output="label"
55
"//src/components-examples/material/tree",
66
"//src/components-examples/material/tooltip",
7-
"//src/components-examples/material/legacy-tooltip",
87
"//src/components-examples/material/toolbar",
98
"//src/components-examples/material/tabs",
109
"//src/components-examples/material/table",

src/components-examples/material/legacy-tooltip/BUILD.bazel

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/components-examples/material/legacy-tooltip/legacy-tooltip-harness/legacy-tooltip-harness-example.html

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/components-examples/material/legacy-tooltip/legacy-tooltip-harness/legacy-tooltip-harness-example.spec.ts

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/components-examples/material/legacy-tooltip/legacy-tooltip-harness/legacy-tooltip-harness-example.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/dev-app/legacy-tooltip/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ package(default_visibility = ["//visibility:public"])
55
ng_module(
66
name = "legacy-tooltip",
77
srcs = glob(["**/*.ts"]),
8-
assets = ["tooltip-demo.html"],
8+
assets = ["legacy-tooltip-demo.html"],
99
deps = [
10-
"//src/components-examples/material/legacy-tooltip",
1110
"//src/dev-app/example",
11+
"//src/dev-app/legacy-tooltip/examples",
1212
],
1313
)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
load("//tools:defaults.bzl", "ng_module")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
ng_module(
6+
name = "examples",
7+
srcs = glob(["**/*.ts"]),
8+
assets = glob([
9+
"**/*.html",
10+
"**/*.css",
11+
]),
12+
deps = [
13+
"//src/cdk/scrolling",
14+
"//src/material/legacy-button",
15+
"//src/material/legacy-checkbox",
16+
"//src/material/legacy-input",
17+
"//src/material/legacy-select",
18+
"//src/material/legacy-tooltip",
19+
"@npm//@angular/forms",
20+
"@npm//@angular/platform-browser",
21+
"@npm//@angular/platform-browser-dynamic",
22+
"@npm//@types/jasmine",
23+
],
24+
)
25+
26+
filegroup(
27+
name = "source-files",
28+
srcs = glob([
29+
"**/*.html",
30+
"**/*.css",
31+
"**/*.ts",
32+
]),
33+
)

src/components-examples/material/legacy-tooltip/index.ts renamed to src/dev-app/legacy-tooltip/examples/index.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
19
import {CommonModule} from '@angular/common';
210
import {NgModule} from '@angular/core';
311
import {ReactiveFormsModule} from '@angular/forms';
@@ -17,14 +25,12 @@ import {LegacyTooltipModifiedDefaultsExample} from './legacy-tooltip-modified-de
1725
import {LegacyTooltipOverviewExample} from './legacy-tooltip-overview/legacy-tooltip-overview-example';
1826
import {LegacyTooltipPositionExample} from './legacy-tooltip-position/legacy-tooltip-position-example';
1927
import {LegacyTooltipPositionAtOriginExample} from './legacy-tooltip-position-at-origin/legacy-tooltip-position-at-origin-example';
20-
import {LegacyTooltipHarnessExample} from './legacy-tooltip-harness/legacy-tooltip-harness-example';
2128

2229
export {
2330
LegacyTooltipAutoHideExample,
2431
LegacyTooltipCustomClassExample,
2532
LegacyTooltipDelayExample,
2633
LegacyTooltipDisabledExample,
27-
LegacyTooltipHarnessExample,
2834
LegacyTooltipManualExample,
2935
LegacyTooltipMessageExample,
3036
LegacyTooltipModifiedDefaultsExample,
@@ -38,7 +44,6 @@ const EXAMPLES = [
3844
LegacyTooltipCustomClassExample,
3945
LegacyTooltipDelayExample,
4046
LegacyTooltipDisabledExample,
41-
LegacyTooltipHarnessExample,
4247
LegacyTooltipManualExample,
4348
LegacyTooltipMessageExample,
4449
LegacyTooltipModifiedDefaultsExample,
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
19
import {Component} from '@angular/core';
210
import {FormControl} from '@angular/forms';
311
import {TooltipPosition} from '@angular/material/legacy-tooltip';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
19
import {Component, ViewEncapsulation} from '@angular/core';
210

311
/**
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
19
import {Component} from '@angular/core';
210
import {FormControl} from '@angular/forms';
311

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
19
import {Component} from '@angular/core';
210
import {FormControl} from '@angular/forms';
311

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
19
import {Component} from '@angular/core';
210

311
/**
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
19
import {Component} from '@angular/core';
210
import {FormControl} from '@angular/forms';
311

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
19
import {Component} from '@angular/core';
210
import {
311
MAT_TOOLTIP_DEFAULT_OPTIONS,
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
19
import {Component} from '@angular/core';
210

311
/**
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
19
import {Component} from '@angular/core';
210
import {FormControl} from '@angular/forms';
311

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
19
import {Component} from '@angular/core';
210
import {FormControl} from '@angular/forms';
311
import {TooltipPosition} from '@angular/material/legacy-tooltip';

src/dev-app/legacy-tooltip/tooltip-demo.ts renamed to src/dev-app/legacy-tooltip/legacy-tooltip-demo.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import {Component} from '@angular/core';
9-
import {LegacyTooltipExamplesModule} from '@angular/components-examples/material/legacy-tooltip';
9+
import {LegacyTooltipExamplesModule} from './examples';
1010

1111
@Component({
12-
selector: 'tooltip-demo',
13-
templateUrl: 'tooltip-demo.html',
12+
selector: 'legacy-tooltip-demo',
13+
templateUrl: 'legacy-tooltip-demo.html',
1414
standalone: true,
1515
imports: [LegacyTooltipExamplesModule],
1616
})
17-
export class TooltipDemo {}
17+
export class LegacyTooltipDemo {}

src/dev-app/routes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ export const DEV_APP_ROUTES: Routes = [
226226
},
227227
{
228228
path: 'legacy-tooltip',
229-
loadComponent: () => import('./legacy-tooltip/tooltip-demo').then(m => m.TooltipDemo),
229+
loadComponent: () =>
230+
import('./legacy-tooltip/legacy-tooltip-demo').then(m => m.LegacyTooltipDemo),
230231
},
231232
{
232233
path: 'menu',

src/material/legacy-tooltip/BUILD.bazel

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
load(
22
"//tools:defaults.bzl",
3-
"markdown_to_html",
43
"ng_module",
54
"ng_test_library",
65
"ng_web_test_suite",
@@ -74,11 +73,6 @@ ng_web_test_suite(
7473
deps = [":unit_test_sources"],
7574
)
7675

77-
markdown_to_html(
78-
name = "overview",
79-
srcs = [":tooltip.md"],
80-
)
81-
8276
filegroup(
8377
name = "source-files",
8478
srcs = glob(["**/*.ts"]),

0 commit comments

Comments
 (0)