Skip to content

Commit 7085280

Browse files
committed
build: remove explicit standalone flag from dev apps
Removes the `standalone` flag from the various test apps.
1 parent 0eec568 commit 7085280

File tree

75 files changed

+0
-96
lines changed

Some content is hidden

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

75 files changed

+0
-96
lines changed

src/dev-app/autocomplete/autocomplete-demo.ts

-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ type DisableStateOption = 'none' | 'first-middle-last' | 'all';
3434
selector: 'autocomplete-demo',
3535
templateUrl: 'autocomplete-demo.html',
3636
styleUrl: 'autocomplete-demo.css',
37-
standalone: true,
3837
imports: [
3938
JsonPipe,
4039
FormsModule,
@@ -245,7 +244,6 @@ export class AutocompleteDemo {
245244
align-items: flex-start;
246245
}
247246
`,
248-
standalone: true,
249247
imports: [FormsModule, MatAutocompleteModule, MatButtonModule, MatInputModule],
250248
changeDetection: ChangeDetectionStrategy.OnPush,
251249
})

src/dev-app/badge/badge-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {MatIconModule} from '@angular/material/icon';
1616
selector: 'badge-demo',
1717
templateUrl: 'badge-demo.html',
1818
styleUrl: 'badge-demo.css',
19-
standalone: true,
2019
imports: [FormsModule, MatBadgeModule, MatButtonModule, MatIconModule],
2120
changeDetection: ChangeDetectionStrategy.OnPush,
2221
})

src/dev-app/baseline/baseline-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {MatToolbarModule} from '@angular/material/toolbar';
1919
selector: 'baseline-demo',
2020
templateUrl: 'baseline-demo.html',
2121
styleUrl: 'baseline-demo.css',
22-
standalone: true,
2322
imports: [
2423
MatCardModule,
2524
MatCheckboxModule,

src/dev-app/bottom-sheet/bottom-sheet-demo.ts

-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const defaultConfig = new MatBottomSheetConfig();
2929
selector: 'bottom-sheet-demo',
3030
styleUrl: 'bottom-sheet-demo.css',
3131
templateUrl: 'bottom-sheet-demo.html',
32-
standalone: true,
3332
imports: [
3433
FormsModule,
3534
MatBottomSheetModule,
@@ -77,7 +76,6 @@ export class BottomSheetDemo {
7776
}
7877
</mat-nav-list>
7978
`,
80-
standalone: true,
8179
imports: [MatListModule],
8280
changeDetection: ChangeDetectionStrategy.OnPush,
8381
})

src/dev-app/button-toggle/button-toggle-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {MatIconModule} from '@angular/material/icon';
1616
selector: 'button-toggle-demo',
1717
templateUrl: 'button-toggle-demo.html',
1818
styleUrl: 'button-toggle-demo.css',
19-
standalone: true,
2019
imports: [FormsModule, MatButtonToggleModule, MatCheckboxModule, MatIconModule],
2120
changeDetection: ChangeDetectionStrategy.OnPush,
2221
})

src/dev-app/button/button-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {MatTooltip} from '@angular/material/tooltip';
2626
selector: 'button-demo',
2727
templateUrl: 'button-demo.html',
2828
styleUrl: 'button-demo.css',
29-
standalone: true,
3029
imports: [
3130
MatButton,
3231
MatAnchor,

src/dev-app/card/card-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {MatCheckboxModule} from '@angular/material/checkbox';
1717
templateUrl: 'card-demo.html',
1818
styleUrl: 'card-demo.css',
1919
encapsulation: ViewEncapsulation.None,
20-
standalone: true,
2120
imports: [MatCardModule, MatButtonModule, MatCheckboxModule, FormsModule],
2221
changeDetection: ChangeDetectionStrategy.OnPush,
2322
})

src/dev-app/cdk-dialog/dialog-demo.ts

-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ const defaultDialogConfig = new DialogConfig();
2525
templateUrl: 'dialog-demo.html',
2626
styleUrl: 'dialog-demo.css',
2727
encapsulation: ViewEncapsulation.None,
28-
standalone: true,
2928
imports: [DialogModule, FormsModule],
3029
changeDetection: ChangeDetectionStrategy.OnPush,
3130
})
@@ -109,7 +108,6 @@ export class DialogDemo {
109108
opacity: 0;
110109
}
111110
`,
112-
standalone: true,
113111
changeDetection: ChangeDetectionStrategy.OnPush,
114112
})
115113
export class JazzDialog {

src/dev-app/cdk-experimental-combobox/cdk-combobox-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core';
1111

1212
@Component({
1313
templateUrl: 'cdk-combobox-demo.html',
14-
standalone: true,
1514
imports: [CdkComboboxModule],
1615
changeDetection: ChangeDetectionStrategy.OnPush,
1716
})

src/dev-app/cdk-listbox/cdk-listbox-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import {
2424

2525
@Component({
2626
templateUrl: 'cdk-listbox-demo.html',
27-
standalone: true,
2827
imports: [
2928
CdkListboxActivedescendantExample,
3029
CdkListboxCompareWithExample,

src/dev-app/cdk-menu/cdk-menu-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core';
2121
@Component({
2222
templateUrl: 'cdk-menu-demo.html',
2323
styleUrl: 'cdk-menu-demo.css',
24-
standalone: true,
2524
imports: [
2625
CdkMenuModule,
2726
CdkMenuStandaloneMenuExample,

src/dev-app/checkbox/checkbox-demo.ts

-5
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,18 @@ export interface Task {
2323
@Directive({
2424
selector: '[clickActionNoop]',
2525
providers: [{provide: MAT_CHECKBOX_DEFAULT_OPTIONS, useValue: {clickAction: 'noop'}}],
26-
standalone: true,
2726
})
2827
export class ClickActionNoop {}
2928

3029
@Directive({
3130
selector: '[clickActionCheck]',
3231
providers: [{provide: MAT_CHECKBOX_DEFAULT_OPTIONS, useValue: {clickAction: 'check'}}],
33-
standalone: true,
3432
})
3533
export class ClickActionCheck {}
3634

3735
@Directive({
3836
selector: '[animationsNoop]',
3937
providers: [{provide: ANIMATION_MODULE_TYPE, useValue: 'NoopAnimations'}],
40-
standalone: true,
4138
})
4239
export class AnimationsNoop {}
4340

@@ -49,7 +46,6 @@ export class AnimationsNoop {}
4946
}
5047
`,
5148
templateUrl: 'nested-checklist.html',
52-
standalone: true,
5349
imports: [MatCheckboxModule, FormsModule],
5450
changeDetection: ChangeDetectionStrategy.OnPush,
5551
})
@@ -101,7 +97,6 @@ export class MatCheckboxDemoNestedChecklist {
10197
selector: 'checkbox-demo',
10298
templateUrl: 'checkbox-demo.html',
10399
styleUrl: 'checkbox-demo.css',
104-
standalone: true,
105100
imports: [
106101
FormsModule,
107102
MatCheckboxModule,

src/dev-app/chips/chips-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export interface DemoColor {
3232
selector: 'chips-demo',
3333
templateUrl: 'chips-demo.html',
3434
styleUrl: 'chips-demo.css',
35-
standalone: true,
3635
imports: [
3736
FormsModule,
3837
MatButtonModule,

src/dev-app/clipboard/clipboard-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {FormsModule} from '@angular/forms';
1414
selector: 'clipboard-demo',
1515
styleUrl: 'clipboard-demo.css',
1616
templateUrl: 'clipboard-demo.html',
17-
standalone: true,
1817
imports: [ClipboardModule, FormsModule],
1918
changeDetection: ChangeDetectionStrategy.OnPush,
2019
})

src/dev-app/column-resize/column-resize-home.ts

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {MatExpansionModule} from '@angular/material/expansion';
1616

1717
@Component({
1818
templateUrl: 'column-resize-home.html',
19-
standalone: true,
2019
imports: [
2120
MatExpansionModule,
2221
DefaultEnabledColumnResizeExample,

src/dev-app/connected-overlay/connected-overlay-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import {MatRadioModule} from '@angular/material/radio';
3636
templateUrl: 'connected-overlay-demo.html',
3737
styleUrl: 'connected-overlay-demo.css',
3838
encapsulation: ViewEncapsulation.None,
39-
standalone: true,
4039
imports: [
4140
CdkOverlayBasicExample,
4241
FormsModule,

src/dev-app/datepicker/datepicker-demo.ts

-4
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ export class PreserveRangeStrategy<D> implements MatDateRangeSelectionStrategy<D
8787

8888
@Directive({
8989
selector: '[customRangeStrategy]',
90-
standalone: true,
9190
providers: [
9291
{
9392
provide: MAT_DATE_RANGE_SELECTION_STRATEGY,
@@ -103,7 +102,6 @@ export class CustomRangeStrategy {}
103102
templateUrl: 'custom-header.html',
104103
styleUrl: 'custom-header.css',
105104
changeDetection: ChangeDetectionStrategy.OnPush,
106-
standalone: true,
107105
imports: [MatIconModule, MatButtonModule],
108106
})
109107
export class CustomHeader<D> implements OnDestroy {
@@ -153,7 +151,6 @@ export class CustomHeader<D> implements OnDestroy {
153151
<button mat-button type="button" (click)="todayClicked()">TODAY</button>
154152
</mat-calendar-header>
155153
`,
156-
standalone: true,
157154
imports: [MatDatepickerModule],
158155
changeDetection: ChangeDetectionStrategy.OnPush,
159156
})
@@ -177,7 +174,6 @@ export class CustomHeaderNgContent<D> {
177174
styleUrl: 'datepicker-demo.css',
178175
encapsulation: ViewEncapsulation.None,
179176
changeDetection: ChangeDetectionStrategy.OnPush,
180-
standalone: true,
181177
imports: [
182178
JsonPipe,
183179
FormsModule,

src/dev-app/dev-app.ts

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {DevAppLayout} from './dev-app/dev-app-layout';
1515
selector: 'dev-app',
1616
template: '<dev-app-layout><router-outlet></router-outlet></dev-app-layout>',
1717
encapsulation: ViewEncapsulation.None,
18-
standalone: true,
1918
imports: [DevAppLayout, RouterModule],
2019
changeDetection: ChangeDetectionStrategy.OnPush,
2120
})

src/dev-app/dev-app/dev-app-404.ts

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {RouterModule} from '@angular/router';
1717
<a mat-raised-button routerLink="/">Go back to the home page</a>
1818
`,
1919
host: {'class': 'mat-typography'},
20-
standalone: true,
2120
imports: [MatButtonModule, RouterModule],
2221
changeDetection: ChangeDetectionStrategy.OnPush,
2322
})

src/dev-app/dev-app/dev-app-home.ts

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core';
1414
<p>Welcome to the development demos for Angular Material!</p>
1515
<p>Open the sidenav to select a demo.</p>
1616
`,
17-
standalone: true,
1817
changeDetection: ChangeDetectionStrategy.OnPush,
1918
})
2019
export class DevAppHome {}

src/dev-app/dev-app/dev-app-layout.ts

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import {DevAppDirectionality} from './dev-app-directionality';
3535
templateUrl: 'dev-app-layout.html',
3636
styleUrl: 'dev-app-layout.css',
3737
encapsulation: ViewEncapsulation.None,
38-
standalone: true,
3938
imports: [
4039
MatButtonModule,
4140
MatIconModule,

src/dev-app/dialog/dialog-demo.ts

-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import {MatSelectModule} from '@angular/material/select';
4242
// View encapsulation is disabled since we add the legacy dialog padding
4343
// styles that need to target the dialog (not only the projected content).
4444
encapsulation: ViewEncapsulation.None,
45-
standalone: true,
4645
imports: [
4746
JsonPipe,
4847
FormsModule,
@@ -177,7 +176,6 @@ export class DialogDemo {
177176
`,
178177
encapsulation: ViewEncapsulation.None,
179178
styles: `.hidden-dialog { opacity: 0; }`,
180-
standalone: true,
181179
imports: [DragDropModule, MatInputModule, MatSelectModule],
182180
changeDetection: ChangeDetectionStrategy.OnPush,
183181
})
@@ -253,7 +251,6 @@ export class JazzDialog {
253251
Show in Dialog</button>
254252
</mat-dialog-actions>
255253
`,
256-
standalone: true,
257254
imports: [MatButtonModule, MatDialogTitle, MatDialogContent, MatDialogClose, MatDialogActions],
258255
changeDetection: ChangeDetectionStrategy.OnPush,
259256
})
@@ -290,7 +287,6 @@ export class ContentElementDialog {
290287
mat-dialog-close>Close</button>
291288
</mat-dialog-actions>
292289
`,
293-
standalone: true,
294290
imports: [MatButtonModule, MatDialogTitle, MatDialogContent, MatDialogClose, MatDialogActions],
295291
changeDetection: ChangeDetectionStrategy.OnPush,
296292
})

src/dev-app/drag-drop/drag-drop-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import {MatCheckbox} from '@angular/material/checkbox';
2929
styleUrl: 'drag-drop-demo.css',
3030
encapsulation: ViewEncapsulation.None,
3131
changeDetection: ChangeDetectionStrategy.OnPush,
32-
standalone: true,
3332
imports: [
3433
DragDropModule,
3534
FormsModule,

src/dev-app/drawer/drawer-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {MatSidenavModule} from '@angular/material/sidenav';
1515
selector: 'drawer-demo',
1616
templateUrl: 'drawer-demo.html',
1717
styleUrl: 'drawer-demo.css',
18-
standalone: true,
1918
imports: [MatButtonModule, MatListModule, MatSidenavModule],
2019
changeDetection: ChangeDetectionStrategy.OnPush,
2120
})

src/dev-app/example/example-list.ts

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {Example} from './example';
1515
/** Displays a set of components-examples in a mat-accordion. */
1616
@Component({
1717
selector: 'material-example-list',
18-
standalone: true,
1918
imports: [MatExpansionModule, Example],
2019
template: `
2120
<mat-accordion multi>

src/dev-app/example/example.ts

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {loadExample} from '@angular/components-examples/private';
2222

2323
@Component({
2424
selector: 'material-example',
25-
standalone: true,
2625
template: `
2726
@if (showLabel) {
2827
<div class="label">

src/dev-app/examples-page/examples-page.ts

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {ExampleList} from '../example/example-list';
1313
/** Renders all material examples listed in the generated EXAMPLE_COMPONENTS. */
1414
@Component({
1515
template: `<material-example-list [ids]="examples"></material-example-list>`,
16-
standalone: true,
1716
imports: [ExampleList],
1817
changeDetection: ChangeDetectionStrategy.OnPush,
1918
})

src/dev-app/expansion/expansion-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {MatSlideToggleModule} from '@angular/material/slide-toggle';
2626
selector: 'expansion-demo',
2727
styleUrl: 'expansion-demo.css',
2828
templateUrl: 'expansion-demo.html',
29-
standalone: true,
3029
imports: [
3130
CdkAccordionModule,
3231
FormsModule,

src/dev-app/focus-origin/focus-origin-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {A11yModule, FocusMonitor} from '@angular/cdk/a11y';
1313
selector: 'focus-origin-demo',
1414
templateUrl: 'focus-origin-demo.html',
1515
styleUrl: 'focus-origin-demo.css',
16-
standalone: true,
1716
imports: [A11yModule],
1817
changeDetection: ChangeDetectionStrategy.OnPush,
1918
})

src/dev-app/focus-trap/focus-trap-demo.ts

-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import {MatToolbarModule} from '@angular/material/toolbar';
3636
template: '<ng-content></ng-content>',
3737
host: {'class': 'demo-focus-trap-shadow-root'},
3838
encapsulation: ViewEncapsulation.ShadowDom,
39-
standalone: true,
4039
changeDetection: ChangeDetectionStrategy.OnPush,
4140
})
4241
export class FocusTrapShadowDomDemo {}
@@ -45,7 +44,6 @@ export class FocusTrapShadowDomDemo {}
4544
selector: 'focus-trap-demo',
4645
templateUrl: 'focus-trap-demo.html',
4746
styleUrl: 'focus-trap-demo.css',
48-
standalone: true,
4947
imports: [A11yModule, MatButtonModule, MatCardModule, MatToolbarModule, FocusTrapShadowDomDemo],
5048
changeDetection: ChangeDetectionStrategy.OnPush,
5149
})
@@ -95,7 +93,6 @@ let dialogCount = 0;
9593
selector: 'focus-trap-dialog-demo',
9694
styleUrl: 'focus-trap-dialog-demo.css',
9795
templateUrl: 'focus-trap-dialog-demo.html',
98-
standalone: true,
9996
imports: [MatDialogTitle, MatDialogContent, MatDialogClose, MatDialogActions],
10097
changeDetection: ChangeDetectionStrategy.OnPush,
10198
})

src/dev-app/google-map/google-map-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ let apiLoadingPromise: Promise<unknown> | null = null;
6666
selector: 'google-map-demo',
6767
templateUrl: 'google-map-demo.html',
6868
styleUrl: 'google-map-demo.css',
69-
standalone: true,
7069
imports: [
7170
GoogleMap,
7271
MapBicyclingLayer,

src/dev-app/grid-list/grid-list-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {MatIconModule} from '@angular/material/icon';
1717
selector: 'grid-list-demo',
1818
templateUrl: 'grid-list-demo.html',
1919
styleUrl: 'grid-list-demo.css',
20-
standalone: true,
2120
imports: [FormsModule, MatButtonModule, MatCardModule, MatGridListModule, MatIconModule],
2221
changeDetection: ChangeDetectionStrategy.OnPush,
2322
})

src/dev-app/icon/icon-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {DomSanitizer} from '@angular/platform-browser';
1414
selector: 'mat-icon-demo',
1515
templateUrl: 'icon-demo.html',
1616
styleUrl: 'icon-demo.css',
17-
standalone: true,
1817
imports: [MatIconModule],
1918
changeDetection: ChangeDetectionStrategy.OnPush,
2019
})

src/dev-app/input-modality/input-modality-detector-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import {takeUntil} from 'rxjs/operators';
2727
@Component({
2828
selector: 'input-modality-detector-demo',
2929
templateUrl: 'input-modality-detector-demo.html',
30-
standalone: true,
3130
imports: [
3231
A11yModule,
3332
MatButtonModule,

src/dev-app/input/input-demo.ts

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ const EMAIL_REGEX = /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA
4040
templateUrl: 'input-demo.html',
4141
styleUrl: 'input-demo.css',
4242
changeDetection: ChangeDetectionStrategy.OnPush,
43-
standalone: true,
4443
imports: [
4544
AsyncPipe,
4645
FormsModule,

0 commit comments

Comments
 (0)