Skip to content

Commit 52530fa

Browse files
authored
Explicitly set standalone for all Angular components (#6912)
Angular v19 is going to change the default value for `standalone` from `false` to `true`. Even though tensorboard is on an older version of Angular on GitHub, the version inside Google runs at HEAD. We're in the process of changing existing code in google to explicitly set `standalone: false` for existing code, so I'm sending this change to the source of truth here.
1 parent da1833f commit 52530fa

File tree

177 files changed

+197
-0
lines changed

Some content is hidden

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

177 files changed

+197
-0
lines changed

tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/debugger_component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {ChangeDetectionStrategy, Component, Input} from '@angular/core';
1616
import {DebuggerRunListing} from './store/debugger_types';
1717

1818
@Component({
19+
standalone: false,
1920
selector: 'debugger-component',
2021
templateUrl: './debugger_component.ng.html',
2122
styleUrls: ['./debugger_component.css'],

tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/debugger_container.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {getActiveRunId, getDebuggerRunListing} from './store';
1919
import {State} from './store/debugger_types';
2020

2121
@Component({
22+
standalone: false,
2223
selector: 'tf-debugger-v2',
2324
template: `
2425
<debugger-component

tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/testing/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ export function createState(
354354
// that use it.
355355

356356
@Component({
357+
standalone: false,
357358
selector: 'tf-debugger-v2',
358359
template: ``,
359360
})

tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/alerts/alerts_component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export interface AlertTypeDisplay {
2323
}
2424

2525
@Component({
26+
standalone: false,
2627
selector: 'alerts-component',
2728
templateUrl: './alerts_component.ng.html',
2829
styleUrls: ['./alerts_component.css'],

tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/alerts/alerts_container.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const ALERT_TYPE_TO_DISPLAY_NAME_AND_SYMBOL: {
4545
};
4646

4747
@Component({
48+
standalone: false,
4849
selector: 'tf-debugger-v2-alerts',
4950
template: `
5051
<alerts-component

tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/debug_tensor_value/debug_tensor_value_component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const basicDebugInfoStyle = `
3030
`;
3131

3232
@Component({
33+
standalone: false,
3334
selector: 'debug-tensor-dtype',
3435
template: ` {{ dtype }} `,
3536
styles: [basicDebugInfoStyle],
@@ -40,6 +41,7 @@ export class DebugTensorDTypeComponent {
4041
}
4142

4243
@Component({
44+
standalone: false,
4345
selector: 'debug-tensor-rank',
4446
template: ` {{ rank }}D `,
4547
styles: [basicDebugInfoStyle],
@@ -50,6 +52,7 @@ export class DebugTensorRankComponent {
5052
}
5153

5254
@Component({
55+
standalone: false,
5356
selector: 'debug-tensor-shape',
5457
template: ` shape:{{ shapeString }} `,
5558
styles: [basicDebugInfoStyle],
@@ -72,6 +75,7 @@ export class DebugTensorShapeComponent {
7275
}
7376

7477
@Component({
78+
standalone: false,
7579
selector: 'debug-tensor-numeric-breakdown',
7680
template: `
7781
<div class="size">
@@ -205,6 +209,7 @@ export class DebugTensorNumericBreakdownComponent {
205209
}
206210

207211
@Component({
212+
standalone: false,
208213
selector: 'debug-tensor-has-inf-or-nan',
209214
template: `
210215
<div [ngClass]="['container', hasInfOrNaN ? 'has-inf-or-nan' : '']">
@@ -242,6 +247,7 @@ export class DebugTensorHasInfOrNaNComponent {
242247
}
243248

244249
@Component({
250+
standalone: false,
245251
selector: 'debug-tensor-value',
246252
template: `
247253
<debug-tensor-dtype

tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/execution_data/execution_data_component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {Execution, TensorDebugMode} from '../../store/debugger_types';
1717
import {parseDebugTensorValue} from '../../store/debug_tensor_value';
1818

1919
@Component({
20+
standalone: false,
2021
selector: 'execution-data-component',
2122
templateUrl: './execution_data_component.ng.html',
2223
styleUrls: ['./execution_data_component.css'],

tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/execution_data/execution_data_container.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {DTYPE_ENUM_TO_NAME} from '../../tf_dtypes';
2121
const UNKNOWN_DTYPE_NAME = 'Unknown dtype';
2222

2323
@Component({
24+
standalone: false,
2425
selector: 'tf-debugger-v2-execution-data',
2526
template: `
2627
<execution-data-component

tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/graph/graph_component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
} from '../../store/debugger_types';
2828

2929
@Component({
30+
standalone: false,
3031
selector: 'graph-component',
3132
templateUrl: './graph_component.ng.html',
3233
styleUrls: ['./graph_component.css'],

tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/graph/graph_container.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
import {State} from '../../store/debugger_types';
2424

2525
@Component({
26+
standalone: false,
2627
selector: 'tf-debugger-v2-graph',
2728
template: `
2829
<graph-component

0 commit comments

Comments
 (0)