mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
build: update to TypeScript 5.5 stable (#56358)
Updates the repo to the stable release of TypeScript 5.5. PR Close #56358
This commit is contained in:
parent
362e3c74a0
commit
ccc8c80cd0
53 changed files with 377 additions and 383 deletions
|
|
@ -18,7 +18,7 @@ export class JitCompilerFactory implements CompilerFactory {
|
|||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export const platformBrowserDynamic: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
||||
export const platformBrowserDynamic: (extraProviders?: StaticProvider[]) => PlatformRef;
|
||||
|
||||
// @public (undocumented)
|
||||
export const VERSION: Version;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export class BrowserDynamicTestingModule {
|
|||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export const platformBrowserDynamicTesting: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
||||
export const platformBrowserDynamicTesting: (extraProviders?: StaticProvider[]) => PlatformRef;
|
||||
|
||||
// (No @packageDocumentation comment for this package)
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export class BrowserTestingModule {
|
|||
}
|
||||
|
||||
// @public
|
||||
export const platformBrowserTesting: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
||||
export const platformBrowserTesting: (extraProviders?: StaticProvider[]) => PlatformRef;
|
||||
|
||||
// (No @packageDocumentation comment for this package)
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import { PlatformRef } from '@angular/core';
|
|||
import { StaticProvider } from '@angular/core';
|
||||
|
||||
// @public
|
||||
export const platformServerTesting: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
||||
export const platformServerTesting: (extraProviders?: StaticProvider[]) => PlatformRef;
|
||||
|
||||
// @public
|
||||
export class ServerTestingModule {
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@
|
|||
"@angular/upgrade": "file:../../dist/packages-dist/upgrade",
|
||||
"@types/jasmine": "file:../../node_modules/@types/jasmine",
|
||||
"rxjs": "file:../../node_modules/rxjs",
|
||||
"typescript": "5.5.0-beta",
|
||||
"zone.js": "file:../../dist/zone.js-dist/archive/zone.js.tgz"
|
||||
"typescript": "5.5.2",
|
||||
"zone.js": "0.14.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "tsc"
|
||||
|
|
|
|||
|
|
@ -11,19 +11,19 @@
|
|||
"@jridgewell/trace-mapping" "^0.3.24"
|
||||
|
||||
"@angular/animations@file:../../dist/packages-dist/animations":
|
||||
version "18.1.0-next.1"
|
||||
version "18.1.0-next.2"
|
||||
dependencies:
|
||||
tslib "^2.3.0"
|
||||
|
||||
"@angular/common@file:../../dist/packages-dist/common":
|
||||
version "18.1.0-next.1"
|
||||
version "18.1.0-next.2"
|
||||
dependencies:
|
||||
tslib "^2.3.0"
|
||||
|
||||
"@angular/compiler-cli@file:../../dist/packages-dist/compiler-cli":
|
||||
version "18.1.0-next.1"
|
||||
version "18.1.0-next.2"
|
||||
dependencies:
|
||||
"@babel/core" "7.24.4"
|
||||
"@babel/core" "7.24.7"
|
||||
"@jridgewell/sourcemap-codec" "^1.4.14"
|
||||
chokidar "^3.0.0"
|
||||
convert-source-map "^1.5.1"
|
||||
|
|
@ -33,65 +33,65 @@
|
|||
yargs "^17.2.1"
|
||||
|
||||
"@angular/compiler@file:../../dist/packages-dist/compiler":
|
||||
version "18.1.0-next.1"
|
||||
version "18.1.0-next.2"
|
||||
dependencies:
|
||||
tslib "^2.3.0"
|
||||
|
||||
"@angular/core@file:../../dist/packages-dist/core":
|
||||
version "18.1.0-next.1"
|
||||
version "18.1.0-next.2"
|
||||
dependencies:
|
||||
tslib "^2.3.0"
|
||||
|
||||
"@angular/elements@file:../../dist/packages-dist/elements":
|
||||
version "18.1.0-next.1"
|
||||
version "18.1.0-next.2"
|
||||
dependencies:
|
||||
tslib "^2.3.0"
|
||||
|
||||
"@angular/forms@file:../../dist/packages-dist/forms":
|
||||
version "18.1.0-next.1"
|
||||
version "18.1.0-next.2"
|
||||
dependencies:
|
||||
tslib "^2.3.0"
|
||||
|
||||
"@angular/localize@file:../../dist/packages-dist/localize":
|
||||
version "18.1.0-next.1"
|
||||
version "18.1.0-next.2"
|
||||
dependencies:
|
||||
"@babel/core" "7.24.4"
|
||||
"@babel/core" "7.24.7"
|
||||
"@types/babel__core" "7.20.5"
|
||||
fast-glob "3.3.2"
|
||||
yargs "^17.2.1"
|
||||
|
||||
"@angular/platform-browser-dynamic@file:../../dist/packages-dist/platform-browser-dynamic":
|
||||
version "18.1.0-next.1"
|
||||
version "18.1.0-next.2"
|
||||
dependencies:
|
||||
tslib "^2.3.0"
|
||||
|
||||
"@angular/platform-browser@file:../../dist/packages-dist/platform-browser":
|
||||
version "18.1.0-next.1"
|
||||
version "18.1.0-next.2"
|
||||
dependencies:
|
||||
tslib "^2.3.0"
|
||||
|
||||
"@angular/platform-server@file:../../dist/packages-dist/platform-server":
|
||||
version "18.1.0-next.1"
|
||||
version "18.1.0-next.2"
|
||||
dependencies:
|
||||
tslib "^2.3.0"
|
||||
xhr2 "^0.2.0"
|
||||
|
||||
"@angular/router@file:../../dist/packages-dist/router":
|
||||
version "18.1.0-next.1"
|
||||
version "18.1.0-next.2"
|
||||
dependencies:
|
||||
tslib "^2.3.0"
|
||||
|
||||
"@angular/service-worker@file:../../dist/packages-dist/service-worker":
|
||||
version "18.1.0-next.1"
|
||||
version "18.1.0-next.2"
|
||||
dependencies:
|
||||
tslib "^2.3.0"
|
||||
|
||||
"@angular/upgrade@file:../../dist/packages-dist/upgrade":
|
||||
version "18.1.0-next.1"
|
||||
version "18.1.0-next.2"
|
||||
dependencies:
|
||||
tslib "^2.3.0"
|
||||
|
||||
"@babel/code-frame@^7.24.2", "@babel/code-frame@^7.24.7":
|
||||
"@babel/code-frame@^7.24.7":
|
||||
version "7.24.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.7.tgz#882fd9e09e8ee324e496bd040401c6f046ef4465"
|
||||
integrity sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==
|
||||
|
|
@ -104,28 +104,28 @@
|
|||
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.7.tgz#d23bbea508c3883ba8251fb4164982c36ea577ed"
|
||||
integrity sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw==
|
||||
|
||||
"@babel/core@7.24.4":
|
||||
version "7.24.4"
|
||||
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.4.tgz#1f758428e88e0d8c563874741bc4ffc4f71a4717"
|
||||
integrity sha512-MBVlMXP+kkl5394RBLSxxk/iLTeVGuXTV3cIDXavPpMMqnSnt6apKgan/U8O3USWZCWZT/TbgfEpKa4uMgN4Dg==
|
||||
"@babel/core@7.24.7":
|
||||
version "7.24.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.7.tgz#b676450141e0b52a3d43bc91da86aa608f950ac4"
|
||||
integrity sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g==
|
||||
dependencies:
|
||||
"@ampproject/remapping" "^2.2.0"
|
||||
"@babel/code-frame" "^7.24.2"
|
||||
"@babel/generator" "^7.24.4"
|
||||
"@babel/helper-compilation-targets" "^7.23.6"
|
||||
"@babel/helper-module-transforms" "^7.23.3"
|
||||
"@babel/helpers" "^7.24.4"
|
||||
"@babel/parser" "^7.24.4"
|
||||
"@babel/template" "^7.24.0"
|
||||
"@babel/traverse" "^7.24.1"
|
||||
"@babel/types" "^7.24.0"
|
||||
"@babel/code-frame" "^7.24.7"
|
||||
"@babel/generator" "^7.24.7"
|
||||
"@babel/helper-compilation-targets" "^7.24.7"
|
||||
"@babel/helper-module-transforms" "^7.24.7"
|
||||
"@babel/helpers" "^7.24.7"
|
||||
"@babel/parser" "^7.24.7"
|
||||
"@babel/template" "^7.24.7"
|
||||
"@babel/traverse" "^7.24.7"
|
||||
"@babel/types" "^7.24.7"
|
||||
convert-source-map "^2.0.0"
|
||||
debug "^4.1.0"
|
||||
gensync "^1.0.0-beta.2"
|
||||
json5 "^2.2.3"
|
||||
semver "^6.3.1"
|
||||
|
||||
"@babel/generator@^7.24.4", "@babel/generator@^7.24.7":
|
||||
"@babel/generator@^7.24.7":
|
||||
version "7.24.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.7.tgz#1654d01de20ad66b4b4d99c135471bc654c55e6d"
|
||||
integrity sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA==
|
||||
|
|
@ -135,7 +135,7 @@
|
|||
"@jridgewell/trace-mapping" "^0.3.25"
|
||||
jsesc "^2.5.1"
|
||||
|
||||
"@babel/helper-compilation-targets@^7.23.6":
|
||||
"@babel/helper-compilation-targets@^7.24.7":
|
||||
version "7.24.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.7.tgz#4eb6c4a80d6ffeac25ab8cd9a21b5dfa48d503a9"
|
||||
integrity sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg==
|
||||
|
|
@ -176,7 +176,7 @@
|
|||
"@babel/traverse" "^7.24.7"
|
||||
"@babel/types" "^7.24.7"
|
||||
|
||||
"@babel/helper-module-transforms@^7.23.3":
|
||||
"@babel/helper-module-transforms@^7.24.7":
|
||||
version "7.24.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.7.tgz#31b6c9a2930679498db65b685b1698bfd6c7daf8"
|
||||
integrity sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ==
|
||||
|
|
@ -217,7 +217,7 @@
|
|||
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.7.tgz#24c3bb77c7a425d1742eec8fb433b5a1b38e62f6"
|
||||
integrity sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw==
|
||||
|
||||
"@babel/helpers@^7.24.4":
|
||||
"@babel/helpers@^7.24.7":
|
||||
version "7.24.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.7.tgz#aa2ccda29f62185acb5d42fb4a3a1b1082107416"
|
||||
integrity sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg==
|
||||
|
|
@ -235,12 +235,12 @@
|
|||
js-tokens "^4.0.0"
|
||||
picocolors "^1.0.0"
|
||||
|
||||
"@babel/parser@^7.1.0", "@babel/parser@^7.20.7", "@babel/parser@^7.24.4", "@babel/parser@^7.24.7":
|
||||
"@babel/parser@^7.1.0", "@babel/parser@^7.20.7", "@babel/parser@^7.24.7":
|
||||
version "7.24.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.7.tgz#9a5226f92f0c5c8ead550b750f5608e766c8ce85"
|
||||
integrity sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==
|
||||
|
||||
"@babel/template@^7.24.0", "@babel/template@^7.24.7":
|
||||
"@babel/template@^7.24.7":
|
||||
version "7.24.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.7.tgz#02efcee317d0609d2c07117cb70ef8fb17ab7315"
|
||||
integrity sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig==
|
||||
|
|
@ -249,7 +249,7 @@
|
|||
"@babel/parser" "^7.24.7"
|
||||
"@babel/types" "^7.24.7"
|
||||
|
||||
"@babel/traverse@^7.24.1", "@babel/traverse@^7.24.7":
|
||||
"@babel/traverse@^7.24.7":
|
||||
version "7.24.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.7.tgz#de2b900163fa741721ba382163fe46a936c40cf5"
|
||||
integrity sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA==
|
||||
|
|
@ -265,7 +265,7 @@
|
|||
debug "^4.3.1"
|
||||
globals "^11.1.0"
|
||||
|
||||
"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.0", "@babel/types@^7.24.7":
|
||||
"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7":
|
||||
version "7.24.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.7.tgz#6027fe12bc1aa724cd32ab113fb7f1988f1f66f2"
|
||||
integrity sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==
|
||||
|
|
@ -746,10 +746,10 @@ tslib@^2.1.0, tslib@^2.3.0:
|
|||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.3.tgz#0438f810ad7a9edcde7a241c3d80db693c8cbfe0"
|
||||
integrity sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==
|
||||
|
||||
typescript@5.5.0-beta:
|
||||
version "5.5.0-beta"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.0-beta.tgz#ae6a2e3aa277f74478f1743e8771676cddfcdbec"
|
||||
integrity sha512-FRg3e/aQg3olEG3ff8YjHOERsO4IM0m4qGrsE4UMvILaq4TdDZ6gQX4+2Rq9SjTpfSe/ebwiHcsjm/7FfWWQ6Q==
|
||||
typescript@5.5.2:
|
||||
version "5.5.2"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.2.tgz#c26f023cb0054e657ce04f72583ea2d85f8d0507"
|
||||
integrity sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==
|
||||
|
||||
update-browserslist-db@^1.0.16:
|
||||
version "1.0.16"
|
||||
|
|
@ -801,8 +801,9 @@ yargs@^17.2.1:
|
|||
y18n "^5.0.5"
|
||||
yargs-parser "^21.1.1"
|
||||
|
||||
"zone.js@file:../../dist/zone.js-dist/archive/zone.js.tgz":
|
||||
version "0.13.0"
|
||||
resolved "file:../../dist/zone.js-dist/archive/zone.js.tgz#5cce033086dceb2d71222afdb4d901b217852fa8"
|
||||
zone.js@0.14.0:
|
||||
version "0.14.0"
|
||||
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.14.0.tgz#ddab2133e8a88be4b225fc2a414e8357f9902a68"
|
||||
integrity sha512-Sz0G0TjMuyApIcuTJeK742+xLLKEPjYtkdBEazBlYePHkICVp9DPKqI/4dJt3LCtQBd52sCxz23uAFJ2OJa6Ow==
|
||||
dependencies:
|
||||
tslib "^2.3.0"
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@
|
|||
"tslib": "^2.3.0",
|
||||
"tslint": "6.1.3",
|
||||
"tsx": "^4.7.2",
|
||||
"typescript": "5.5.0-beta",
|
||||
"typescript": "5.5.2",
|
||||
"webtreemap": "^2.0.1",
|
||||
"ws": "^8.15.0",
|
||||
"xhr2": "0.2.1",
|
||||
|
|
|
|||
|
|
@ -22,16 +22,7 @@ export class NgtscCompilerHost implements ts.CompilerHost {
|
|||
getSourceFile(fileName: string, languageVersion: ts.ScriptTarget): ts.SourceFile | undefined {
|
||||
const text = this.readFile(fileName);
|
||||
return text !== undefined
|
||||
? ts.createSourceFile(
|
||||
fileName,
|
||||
text,
|
||||
{
|
||||
// Not passing the implied Node format appears not break program reuse in TS 5.5.
|
||||
impliedNodeFormat: undefined,
|
||||
languageVersion,
|
||||
},
|
||||
true,
|
||||
)
|
||||
? ts.createSourceFile(fileName, text, languageVersion, true)
|
||||
: undefined;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -88,10 +88,6 @@ export class NgtscProgram implements api.Program {
|
|||
|
||||
this.host.postProgramCreationCleanup();
|
||||
|
||||
// Shim tagging has served its purpose, and tags can now be removed from all `ts.SourceFile`s in
|
||||
// the program.
|
||||
untagAllTsFiles(this.tsProgram);
|
||||
|
||||
const programDriver = new TsCreateProgramDriver(
|
||||
this.tsProgram,
|
||||
this.host,
|
||||
|
|
|
|||
|
|
@ -235,16 +235,7 @@ export class TsCreateProgramDriver implements ProgramDriver {
|
|||
}
|
||||
|
||||
for (const [filePath, {newText, originalFile}] of contents.entries()) {
|
||||
const sf = ts.createSourceFile(
|
||||
filePath,
|
||||
newText,
|
||||
{
|
||||
// Not passing the implied Node format appears not break program reuse in TS 5.5.
|
||||
impliedNodeFormat: undefined,
|
||||
languageVersion: ts.ScriptTarget.Latest,
|
||||
},
|
||||
true,
|
||||
);
|
||||
const sf = ts.createSourceFile(filePath, newText, ts.ScriptTarget.Latest, true);
|
||||
|
||||
if (originalFile !== null) {
|
||||
(sf as MaybeSourceFileWithOriginalFile)[NgOriginalFile] = originalFile;
|
||||
|
|
@ -272,9 +263,9 @@ export class TsCreateProgramDriver implements ProgramDriver {
|
|||
});
|
||||
host.postProgramCreationCleanup();
|
||||
|
||||
// And untag them afterwards. We explicitly untag both programs here, because the oldProgram
|
||||
// may still be used for emit and needs to not contain tags.
|
||||
untagAllTsFiles(this.program);
|
||||
// Only untag the old program. The new program needs to keep the tagged files, because as of
|
||||
// TS 5.5 not having the files tagged while producing diagnostics can lead to errors. See:
|
||||
// https://github.com/microsoft/TypeScript/pull/58398
|
||||
untagAllTsFiles(oldProgram);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -121,7 +121,6 @@ export class NgTscPlugin implements TscPlugin {
|
|||
throw new Error('Lifecycle error: setupCompilation() before wrapHost().');
|
||||
}
|
||||
this.host.postProgramCreationCleanup();
|
||||
untagAllTsFiles(program);
|
||||
const programDriver = new TsCreateProgramDriver(
|
||||
program,
|
||||
this.host,
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ ts_library(
|
|||
"//packages/compiler-cli/src/ngtsc/program_driver",
|
||||
"//packages/compiler-cli/src/ngtsc/reflection",
|
||||
"//packages/compiler-cli/src/ngtsc/scope",
|
||||
"//packages/compiler-cli/src/ngtsc/shims",
|
||||
"//packages/compiler-cli/src/ngtsc/testing",
|
||||
"//packages/compiler-cli/src/ngtsc/typecheck",
|
||||
"//packages/compiler-cli/src/ngtsc/typecheck/api",
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ import {OutOfBandDiagnosticRecorder} from '../src/oob';
|
|||
import {TypeCheckShimGenerator} from '../src/shim';
|
||||
import {TcbGenericContextBehavior} from '../src/type_check_block';
|
||||
import {TypeCheckFile} from '../src/type_check_file';
|
||||
import {sfExtensionData} from '../../shims';
|
||||
|
||||
export function typescriptLibDts(): TestFile {
|
||||
return {
|
||||
|
|
@ -502,6 +503,7 @@ export function setup(
|
|||
} {
|
||||
const files = [typescriptLibDts(), ...angularCoreDtsFiles(), angularAnimationsDts()];
|
||||
const fakeMetadataRegistry = new Map();
|
||||
const shims = new Map<AbsoluteFsPath, AbsoluteFsPath>();
|
||||
|
||||
for (const target of targets) {
|
||||
let contents: string;
|
||||
|
|
@ -520,8 +522,10 @@ export function setup(
|
|||
});
|
||||
|
||||
if (!target.fileName.endsWith('.d.ts')) {
|
||||
const shimName = TypeCheckShimGenerator.shimFor(target.fileName);
|
||||
shims.set(target.fileName, shimName);
|
||||
files.push({
|
||||
name: TypeCheckShimGenerator.shimFor(target.fileName),
|
||||
name: shimName,
|
||||
contents: 'export const MODULE = true;',
|
||||
});
|
||||
}
|
||||
|
|
@ -576,6 +580,15 @@ export function setup(
|
|||
const sf = getSourceFileOrError(program, target.fileName);
|
||||
const scope = makeScope(program, sf, target.declarations ?? []);
|
||||
|
||||
if (shims.has(target.fileName)) {
|
||||
const shimFileName = shims.get(target.fileName)!;
|
||||
const shimSf = getSourceFileOrError(program, shimFileName);
|
||||
sfExtensionData(shimSf).fileShim = {
|
||||
extension: 'ngtypecheck',
|
||||
generatedFrom: target.fileName,
|
||||
};
|
||||
}
|
||||
|
||||
for (const className of Object.keys(target.templates)) {
|
||||
const classDecl = getClass(sf, className);
|
||||
scopeMap.set(classDecl, scope);
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "0.0.
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
standalone: true,
|
||||
template: 'Works'
|
||||
template: 'Works',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "0.0.
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}], propDecorators: { decoratorInput: [{
|
||||
type: Input
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -57,7 +57,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
standalone: true,
|
||||
template: 'Works'
|
||||
template: 'Works',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -98,7 +98,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0.
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}], propDecorators: { clickDecorator1: [{
|
||||
type: Output
|
||||
|
|
|
|||
|
|
@ -441,7 +441,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
template: '',
|
||||
providers: [{ provide: token, useExisting: Comp }]
|
||||
providers: [{ provide: token, useExisting: Comp }],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -587,7 +587,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
template: `
|
||||
<lib-dir></lib-dir>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class TestModule {
|
||||
|
|
@ -599,7 +599,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: NgModule,
|
||||
args: [{
|
||||
declarations: [TestComponent],
|
||||
imports: [LibModule]
|
||||
imports: [LibModule],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -630,7 +630,7 @@ Main.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-P
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Main, decorators: [{
|
||||
type: Component,
|
||||
args: [{
|
||||
template: 'Hello Angular!'
|
||||
template: 'Hello Angular!',
|
||||
}]
|
||||
}] });
|
||||
export class MainStandalone {
|
||||
|
|
@ -641,7 +641,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
standalone: true,
|
||||
template: 'Hello Angular!'
|
||||
template: 'Hello Angular!',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<ng-content></ng-content>
|
||||
<ng-content select="[spacer]"></ng-content>
|
||||
<ng-content></ng-content>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
class Module {
|
||||
|
|
@ -136,7 +136,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<ng-template>
|
||||
'*' selector: <ng-content></ng-content>
|
||||
</ng-template>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
class Module {
|
||||
|
|
@ -190,7 +190,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
'*' selector in a template: <ng-content></ng-content>
|
||||
</ng-template>
|
||||
<ng-content select="[id=toMainAfter]"></ng-content>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
class Module {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@
|
|||
type: Component,
|
||||
args: [{
|
||||
template: '',
|
||||
providers: [{provide: token, useExisting: Comp}]
|
||||
providers: [{provide: token, useExisting: Comp}],
|
||||
}]
|
||||
}], null, null); })();
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Pipe,
|
||||
args: [{
|
||||
name: 'myPurePipe',
|
||||
pure: true
|
||||
pure: true,
|
||||
}]
|
||||
}] });
|
||||
export class MyApp {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version:
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
selector: '[someDir]'
|
||||
selector: '[someDir]',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -127,7 +127,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version:
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
selector: '[someDir]'
|
||||
selector: '[someDir]',
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -232,7 +232,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version:
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
selector: '[someDir]'
|
||||
selector: '[someDir]',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -313,7 +313,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version:
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
selector: '[someDir]'
|
||||
selector: '[someDir]',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -404,7 +404,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version:
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
selector: '[someDir]'
|
||||
selector: '[someDir]',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -548,7 +548,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version:
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
selector: '[someDir]'
|
||||
selector: '[someDir]',
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -653,7 +653,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version:
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
selector: '[someDir]'
|
||||
selector: '[someDir]',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -757,7 +757,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version:
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
selector: '[someDir]'
|
||||
selector: '[someDir]',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -848,7 +848,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version:
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
selector: '[someDir]'
|
||||
selector: '[someDir]',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
signals: true,
|
||||
standalone: true,
|
||||
selector: 'other-cmp',
|
||||
template: ''
|
||||
template: '',
|
||||
}]
|
||||
}] });
|
||||
export class SignalCmp {
|
||||
|
|
@ -28,7 +28,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
signals: true,
|
||||
standalone: true,
|
||||
template: '<other-cmp></other-cmp>',
|
||||
imports: [OtherCmp]
|
||||
imports: [OtherCmp],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -58,7 +58,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Directive,
|
||||
args: [{
|
||||
// @ts-ignore
|
||||
signals: true
|
||||
signals: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
standalone: true,
|
||||
selector: 'other-cmp',
|
||||
template: ''
|
||||
template: '',
|
||||
}]
|
||||
}] });
|
||||
export class StandaloneCmp {
|
||||
|
|
@ -24,7 +24,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
standalone: true,
|
||||
template: '<other-cmp></other-cmp>',
|
||||
imports: [OtherCmp]
|
||||
imports: [OtherCmp],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ StandaloneDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version:
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneDir, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Pipe,
|
||||
args: [{
|
||||
standalone: true,
|
||||
name: 'stpipe'
|
||||
name: 'stpipe',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -125,7 +125,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: NgModule,
|
||||
args: [{
|
||||
declarations: [NotStandaloneDir, NotStandalonePipe],
|
||||
exports: [NotStandaloneDir, NotStandalonePipe]
|
||||
exports: [NotStandaloneDir, NotStandalonePipe],
|
||||
}]
|
||||
}] });
|
||||
export class IndirectDir {
|
||||
|
|
@ -136,7 +136,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Directive,
|
||||
args: [{
|
||||
standalone: true,
|
||||
selector: '[indirect]'
|
||||
selector: '[indirect]',
|
||||
}]
|
||||
}] });
|
||||
export class IndirectPipe {
|
||||
|
|
@ -148,7 +148,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Pipe,
|
||||
args: [{
|
||||
standalone: true,
|
||||
name: 'indirectpipe'
|
||||
name: 'indirectpipe',
|
||||
}]
|
||||
}] });
|
||||
export class SomeModule {
|
||||
|
|
@ -160,7 +160,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: NgModule,
|
||||
args: [{
|
||||
imports: [IndirectDir, IndirectPipe],
|
||||
exports: [NotStandaloneStuffModule, IndirectDir, IndirectPipe]
|
||||
exports: [NotStandaloneStuffModule, IndirectDir, IndirectPipe],
|
||||
}]
|
||||
}] });
|
||||
export class DirectDir {
|
||||
|
|
@ -171,7 +171,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Directive,
|
||||
args: [{
|
||||
standalone: true,
|
||||
selector: '[direct]'
|
||||
selector: '[direct]',
|
||||
}]
|
||||
}] });
|
||||
export class DirectPipe {
|
||||
|
|
@ -183,7 +183,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Pipe,
|
||||
args: [{
|
||||
standalone: true,
|
||||
name: 'directpipe'
|
||||
name: 'directpipe',
|
||||
}]
|
||||
}] });
|
||||
export class TestCmp {
|
||||
|
|
@ -207,7 +207,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<p>Reference some indirect standalone things:<span indirect>{{data | indirectpipe}}</span></p>
|
||||
<p>Reference some standalone things directly:<span direct>{{data | directpipe}}</span></p>
|
||||
`,
|
||||
imports: [SomeModule, DirectDir, DirectPipe]
|
||||
imports: [SomeModule, DirectDir, DirectPipe],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -273,7 +273,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
standalone: true,
|
||||
selector: 'recursive-cmp',
|
||||
// Simple recursion. Note: no `imports`.
|
||||
template: '<recursive-cmp></recursive-cmp>'
|
||||
template: '<recursive-cmp></recursive-cmp>',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -300,7 +300,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
standalone: true,
|
||||
selector: 'standalone-cmp',
|
||||
template: ''
|
||||
template: '',
|
||||
}]
|
||||
}] });
|
||||
export class StandaloneDir {
|
||||
|
|
@ -319,7 +319,7 @@ Module.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0-
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Module, decorators: [{
|
||||
type: NgModule,
|
||||
args: [{
|
||||
imports: [StandaloneCmp, StandaloneDir]
|
||||
imports: [StandaloneCmp, StandaloneDir],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -356,7 +356,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: 'test',
|
||||
standalone: true,
|
||||
imports: [forwardRef(() => StandaloneComponent)],
|
||||
template: '<other-standalone></other-standalone>'
|
||||
template: '<other-standalone></other-standalone>',
|
||||
}]
|
||||
}] });
|
||||
export class StandaloneComponent {
|
||||
|
|
@ -368,7 +368,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
selector: 'other-standalone',
|
||||
standalone: true,
|
||||
template: ''
|
||||
template: '',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -599,7 +599,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
providers: [],
|
||||
declarations: [],
|
||||
imports: []
|
||||
imports: [],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ TodoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TodoModule, decorators: [{
|
||||
type: NgModule,
|
||||
args: [{
|
||||
declarations: [TodoComponent, MyApp]
|
||||
declarations: [TodoComponent, MyApp],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: 'some-elem',
|
||||
standalone: true,
|
||||
template: ``,
|
||||
inputs: ['attr1', 'prop1', 'attrInterp1', 'propInterp1']
|
||||
inputs: ['attr1', 'prop1', 'attrInterp1', 'propInterp1'],
|
||||
}]
|
||||
}] });
|
||||
export class MyCmp {
|
||||
|
|
@ -47,7 +47,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
'[class.class1]': 'false',
|
||||
'[style.style1]': 'true',
|
||||
'[class]': 'foo',
|
||||
'[style]': 'foo'
|
||||
'[style]': 'foo',
|
||||
},
|
||||
template: `
|
||||
<some-elem
|
||||
|
|
|
|||
|
|
@ -402,7 +402,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<div [class]="value1" [class]="value2"></div>
|
||||
<div [style]="value1" [style]="value2"></div>
|
||||
<div (click)="$event.stopPropagation()" (click)="$event.preventDefault()"></div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -101,8 +101,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: '[hostBindingDir]',
|
||||
host: {
|
||||
'[class.a]': 'value ?? "class-a"',
|
||||
'[class.b]': 'value ?? "class-b"'
|
||||
}
|
||||
'[class.b]': 'value ?? "class-b"',
|
||||
},
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -135,8 +135,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: '[hostBindingDir]',
|
||||
host: {
|
||||
'[style.fontSize]': 'value ?? "15px"',
|
||||
'[style.fontWeight]': 'value ?? "bold"'
|
||||
}
|
||||
'[style.fontWeight]': 'value ?? "bold"',
|
||||
},
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -299,7 +299,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
'[style.opacity]': 'true',
|
||||
'class': 'one two',
|
||||
'[class.three]': 'true',
|
||||
'title': 'hello there from directive'
|
||||
'title': 'hello there from directive',
|
||||
}
|
||||
}]
|
||||
}] });
|
||||
|
|
@ -565,7 +565,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: '[my-dir]',
|
||||
host: {
|
||||
'(mousedown)': 'mousedown()',
|
||||
'(mouseup)': 'mouseup()'
|
||||
'(mouseup)': 'mouseup()',
|
||||
}
|
||||
}]
|
||||
}], propDecorators: { click: [{
|
||||
|
|
@ -602,7 +602,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: 'my-comp',
|
||||
template: '',
|
||||
host: {
|
||||
'(@animation.done)': 'done()'
|
||||
'(@animation.done)': 'done()',
|
||||
}
|
||||
}]
|
||||
}], propDecorators: { start: [{
|
||||
|
|
@ -641,7 +641,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
host: {
|
||||
'(mousedown)': 'mousedown()',
|
||||
'(@animation.done)': 'done()',
|
||||
'(mouseup)': 'mouseup()'
|
||||
'(mouseup)': 'mouseup()',
|
||||
}
|
||||
}]
|
||||
}], propDecorators: { start: [{
|
||||
|
|
@ -677,7 +677,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
selector: '[hostBindingDir]',
|
||||
host: {
|
||||
'[style.color]': '$any("red")'
|
||||
'[style.color]': '$any("red")',
|
||||
},
|
||||
template: ``
|
||||
}]
|
||||
|
|
@ -707,7 +707,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: '[hostBindingDir]',
|
||||
host: {
|
||||
'[class.a]': 'true',
|
||||
'[class.b]': 'false'
|
||||
'[class.b]': 'false',
|
||||
}
|
||||
}]
|
||||
}], propDecorators: { true: [{
|
||||
|
|
@ -818,8 +818,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
'[href]': 'evil',
|
||||
'[attr.style]': 'evil',
|
||||
'[src]': 'evil',
|
||||
'[sandbox]': 'evil'
|
||||
}
|
||||
'[sandbox]': 'evil',
|
||||
},
|
||||
}]
|
||||
}] });
|
||||
export class HostBindingDir2 {
|
||||
|
|
@ -839,8 +839,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
'[href]': 'evil',
|
||||
'[attr.style]': 'evil',
|
||||
'[src]': 'evil',
|
||||
'[sandbox]': 'evil'
|
||||
}
|
||||
'[sandbox]': 'evil',
|
||||
},
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -873,7 +873,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
standalone: true,
|
||||
selector: '[hostBindingDir]',
|
||||
host: { 'src': 'trusted', 'srcdoc': 'trusted' }
|
||||
host: { 'src': 'trusted', 'srcdoc': 'trusted' },
|
||||
}]
|
||||
}] });
|
||||
export class HostBindingDir2 {
|
||||
|
|
@ -885,7 +885,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
standalone: true,
|
||||
selector: 'img',
|
||||
host: { 'src': 'trusted', 'srcdoc': 'trusted' }
|
||||
host: { 'src': 'trusted', 'srcdoc': 'trusted' },
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -920,7 +920,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
standalone: true,
|
||||
selector: '[hostBindingDir]',
|
||||
host: { '[style.background-image]': 'imgUrl', '[style]': 'styles' }
|
||||
host: { '[style.background-image]': 'imgUrl', '[style]': 'styles' },
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -953,7 +953,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: 'my-cmp',
|
||||
standalone: true,
|
||||
host: {
|
||||
'(document:dragover)': 'foo($event)'
|
||||
'(document:dragover)': 'foo($event)',
|
||||
},
|
||||
template: `
|
||||
`
|
||||
|
|
@ -990,7 +990,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: 'my-cmp',
|
||||
standalone: true,
|
||||
host: {
|
||||
'foo': BAR_CONST
|
||||
'foo': BAR_CONST,
|
||||
},
|
||||
template: ``
|
||||
}]
|
||||
|
|
@ -1025,7 +1025,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
host: {
|
||||
['class.is-compact']: 'false',
|
||||
['style.width']: '0',
|
||||
['attr.tabindex']: '5'
|
||||
['attr.tabindex']: '5',
|
||||
}
|
||||
}]
|
||||
}] });
|
||||
|
|
@ -1042,7 +1042,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
host: {
|
||||
'[class.is-compact]': 'false',
|
||||
'[style.width]': '0',
|
||||
'[attr.tabindex]': '5'
|
||||
'[attr.tabindex]': '5',
|
||||
}
|
||||
}]
|
||||
}] });
|
||||
|
|
|
|||
|
|
@ -762,7 +762,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
imports: [Dir],
|
||||
template: `
|
||||
<div dir [(a)]="value" [b]="value" [(c)]="value" [d]="value"></div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -113,7 +113,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -195,7 +195,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -317,7 +317,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
@switch (message) {}
|
||||
{{message}}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -361,7 +361,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
hello
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -410,7 +410,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
goodbye
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -468,7 +468,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
four
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -543,7 +543,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
three
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -610,7 +610,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
</div>
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [TestPipe]
|
||||
imports: [TestPipe],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -660,7 +660,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
{{value()}} as {{alias}}
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -714,7 +714,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -768,7 +768,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -813,7 +813,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
{{item.name}}
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -864,7 +864,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
No items!
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -911,7 +911,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
{{item.name}}
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -958,7 +958,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
{{item.name}}
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1015,7 +1015,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1073,7 +1073,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
Count: {{$count}}
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1128,7 +1128,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
Count: {{co}}
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1197,7 +1197,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
Aliased count: {{co}}
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1254,7 +1254,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1303,7 +1303,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<div (click)="log($index, ev, $first, $count)"></div>
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1338,7 +1338,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
template: `@for (item of items; track item) {
|
||||
{{$odd + ''}}
|
||||
}`
|
||||
}`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1385,7 +1385,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
Empty
|
||||
}
|
||||
<ng-template/>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1431,7 +1431,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
|
||||
{{$index}} {{$count}} {{$first}} {{$last}}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1479,7 +1479,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
{{message}}
|
||||
@for (item of items; track trackFn($index, item)) {}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1530,7 +1530,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
@for (item of items; track trackFn($index, item)) {}
|
||||
</ng-template>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1577,7 +1577,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
{{message}}
|
||||
@for (item of items; track trackFn($index)) {}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1627,7 +1627,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
@for (otherItem of otherItems; track otherItem.name[0].toUpperCase()) {
|
||||
{{otherItem.name}}
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1682,7 +1682,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
@for (otherItem of otherItems; track trackFn(otherItem, message)) {
|
||||
{{otherItem.name}}
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1729,7 +1729,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
@for (item of items; track trackFn({foo: item, bar: item}, [item, item])) {
|
||||
{{item.name}}
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1789,7 +1789,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
</div>
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [TestPipe]
|
||||
imports: [TestPipe],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1855,7 +1855,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [Binding]
|
||||
imports: [Binding],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1920,7 +1920,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [Binding]
|
||||
imports: [Binding],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1981,7 +1981,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [Binding]
|
||||
imports: [Binding],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -2042,7 +2042,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [Binding]
|
||||
imports: [Binding],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -2115,7 +2115,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [Binding]
|
||||
imports: [Binding],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -2188,7 +2188,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [Binding]
|
||||
imports: [Binding],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -2254,7 +2254,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -2316,7 +2316,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -2367,7 +2367,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -2410,7 +2410,7 @@ it('case 1', () => {
|
|||
} @else {
|
||||
Second
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
});
|
||||
|
|
@ -2434,7 +2434,7 @@ it('case 2', () => {
|
|||
} @else {
|
||||
Second
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
});
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
@defer {Deferred content}
|
||||
<p>Content after defer block</p>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
Calendar failed to load <i>sad</i>
|
||||
}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -120,7 +120,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
} @placeholder (minimum 2s) {
|
||||
<img src="placeholder.gif">
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -157,7 +157,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
} @loading(minimum 2s; after 500ms) {
|
||||
<img src="loading.gif">
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -226,7 +226,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
</div>
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [EagerDep, LazyDep, LoadingDep]
|
||||
imports: [EagerDep, LazyDep, LoadingDep],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -264,7 +264,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Directive,
|
||||
args: [{
|
||||
selector: 'lazy-dep',
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
export class MyApp {
|
||||
|
|
@ -294,7 +294,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
</div>
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [LazyDep]
|
||||
imports: [LazyDep],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -414,7 +414,7 @@ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "0.0.0-PLACE
|
|||
</div>
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [EagerDep, LazyDep, LoadingDep]
|
||||
imports: [EagerDep, LazyDep, LoadingDep],
|
||||
}]
|
||||
}], ctorParameters: null, propDecorators: null }) });
|
||||
|
||||
|
|
@ -470,7 +470,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
} @placeholder {
|
||||
<button #button>Click me</button>
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -529,7 +529,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
} @placeholder {
|
||||
<button #button>Click me</button>
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -587,7 +587,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [TestPipe]
|
||||
imports: [TestPipe],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -645,7 +645,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -696,7 +696,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
</ng-template>
|
||||
</ng-template>
|
||||
</ng-template>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -747,7 +747,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
</div>
|
||||
</div>
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -788,7 +788,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
} @placeholder {
|
||||
<button>Click me</button>
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -839,7 +839,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
selector: 'local-dep',
|
||||
standalone: true,
|
||||
template: 'Local dependency'
|
||||
template: 'Local dependency',
|
||||
}]
|
||||
}] });
|
||||
export class TestCmp {
|
||||
|
|
@ -862,7 +862,7 @@ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "0.0.0-PLACE
|
|||
<cmp-a />
|
||||
<local-dep />
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}], ctorParameters: null, propDecorators: null }) });
|
||||
|
||||
|
|
@ -917,7 +917,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
selector: 'local-dep',
|
||||
standalone: true,
|
||||
template: 'Local dependency'
|
||||
template: 'Local dependency',
|
||||
}]
|
||||
}] });
|
||||
export class TestCmp {
|
||||
|
|
@ -940,7 +940,7 @@ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "0.0.0-PLACE
|
|||
<cmp-a />
|
||||
<local-dep />
|
||||
}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}], ctorParameters: null, propDecorators: null }) });
|
||||
|
||||
|
|
@ -971,7 +971,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
selector: 'my-lazy-cmp',
|
||||
standalone: true,
|
||||
template: 'Hi!'
|
||||
template: 'Hi!',
|
||||
}]
|
||||
}] });
|
||||
class SimpleComponent {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
selector: 'my-component',
|
||||
template: '',
|
||||
hostDirectives: [DirectiveA, DirectiveB]
|
||||
hostDirectives: [DirectiveA, DirectiveB],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Directive,
|
||||
args: [{
|
||||
standalone: true,
|
||||
hostDirectives: [DirectiveA]
|
||||
hostDirectives: [DirectiveA],
|
||||
}]
|
||||
}] });
|
||||
export class DirectiveC {
|
||||
|
|
@ -81,7 +81,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Directive,
|
||||
args: [{
|
||||
standalone: true,
|
||||
hostDirectives: [DirectiveB]
|
||||
hostDirectives: [DirectiveB],
|
||||
}]
|
||||
}] });
|
||||
export class MyComponent {
|
||||
|
|
@ -93,7 +93,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
selector: 'my-component',
|
||||
template: '',
|
||||
hostDirectives: [DirectiveC]
|
||||
hostDirectives: [DirectiveC],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -132,7 +132,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
selector: 'my-component',
|
||||
template: '',
|
||||
hostDirectives: [forwardRef(() => DirectiveB)]
|
||||
hostDirectives: [forwardRef(() => DirectiveB)],
|
||||
}]
|
||||
}] });
|
||||
export class DirectiveB {
|
||||
|
|
@ -143,7 +143,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Directive,
|
||||
args: [{
|
||||
standalone: true,
|
||||
hostDirectives: [{ directive: forwardRef(() => DirectiveA), inputs: ['value'] }]
|
||||
hostDirectives: [{ directive: forwardRef(() => DirectiveA), inputs: ['value'] }],
|
||||
}]
|
||||
}] });
|
||||
export class DirectiveA {
|
||||
|
|
@ -212,8 +212,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
hostDirectives: [{
|
||||
directive: HostDir,
|
||||
inputs: ['value', 'color: colorAlias'],
|
||||
outputs: ['opened', 'closed: closedAlias']
|
||||
}]
|
||||
outputs: ['opened', 'closed: closedAlias'],
|
||||
}],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -276,8 +276,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
hostDirectives: [{
|
||||
directive: HostDir,
|
||||
inputs: ['valueAlias', 'colorAlias: customColorAlias'],
|
||||
outputs: ['openedAlias', 'closedAlias: customClosedAlias']
|
||||
}]
|
||||
outputs: ['openedAlias', 'closedAlias: customClosedAlias'],
|
||||
}],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -307,7 +307,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'my-component',
|
||||
template: '<ng-template [someDirective]="true"></ng-template>'
|
||||
template: '<ng-template [someDirective]="true"></ng-template>',
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
template: `
|
||||
<div i18n>Hello, {{ placeholder }}! You are a very good {{ placeholder }}.</div>
|
||||
<div i18n>Hello, {{ placeholder // i18n(ph = "ph") }}! Hello again {{ placeholder // i18n(ph = "ph") }}.</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -64,7 +64,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
template: `
|
||||
<div i18n>{{ valueA | pipeA }} and {{ valueB | pipeB }}</div>
|
||||
<div i18n><span>{{ valueA | pipeA }}</span> and {{ valueB | pipeB }} <span>and {{ valueC | pipeC }}</span></div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class PipeA {
|
||||
|
|
@ -169,7 +169,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
{{diskView.name}} has {diskView.length, plural, =1 {VM} other {VMs}}
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -577,7 +577,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
template: `
|
||||
<div i18n-title="m|d" title="intro {% valueA | uppercase %}"></div>
|
||||
`,
|
||||
interpolation: ['{%', '%}']
|
||||
interpolation: ['{%', '%}'],
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'my-component',
|
||||
template: '<div i18n="meaning:A|descA@@idA">Content A</div>'
|
||||
template: '<div i18n="meaning:A|descA@@idA">Content A</div>',
|
||||
}]
|
||||
}] });
|
||||
var MyModule = /** @class */ (function () {
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: 'my-component',
|
||||
template: `
|
||||
{age, select, 10 {ten} 20 {twenty} other {other}}
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -224,7 +224,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
template: `
|
||||
<div i18n>{age, select, 10 {ten} 20 {twenty} other {{% other %}}}</div>
|
||||
`,
|
||||
interpolation: ['{%', '%}']
|
||||
interpolation: ['{%', '%}'],
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -390,7 +390,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
{gender, select, male {male} female {female} other {other}}
|
||||
{age, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -947,7 +947,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
}
|
||||
</span>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
</xhtml:div>
|
||||
</foreignObject>
|
||||
</svg>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -83,7 +83,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
</xhtml:div>
|
||||
</foreignObject>
|
||||
</svg>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'my-component',
|
||||
template: '<div i18n>`{{ count }}`</div>'
|
||||
template: '<div i18n>`{{ count }}`</div>',
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -207,7 +207,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<div i18n>My i18n block #2</div>
|
||||
<div>My non-i18n block #2</div>
|
||||
<div i18n>My i18n block #3</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -261,7 +261,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
Named interpolation: {{ valueA // i18n(ph="PH_A") }}
|
||||
Named interpolation with spaces: {{ valueB // i18n(ph="PH B") }}
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -311,7 +311,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
template: `
|
||||
<div i18n>{% valueA %}</div>
|
||||
`,
|
||||
interpolation: ['{%', '%}']
|
||||
interpolation: ['{%', '%}'],
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -537,7 +537,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -620,7 +620,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
Plain text in nested element (block #2)
|
||||
</span>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -694,7 +694,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -742,7 +742,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<img src="logo.png" i18n />
|
||||
<img src="logo.png" i18n *ngIf="visible" />
|
||||
<img src="logo.png" i18n *ngIf="visible" i18n-title title="App logo #{{ id }}" />
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -826,7 +826,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -967,7 +967,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<ng-content select="special"></ng-content>
|
||||
<ng-content></ng-content>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1004,7 +1004,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<input [disabled]="someBoolean">
|
||||
{{ someField }}
|
||||
</span>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: 'my-component',
|
||||
template: `
|
||||
<ng-container i18n>Some content: {{ valueA | uppercase }}</ng-container>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -77,7 +77,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: 'my-component',
|
||||
template: `
|
||||
<ng-template i18n>Some content: {{ valueA | uppercase }}</ng-template>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -140,7 +140,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<ng-template>Template content: {{ valueA | uppercase }}</ng-template>
|
||||
<ng-container>Container content: {{ valueB | uppercase }}</ng-container>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -196,7 +196,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
template: `
|
||||
<ng-template>{gender, select, male {male} female {female} other {other}}</ng-template>
|
||||
<ng-container>{age, select, 10 {ten} 20 {twenty} other {other}}</ng-container>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -261,7 +261,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
</ng-template>
|
||||
</ng-template>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -310,7 +310,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
template: `
|
||||
<ng-container i18n>{gender, select, male {male} female {female} other {other}}</ng-container>
|
||||
<ng-template i18n>{age, select, 10 {ten} 20 {twenty} other {other}}</ng-template>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -365,7 +365,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<ng-template i18n>
|
||||
<img src="logo.png" title="Logo" /> is my logo #2
|
||||
</ng-template>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -411,7 +411,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
template: `
|
||||
<div i18n>Test</div>
|
||||
<div i18n>Test</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -459,7 +459,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<div i18n>
|
||||
Hello <ng-container>there</ng-container>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -507,7 +507,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<div i18n>
|
||||
Hello <ng-container>there <strong>!</strong></ng-container>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -553,7 +553,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
template: `
|
||||
<ng-template *ngIf="someFlag" i18n>Content A</ng-template>
|
||||
<ng-container *ngIf="someFlag" i18n>Content B</ng-container>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -613,7 +613,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<img *ngIf="someOtherFlag" />
|
||||
<img *ngIf="someOtherFlag" />
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -668,7 +668,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<div i18n>
|
||||
<ng-template>Content B</ng-template>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: 'my-component',
|
||||
template: `
|
||||
<div i18n>My i18n block #1</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -62,7 +62,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: 'my-component',
|
||||
template: `
|
||||
<div i18n>{age, select, 10 {ten} 20 {twenty} other {other}}</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -109,7 +109,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
template: `
|
||||
<ng-template i18n>My i18n block #1</ng-template>
|
||||
<ng-container i18n>My i18n block #2</ng-container>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -155,7 +155,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
template: `
|
||||
<span i18n class="myClass">Text #1</span>
|
||||
<span i18n style="padding: 10px;">Text #2</span>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<span>Text inside span</span>
|
||||
</div>
|
||||
`,
|
||||
preserveWhitespaces: true
|
||||
preserveWhitespaces: true,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
@let result = value * 2;
|
||||
The result is {{result}}
|
||||
`,
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
@let result = two + 1;
|
||||
The result is {{result}}
|
||||
`,
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -90,7 +90,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Pipe,
|
||||
args: [{
|
||||
name: 'double',
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
export class MyApp {
|
||||
|
|
@ -113,7 +113,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
The result is {{result}}
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [DoublePipe]
|
||||
imports: [DoublePipe],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -162,7 +162,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
|
||||
<button (click)="callback(one, two)"></button>
|
||||
`,
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -210,7 +210,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
|
||||
@let one = 1;
|
||||
`,
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -244,7 +244,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
{{value}}
|
||||
<ng-template>{{value}}</ng-template>
|
||||
`,
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -310,7 +310,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
</ng-template>
|
||||
`,
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -350,7 +350,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
@let fullName = name.value + ' ' + lastName.value;
|
||||
Hello, {{fullName}}
|
||||
`,
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -384,7 +384,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
{{message}}
|
||||
<input #name>
|
||||
`,
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -433,7 +433,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
}
|
||||
`,
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -475,7 +475,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
@let result = value * 2;
|
||||
</ng-template>
|
||||
`,
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -513,7 +513,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
@let result = value * 2;
|
||||
{{value}}
|
||||
`,
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -557,7 +557,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
@let four = three + 1;
|
||||
{{value}}
|
||||
`,
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -601,7 +601,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
@let four = three + 1;
|
||||
{{two}}
|
||||
`,
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -650,7 +650,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
{{value}}
|
||||
<button (click)="callback(three)"></button>
|
||||
`,
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -701,7 +701,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
{{three}}
|
||||
}
|
||||
`,
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'my-component',
|
||||
template: `<div (click)="click()" (change)="change()"></div>`
|
||||
template: `<div (click)="click()" (change)="change()"></div>`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -251,7 +251,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'some-comp',
|
||||
template: ''
|
||||
template: '',
|
||||
}]
|
||||
}], propDecorators: { update: [{
|
||||
type: Output
|
||||
|
|
@ -396,7 +396,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
template: '',
|
||||
host: {
|
||||
'(mousedown)': 'mousedown()'
|
||||
'(mousedown)': 'mousedown()',
|
||||
}
|
||||
}]
|
||||
}], propDecorators: { click: [{
|
||||
|
|
@ -574,7 +574,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Directive,
|
||||
args: [{
|
||||
host: {
|
||||
'(click)': 'c(this.$event)'
|
||||
'(click)': 'c(this.$event)',
|
||||
}
|
||||
}]
|
||||
}] });
|
||||
|
|
@ -700,7 +700,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: 'Name: <input [(ngModel)]="name">'
|
||||
template: 'Name: <input [(ngModel)]="name">',
|
||||
}]
|
||||
}] });
|
||||
export class NgModelDirective {
|
||||
|
|
@ -767,7 +767,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: 'Name: <ng-template><input [(ngModel)]="name"></ng-template>'
|
||||
template: 'Name: <ng-template><input [(ngModel)]="name"></ng-template>',
|
||||
}]
|
||||
}] });
|
||||
export class NgModelDirective {
|
||||
|
|
@ -892,7 +892,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
imports: [Dir],
|
||||
template: `
|
||||
<div dir [(a)]="value" (b)="noop()" [(c)]="value" (d)="noop()"></div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -933,7 +933,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Directive,
|
||||
args: [{
|
||||
selector: '[ngModel]',
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
export class TestCmp {
|
||||
|
|
@ -956,7 +956,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
}
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [NgModelDirective]
|
||||
imports: [NgModelDirective],
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
template: `
|
||||
<div [@foo]='exp'></div>
|
||||
<div @bar></div>
|
||||
<div [@baz]></div>`
|
||||
<div [@baz]></div>`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -160,7 +160,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
trigger('myAnimation', [
|
||||
transition('* => state', [style({ 'opacity': '0' }), animate(500, style({ 'opacity': '1' }))]),
|
||||
]),
|
||||
]
|
||||
],
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F{{p6}}G{{p7}}H"></div>
|
||||
<div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F{{p6}}G{{p7}}H{{p8}}I"></div>
|
||||
<div class="A{{p1}}B{{p2}}C{{p3}}D{{p4}}E{{p5}}F{{p6}}G{{p7}}H{{p8}}I{{p9}}J"></div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -326,7 +326,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};p6:{{p6}};p7:{{p7}};"></div>
|
||||
<div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};p6:{{p6}};p7:{{p7}};p8:{{p8}};"></div>
|
||||
<div style="p1:{{p1}};p2:{{p2}};p3:{{p3}};p4:{{p4}};p5:{{p5}};p6:{{p6}};p7:{{p7}};p8:{{p8}};p9:{{p9}};"></div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -425,7 +425,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'my-component',
|
||||
template: '<div myWidthDir myHeightDir myClassDir></div>'
|
||||
template: '<div myWidthDir myHeightDir myClassDir></div>',
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -487,7 +487,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
host: {
|
||||
'[style.--camelCase]': 'value',
|
||||
'[style.--kebab-case]': 'value',
|
||||
'style': '--camelCase: foo; --kebab-case: foo'
|
||||
'style': '--camelCase: foo; --kebab-case: foo',
|
||||
}
|
||||
}]
|
||||
}] });
|
||||
|
|
|
|||
|
|
@ -372,7 +372,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
standalone: true,
|
||||
template: `
|
||||
<div style="width: 1px; width: 10px;" class="cls1 cls1"></div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -375,7 +375,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'my-component',
|
||||
template: '<ng-template #foo>some-content</ng-template>'
|
||||
template: '<ng-template #foo>some-content</ng-template>',
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -415,7 +415,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'my-component',
|
||||
template: '<ng-template (outDirective)="$event.doSth()"></ng-template>'
|
||||
template: '<ng-template (outDirective)="$event.doSth()"></ng-template>',
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -471,7 +471,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'my-app',
|
||||
template: '<ng-template dir="{{ message }}"></ng-template>'
|
||||
template: '<ng-template dir="{{ message }}"></ng-template>',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -514,7 +514,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'my-app',
|
||||
template: '<ng-template *ngIf="true" dir="{{ message }}"></ng-template>'
|
||||
template: '<ng-template *ngIf="true" dir="{{ message }}"></ng-template>',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -560,7 +560,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<div *ngFor="let item of items">
|
||||
<p *ngIf="item > 10">more than 10</p>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class AModule {
|
||||
|
|
@ -616,7 +616,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<p *ngIf="subitem > 10">more than 10</p>
|
||||
</ng-container>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class BModule {
|
||||
|
|
@ -676,7 +676,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: 'a-component',
|
||||
template: `
|
||||
<ng-content *ngIf="show"></ng-content>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class BComponent {
|
||||
|
|
@ -694,7 +694,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
selector: 'b-component',
|
||||
template: `
|
||||
<ng-content *ngIf="show"></ng-content>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class AModule {
|
||||
|
|
@ -759,7 +759,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<div *ngFor="let item of items">
|
||||
<p (click)="$event">{{ item }}</p>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -800,7 +800,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'my-component',
|
||||
template: `<div *ngIf="val | pipe"></div>`
|
||||
template: `<div *ngIf="val | pipe"></div>`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -842,7 +842,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
selector: 'my-component',
|
||||
template: `
|
||||
{{a?.b ? 1 : 2 }}`
|
||||
{{a?.b ? 1 : 2 }}`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -935,7 +935,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
selector: 'my-component',
|
||||
standalone: true,
|
||||
template: '<ng-template l="l1" [p]="p1" [attr.a]="a1" [class.c]="c1"></ng-template>'
|
||||
template: '<ng-template l="l1" [p]="p1" [attr.a]="a1" [class.c]="c1"></ng-template>',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1073,7 +1073,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
standalone: true,
|
||||
template: `
|
||||
<ng-template *ngIf="true">Content</ng-template>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1125,7 +1125,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<ng-container *ngIf="flag" />
|
||||
<ng-content *ngIf="flag" />
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -1163,7 +1163,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<div *ngFor="let someElem of someField.someMethod()"
|
||||
[attr.someInputAttr]="someElem.someAttr()">
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -1212,7 +1212,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
<ng-template #someLocalRef>
|
||||
<span [attr.someAttr]="someField" *ngIf="someBooleanField"></span>
|
||||
</ng-template>
|
||||
`
|
||||
`,
|
||||
}]
|
||||
}] });
|
||||
export class MyModule {
|
||||
|
|
@ -1255,7 +1255,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
args: [{
|
||||
selector: 'my-component',
|
||||
standalone: true,
|
||||
template: '<ng-template let-a [ngIf]="true">{{this.a}}</ng-template>'
|
||||
template: '<ng-template let-a [ngIf]="true">{{this.a}}</ng-template>',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "0.0.
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
standalone: true,
|
||||
template: 'Works'
|
||||
template: 'Works',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -84,7 +84,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "0.0.
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}], propDecorators: { decoratorInput: [{
|
||||
type: Input
|
||||
|
|
@ -123,7 +123,7 @@ function convertToBoolean(value) {
|
|||
export class TestDir {
|
||||
constructor() {
|
||||
this.name = input.required({
|
||||
transform: convertToBoolean
|
||||
transform: convertToBoolean,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -132,7 +132,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "0.0.
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -158,7 +158,7 @@ const complexTransform = (defaultVal) => (v) => v || defaultVal;
|
|||
export class TestDir {
|
||||
constructor() {
|
||||
this.name = input.required({
|
||||
transform: (v) => v === true || v !== ''
|
||||
transform: (v) => v === true || v !== '',
|
||||
});
|
||||
this.name2 = input.required({ transform: toBoolean });
|
||||
this.genericTransform = input.required({ transform: complexTransform(1) });
|
||||
|
|
@ -170,7 +170,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "0.0.
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "0.0.
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -67,7 +67,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
standalone: true,
|
||||
template: 'Works'
|
||||
template: 'Works',
|
||||
}]
|
||||
}] });
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "0.0.
|
|||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{
|
||||
type: Directive,
|
||||
args: [{
|
||||
standalone: true
|
||||
standalone: true,
|
||||
}]
|
||||
}], propDecorators: { decoratorViewChild: [{
|
||||
type: ViewChild,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<h1>Heading 1</h1>'
|
||||
template: '<h1>Heading 1</h1>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=simple_element.js.map
|
||||
|
|
@ -41,7 +41,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<h1>Heading 1</h1>'
|
||||
template: '<h1>Heading 1</h1>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=simple_element.js.map
|
||||
|
|
@ -71,7 +71,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<hr>'
|
||||
template: '<hr>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=void_element.js.map
|
||||
|
|
@ -101,7 +101,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<hr>'
|
||||
template: '<hr>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=void_element.js.map
|
||||
|
|
@ -134,7 +134,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<h3>Hello {{ name }}</h3>'
|
||||
template: '<h3>Hello {{ name }}</h3>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=interpolation_basic.js.map
|
||||
|
|
@ -168,7 +168,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<h3>Hello {{ name }}</h3>'
|
||||
template: '<h3>Hello {{ name }}</h3>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=interpolation_basic.js.map
|
||||
|
|
@ -203,7 +203,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<h2>{{ greeting + " " + name }}</h2>'
|
||||
template: '<h2>{{ greeting + " " + name }}</h2>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=interpolation_complex.js.map
|
||||
|
|
@ -239,7 +239,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<h2>{{ greeting + " " + name }}</h2>'
|
||||
template: '<h2>{{ greeting + " " + name }}</h2>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=interpolation_complex.js.map
|
||||
|
|
@ -274,7 +274,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div id="{{name}}"></div>'
|
||||
template: '<div id="{{name}}"></div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=interpolation_properties.js.map
|
||||
|
|
@ -308,7 +308,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div id="{{name}}"></div>'
|
||||
template: '<div id="{{name}}"></div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=interpolation_properties.js.map
|
||||
|
|
@ -339,7 +339,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div>{{200.3 | percent : 2 }}</div>'
|
||||
template: '<div>{{200.3 | percent : 2 }}</div>',
|
||||
}]
|
||||
}] });
|
||||
export class PercentPipe {
|
||||
|
|
@ -398,7 +398,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div>{{200.3 | percent : 2 }}</div>'
|
||||
template: '<div>{{200.3 | percent : 2 }}</div>',
|
||||
}]
|
||||
}] });
|
||||
export class PercentPipe {
|
||||
|
|
@ -460,7 +460,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div [title]="name"></div>'
|
||||
template: '<div [title]="name"></div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=input_binding_simple.js.map
|
||||
|
|
@ -494,7 +494,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div [title]="name"></div>'
|
||||
template: '<div [title]="name"></div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=input_binding_simple.js.map
|
||||
|
|
@ -529,7 +529,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div [title]="greeting + name"></div>'
|
||||
template: '<div [title]="greeting + name"></div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=input_binding_complex.js.map
|
||||
|
|
@ -565,7 +565,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div [title]="greeting + name"></div>'
|
||||
template: '<div [title]="greeting + name"></div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=input_binding_complex.js.map
|
||||
|
|
@ -600,7 +600,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div bind-title="name"></div>'
|
||||
template: '<div bind-title="name"></div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=input_binding_longhand.js.map
|
||||
|
|
@ -634,7 +634,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div bind-title="name"></div>'
|
||||
template: '<div bind-title="name"></div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=input_binding_longhand.js.map
|
||||
|
|
@ -666,7 +666,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<button (click)="doSomething()">Do it</button>'
|
||||
template: '<button (click)="doSomething()">Do it</button>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=output_binding_simple.js.map
|
||||
|
|
@ -698,7 +698,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<button (click)="doSomething()">Do it</button>'
|
||||
template: '<button (click)="doSomething()">Do it</button>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=output_binding_simple.js.map
|
||||
|
|
@ -732,7 +732,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: `<button (click)="items.push('item' + items.length)">Add Item</button>`
|
||||
template: `<button (click)="items.push('item' + items.length)">Add Item</button>`,
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=output_binding_complex.js.map
|
||||
|
|
@ -766,7 +766,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: `<button (click)="items.push('item' + items.length)">Add Item</button>`
|
||||
template: `<button (click)="items.push('item' + items.length)">Add Item</button>`,
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=output_binding_complex.js.map
|
||||
|
|
@ -798,7 +798,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<button on-click="doSomething()">Do it</button>'
|
||||
template: '<button on-click="doSomething()">Do it</button>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=output_binding_longhand.js.map
|
||||
|
|
@ -830,7 +830,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<button on-click="doSomething()">Do it</button>'
|
||||
template: '<button on-click="doSomething()">Do it</button>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=output_binding_longhand.js.map
|
||||
|
|
@ -864,7 +864,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: 'Name: <input [(ngModel)]="name">'
|
||||
template: 'Name: <input [(ngModel)]="name">',
|
||||
}]
|
||||
}] });
|
||||
export class NgModelDirective {
|
||||
|
|
@ -935,7 +935,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: 'Name: <input [(ngModel)]="name">'
|
||||
template: 'Name: <input [(ngModel)]="name">',
|
||||
}]
|
||||
}] });
|
||||
export class NgModelDirective {
|
||||
|
|
@ -1006,7 +1006,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: 'Name: <input bindon-ngModel="name">'
|
||||
template: 'Name: <input bindon-ngModel="name">',
|
||||
}]
|
||||
}] });
|
||||
export class NgModelDirective {
|
||||
|
|
@ -1077,7 +1077,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: 'Name: <input bindon-ngModel="name">'
|
||||
template: 'Name: <input bindon-ngModel="name">',
|
||||
}]
|
||||
}] });
|
||||
export class NgModelDirective {
|
||||
|
|
@ -1148,7 +1148,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div [class.initial]="isInitial">Message</div>'
|
||||
template: '<div [class.initial]="isInitial">Message</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=input_binding_class.js.map
|
||||
|
|
@ -1182,7 +1182,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div [class.initial]="isInitial">Message</div>'
|
||||
template: '<div [class.initial]="isInitial">Message</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=input_binding_class.js.map
|
||||
|
|
@ -1213,7 +1213,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div *ngIf="showMessage()">{{ name }}</div>'
|
||||
template: '<div *ngIf="showMessage()">{{ name }}</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=ng_if_simple.js.map
|
||||
|
|
@ -1243,7 +1243,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div *ngIf="showMessage()">{{ name }}</div>'
|
||||
template: '<div *ngIf="showMessage()">{{ name }}</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=ng_if_simple.js.map
|
||||
|
|
@ -1537,7 +1537,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div i18n>Hello, World!</div>'
|
||||
template: '<div i18n>Hello, World!</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=i18n_message_simple.js.map
|
||||
|
|
@ -1567,7 +1567,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div i18n>Hello, World!</div>'
|
||||
template: '<div i18n>Hello, World!</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=i18n_message_simple.js.map
|
||||
|
|
@ -1600,7 +1600,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div i18n>Hello, {{name}}!</div>'
|
||||
template: '<div i18n>Hello, {{name}}!</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=i18n_message_placeholder.js.map
|
||||
|
|
@ -1634,7 +1634,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div i18n>Hello, {{name}}!</div>'
|
||||
template: '<div i18n>Hello, {{name}}!</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=i18n_message_placeholder.js.map
|
||||
|
|
@ -1669,7 +1669,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div i18n>Interpolation: {{ one }} Interpolation: {{ two }}</div>'
|
||||
template: '<div i18n>Interpolation: {{ one }} Interpolation: {{ two }}</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=i18n_message_placeholder_entities.js.map
|
||||
|
|
@ -1705,7 +1705,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div i18n>Interpolation: {{ one }} Interpolation: {{ two }}</div>'
|
||||
template: '<div i18n>Interpolation: {{ one }} Interpolation: {{ two }}</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=i18n_message_placeholder_entities.js.map
|
||||
|
|
@ -1741,7 +1741,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div i18n title=" pre-title {{titleValue}} post-title" i18n-title> pre-body {{bodyValue}} post-body</div>'
|
||||
template: '<div i18n title=" pre-title {{titleValue}} post-title" i18n-title> pre-body {{bodyValue}} post-body</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=i18n_message_interpolation_whitespace.js.map
|
||||
|
|
@ -1777,7 +1777,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div i18n title=" pre-title {{titleValue}} post-title" i18n-title> pre-body {{bodyValue}} post-body</div>'
|
||||
template: '<div i18n title=" pre-title {{titleValue}} post-title" i18n-title> pre-body {{bodyValue}} post-body</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=i18n_message_interpolation_whitespace.js.map
|
||||
|
|
@ -1809,7 +1809,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div i18n>\n pre-p\n <p>\n in-p\n </p>\n post-p\n</div>'
|
||||
template: '<div i18n>\n pre-p\n <p>\n in-p\n </p>\n post-p\n</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=i18n_message_element_whitespace.js.map
|
||||
|
|
@ -1839,7 +1839,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div i18n>\n pre-p\n <p>\n in-p\n </p>\n post-p\n</div>'
|
||||
template: '<div i18n>\n pre-p\n <p>\n in-p\n </p>\n post-p\n</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=i18n_message_element_whitespace.js.map
|
||||
|
|
@ -1869,7 +1869,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div i18n>Hello, <b>World</b>!</div>'
|
||||
template: '<div i18n>Hello, <b>World</b>!</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=i18n_message_container_tag.js.map
|
||||
|
|
@ -1899,7 +1899,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div i18n>Hello, <b>World</b>!</div>'
|
||||
template: '<div i18n>Hello, <b>World</b>!</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=i18n_message_container_tag.js.map
|
||||
|
|
@ -1929,7 +1929,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div>this is a test</div><div>{{ 1 + 2 }}</div>'
|
||||
template: '<div>this is a test</div><div>{{ 1 + 2 }}</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=update_mode.js.map
|
||||
|
|
@ -1959,7 +1959,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div>this is a test</div><div>{{ 1 + 2 }}</div>'
|
||||
template: '<div>this is a test</div><div>{{ 1 + 2 }}</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=update_mode.js.map
|
||||
|
|
@ -1989,7 +1989,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div class=\"some-class\">this is a test</div>'
|
||||
template: '<div class=\"some-class\">this is a test</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=escape_sequences.js.map
|
||||
|
|
@ -2019,7 +2019,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
|
|||
type: Component,
|
||||
args: [{
|
||||
selector: 'test-cmp',
|
||||
template: '<div class=\"some-class\">this is a test</div>'
|
||||
template: '<div class=\"some-class\">this is a test</div>',
|
||||
}]
|
||||
}] });
|
||||
//# sourceMappingURL=escape_sequences.js.map
|
||||
|
|
|
|||
|
|
@ -254,12 +254,9 @@ runInEachFileSystem(() => {
|
|||
|
||||
expect(docs[0].description).toBe('Future version.');
|
||||
expect(docs[0].jsdocTags.length).toBe(1);
|
||||
|
||||
// It's not clear why TypeScript's JsDoc handling puts a space after
|
||||
// "Component" here, but we'll accept this as-is.
|
||||
expect(docs[0].jsdocTags[0]).toEqual({
|
||||
name: 'see',
|
||||
comment: '{@link Component }',
|
||||
comment: '{@link Component}',
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
/// <reference types="node" />
|
||||
import {inspect} from 'util';
|
||||
import ts from 'typescript';
|
||||
|
||||
import {runInEachFileSystem} from '../../src/ngtsc/file_system/testing';
|
||||
import {loadStandardTestFiles} from '../../src/ngtsc/testing';
|
||||
|
|
@ -23,7 +24,11 @@ runInEachFileSystem((os) => {
|
|||
|
||||
beforeEach(() => {
|
||||
env = NgtscTestEnvironment.setup(testFiles);
|
||||
env.tsconfig({sourceMap: true, target: 'es2015', enableI18nLegacyMessageIdFormat: false});
|
||||
env.tsconfig({
|
||||
sourceMap: true,
|
||||
target: ts.ScriptTarget.ES2015,
|
||||
enableI18nLegacyMessageIdFormat: false,
|
||||
});
|
||||
});
|
||||
|
||||
describe('Inline templates', () => {
|
||||
|
|
|
|||
|
|
@ -15695,10 +15695,10 @@ typescript@5.4.5, typescript@^5.0.4, typescript@^5.4.4:
|
|||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611"
|
||||
integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==
|
||||
|
||||
typescript@5.5.0-beta:
|
||||
version "5.5.0-beta"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.0-beta.tgz#ae6a2e3aa277f74478f1743e8771676cddfcdbec"
|
||||
integrity sha512-FRg3e/aQg3olEG3ff8YjHOERsO4IM0m4qGrsE4UMvILaq4TdDZ6gQX4+2Rq9SjTpfSe/ebwiHcsjm/7FfWWQ6Q==
|
||||
typescript@5.5.2:
|
||||
version "5.5.2"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.2.tgz#c26f023cb0054e657ce04f72583ea2d85f8d0507"
|
||||
integrity sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==
|
||||
|
||||
typescript@~4.9.0:
|
||||
version "4.9.5"
|
||||
|
|
|
|||
Loading…
Reference in a new issue