refactor(common): remove standalone: true (#58949)

Removed the standalone true flag from common packages.

PR Close #58949
This commit is contained in:
Sheik Althaf
2024-11-28 14:16:33 +05:30
committed by Pawel Kozlowski
parent e894a5daea
commit 9658dd1fe3
34 changed files with 0 additions and 57 deletions
@@ -68,7 +68,6 @@ interface CssClassState {
*/
@Directive({
selector: '[ngClass]',
standalone: true,
})
export class NgClass implements DoCheck {
private initialClasses = EMPTY_ARRAY;
@@ -167,7 +167,6 @@ export class NgForOfContext<T, U extends NgIterable<T> = NgIterable<T>> {
*/
@Directive({
selector: '[ngFor][ngForOf]',
standalone: true,
})
export class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoCheck {
/**
-1
View File
@@ -156,7 +156,6 @@ import {
*/
@Directive({
selector: '[ngIf]',
standalone: true,
})
export class NgIf<T = unknown> {
private _context: NgIfContext<T> = new NgIfContext<T>();
@@ -213,7 +213,6 @@ export interface ImagePlaceholderConfig {
*
* // ... or a standalone Component
* @Component({
* standalone: true
* imports: [NgOptimizedImage],
* })
* class MyStandaloneComponent {}
@@ -272,7 +271,6 @@ export interface ImagePlaceholderConfig {
* @publicApi
*/
@Directive({
standalone: true,
selector: 'img[ngSrc]',
host: {
'[style.position]': 'fill ? "absolute" : null',
@@ -45,7 +45,6 @@ import {SwitchView} from './ng_switch';
*/
@Directive({
selector: '[ngPlural]',
standalone: true,
})
export class NgPlural {
private _activeView?: SwitchView;
@@ -104,7 +103,6 @@ export class NgPlural {
*/
@Directive({
selector: '[ngPluralCase]',
standalone: true,
})
export class NgPluralCase {
constructor(
@@ -55,7 +55,6 @@ import {
*/
@Directive({
selector: '[ngStyle]',
standalone: true,
})
export class NgStyle implements DoCheck {
private _ngStyle: {[key: string]: string} | null | undefined = null;
@@ -114,7 +114,6 @@ export class SwitchView {
*/
@Directive({
selector: '[ngSwitch]',
standalone: true,
})
export class NgSwitch {
private _defaultViews: SwitchView[] = [];
@@ -200,7 +199,6 @@ export class NgSwitch {
*/
@Directive({
selector: '[ngSwitchCase]',
standalone: true,
})
export class NgSwitchCase implements DoCheck {
private _view: SwitchView;
@@ -247,7 +245,6 @@ export class NgSwitchCase implements DoCheck {
*/
@Directive({
selector: '[ngSwitchDefault]',
standalone: true,
})
export class NgSwitchDefault {
constructor(
@@ -44,7 +44,6 @@ import {
*/
@Directive({
selector: '[ngTemplateOutlet]',
standalone: true,
})
export class NgTemplateOutlet<C = unknown> implements OnChanges {
private _viewRef: EmbeddedViewRef<C> | null = null;
-1
View File
@@ -97,7 +97,6 @@ const _subscribableStrategy = new SubscribableStrategy();
@Pipe({
name: 'async',
pure: false,
standalone: true,
})
export class AsyncPipe implements OnDestroy, PipeTransform {
private _ref: ChangeDetectorRef | null;
@@ -27,7 +27,6 @@ import {invalidPipeArgumentError} from './invalid_pipe_argument_error';
*/
@Pipe({
name: 'lowercase',
standalone: true,
})
export class LowerCasePipe implements PipeTransform {
/**
@@ -76,7 +75,6 @@ const unicodeWordMatch =
*/
@Pipe({
name: 'titlecase',
standalone: true,
})
export class TitleCasePipe implements PipeTransform {
/**
@@ -108,7 +106,6 @@ export class TitleCasePipe implements PipeTransform {
*/
@Pipe({
name: 'uppercase',
standalone: true,
})
export class UpperCasePipe implements PipeTransform {
/**
-1
View File
@@ -218,7 +218,6 @@ export const DATE_PIPE_DEFAULT_OPTIONS = new InjectionToken<DatePipeConfig>(
*/
@Pipe({
name: 'date',
standalone: true,
})
export class DatePipe implements PipeTransform {
constructor(
@@ -30,7 +30,6 @@ const _INTERPOLATION_REGEXP: RegExp = /#/g;
*/
@Pipe({
name: 'i18nPlural',
standalone: true,
})
export class I18nPluralPipe implements PipeTransform {
constructor(private _localization: NgLocalization) {}
@@ -29,7 +29,6 @@ import {invalidPipeArgumentError} from './invalid_pipe_argument_error';
*/
@Pipe({
name: 'i18nSelect',
standalone: true,
})
export class I18nSelectPipe implements PipeTransform {
/**
-1
View File
@@ -26,7 +26,6 @@ import {Pipe, PipeTransform} from '@angular/core';
@Pipe({
name: 'json',
pure: false,
standalone: true,
})
export class JsonPipe implements PipeTransform {
/**
@@ -54,7 +54,6 @@ export interface KeyValue<K, V> {
@Pipe({
name: 'keyvalue',
pure: false,
standalone: true,
})
export class KeyValuePipe implements PipeTransform {
constructor(private readonly differs: KeyValueDiffers) {}
-3
View File
@@ -78,7 +78,6 @@ import {invalidPipeArgumentError} from './invalid_pipe_argument_error';
*/
@Pipe({
name: 'number',
standalone: true,
})
export class DecimalPipe implements PipeTransform {
constructor(@Inject(LOCALE_ID) private _locale: string) {}
@@ -137,7 +136,6 @@ export class DecimalPipe implements PipeTransform {
*/
@Pipe({
name: 'percent',
standalone: true,
})
export class PercentPipe implements PipeTransform {
constructor(@Inject(LOCALE_ID) private _locale: string) {}
@@ -204,7 +202,6 @@ export class PercentPipe implements PipeTransform {
*/
@Pipe({
name: 'currency',
standalone: true,
})
export class CurrencyPipe implements PipeTransform {
constructor(
-1
View File
@@ -48,7 +48,6 @@ import {invalidPipeArgumentError} from './invalid_pipe_argument_error';
@Pipe({
name: 'slice',
pure: false,
standalone: true,
})
export class SlicePipe implements PipeTransform {
/**