Skip to content

Commit

Permalink
Migration to use the new MDC-based Angular Components. Components mig…
Browse files Browse the repository at this point in the history
…rated: tooltip

PiperOrigin-RevId: 566685736
  • Loading branch information
zzzaries authored and copybara-github committed Sep 19, 2023
1 parent 51351d0 commit 943e56a
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 21 deletions.
2 changes: 1 addition & 1 deletion frontend/app/common/angular/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ ts_library(
)

ts_library(
name = "angular_material_legacy_tooltip",
name = "angular_material_tooltip",
srcs = [],
deps = [
"@npm//@angular/material",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ xprof_ng_module(
"@org_xprof//frontend/app/common/angular:angular_material_expansion",
"@org_xprof//frontend/app/common/angular:angular_material_form_field",
"@org_xprof//frontend/app/common/angular:angular_material_input",
"@org_xprof//frontend/app/common/angular:angular_material_legacy_tooltip",
"@org_xprof//frontend/app/common/angular:angular_material_radio",
"@org_xprof//frontend/app/common/angular:angular_material_select",
"@org_xprof//frontend/app/common/angular:angular_material_tooltip",
"@org_xprof//frontend/app/common/interfaces",
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {MatFormFieldModule} from '@angular/material/form-field';
import {MatInputModule} from '@angular/material/input';
import {MatRadioModule} from '@angular/material/radio';
import {MatSelectModule} from '@angular/material/select';
import {MatLegacyTooltipModule} from '@angular/material/legacy-tooltip';
import {MatTooltipModule} from '@angular/material/tooltip';
import {BrowserModule} from '@angular/platform-browser';

import {CaptureProfileDialog} from './capture_profile_dialog';
Expand All @@ -27,7 +27,7 @@ import {CaptureProfileDialog} from './capture_profile_dialog';
MatInputModule,
MatRadioModule,
MatSelectModule,
MatLegacyTooltipModule,
MatTooltipModule,
],
exports: [CaptureProfileDialog]
})
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/components/graph_viewer/graph_config/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ xprof_ng_module(
"@org_xprof//frontend/app/common/angular:angular_material_form_field",
"@org_xprof//frontend/app/common/angular:angular_material_icon",
"@org_xprof//frontend/app/common/angular:angular_material_input",
"@org_xprof//frontend/app/common/angular:angular_material_legacy_tooltip",
"@org_xprof//frontend/app/common/angular:angular_material_select",
"@org_xprof//frontend/app/common/angular:angular_material_sidenav",
"@org_xprof//frontend/app/common/angular:angular_material_tooltip",
"@org_xprof//frontend/app/common/interfaces",
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {MatOptionModule} from '@angular/material/core';
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatInputModule} from '@angular/material/input';
import {MatSelectModule} from '@angular/material/select';
import {MatLegacyTooltipModule} from '@angular/material/legacy-tooltip';
import {MatTooltipModule} from '@angular/material/tooltip';
import {MatSidenavModule} from '@angular/material/sidenav';

import {GraphConfig} from './graph_config';
Expand All @@ -25,7 +25,7 @@ import {GraphConfig} from './graph_config';
MatOptionModule,
MatSelectModule,
MatSidenavModule,
MatLegacyTooltipModule,
MatTooltipModule,
],
declarations: [GraphConfig],
exports: [GraphConfig]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ xprof_ng_module(
deps = [
"@npm//@angular/core",
"@org_xprof//frontend/app/common/angular:angular_material_card",
"@org_xprof//frontend/app/common/angular:angular_material_legacy_tooltip",
"@org_xprof//frontend/app/common/interfaces",
"@org_xprof//frontend/app/common/utils",
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {MatCardModule} from '@angular/material/card';
import {MatLegacyTooltipModule} from '@angular/material/legacy-tooltip';

import {MemoryProfileSummary} from './memory_profile_summary';

Expand All @@ -10,7 +9,6 @@ import {MemoryProfileSummary} from './memory_profile_summary';
imports: [
CommonModule,
MatCardModule,
MatLegacyTooltipModule,
],
exports: [MemoryProfileSummary]
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ xprof_ng_module(
"@org_xprof//frontend/app/common/angular:angular_material_checkbox",
"@org_xprof//frontend/app/common/angular:angular_material_divider",
"@org_xprof//frontend/app/common/angular:angular_material_icon",
"@org_xprof//frontend/app/common/angular:angular_material_legacy_tooltip",
"@org_xprof//frontend/app/common/interfaces",
"@org_xprof//frontend/app/common/utils",
"@org_xprof//frontend/app/components/diagnostics_view",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {MatCheckboxModule} from '@angular/material/checkbox';
import {MatDividerModule} from '@angular/material/divider';
import {MatIconModule} from '@angular/material/icon';
import {MatCheckboxModule} from '@angular/material/checkbox';
import {MatLegacyTooltipModule} from '@angular/material/legacy-tooltip';
import {DiagnosticsViewModule} from 'org_xprof/frontend/app/components/diagnostics_view/diagnostics_view_module';
import {MaxHeapChartModule} from 'org_xprof/frontend/app/components/memory_viewer/max_heap_chart/max_heap_chart_module';
import {ProgramOrderChartModule} from 'org_xprof/frontend/app/components/memory_viewer/program_order_chart/program_order_chart_module';
Expand All @@ -20,7 +19,6 @@ import {MemoryViewerMain} from './memory_viewer_main';
MaxHeapChartModule,
MatCheckboxModule,
MatIconModule,
MatLegacyTooltipModule,
ProgramOrderChartModule,
],
exports: [MemoryViewerMain]
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/components/op_profile/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ xprof_ng_module(
"@org_xprof//frontend/app/common/angular:angular_material_form_field",
"@org_xprof//frontend/app/common/angular:angular_material_icon",
"@org_xprof//frontend/app/common/angular:angular_material_input",
"@org_xprof//frontend/app/common/angular:angular_material_legacy_tooltip",
"@org_xprof//frontend/app/common/angular:angular_material_slide_toggle",
"@org_xprof//frontend/app/common/angular:angular_material_tooltip",
"@org_xprof//frontend/app/common/interfaces",
"@org_xprof//frontend/app/components/op_profile/op_table",
"@org_xprof//frontend/app/services/data_service",
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/components/op_profile/op_profile_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {NgModule} from '@angular/core';
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatIconModule} from '@angular/material/icon';
import {MatInputModule} from '@angular/material/input';
import {MatLegacyTooltipModule} from '@angular/material/legacy-tooltip';
import {MatSlideToggleModule} from '@angular/material/slide-toggle';
import {MatTooltipModule} from '@angular/material/tooltip';

import {OpProfile} from './op_profile';
import {OpTableModule} from './op_table/op_table_module';
Expand All @@ -17,7 +17,7 @@ import {OpTableModule} from './op_table/op_table_module';
MatSlideToggleModule,
OpTableModule,
MatIconModule,
MatLegacyTooltipModule,
MatTooltipModule,
],
exports: [OpProfile]
})
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/components/overview/performance_summary/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ xprof_ng_module(
"@npm//@angular/core",
"@org_xprof//frontend/app/common/angular:angular_material_card",
"@org_xprof//frontend/app/common/angular:angular_material_icon",
"@org_xprof//frontend/app/common/angular:angular_material_legacy_tooltip",
"@org_xprof//frontend/app/common/angular:angular_material_tooltip",
"@org_xprof//frontend/app/common/interfaces",
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {MatIconModule} from '@angular/material/icon';
import {MatCardModule} from '@angular/material/card';
import {MatLegacyTooltipModule} from '@angular/material/legacy-tooltip';
import {MatTooltipModule} from '@angular/material/tooltip';

import {PerformanceSummary} from './performance_summary';

Expand All @@ -12,7 +12,7 @@ import {PerformanceSummary} from './performance_summary';
CommonModule,
MatCardModule,
MatIconModule,
MatLegacyTooltipModule,
MatTooltipModule,
],
exports: [PerformanceSummary]
})
Expand Down
3 changes: 2 additions & 1 deletion frontend/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ $theme: mat.define-light-theme(
@include mat.radio-theme($theme);
@include mat.snack-bar-theme($theme);
@include mat.slider-theme($theme);
@include mat.tooltip-theme($theme);

html, body {
height: 100%;
Expand All @@ -57,7 +58,7 @@ body {
z-index: 10;
}

.mat-tooltip {
.mat-mdc-tooltip {
font-size: 12px;
}

Expand Down

0 comments on commit 943e56a

Please sign in to comment.