refactor(compiler): update compliance tests. (#58238)

`standalone: true` is now the default at runtime.

PR Close #58238
This commit is contained in:
Matthieu Riegler 2024-10-16 22:55:55 -06:00 committed by Alex Rickabaugh
parent a10f7cfbc2
commit bc9ef72fae
226 changed files with 195 additions and 359 deletions

View file

@ -13,9 +13,7 @@ TestDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-
TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "0.0.0-PLACEHOLDER", type: TestDir, isStandalone: true, inputs: { counter: { classPropertyName: "counter", publicName: "counter", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { counter: "counterChange", name: "nameChange" }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{
type: Directive,
args: [{
standalone: true,
}]
args: [{}]
}] });
/****************************************************************************************************
@ -45,7 +43,6 @@ TestComp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "0.0
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestComp, decorators: [{
type: Component,
args: [{
standalone: true,
template: 'Works',
}]
}] });
@ -82,9 +79,7 @@ TestDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-
TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "0.0.0-PLACEHOLDER", type: TestDir, isStandalone: true, inputs: { counter: { classPropertyName: "counter", publicName: "counter", isSignal: true, isRequired: false, transformFunction: null }, modelWithAlias: { classPropertyName: "modelWithAlias", publicName: "alias", isSignal: true, isRequired: false, transformFunction: null }, decoratorInput: { classPropertyName: "decoratorInput", publicName: "decoratorInput", isSignal: false, isRequired: false, transformFunction: null }, decoratorInputWithAlias: { classPropertyName: "decoratorInputWithAlias", publicName: "publicNameDecorator", isSignal: false, isRequired: false, transformFunction: null }, decoratorInputTwoWay: { classPropertyName: "decoratorInputTwoWay", publicName: "decoratorInputTwoWay", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { counter: "counterChange", modelWithAlias: "aliasChange", decoratorOutput: "decoratorOutput", decoratorOutputWithAlias: "aliasDecoratorOutputWithAlias", decoratorInputTwoWayChange: "decoratorInputTwoWayChange" }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{
type: Directive,
args: [{
standalone: true,
}]
args: [{}]
}], propDecorators: { decoratorInput: [{
type: Input
}], decoratorInputWithAlias: [{

View file

@ -13,6 +13,6 @@ TestDir.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
decoratorOutput: "decoratorOutput",
decoratorOutputWithAlias: "aliasDecoratorOutputWithAlias",
decoratorInputTwoWayChange: "decoratorInputTwoWayChange"
},
}
});

View file

@ -1,8 +1,6 @@
import {Directive, EventEmitter, Input, model, Output} from '@angular/core';
@Directive({
standalone: true,
})
@Directive({})
export class TestDir {
counter = model(0);
modelWithAlias = model(false, {alias: 'alias'});

View file

@ -1,7 +1,6 @@
import {Component, model} from '@angular/core';
@Component({
standalone: true,
template: 'Works',
})
export class TestComp {

View file

@ -7,6 +7,6 @@ TestDir.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
outputs: {
counter: "counterChange",
name: "nameChange"
},
}
});

View file

@ -1,7 +1,6 @@
import {Directive, model} from '@angular/core';
@Directive({
standalone: true,
})
export class TestDir {
counter = model(0);

View file

@ -17,9 +17,7 @@ TestDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0-
TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: TestDir, isStandalone: true, outputs: { a: "a", b: "b", c: "cPublic", d: "d", e: "e" }, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{
type: Directive,
args: [{
standalone: true,
}]
args: [{}]
}] });
/****************************************************************************************************
@ -56,7 +54,6 @@ TestComp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestComp, decorators: [{
type: Component,
args: [{
standalone: true,
template: 'Works',
}]
}] });

View file

@ -9,6 +9,6 @@ TestDir.ɵdir = /* @__PURE__ */ $r3$.ɵɵdefineDirective({
clickDecorator1: "clickDecorator1",
clickDecorator2: "clickDecorator2",
_blaDecorator: "decoratorPublicName"
},
}
});

View file

@ -2,7 +2,6 @@ import {Component, EventEmitter, output} from '@angular/core';
import {outputFromObservable} from '@angular/core/rxjs-interop';
@Component({
standalone: true,
template: 'Works',
})
export class TestComp {

View file

@ -6,6 +6,6 @@ TestDir.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
c: "cPublic",
d: "d",
e: "e"
},
}
});

View file

@ -2,7 +2,6 @@ import {Directive, EventEmitter, output} from '@angular/core';
import {outputFromObservable} from '@angular/core/rxjs-interop';
@Directive({
standalone: true,
})
export class TestDir {
a = output();

View file

@ -679,7 +679,6 @@ MainStandalone.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: MainStandalone, decorators: [{
type: Component,
args: [{
standalone: true,
template: 'Hello Angular!',
}]
}] });

View file

@ -5,6 +5,7 @@ const $c2$ = $a0$ => ({ foo: $a0$ });
MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyApp,
selectors: [["ng-component"]],
standalone: false,
decls: 2,
vars: 6,
consts: [[__AttributeMarker.Bindings__, "dir"]],

View file

@ -4,6 +4,7 @@ const $c1$ = () => [0, 1, 2];
MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyApp,
selectors: [["ng-component"]],
standalone: false,
decls: 1,
vars: 4,
consts: [[__AttributeMarker.Bindings__, "prop", "otherProp"]],

View file

@ -4,6 +4,7 @@ const $c1$ = () => ({ a: 1, b: 2 });
MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyApp,
selectors: [["ng-component"]],
standalone: false,
decls: 1,
vars: 4,
consts: [[__AttributeMarker.Bindings__, "prop", "otherProp"]],

View file

@ -498,7 +498,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
type: Component,
args: [{
selector: 'test',
standalone: true,
template: `
<ng-content select="basic">Basic fallback</ng-content>

View file

@ -4,6 +4,7 @@ const $c1$ = ["*", "[spacer]", "*"];
Cmp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: Cmp,
selectors: [["ng-component"]],
standalone: false,
ngContentSelectors: $c1$,
decls: 3,
vars: 0,

View file

@ -2,7 +2,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'test',
standalone: true,
template: `
<ng-content select="basic">Basic fallback</ng-content>

View file

@ -1,6 +1,7 @@
SimpleComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: SimpleComponent,
selectors: [["simple"]],
standalone: false,
ngContentSelectors: $c0$,
decls: 1,
vars: 1,

View file

@ -3,6 +3,7 @@ MyApp.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
selectors: [
["my-app"]
],
standalone: false,
decls: 1,
vars: 1,
consts: [

View file

@ -6,6 +6,7 @@ const $_c1$ = ["[title]"];
MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyApp,
selectors: [["my-app"]],
standalone: false,
decls: 2,
vars: 0,
consts: [["ngProjectAs", "[title],[header]", 5, ["", "title", ""]]],

View file

@ -4,6 +4,7 @@ const $_c1$ = ["[title]"];
MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyApp,
selectors: [["my-app"]],
standalone: false,
decls: 2,
vars: 0,
consts: [["ngProjectAs", "[title]", 5, ["", "title", ""]]],

View file

@ -4,6 +4,7 @@ const _c1 = ["[card-title]", "[card-content]"];
const _c2 = ["*"];
// ...
selectors: [["card"]],
standalone: false,
ngContentSelectors: _c1,
decls: 3,
vars: 0,
@ -17,6 +18,7 @@ template: function Card_Template(rf, ctx) {
}
// ...
selectors: [["card-with-title"]],
standalone: false,
ngContentSelectors: _c2,
decls: 4,
vars: 0,
@ -33,6 +35,7 @@ template: function CardWithTitle_Template(rf, ctx) {
}
// ...
selectors: [["app"]],
standalone: false,
decls: 2,
vars: 0,
template: function App_Template(rf, ctx) {

View file

@ -3,6 +3,7 @@ const $c1$ = [[["span", "title", "tofirst"]], [["span", "title", "tosecond"]]];
ComplexComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: ComplexComponent,
selectors: [["complex"]],
standalone: false,
ngContentSelectors: $c2$,
decls: 4,
vars: 0,

View file

@ -1,6 +1,7 @@
SimpleComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: SimpleComponent,
selectors: [["simple"]],
standalone: false,
ngContentSelectors: $c0$,
decls: 2,
vars: 0,

View file

@ -2,4 +2,4 @@
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MainStandalone, { className: "MainStandalone", filePath: "debug_info.ts", lineNumber: 13 }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MainStandalone, { className: "MainStandalone", filePath: "debug_info.ts", lineNumber: 12 }); })();

View file

@ -2,4 +2,4 @@
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MainStandalone, { className: "MainStandalone", filePath: "debug_info.ts", lineNumber: 13 }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MainStandalone, { className: "MainStandalone", filePath: "debug_info.ts", lineNumber: 12 }); })();

View file

@ -7,7 +7,6 @@ export class Main {
}
@Component({
standalone: true,
template: 'Hello Angular!',
})
export class MainStandalone {

View file

@ -1,5 +1,6 @@
SomeDirective.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
type: SomeDirective,
selectors: [["", "some-directive", ""]],
exportAs: ["someDir", "otherDir"]
exportAs: ["someDir", "otherDir"],
standalone: false
});

View file

@ -2,6 +2,7 @@ LifecycleComp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: LifecycleComp,
selectors: [["lifecycle-comp"]],
inputs: {nameMin: [0, "name", "nameMin"]},
standalone: false,
features: [$r3$.ɵɵNgOnChangesFeature],
decls: 0,
vars: 0,

View file

@ -1,6 +1,7 @@
SimpleLayout.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: SimpleLayout,
selectors: [["simple-layout"]],
standalone: false,
decls: 2,
vars: 2,
consts: [[__AttributeMarker.Bindings__, "name"]],

View file

@ -2,6 +2,7 @@
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyComponent,
selectors: [["my-component"]],
standalone: false,
decls: 3,
vars: 1,
consts: [["user", ""]],

View file

@ -34,6 +34,7 @@ function MyComponent_div_3_span_2_Template(rf, ctx) {
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyComponent,
selectors: [["my-component"]],
standalone: false,
decls: 6,
vars: 1,
consts: [["foo", ""], ["baz", ""], ["bar", ""], [__AttributeMarker.Template__, "if"]],

View file

@ -3,6 +3,7 @@ function MyComponent_ng_template_0_Template(rf, ctx) {}
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyComponent,
selectors: [["my-app"]],
standalone: false,
decls: 1,
vars: 0,
consts: [[__AttributeMarker.Bindings__, "id"]],

View file

@ -1,4 +1,3 @@
AbstractDirective.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
type: AbstractDirective,
standalone: true
type: AbstractDirective
});

View file

@ -5,6 +5,7 @@ const $c2$ = $a0$ => ({ foo: $a0$ });
MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyApp,
selectors: [["ng-component"]],
standalone: false,
decls: 2,
vars: 6,
consts: [[__AttributeMarker.Bindings__, "dir"]],

View file

@ -4,6 +4,7 @@ const $c1$ = $a0$ => ({ foo: $a0$ });
MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyApp,
selectors: [["ng-component"]],
standalone: false,
decls: 2,
vars: 5,
consts: [[__AttributeMarker.Bindings__, "dir"]],

View file

@ -1,5 +1,6 @@
MyOtherPipe.ɵpipe = /*@__PURE__*/ $r3$.ɵɵdefinePipe({
name: "myOtherPipe",
type: MyOtherPipe,
pure: true
pure: true,
standalone: false
});

View file

@ -1,5 +1,6 @@
MyPipe.ɵpipe = /*@__PURE__*/ $r3$.ɵɵdefinePipe({
name: "myPipe",
type: MyPipe,
pure: true
pure: true,
standalone: false
});

View file

@ -2,6 +2,7 @@
MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyApp,
selectors: [["my-app"]],
standalone: false,
decls: 6,
vars: 27,
template: function MyApp_Template(rf, ctx) {

View file

@ -3,6 +3,7 @@ const $c0$ = $a0$ => [$a0$, 1, 2, 3, 4, 5];
MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyApp,
selectors: [["my-app"]],
standalone: false,
decls: 7,
vars: 20,
template: function MyApp_Template(rf, ctx) {

View file

@ -1,5 +1,6 @@
MyPipe.ɵpipe = /*@__PURE__*/ $r3$.ɵɵdefinePipe({
name: "myPipe",
type: MyPipe,
pure: false
pure: false,
standalone: false
});

View file

@ -1,5 +1,6 @@
MyPurePipe.ɵpipe = /*@__PURE__*/ $r3$.ɵɵdefinePipe({
name: "myPurePipe",
type: MyPurePipe,
pure: true
pure: true,
standalone: false
});

View file

@ -12,6 +12,7 @@ ContentQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
$r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDirList = $tmp$);
}
},
standalone: false,
ngContentSelectors: _c0,
decls: 2,
vars: 0,

View file

@ -12,6 +12,7 @@ ContentQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
$r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDirList = $tmp$);
}
},
standalone: false,
ngContentSelectors: _c0,
decls: 2,
vars: 0,

View file

@ -13,6 +13,7 @@ ContentQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
$r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.foo = $tmp$.first);
}
},
standalone: false,
ngContentSelectors: $_c1$,
decls: 2,
vars: 0,

View file

@ -14,6 +14,7 @@ ViewQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
$r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.foo = $tmp$.first);
}
},
standalone: false,
decls: 1,
vars: 0,
consts: [["someDir",""]],

View file

@ -12,6 +12,7 @@ ViewQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
$r3$.ɵɵqueryRefresh($tmp$ = $r3$.ɵɵloadQuery()) && (ctx.someDirs = $tmp$);
}
},
standalone: false,
decls: 1,
vars: 0,
consts: [["someDir",""]],

View file

@ -12,7 +12,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
args: [{
// @ts-ignore
signals: true,
standalone: true,
selector: 'other-cmp',
template: '',
}]
@ -26,7 +25,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
args: [{
// @ts-ignore
signals: true,
standalone: true,
template: '<other-cmp></other-cmp>',
imports: [OtherCmp],
}]

View file

@ -1,7 +1,6 @@
SignalCmp.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
type: SignalCmp,
selectors: [["ng-component"]],
standalone: true,
signals: true,
features: [i0.ɵɵStandaloneFeature],
decls: 1,

View file

@ -3,7 +3,6 @@ import {Component} from '@angular/core';
@Component({
// @ts-ignore
signals: true,
standalone: true,
selector: 'other-cmp',
template: '',
})
@ -13,7 +12,6 @@ export class OtherCmp {
@Component({
// @ts-ignore
signals: true,
standalone: true,
template: '<other-cmp></other-cmp>',
imports: [OtherCmp],
})

View file

@ -1,4 +1,5 @@
SignalDir.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({
type: SignalDir,
standalone: false,
signals: true
});

View file

@ -10,7 +10,6 @@ OtherCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: OtherCmp, decorators: [{
type: Component,
args: [{
standalone: true,
selector: 'other-cmp',
template: '',
}]
@ -22,7 +21,6 @@ StandaloneCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version:
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneCmp, decorators: [{
type: Component,
args: [{
standalone: true,
template: '<other-cmp></other-cmp>',
imports: [OtherCmp],
}]
@ -52,9 +50,7 @@ StandaloneDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
StandaloneDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: StandaloneDir, isStandalone: true, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneDir, decorators: [{
type: Directive,
args: [{
standalone: true,
}]
args: [{}]
}] });
/****************************************************************************************************
@ -79,7 +75,6 @@ StandalonePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandalonePipe, decorators: [{
type: Pipe,
args: [{
standalone: true,
name: 'stpipe',
}]
}] });
@ -141,7 +136,6 @@ IndirectDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: IndirectDir, decorators: [{
type: Directive,
args: [{
standalone: true,
selector: '[indirect]',
}]
}] });
@ -153,7 +147,6 @@ IndirectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0.0
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: IndirectPipe, decorators: [{
type: Pipe,
args: [{
standalone: true,
name: 'indirectpipe',
}]
}] });
@ -176,7 +169,6 @@ DirectDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectDir, decorators: [{
type: Directive,
args: [{
standalone: true,
selector: '[direct]',
}]
}] });
@ -188,7 +180,6 @@ DirectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "0.0.0
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: DirectPipe, decorators: [{
type: Pipe,
args: [{
standalone: true,
name: 'directpipe',
}]
}] });
@ -206,7 +197,6 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestCmp, decorators: [{
type: Component,
args: [{
standalone: true,
selector: 'test-cmp',
template: `
<p>Reference some non-standalone things:<span not-standalone>{{data | nspipe}}</span></p>
@ -276,7 +266,6 @@ RecursiveComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: RecursiveComponent, decorators: [{
type: Component,
args: [{
standalone: true,
selector: 'recursive-cmp',
// Simple recursion. Note: no `imports`.
template: '<recursive-cmp></recursive-cmp>',
@ -304,7 +293,6 @@ StandaloneCmp.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version:
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneCmp, decorators: [{
type: Component,
args: [{
standalone: true,
selector: 'standalone-cmp',
template: '',
}]
@ -315,7 +303,7 @@ StandaloneDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
StandaloneDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.0-PLACEHOLDER", type: StandaloneDir, isStandalone: true, ngImport: i0 });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneDir, decorators: [{
type: Directive,
args: [{ standalone: true }]
args: [{}]
}] });
export class Module {
}
@ -360,7 +348,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
type: Component,
args: [{
selector: 'test',
standalone: true,
imports: [forwardRef(() => StandaloneComponent)],
template: '<other-standalone></other-standalone>',
}]
@ -373,7 +360,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
type: Component,
args: [{
selector: 'other-standalone',
standalone: true,
template: '',
}]
}] });

View file

@ -1,7 +1,6 @@
StandaloneCmp.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
type: StandaloneCmp,
selectors: [["ng-component"]],
standalone: true,
features: [i0.ɵɵStandaloneFeature],
decls: 1,
vars: 0,

View file

@ -1,7 +1,6 @@
StandaloneCmp.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
type: StandaloneCmp,
selectors: [["ng-component"]],
standalone: true,
features: [i0.ɵɵStandaloneFeature],
decls: 1,
vars: 0,

View file

@ -1,7 +1,6 @@
import {Component} from '@angular/core';
@Component({
standalone: true,
selector: 'other-cmp',
template: '',
})
@ -9,7 +8,6 @@ export class OtherCmp {
}
@Component({
standalone: true,
template: '<other-cmp></other-cmp>',
imports: [OtherCmp],
})

View file

@ -1,4 +1,3 @@
StandaloneDir.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({
type: StandaloneDir,
standalone: true
type: StandaloneDir
});

View file

@ -1,7 +1,5 @@
import {Directive} from '@angular/core';
@Directive({
standalone: true,
})
@Directive({})
export class StandaloneDir {
}

View file

@ -3,7 +3,6 @@ TestComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
selectors: [
["test"]
],
standalone: true,
features: [i0.ɵɵStandaloneFeature],
decls: 1,
vars: 0,

View file

@ -2,7 +2,6 @@ import {Component, forwardRef} from '@angular/core';
@Component({
selector: 'test',
standalone: true,
imports: [forwardRef(() => StandaloneComponent)],
template: '<other-standalone></other-standalone>',
})
@ -11,7 +10,6 @@ export class TestComponent {
@Component({
selector: 'other-standalone',
standalone: true,
template: '',
})
export class StandaloneComponent {

View file

@ -23,14 +23,12 @@ export class NotStandaloneStuffModule {
}
@Directive({
standalone: true,
selector: '[indirect]',
})
export class IndirectDir {
}
@Pipe({
standalone: true,
name: 'indirectpipe',
})
export class IndirectPipe {
@ -46,14 +44,12 @@ export class SomeModule {
@Directive({
standalone: true,
selector: '[direct]',
})
export class DirectDir {
}
@Pipe({
standalone: true,
name: 'directpipe',
})
export class DirectPipe {
@ -61,7 +57,6 @@ export class DirectPipe {
}
@Component({
standalone: true,
selector: 'test-cmp',
template: `
<p>Reference some non-standalone things:<span not-standalone>{{data | nspipe}}</span></p>

View file

@ -1,14 +1,13 @@
import {Component, Directive, NgModule} from '@angular/core';
@Component({
standalone: true,
selector: 'standalone-cmp',
template: '',
})
export class StandaloneCmp {
}
@Directive({standalone: true})
@Directive({})
export class StandaloneDir {
}

View file

@ -1,6 +1,5 @@
StandalonePipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({
name: "stpipe",
type: StandalonePipe,
pure: true,
standalone: true
pure: true
});

View file

@ -1,7 +1,6 @@
import {Pipe} from '@angular/core';
@Pipe({
standalone: true,
name: 'stpipe',
})
export class StandalonePipe {

View file

@ -1,7 +1,6 @@
import {Component} from '@angular/core';
@Component({
standalone: true,
selector: 'recursive-cmp',
// Simple recursion. Note: no `imports`.
template: '<recursive-cmp></recursive-cmp>',

View file

@ -2,5 +2,6 @@ ForOfDirective.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
type: ForOfDirective,
selectors: [["", "forOf", ""]],
inputs: {forOf: "forOf"},
standalone: false,
features: [$r3$.ɵɵNgOnChangesFeature]
});

View file

@ -14,6 +14,7 @@ function MyComponent_li_1_Template(rf, ctx) {
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyComponent,
selectors: [["my-component"]],
standalone: false,
decls: 2,
vars: 1,
consts: [[__AttributeMarker.Template__, "for", "forOf"]],

View file

@ -34,6 +34,7 @@ function MyComponent_li_1_Template(rf, ctx) {
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyComponent,
selectors: [["my-component"]],
standalone: false,
decls: 2,
vars: 1,
consts: [[__AttributeMarker.Template__, "for", "forOf"]],

View file

@ -10,6 +10,7 @@ function MyComponent__svg_g_1_Template(rf, ctx) {
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyComponent,
selectors: [["my-component"]],
standalone: false,
decls: 2,
vars: 1,
consts: [[__AttributeMarker.Template__, "for", "forOf"]],

View file

@ -3,6 +3,7 @@ const $e0_ff$ = $v$ => ["Nancy", $v$];
MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyApp,
selectors: [["my-app"]],
standalone: false,
decls: 1,
vars: 3,
consts: [[__AttributeMarker.Bindings__, "names"]],

View file

@ -3,6 +3,7 @@ const $e0_ff$ = ($v0$, $v1$, $v2$, $v3$, $v4$, $v5$, $v6$, $v7$, $v8$) => ["star
MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyApp,
selectors: [["my-app"]],
standalone: false,
decls: 1,
vars: 11,
consts: [[__AttributeMarker.Bindings__, "names"]],

View file

@ -1,4 +1,5 @@
OtherDirective.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
type: OtherDirective,
selectors: [["", __SelectorFlags.NOT__|__SelectorFlags.ELEMENT__, "span", "title", "", __SelectorFlags.NOT__|__SelectorFlags.CLASS__, "baz"]]
selectors: [["", __SelectorFlags.NOT__|__SelectorFlags.ELEMENT__, "span", "title", "", __SelectorFlags.NOT__|__SelectorFlags.CLASS__, "baz"]],
standalone: false
});

View file

@ -1,4 +1,5 @@
SomeDirective.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
type: SomeDirective,
selectors: [["div", "some-directive", "", __SelectorFlags.CLASS__, "foo", __SelectorFlags.NOT__|__SelectorFlags.ATTRIBUTE__, "title", "", __SelectorFlags.NOT__|__SelectorFlags.CLASS__, "baz"]]
selectors: [["div", "some-directive", "", __SelectorFlags.CLASS__, "foo", __SelectorFlags.NOT__|__SelectorFlags.ATTRIBUTE__, "title", "", __SelectorFlags.NOT__|__SelectorFlags.CLASS__, "baz"]],
standalone: false
});

View file

@ -1,6 +1,7 @@
ChildComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: ChildComponent,
selectors: [["child"]],
standalone: false,
decls: 1,
vars: 0,
template: function ChildComponent_Template(rf, ctx) {

View file

@ -1,6 +1,7 @@
ChildComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: ChildComponent,
selectors: [["child"]],
standalone: false,
decls: 1,
vars: 0,
template: function ChildComponent_Template(rf, ctx) {

View file

@ -1,6 +1,7 @@
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyComponent,
selectors: [["my-component"]],
standalone: false,
decls: 2,
vars: 0,
consts: [["some-directive", ""]],

View file

@ -1,6 +1,7 @@
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyComponent,
selectors: [["my-component"]],
standalone: false,
decls: 2,
vars: 0,
consts: [["some-directive", ""]],

View file

@ -1,4 +1,5 @@
SomeDirective.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
type: SomeDirective,
selectors: [["", "some-directive", ""]]
selectors: [["", "some-directive", ""]],
standalone: false
});

View file

@ -1,4 +1,5 @@
SomeDirective.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
type: SomeDirective,
selectors: [["", "some-directive", ""]]
selectors: [["", "some-directive", ""]],
standalone: false
});

View file

@ -6,6 +6,7 @@ const $e0_ff_2$ = ($v1$, $v2$) => ({animation: $v1$, actions: $v2$});
MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyApp,
selectors: [["my-app"]],
standalone: false,
decls: 1,
vars: 10,
consts: [[__AttributeMarker.Bindings__, "config"]],

View file

@ -1,6 +1,7 @@
EmptyOutletComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: EmptyOutletComponent,
selectors: [["ng-component"]],
standalone: false,
decls: 1,
vars: 0,
template: function EmptyOutletComponent_Template(rf, ctx) {

View file

@ -3,6 +3,7 @@ const $e0_ff$ = $v$ => ({"duration": 500, animation: $v$});
MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyApp,
selectors: [["my-app"]],
standalone: false,
decls: 1,
vars: 3,
consts: [[__AttributeMarker.Bindings__, "config"]],

View file

@ -1,4 +1,5 @@
IfDirective.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
type: IfDirective,
selectors: [["", "if", ""]]
selectors: [["", "if", ""]],
standalone: false
});

View file

@ -15,6 +15,7 @@ function MyComponent_li_2_Template(rf, ctx) {
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyComponent,
selectors: [["my-component"]],
standalone: false,
decls: 3,
vars: 0,
consts: [["foo", ""], [__AttributeMarker.Template__, "if"]],

View file

@ -1,6 +1,7 @@
MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
type: MyComponent,
selectors: [["my-component"]],
standalone: false,
decls: 0,
vars: 0,
template: function MyComponent_Template(rf, ctx) {},

View file

@ -764,7 +764,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
type: Component,
args: [{
selector: 'my-component',
standalone: true,
template: `
<svg:use [attr.xlink:href]="value"/>
<svg:use id="foo" xlink:href="/foo" name="foo"/>

View file

@ -1,4 +1,5 @@
MyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({type:MyComponent,selectors:[["my-component"]],
standalone: false,
decls: 1,
vars: 4,
template: function MyComponent_Template(rf,ctx){

View file

@ -2,7 +2,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'my-component',
standalone: true,
template: `
<svg:use [attr.xlink:href]="value"/>
<svg:use id="foo" xlink:href="/foo" name="foo"/>

View file

@ -11,7 +11,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
type: Component,
args: [{
selector: 'some-elem',
standalone: true,
template: ``,
inputs: ['attr1', 'prop1', 'attrInterp1', 'propInterp1'],
}]
@ -37,7 +36,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
type: Component,
args: [{
selector: 'my-cmp',
standalone: true,
imports: [SomeCmp],
host: {
'literal1': 'foo',

View file

@ -403,7 +403,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
type: Component,
args: [{
selector: 'my-component',
standalone: true,
template: `
<div aria-label="hello" aria-label="hi"></div>
<div style="width: 0" style="height: 0">

View file

@ -2,7 +2,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'my-component',
standalone: true,
template: `
<div aria-label="hello" aria-label="hi"></div>
<div style="width: 0" style="height: 0">

View file

@ -103,7 +103,6 @@ HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, decorators: [{
type: Directive,
args: [{
standalone: true,
selector: '[hostBindingDir]',
host: {
'[class.a]': 'value ?? "class-a"',
@ -137,7 +136,6 @@ HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, decorators: [{
type: Directive,
args: [{
standalone: true,
selector: '[hostBindingDir]',
host: {
'[style.fontSize]': 'value ?? "15px"',
@ -849,7 +847,6 @@ HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, decorators: [{
type: Directive,
args: [{
standalone: true,
selector: '[hostBindingDir]',
host: {
'[innerHtml]': 'evil',
@ -870,7 +867,6 @@ HostBindingDir2.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", versio
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir2, decorators: [{
type: Directive,
args: [{
standalone: true,
selector: 'a',
host: {
'[innerHtml]': 'evil',
@ -909,7 +905,6 @@ HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, decorators: [{
type: Directive,
args: [{
standalone: true,
selector: '[hostBindingDir]',
host: { 'src': 'trusted', 'srcdoc': 'trusted' },
}]
@ -921,7 +916,6 @@ HostBindingDir2.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", versio
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir2, decorators: [{
type: Directive,
args: [{
standalone: true,
selector: 'img',
host: { 'src': 'trusted', 'srcdoc': 'trusted' },
}]
@ -956,7 +950,6 @@ HostBindingDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: HostBindingDir, decorators: [{
type: Directive,
args: [{
standalone: true,
selector: '[hostBindingDir]',
host: { '[style.background-image]': 'imgUrl', '[style]': 'styles' },
}]
@ -989,7 +982,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
type: Component,
args: [{
selector: 'my-cmp',
standalone: true,
host: {
'(document:dragover)': 'foo($event)',
},
@ -1026,7 +1018,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
type: Component,
args: [{
selector: 'my-cmp',
standalone: true,
host: {
'foo': BAR_CONST,
},
@ -1058,7 +1049,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
type: Component,
args: [{
selector: 'my-comp',
standalone: true,
template: '',
host: {
['class.is-compact']: 'false',
@ -1075,7 +1065,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
type: Component,
args: [{
selector: 'my-comp-2',
standalone: true,
template: '',
host: {
'[class.is-compact]': 'false',

View file

@ -2,7 +2,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'my-comp',
standalone: true,
template: '',
host: {
['class.is-compact']: 'false',
@ -15,7 +14,6 @@ export class MyComponent {
@Component({
selector: 'my-comp-2',
standalone: true,
template: '',
host: {
'[class.is-compact]': 'false',

View file

@ -7,5 +7,6 @@ HostAttributeDir.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
if (rf & 2) {
$r3$.ɵɵattribute("required", ctx.required);
}
}
},
standalone: false
});

View file

@ -2,5 +2,6 @@
HostAttributeDir.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
type: HostAttributeDir,
selectors: [["", "hostAttributeDir", ""]],
hostAttrs: ["aria-label", "label"]
hostAttrs: ["aria-label", "label"],
standalone: false
});

View file

@ -7,5 +7,7 @@ HostBindingDir.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
if (rf & 2) {
$r3$.ɵɵhostProperty("id", ctx.dirId);
}
}
});
},
standalone: false
}
);

View file

@ -7,5 +7,6 @@ HostBindingDir.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
if (rf & 2) {
$r3$.ɵɵclassProp("a", true)("b", false)("c", ctx.true)("d", ctx.false)("e", ctx.other);
}
}
},
standalone: false
});

View file

@ -7,5 +7,6 @@ HostBindingDir.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
if (rf & 2) {
$r3$.ɵɵclassProp("a", ctx["is-a"])("b", ctx["is-\"b\""])("c", ctx["\"is-c\""]);
}
}
},
standalone: false
});

View file

@ -10,6 +10,7 @@ HostBindingComp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
$r3$.ɵɵhostProperty("id", $r3$.ɵɵpureFunction1(1, $ff$, ctx.id));
}
},
standalone: false,
decls: 0,
vars: 0,
template: function HostBindingComp_Template(rf, ctx) {},

View file

@ -8,5 +8,6 @@ HostBindingDir.ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({
let $tmp0$;
$r3$.ɵɵhostProperty("id", ($tmp0$ = ctx.getData()) == null ? null : $tmp0$.id);
}
}
},
standalone: false
});

Some files were not shown because too many files have changed in this diff Show more