Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(material-angular-io): remove explicit standalone flags #30496

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion material.angular.io/scenes/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {RouterOutlet} from '@angular/router';
selector: 'app-root',
template: '<router-outlet></router-outlet>',
styleUrls: ['./app.component.scss'],
standalone: true,
imports: [RouterOutlet],
})
export class AppComponent {}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {DomSanitizer, SafeStyle} from '@angular/platform-browser';
selector: 'app-scene-viewer',
templateUrl: './scene-viewer.html',
styleUrls: ['./scene-viewer.scss'],
standalone: true,
})
export class SceneViewer implements OnInit {
private route = inject(ActivatedRoute);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {MatAutocompleteModule} from '@angular/material/autocomplete';
encapsulation: ViewEncapsulation.None,
selector: 'app-autocomplete-scene',
templateUrl: './autocomplete-scene.html',
standalone: true,
imports: [
ReactiveFormsModule,
FormsModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {MatBadgeModule} from '@angular/material/badge';
selector: 'app-badge-scene',
templateUrl: './badge-scene.html',
styleUrls: ['./badge-scene.scss'],
standalone: true,
imports: [MatIconModule, MatBadgeModule],
})
export class BadgeScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {MatListModule} from '@angular/material/list';
template: '',
styleUrls: ['./bottom-sheet-scene.scss'],
encapsulation: ViewEncapsulation.None,
standalone: true,
})
export class BottomSheetScene implements AfterViewInit {
private _bottomSheet = inject(MatBottomSheet);
Expand All @@ -23,7 +22,6 @@ export class BottomSheetScene implements AfterViewInit {
selector: 'app-bottom-sheet-scene',
templateUrl: './bottom-sheet-scene.html',
styleUrls: ['./bottom-sheet-scene.scss'],
standalone: true,
imports: [MatListModule, MatIconModule],
})
export class SampleBottomSheet {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {MatIconModule} from '@angular/material/icon';
selector: 'app-button-toggle-scene',
templateUrl: './button-toggle-scene.html',
styleUrls: ['./button-toggle-scene.scss'],
standalone: true,
imports: [MatButtonToggleModule, MatIconModule],
})
export class ButtonToggleScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {MatIconModule} from '@angular/material/icon';
selector: 'app-button-scene',
templateUrl: './button-scene.html',
styleUrls: ['./button-scene.scss'],
standalone: true,
imports: [MatButtonModule, MatIconModule],
})
export class ButtonScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {MatCardModule} from '@angular/material/card';
selector: 'app-card-scene',
templateUrl: './card-scene.html',
styleUrls: ['./card-scene.scss'],
standalone: true,
imports: [MatCardModule],
})
export class CardScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {MatCheckboxModule} from '@angular/material/checkbox';
selector: 'app-checkbox-scene',
templateUrl: './checkbox-scene.html',
styleUrls: ['./checkbox-scene.scss'],
standalone: true,
imports: [MatCheckboxModule],
})
export class CheckboxScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {MatChipsModule} from '@angular/material/chips';
selector: 'app-chips-scene',
templateUrl: './chips-scene.html',
styleUrls: ['./chips-scene.scss'],
standalone: true,
imports: [MatChipsModule],
})
export class ChipsScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {MatIconModule} from '@angular/material/icon';
selector: 'app-core-scene',
templateUrl: './core-scene.html',
styleUrls: ['./core-scene.scss'],
standalone: true,
imports: [MatIconModule],
})
export class CoreScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {MatDatepickerModule} from '@angular/material/datepicker';
selector: 'app-datepicker-scene',
templateUrl: './datepicker-scene.html',
styleUrls: ['./datepicker-scene.scss'],
standalone: true,
imports: [MatDatepickerModule],
})
export class DatepickerScene {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {MatDialog, MatDialogModule} from '@angular/material/dialog';
encapsulation: ViewEncapsulation.None,
selector: 'app-dialog-scene',
template: '',
standalone: true,
})
export class DialogScene {
dialog = inject(MatDialog);
Expand All @@ -28,7 +27,6 @@ export class DialogScene {
<button mat-button mat-dialog-close>Cancel</button>
<button mat-button mat-dialog-close>Discard</button>
</div>`,
standalone: true,
imports: [MatDialogModule, MatButtonModule],
})
export class DialogSceneExampleDialog {}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {MatDividerModule} from '@angular/material/divider';
selector: 'app-divider-scene',
templateUrl: './divider-scene.html',
styleUrls: ['./divider-scene.scss'],
standalone: true,
imports: [MatListModule, MatIconModule, MatDividerModule],
})
export class DividerScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {MatIconModule} from '@angular/material/icon';
selector: 'app-expansion-scene',
templateUrl: './expansion-scene.html',
styleUrls: ['./expansion-scene.scss'],
standalone: true,
imports: [MatExpansionModule, MatIconModule],
})
export class ExpansionScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {MatFormFieldModule} from '@angular/material/form-field';
encapsulation: ViewEncapsulation.None,
selector: 'app-form-field-scene',
templateUrl: './form-field-scene.html',
standalone: true,
imports: [MatFormFieldModule, MatInputModule, MatIconModule],
})
export class FormFieldScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {MatGridListModule} from '@angular/material/grid-list';
templateUrl: './grid-list-scene.html',
styleUrls: ['./grid-list-scene.scss'],
encapsulation: ViewEncapsulation.None,
standalone: true,
imports: [MatGridListModule],
})
export class GridListScene {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {MatIconModule} from '@angular/material/icon';
selector: 'app-icon-scene',
templateUrl: './icon-scene.html',
styleUrls: ['./icon-scene.scss'],
standalone: true,
imports: [MatIconModule],
})
export class IconScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {MatInputModule} from '@angular/material/input';
selector: 'app-input-scene',
templateUrl: './input-scene.html',
styleUrls: ['./input-scene.scss'],
standalone: true,
imports: [MatFormFieldModule, MatInputModule],
})
export class InputScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {MatIconModule} from '@angular/material/icon';
selector: 'app-list-scene',
templateUrl: './list-scene.html',
styleUrls: ['./list-scene.scss'],
standalone: true,
imports: [MatListModule, MatIconModule],
})
export class ListScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {MatMenuModule, MatMenuTrigger} from '@angular/material/menu';
selector: 'app-button-scene',
templateUrl: './menu-scene.html',
styleUrls: ['./menu-scene.scss'],
standalone: true,
imports: [MatButtonModule, MatMenuModule, MatIconModule],
})
export class MenuScene implements AfterViewInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {MatPaginatorModule} from '@angular/material/paginator';
selector: 'app-paginator-scene',
templateUrl: './paginator-scene.html',
styleUrls: ['./paginator-scene.scss'],
standalone: true,
imports: [MatPaginatorModule],
})
export class PaginatorScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ import {Component, ViewEncapsulation} from '@angular/core';
selector: 'app-button-toggle-scene',
templateUrl: './placeholder-scene.html',
styleUrls: ['./placeholder-scene.scss'],
standalone: true,
})
export class PlaceHolderScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {MatProgressBarModule} from '@angular/material/progress-bar';
selector: 'app-progress-bar-scene',
templateUrl: './progress-bar-scene.html',
styleUrls: ['./progress-bar-scene.scss'],
standalone: true,
imports: [MatProgressBarModule],
})
export class ProgressBarScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {MatProgressSpinnerModule} from '@angular/material/progress-spinner';
selector: 'app-input-scene',
templateUrl: './progress-spinner-scene.html',
styleUrls: ['./progress-spinner-scene.scss'],
standalone: true,
imports: [MatProgressSpinnerModule],
})
export class ProgressSpinnerScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {MatRadioModule} from '@angular/material/radio';
selector: 'app-radio-scene',
templateUrl: './radio-scene.html',
styleUrls: ['./radio-scene.scss'],
standalone: true,
imports: [MatRadioModule],
})
export class RadioScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {MatRipple, MatRippleModule} from '@angular/material/core';
selector: 'app-ripple-scene',
templateUrl: './ripples-scene.html',
styleUrls: ['./ripples-scene.scss'],
standalone: true,
imports: [MatRippleModule, MatButtonModule],
})
export class RipplesScene implements AfterViewInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {MatOptionModule} from '@angular/material/core';
selector: 'app-select-scene',
templateUrl: './select-scene.html',
styleUrls: ['./select-scene.scss'],
standalone: true,
imports: [MatFormFieldModule, MatSelectModule, MatOptionModule],
})
export class SelectScene implements AfterViewInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {MatListModule} from '@angular/material/list';
selector: 'app-sidenav-scene',
templateUrl: './sidenav-scene.html',
styleUrls: ['./sidenav-scene.scss'],
standalone: true,
imports: [MatSidenavModule, MatListModule, MatIconModule],
})
export class SidenavScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {MatSlideToggleModule} from '@angular/material/slide-toggle';
selector: 'app-slide-toggle-scene',
templateUrl: './slide-toggle-scene.html',
styleUrls: ['./slide-toggle-scene.scss'],
standalone: true,
imports: [MatIconModule, MatSlideToggleModule],
})
export class SlideToggleScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {MatSliderModule} from '@angular/material/slider';
selector: 'app-slider-scene',
templateUrl: './slider-scene.html',
styleUrls: ['./slider-scene.scss'],
standalone: true,
imports: [MatIconModule, MatSliderModule],
})
export class SliderScene implements AfterViewInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {MatSnackBar} from '@angular/material/snack-bar';
template: '<div class="docs-scene-snackbar-background"></div>',
styleUrls: ['./snack-bar-scene.scss'],
encapsulation: ViewEncapsulation.None,
standalone: true,
})
export class SnackBarScene {
constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export interface Dessert {
selector: 'app-sort-scene',
templateUrl: './sort-scene.html',
styleUrls: ['./sort-scene.scss'],
standalone: true,
imports: [MatSortModule],
})
export class SortScene {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {MatFormFieldModule} from '@angular/material/form-field';
selector: 'app-stepper-scene',
templateUrl: './stepper-scene.html',
styleUrls: ['./stepper-scene.scss'],
standalone: true,
imports: [MatStepperModule, MatFormFieldModule, MatInputModule],
})
export class StepperScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const ELEMENT_DATA: PeriodicElement[] = [
selector: 'app-table-scene',
templateUrl: './table-scene.html',
styleUrls: ['./table-scene.scss'],
standalone: true,
imports: [MatCardModule, MatTableModule],
})
export class TableScene {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {MatTabsModule} from '@angular/material/tabs';
selector: 'app-tabs-scene',
templateUrl: './tabs-scene.html',
styleUrls: ['./tabs-scene.scss'],
standalone: true,
imports: [MatTabsModule],
})
export class TabsScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {MatTimepickerModule, MatTimepicker} from '@angular/material/timepicker';
selector: 'app-timepicker-scene',
templateUrl: './timepicker-scene.html',
styleUrls: ['./timepicker-scene.scss'],
standalone: true,
imports: [MatTimepickerModule, MatFormFieldModule, MatInputModule],
})
export class TimepickerScene implements AfterViewInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {MatToolbarModule} from '@angular/material/toolbar';
selector: 'app-toolbar-scene',
templateUrl: './toolbar-scene.html',
styleUrls: ['./toolbar-scene.scss'],
standalone: true,
imports: [MatToolbarModule, MatIconModule],
})
export class ToolbarScene {}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {MatIconModule} from '@angular/material/icon';
selector: 'app-tooltip-scene',
templateUrl: './tooltip-scene.html',
styleUrls: ['./tooltip-scene.scss'],
standalone: true,
imports: [MatButtonModule, MatTooltipModule, MatIconModule],
})
export class TooltipScene implements AfterViewInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ interface FileFlatNode {
selector: 'app-tree-scene',
templateUrl: './tree-scene.html',
styleUrls: ['./tree-scene.scss'],
standalone: true,
imports: [MatTreeModule, MatIconModule, MatButtonModule],
})
export class TreeScene {
Expand Down
1 change: 0 additions & 1 deletion material.angular.io/src/app/material-docs-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {CookiePopup} from './shared/cookie-popup/cookie-popup';
`,
styleUrls: ['./material-docs-app.scss'],
encapsulation: ViewEncapsulation.None,
standalone: true,
imports: [NavBar, RouterOutlet, CookiePopup],
})
export class MaterialDocsApp implements OnDestroy {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {ComponentPageTitle} from '../page-title/page-title';
selector: 'app-component-category-list',
templateUrl: './component-category-list.html',
styleUrls: ['./component-category-list.scss'],
standalone: true,
imports: [NavigationFocus, RouterLink, MatRipple],
})
export class ComponentCategoryList implements OnInit, OnDestroy {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {MatIcon} from '@angular/material/icon';
selector: 'component-page-header',
templateUrl: './component-page-header.html',
styleUrls: ['./component-page-header.scss'],
standalone: true,
imports: [MatButton, MatIcon],
})
export class ComponentPageHeader {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const SMALL_WIDTH_BREAKPOINT = 959;
templateUrl: './component-sidenav.html',
styleUrls: ['./component-sidenav.scss'],
encapsulation: ViewEncapsulation.None,
standalone: true,
imports: [
MatSidenav,
MatSidenavContainer,
Expand Down Expand Up @@ -117,7 +116,6 @@ export class ComponentSidenav implements OnInit, OnDestroy {
@Component({
selector: 'app-component-nav',
templateUrl: './component-nav.html',
standalone: true,
imports: [MatNavList, MatListItem, RouterLinkActive, RouterLink, AsyncPipe],
})
export class ComponentNav {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class TokenService {
@Component({
selector: 'component-styling',
templateUrl: './component-styling.html',
standalone: true,
imports: [AsyncPipe, TokenTable],
})
export class ComponentStyling {
Expand Down
Loading
Loading